    /**
 * Estilos Modernos para Blog
 * @package CV_Front
 * @since 2.7.1
 */

/* ========================================
   PÁGINA DE LISTA (CATEGORÍA/ARCHIVO)
======================================== */

/* Encabezado de categoría */
.page-header,
.archive-header,
.page-title {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 30px;
    margin-bottom: 50px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.page-title,
.archive-title {
    font-size: 42px;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.taxonomy-description,
.archive-description {
    font-size: 18px;
    margin-top: 15px;
    opacity: 0.95;
    line-height: 1.6;
}

/* Grid de artículos */
.wp-block-query,
.posts-loop,
#main-content {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

.wp-block-post-template,
.posts-grid,
.blog-posts,
.wp-block-query .wp-block-post-template {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
    gap: 30px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Artículo individual en lista - Estilo Video Gallery */
.wp-block-post,
article.post,
.blog-post-item,
.wp-block-query .wp-block-post {
    background: #fff !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    cursor: pointer !important;
    border: none !important;
}

.wp-block-post:hover,
article.post:hover,
.blog-post-item:hover,
.wp-block-query .wp-block-post:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15) !important;
}

/* Imagen destacada en lista - Estilo Video Gallery */
.wp-block-post-featured-image,
.post-thumbnail,
.entry-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    overflow: hidden;
    background: #000;
}

.wp-block-post-featured-image img,
.post-thumbnail img,
.entry-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wp-block-post:hover .wp-block-post-featured-image img,
article.post:hover .post-thumbnail img,
.blog-post-item:hover .entry-thumbnail img {
    transform: scale(1.05);
}

/* Overlay en imagen */
.wp-block-post-featured-image::after,
.post-thumbnail::after,
.entry-thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 100%);
}

/* Contenido del artículo en lista - Estilo Video Gallery */
.entry-content-wrapper,
.post-content-wrapper,
.wp-block-post > *:not(.wp-block-post-featured-image) {
    padding: 20px;
}

.wp-block-post {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Título en lista */
.wp-block-post-title,
.entry-title,
h2.post-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 15px 0;
    color: #2c3e50;
}

.wp-block-post-title a,
.entry-title a,
h2.post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.wp-block-post-title a:hover,
.entry-title a:hover,
h2.post-title a:hover {
    color: #667eea;
}

/* Meta información */
.wp-block-post-date,
.entry-meta,
.post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.wp-block-post-date::before,
.entry-date::before {
    content: '\f073';
    font-family: 'Font Awesome 5 Free';
    font-weight: 400;
    margin-right: 5px;
    color: #667eea;
}

/* Excerpt */
.wp-block-post-excerpt,
.entry-summary,
.post-excerpt {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
    flex-grow: 1;
}

.wp-block-post-excerpt p,
.entry-summary p,
.post-excerpt p {
    margin-bottom: 10px;
}

/* Categorías */
.wp-block-post-terms,
.post-categories,
.entry-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.wp-block-post-terms a,
.post-categories a,
.entry-categories a {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.wp-block-post-terms a:hover,
.post-categories a:hover,
.entry-categories a:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* ========================================
   POST INDIVIDUAL (ENTRADA COMPLETA)
======================================== */

/* Contenedor principal del post */
.single-post .entry-header,
.single .page-header {
    background: white;
    color: #2c3e50;
    padding: 60px 30px 40px;
    margin: 0 0 40px 0;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.single-post .entry-header::before,
.single .page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.single-post .entry-title,
.single h1.entry-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 20px 0;
    color: #2c3e50;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: left !important;
}

/* Meta en post individual */
.single-post aside.entry-meta {
    display: none !important;
}

.single-post .entry-meta {
    display: flex;
    align-items: center;
    gap: 25px;
    font-size: 16px;
    color: #7f8c8d;
    margin-top: 20px;
}

.single-post .entry-meta a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.single-post .entry-meta a:hover {
    color: #764ba2;
}

.single-post .entry-meta .author::before {
    content: '\f007';
    font-family: 'Font Awesome 5 Free';
    margin-right: 8px;
}

.single-post .entry-meta .posted-on::before {
    content: '\f073';
    font-family: 'Font Awesome 5 Free';
    margin-right: 8px;
}

/* Imagen destacada en post individual */
.single-post .wp-post-image,
.single-post .post-thumbnail img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 15px;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Contenido del post */
.single-post .entry-content,
.single .post-content {
    font-size: 18px;
    line-height: 1.8;
    color: #2c3e50;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 20px !important;
}

/* Imágenes y videos a ancho completo en DESKTOP */
@media (min-width: 769px) {
    .single-post .entry-content img,
    .single .entry-content img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        margin: 30px auto !important;
        border-radius: 12px !important;
    }
    
    .single-post .entry-content iframe,
    .single .entry-content iframe,
    .single-post .entry-content video,
    .single .entry-content video {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 500px !important;
        display: block !important;
        margin: 30px auto !important;
        border-radius: 12px !important;
    }
    
    /* WordPress alignment classes */
    .single-post .entry-content .aligncenter,
    .single .entry-content .aligncenter,
    .single-post .entry-content .alignnone,
    .single .entry-content .alignnone,
    .single-post .entry-content .alignwide,
    .single .entry-content .alignwide,
    .single-post .entry-content .alignfull,
    .single .entry-content .alignfull {
        width: 100% !important;
        max-width: 100% !important;
    }
}

.single-post .entry-content p {
    margin-bottom: 20px;
    padding: 0 8px;
}

.single-post .entry-content h1,
.single-post .entry-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin: 40px 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid #667eea;
}

.single-post .entry-content h3 {
    font-size: 26px;
    font-weight: 700;
    color: #2c3e50;
    margin: 35px 0 15px 0;
}

.single-post .entry-content h4 {
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    margin: 30px 0 12px 0;
}

.single-post .entry-content ul,
.single-post .entry-content ol {
    margin: 20px 0 20px 30px;
    padding: 0;
}

.single-post .entry-content li {
    margin-bottom: 12px;
    line-height: 1.7;
}

.single-post .entry-content li strong {
    color: #667eea;
    font-weight: 700;
}

.single-post .entry-content a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.single-post .entry-content a:hover {
    color: #764ba2;
    border-bottom-color: #764ba2;
}

.single-post .entry-content blockquote {
    border-left: 5px solid #667eea;
    padding: 20px 30px;
    margin: 30px 0;
    background: #f8f9fa;
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: #555;
}

.single-post .entry-content strong {
    font-weight: 700;
    color: #2c3e50;
}

/* Tablas */
.single-post .entry-content table {
    width: 100%;
    margin: 30px 0;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.single-post .entry-content table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.single-post .entry-content table th {
    padding: 15px;
    font-weight: 600;
    text-align: left;
}

.single-post .entry-content table td {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.single-post .entry-content table tbody tr:hover {
    background: #f8f9fa;
}

/* Imágenes en contenido */
.single-post .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 25px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Separadores */
.single-post .entry-content hr {
    border: none;
    height: 3px;
    background: linear-gradient(to right, transparent, #667eea, transparent);
    margin: 40px 0;
}

/* Footer del post */
.single-post .entry-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.single-post .post-tags,
.single-post .entry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.single-post .post-tags a,
.single-post .entry-tags a {
    background: #f0f0f0;
    color: #666;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.single-post .post-tags a:hover,
.single-post .entry-tags a:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* ========================================
   NAVEGACIÓN DE POSTS
======================================== */
.post-navigation {
    margin: 50px 0;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.post-navigation h2.screen-reader-text {
    position: absolute;
    left: -9999px;
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 10%;
}

.nav-previous,
.nav-next {
    width: 45%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px 30px;
    border-radius: 15px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.nav-previous {
    text-align: left;
}

.nav-next {
    text-align: right;
}

.nav-previous::before,
.nav-next::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-previous:hover::before,
.nav-next:hover::before {
    transform: scaleX(1);
}

.nav-previous:hover,
.nav-next:hover {
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
}

.nav-previous a,
.nav-next a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1.4;
}

.nav-previous a:hover,
.nav-next a:hover {
    color: #667eea;
}

/* Limitar texto a ~16 caracteres */
.nav-previous a,
.nav-next a {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-previous a::before {
    content: '\f060';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 18px;
    color: #667eea;
    flex-shrink: 0;
}

.nav-next a {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.nav-next a::after {
    content: '\f061';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 18px;
    color: #667eea;
    flex-shrink: 0;
}

/* Labels */
.nav-previous::after {
    content: '← Anterior';
    position: absolute;
    top: 8px;
    left: 15px;
    font-size: 11px;
    font-weight: 700;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-next::after {
    content: 'Siguiente →';
    position: absolute;
    top: 8px;
    right: 15px;
    font-size: 11px;
    font-weight: 700;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-previous a,
.nav-next a {
    margin-top: 20px;
}

/* ========================================
   PAGINACIÓN
======================================== */
.pagination,
.wp-block-query-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 50px 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span,
.wp-block-query-pagination-numbers a,
.wp-block-query-pagination-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.pagination a:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.pagination .current,
.wp-block-query-pagination-numbers .current {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* ========================================
   SIDEBAR (si existe)
======================================== */
.sidebar,
.widget-area {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.sidebar .widget-title,
.widget-area .widget-title {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #667eea;
}

.sidebar ul,
.widget-area ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar li,
.widget-area li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

.sidebar li::before,
.widget-area li::before {
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #667eea;
}

.sidebar a,
.widget-area a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar a:hover,
.widget-area a:hover {
    color: #667eea;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 768px) {
    .page-header,
    .archive-header {
        padding: 40px 20px;
        margin-bottom: 30px;
    }
    
    .page-title,
    .archive-title {
        font-size: 28px;
    }
    
    .taxonomy-description,
    .archive-description {
        font-size: 16px;
    }
    
    .wp-block-post-template,
    .posts-grid,
    .blog-posts {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .wp-block-post-featured-image,
    .post-thumbnail,
    .entry-thumbnail {
        height: 200px;
    }
    
    .entry-content-wrapper,
    .post-content-wrapper {
        padding: 20px;
    }
    
    .wp-block-post-title,
    .entry-title,
    h2.post-title {
        font-size: 20px;
    }
    
    .single-post .entry-title,
    .single h1.entry-title {
        font-size: 32px;
    }
    
    .single-post .entry-header,
    .single .page-header {
        padding: 50px 20px 30px;
        margin: -20px -20px 30px -20px;
    }
    
    .single-post .entry-content {
        font-size: 16px;
    }
    
    .single-post .entry-content h1,
    .single-post .entry-content h2 {
        font-size: 26px;
    }
    
    .single-post .entry-content h3 {
        font-size: 22px;
    }
    
    .post-navigation {
        padding: 20px 15px;
    }
    
    .post-navigation .nav-links {
        flex-direction: row;
        gap: 10px;
    }
    
    .nav-previous,
    .nav-next {
        width: 48%;
        padding: 15px 12px;
        font-size: 13px;
    }
    
    .nav-previous a,
    .nav-next a {
        font-size: 12px;
        gap: 6px;
    }
    
    .nav-previous a::before,
    .nav-next a::after {
        font-size: 14px;
    }
    
    .nav-previous::after,
    .nav-next::after {
        font-size: 9px;
        top: 6px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .wp-block-post-template,
    .posts-grid,
    .blog-posts {
        grid-template-columns: repeat(2, 1fr);
    }
}

