/**
 * Estilos Frontend Premium para el Portal de Noticias de Criterio Digital
 */

/* Variables del Sistema de Diseño */
:root {
    --criterio-fe-primary: #10b981; /* Esmeralda */
    --criterio-fe-primary-rgb: 16, 185, 129;
    --criterio-fe-secondary: #0f172a; /* Slate oscuro */
    --criterio-fe-accent: #d97706; /* Dorado oscuro */
    --criterio-fe-text-dark: #1e293b;
    --criterio-fe-text-light: #64748b;
    --criterio-fe-bg-card: #ffffff;
    --criterio-fe-border: #e2e8f0;
    --criterio-fe-shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --criterio-fe-shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.08);
    --criterio-fe-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --criterio-fe-radius: 16px;
    --criterio-fe-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 1. SECCIÓN DE CABECERA/HERO DESTACADO */
.criterio-hero-news {
    position: relative;
    border-radius: var(--criterio-fe-radius);
    background-size: cover;
    background-position: center;
    min-height: 480px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: var(--criterio-fe-shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Inter', sans-serif;
}

.criterio-hero-news.no-thumbnail {
    background-color: #0b0f19;
    background-image: 
        radial-gradient(at 0% 0%, rgba(16, 185, 129, 0.25) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(6, 182, 212, 0.25) 0px, transparent 50%),
        radial-gradient(at 50% 100%, rgba(217, 119, 6, 0.15) 0px, transparent 50%),
        linear-gradient(135deg, #0b0f19 0%, #0f172a 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.criterio-hero-news::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 20%, rgba(10, 15, 30, 0.4) 100%);
    pointer-events: none;
}

.criterio-hero-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    max-width: 800px;
    width: 100%;
}

.criterio-hero-category {
    background-color: var(--criterio-fe-primary);
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 30px;
    letter-spacing: 1.5px;
    display: inline-block;
    margin-bottom: 18px;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.criterio-hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 38px;
    line-height: 1.25;
    font-weight: 800;
    margin: 0 0 15px 0;
}

.criterio-hero-title a {
    color: #ffffff !important;
    text-decoration: none !important;
    transition: var(--criterio-fe-transition);
}

.criterio-hero-title a:hover {
    color: #a7f3d0 !important; /* Verde muy claro */
}

.criterio-hero-meta {
    display: flex;
    gap: 20px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    align-items: center;
}

.criterio-hero-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.criterio-hero-meta .meta-item .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.criterio-hero-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 25px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.criterio-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #ffffff;
    color: var(--criterio-fe-secondary) !important;
    font-weight: 700;
    font-size: 13px;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none !important;
    font-family: 'Outfit', sans-serif;
    transition: var(--criterio-fe-transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.criterio-hero-btn:hover {
    background-color: var(--criterio-fe-primary);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

@media (max-width: 768px) {
    .criterio-hero-news {
        min-height: 380px;
    }
    .criterio-hero-content {
        padding: 24px;
    }
    .criterio-hero-title {
        font-size: 26px;
    }
    .criterio-hero-excerpt {
        font-size: 14px;
        margin-bottom: 20px;
    }
}

/* 1.5. CARRUSEL PREMIUM DE NOTICIAS DE DOBLE PANEL */
.criterio-news-carousel {
    display: flex;
    gap: 24px;
    margin-bottom: 40px;
    font-family: 'Inter', sans-serif;
    max-width: 1200px;
    width: 100%;
}

@media (max-width: 1199px) {
    .criterio-news-carousel {
        gap: 16px;
    }
}

/* En resoluciones de escritorio, el carrusel mide exactamente 80vh */
@media (min-width: 992px) {
    .criterio-news-carousel {
        height: 80vh;
        min-height: 520px;
    }
    
    .carousel-main-display {
        height: 100%;
        width: calc(65% - 12px) !important;
        flex: 0 0 calc(65% - 12px) !important;
    }
    
    .carousel-slide {
        height: 100% !important;
    }
    
    .carousel-options-sidebar {
        height: 100%;
        overflow: hidden;
        width: calc(35% - 12px) !important;
        flex: 0 0 calc(35% - 12px) !important;
    }
    
    .carousel-tabs-list {
        height: 100%;
        overflow-y: auto;
        overflow-x: hidden; /* Evita desplazamientos horizontales no deseados */
        padding-right: 6px;
        gap: 10px !important;
        justify-content: flex-start !important;
    }
}

/* Ajustes de proporción y espacio para pantallas de portátiles medianas (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .carousel-main-display {
        width: calc(65% - 8px) !important;
        flex: 0 0 calc(65% - 8px) !important;
    }
    .carousel-options-sidebar {
        width: calc(35% - 8px) !important;
        flex: 0 0 calc(35% - 8px) !important;
    }
}

.carousel-main-display {
    flex: 1.8;
    position: relative;
    border-radius: var(--criterio-fe-radius);
    overflow: hidden;
    box-shadow: var(--criterio-fe-shadow-lg);
    background-color: #0b0f19;
    min-width: 0; /* Permite que el flex item se encoja correctamente en pantallas medianas */
}

.carousel-slide {
    display: none;
    position: relative;
    width: 100%;
    min-height: 480px;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
}

.carousel-slide.is-active {
    display: flex !important;
    animation: slideFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 20%, rgba(10, 15, 30, 0.4) 100%);
    pointer-events: none;
}

.carousel-slide.no-thumbnail {
    background-color: #0b0f19;
    background-image: 
        radial-gradient(at 0% 0%, rgba(16, 185, 129, 0.25) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(6, 182, 212, 0.25) 0px, transparent 50%),
        radial-gradient(at 50% 100%, rgba(217, 119, 6, 0.15) 0px, transparent 50%),
        linear-gradient(135deg, #0b0f19 0%, #0f172a 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.carousel-slide-content {
    position: relative;
    z-index: 2;
    padding: 35px 40px !important;
    width: 100%;
    box-sizing: border-box;
}

/* Reducciones tipográficas para las fuentes del panel izquierdo del carrusel */
.carousel-slide .criterio-hero-title {
    font-size: 28px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    margin-bottom: 12px !important;
}

.carousel-slide .criterio-hero-excerpt {
    font-size: 14px !important;
    line-height: 1.55 !important;
    color: rgba(255, 255, 255, 0.8) !important;
    margin-bottom: 20px !important;
}

.carousel-slide .criterio-hero-meta {
    margin-bottom: 15px !important;
}

@keyframes slideFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animación escalonada (staggered fade-in) de los elementos de texto en la diapositiva activa */
.carousel-slide.is-active .criterio-hero-category {
    animation: textFadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.05s;
}

.carousel-slide.is-active .criterio-hero-title {
    animation: textFadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.12s;
}

.carousel-slide.is-active .criterio-hero-meta {
    animation: textFadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.18s;
}

.carousel-slide.is-active .criterio-hero-excerpt {
    animation: textFadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.24s;
}

.carousel-slide.is-active .criterio-hero-btn {
    animation: textFadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.3s;
}

@keyframes textFadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carousel-options-sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0; /* Permite que el flex item se encoja correctamente en pantallas medianas */
}

ul.carousel-tabs-list {
    padding: 20px !important;
}

/* Reducir padding de la lista en portátiles para evitar desbordamiento */
@media (max-width: 1199px) {
    ul.carousel-tabs-list {
        padding: 12px !important;
    }
}

.carousel-tabs-list {
    list-style: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    box-sizing: border-box;
}

/* Personalización del Scrollbar para la lista de pestañas del carrusel */
.carousel-tabs-list::-webkit-scrollbar {
    width: 6px;
}

.carousel-tabs-list::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.03);
    border-radius: 10px;
}

.carousel-tabs-list::-webkit-scrollbar-thumb {
    background: rgba(16, 185, 129, 0.25);
    border-radius: 10px;
    transition: var(--criterio-fe-transition);
}

.carousel-tabs-list::-webkit-scrollbar-thumb:hover {
    background: rgba(16, 185, 129, 0.5);
}

/* Soporte de scrollbar para Firefox */
.carousel-tabs-list {
    scrollbar-width: thin;
    scrollbar-color: rgba(16, 185, 129, 0.25) rgba(15, 23, 42, 0.03);
}

.carousel-tab-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 16px; /* Más compacto para 10 elementos */
    border-radius: var(--criterio-fe-radius);
    cursor: pointer;
    background-color: var(--criterio-fe-bg-card);
    border: 1px solid var(--criterio-fe-border);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--criterio-fe-shadow-sm);
    box-sizing: border-box;
}

.carousel-tab-item:hover {
    background-color: #ffffff;
    transform: translateX(4px);
    box-shadow: var(--criterio-fe-shadow-md);
    border-color: rgba(16, 185, 129, 0.25);
}

.carousel-tab-item.is-active {
    background: rgba(16, 185, 129, 0.05);
    border-color: var(--criterio-fe-primary);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.1);
    transform: translateX(8px);
}

.tab-indicator-number {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: var(--criterio-fe-text-light);
    opacity: 0.4;
    transition: var(--criterio-fe-transition);
}

.carousel-tab-item.is-active .tab-indicator-number {
    color: var(--criterio-fe-primary);
    opacity: 1;
}

.tab-meta-content {
    display: flex;
    flex-direction: column;
    min-width: 0; /* Crucial para evitar que el título desborde en flexbox anidado */
}

.tab-category-label {
    font-family: 'Outfit', sans-serif;
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--criterio-fe-text-light);
    letter-spacing: 1px;
    margin-bottom: 4px;
    display: block;
    transition: var(--criterio-fe-transition);
}

.carousel-tab-item.is-active .tab-category-label {
    color: var(--criterio-fe-primary);
}

.tab-post-title {
    font-family: 'Outfit', sans-serif;
    font-size: 13.5px; /* Ligeramente más compacto para mejorar legibilidad de 10 elementos */
    font-weight: 600;
    color: var(--criterio-fe-secondary);
    margin: 0;
    line-height: 1.35;
}

.carousel-tab-item.is-active .tab-post-title {
    font-weight: 700;
}

@media (max-width: 991px) {
    .criterio-news-carousel {
        flex-direction: column;
        gap: 16px;
    }
    .carousel-main-display {
        width: 100%;
    }
    .carousel-slide {
        min-height: 380px;
    }
    .carousel-slide-content {
        padding: 24px;
    }
    .carousel-options-sidebar {
        width: 100%;
        margin-top: 5px;
    }
    .carousel-tabs-list {
        flex-direction: row;
        gap: 12px;
        overflow-x: auto;
        padding-bottom: 12px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }
    .carousel-tabs-list::-webkit-scrollbar {
        display: none;
    }
    .carousel-tab-item {
        flex: 0 0 260px;
        scroll-snap-align: start;
        padding: 14px 18px;
    }
    .carousel-tab-item.is-active {
        transform: none;
    }
    .carousel-tab-item:hover {
        transform: none;
    }
}

/* 2. CUADRÍCULA DE NOTICIAS (GRID CARD) */
.criterio-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    font-family: 'Inter', sans-serif;
}

.criterio-news-card {
    background-color: var(--criterio-fe-bg-card);
    border-radius: var(--criterio-fe-radius);
    border: 1px solid var(--criterio-fe-border);
    overflow: hidden;
    box-shadow: var(--criterio-fe-shadow-sm);
    transition: var(--criterio-fe-transition);
    display: flex;
    flex-direction: column;
}

.criterio-news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--criterio-fe-shadow-lg);
    border-color: rgba(16, 185, 129, 0.3);
}

.card-image-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* Relación 16:9 */
    overflow: hidden;
    background-color: #0f172a;
}

.card-image-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.criterio-news-card:hover .card-image-wrap img {
    transform: scale(1.06);
}

.card-category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--criterio-fe-secondary);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 1px;
    z-index: 2;
    font-family: 'Outfit', sans-serif;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.criterio-news-card:hover .card-category-badge {
    background-color: var(--criterio-fe-primary);
}

.card-content-wrap {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-meta {
    display: flex;
    gap: 15px;
    font-size: 11px;
    color: var(--criterio-fe-text-light);
    margin-bottom: 12px;
}

.card-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-meta .meta-item .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.card-title a {
    color: var(--criterio-fe-secondary) !important;
    text-decoration: none !important;
    transition: var(--criterio-fe-transition);
}

.card-title a:hover {
    color: var(--criterio-fe-primary) !important;
}

.card-excerpt {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--criterio-fe-text-light);
    margin: 0 0 18px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.card-read-more {
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--criterio-fe-primary) !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--criterio-fe-transition);
    margin-top: auto;
}

.card-read-more .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.card-read-more:hover {
    color: var(--criterio-fe-secondary) !important;
}

.card-read-more:hover .dashicons {
    transform: translateX(4px);
}

/* Placeholder de Tarjetas sin imagen y Cabecera de Secciones */
.card-placeholder-wrap {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.card-placeholder-mesh {
    width: 100%;
    height: 100%;
    background-color: #0f172a;
    background-image: 
        radial-gradient(at 0% 0%, rgba(16, 185, 129, 0.2) 0px, transparent 60%),
        radial-gradient(at 100% 100%, rgba(6, 182, 212, 0.2) 0px, transparent 60%),
        linear-gradient(135deg, #0f172a 0%, #070a13 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--criterio-fe-transition);
}

.criterio-news-card:hover .card-placeholder-mesh {
    background-image: 
        radial-gradient(at 0% 0%, rgba(16, 185, 129, 0.3) 0px, transparent 60%),
        radial-gradient(at 100% 100%, rgba(6, 182, 212, 0.3) 0px, transparent 60%),
        linear-gradient(135deg, #111827 0%, #0f172a 100%);
    transform: scale(1.03);
}

.placeholder-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -1px;
    background: linear-gradient(90deg, #10b981 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.8;
    transition: var(--criterio-fe-transition);
}

.criterio-news-card:hover .placeholder-logo {
    opacity: 1;
    transform: scale(1.05);
}

.criterio-section-header {
    margin: 50px 0 30px 0;
    position: relative;
    font-family: 'Outfit', sans-serif;
}

.criterio-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--criterio-fe-secondary);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.title-glowing-bar {
    width: 6px;
    height: 24px;
    background: linear-gradient(180deg, #10b981 0%, #06b6d4 100%);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
    display: inline-block;
}

/* 3. DISEÑO DE LISTA LATERAL COMPACTA (WIDGET COMPACTO) */
.criterio-news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-family: 'Inter', sans-serif;
}

.criterio-list-item {
    display: flex;
    gap: 15px;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--criterio-fe-border);
    transition: var(--criterio-fe-transition);
}

.criterio-list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.criterio-list-item:hover {
    transform: translateX(3px);
}

.item-thumbnail {
    width: 75px;
    height: 75px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background-color: #0f172a;
}

.item-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--criterio-fe-transition);
}

.criterio-list-item:hover .item-thumbnail img {
    transform: scale(1.08);
}

.item-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.item-category {
    font-family: 'Outfit', sans-serif;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--criterio-fe-primary);
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.item-title {
    font-size: 13.5px;
    line-height: 1.35;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.item-title a {
    color: var(--criterio-fe-secondary) !important;
    text-decoration: none !important;
    transition: var(--criterio-fe-transition);
}

.item-title a:hover {
    color: var(--criterio-fe-primary) !important;
}

.item-date {
    font-size: 11px;
    color: var(--criterio-fe-text-light);
}

/* 4. ESTADOS GENERALES */
.criterio-no-posts {
    background-color: #f8fafc;
    border: 1px dashed var(--criterio-fe-border);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    color: var(--criterio-fe-text-light);
    font-size: 14px;
}

/* 5. HEADER Y NAVEGACIÓN PREMIUM */
.criterio-main-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1200px;
    z-index: 9999;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reducir altura al hacer scroll */
.criterio-main-header.header-scrolled {
    top: 10px;
    gap: 6px;
}

/* Fila Superior (Blanca, Secciones de la Web) */
.criterio-header-top-row {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    padding: 10px 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05), inset 0 1px 1px rgba(255, 255, 255, 0.6);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.criterio-main-header.header-scrolled .criterio-header-top-row {
    padding: 8px 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* Fila Inferior (Oscura, Categorías) */
.criterio-header-bottom-row {
    background: rgba(10, 15, 30, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 6px 24px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    display: none; /* Oculto en móvil */
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.criterio-main-header.header-scrolled .criterio-header-bottom-row {
    padding: 5px 24px;
    background: rgba(10, 15, 30, 0.82);
    border-color: rgba(16, 185, 129, 0.25);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.22), 0 0 10px rgba(16, 185, 129, 0.1);
}

@media (min-width: 992px) {
    .criterio-header-bottom-row {
        display: block;
    }
}

.criterio-header-container {
    max-width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.criterio-header-container.justify-center {
    justify-content: center;
}

/* Logotipo */
.criterio-logo-link {
    text-decoration: none !important;
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    transition: var(--criterio-fe-transition);
    display: flex;
    align-items: center;
}

.logo-light {
    color: #0f172a !important; /* Texto oscuro para fondo blanco */
    transition: var(--criterio-fe-transition);
}

.logo-accent {
    background: linear-gradient(90deg, #10b981 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

.criterio-logo-link:hover {
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.35));
}

.criterio-logo-link:hover .logo-light {
    color: #10b981 !important;
}

.criterio-nav-logo {
    display: flex;
    align-items: center;
    max-height: 50px;
}

.criterio-nav-logo img,
.criterio-nav-logo .custom-logo-link img {
    max-height: 38px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: var(--criterio-fe-transition);
}

.criterio-nav-logo img:hover,
.criterio-nav-logo .custom-logo-link img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.2));
}

.drawer-logo-wrap img {
    max-height: 45px;
    width: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Navegación Desktop - Secciones (Arriba, Fila Blanca) */
.criterio-desktop-nav-sections {
    display: none;
}

@media (min-width: 992px) {
    .criterio-desktop-nav-sections {
        display: block;
    }
}

.criterio-nav-menu-sections {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.criterio-nav-menu-sections a {
    color: #475569 !important; /* Texto oscuro/gris medio para fondo blanco */
    text-decoration: none !important;
    font-weight: 600;
    font-size: 13.5px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    padding: 8px 16px;
    border-radius: 10px;
}

.criterio-nav-menu-sections a:hover {
    color: #0f172a !important;
    background: rgba(0, 0, 0, 0.04);
}

.criterio-nav-menu-sections a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: linear-gradient(90deg, #10b981, #06b6d4);
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: right;
}

.criterio-nav-menu-sections a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Navegación Desktop - Categorías (Abajo, Fila Oscura) */
.criterio-desktop-nav-categories {
    display: block;
}

.criterio-nav-menu-categories {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.criterio-nav-menu-categories a {
    color: rgba(255, 255, 255, 0.7) !important; /* Texto claro sobre fondo oscuro */
    text-decoration: none !important;
    font-weight: 500;
    font-size: 13.5px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    padding: 6px 14px;
    border-radius: 8px;
}

.criterio-nav-menu-categories a:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.06);
}

.criterio-nav-menu-categories a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 14px;
    right: 14px;
    height: 2px;
    background: linear-gradient(90deg, #10b981, #06b6d4);
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: right;
}

.criterio-nav-menu-categories a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Acciones en Cabecera (Fondo Blanco) */
.criterio-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.criterio-icon-btn {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    color: #1e293b; /* Iconos oscuros */
    cursor: pointer;
    width: 38px;
    height: 38px;
    transition: var(--criterio-fe-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.criterio-icon-btn:hover {
    color: var(--criterio-fe-primary);
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(16, 185, 129, 0.25);
    transform: scale(1.05);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.1);
}

.criterio-icon-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Insignia Pulse Live */
.live-dot-badge {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #ef4444 !important;
    font-family: 'Outfit', sans-serif;
    font-size: 9.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.08);
    transition: var(--criterio-fe-transition);
}

.live-dot-badge:hover {
    background-color: rgba(239, 68, 68, 0.18);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.15);
    transform: translateY(-1px);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: #ef4444;
    border-radius: 50%;
    position: relative;
    display: inline-block;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #ef4444;
    opacity: 0;
    animation: livePulse 1.8s ease-out infinite;
}

@keyframes livePulse {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

/* Botón Hamburguesa */
.criterio-hamburger {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 38px;
    height: 38px;
    padding: 0;
    z-index: 10000;
    transition: var(--criterio-fe-transition);
}

.criterio-hamburger:hover {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

@media (min-width: 992px) {
    .criterio-hamburger {
        display: none;
    }
}

.hamburger-line {
    width: 16px;
    height: 2px;
    background-color: #1e293b; /* Líneas oscuras sobre fondo blanco */
    border-radius: 2px;
    transition: var(--criterio-fe-transition);
}

/* Hamburguesa Activa */
.criterio-hamburger.is-active .hamburger-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.criterio-hamburger.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.criterio-hamburger.is-active .hamburger-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* 6. MENÚ MÓVIL (DRAWER CATEGORIZADO) */
.criterio-mobile-drawer {
    position: fixed;
    top: 20px;
    right: -100%;
    width: calc(100% - 40px);
    max-width: 340px;
    height: calc(100vh - 40px);
    background: rgba(10, 15, 29, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 9998;
    box-shadow: -10px 10px 40px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    padding: 100px 30px 40px 30px;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    overflow-y: auto;
}

.criterio-mobile-drawer.is-open {
    right: 20px;
}

.drawer-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.drawer-title {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
}

.drawer-section {
    margin-bottom: 25px;
}

.drawer-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--criterio-fe-primary);
    letter-spacing: 1.5px;
    margin: 0 0 12px 14px;
}

.drawer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.drawer-menu a {
    color: rgba(255, 255, 255, 0.75) !important;
    text-decoration: none !important;
    font-size: 14.5px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 10px;
    display: block;
    transition: var(--criterio-fe-transition);
}

.drawer-menu a:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.05);
    padding-left: 18px;
}

.drawer-actions {
    margin-top: auto;
    padding-top: 15px;
}

.criterio-btn-search-mobile {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-radius: 30px;
    padding: 12px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    transition: var(--criterio-fe-transition);
}

.criterio-btn-search-mobile:hover {
    background-color: var(--criterio-fe-primary);
    border-color: var(--criterio-fe-primary);
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.2);
}

.criterio-btn-search-mobile .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Bloquear scroll del body al abrir drawer */
body.drawer-open {
    overflow: hidden;
}

/* 7. MODAL DE BÚSQUEDA A PANTALLA COMPLETA */
.criterio-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(10, 15, 29, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'Inter', sans-serif;
}

.criterio-search-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.search-close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--criterio-fe-transition);
}

.search-close-btn:hover {
    color: #ffffff;
    background-color: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
    transform: rotate(90deg);
}

.search-overlay-content {
    max-width: 650px;
    width: 100%;
    padding: 0 20px;
    text-align: center;
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.criterio-search-overlay.is-active .search-overlay-content {
    transform: scale(1);
}

.search-overlay-form {
    position: relative;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    padding-bottom: 10px;
    transition: var(--criterio-fe-transition);
}

.search-overlay-form:focus-within {
    border-bottom-color: var(--criterio-fe-primary);
}

.search-overlay-form input[type="search"] {
    background: none;
    border: none;
    width: 100%;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 700;
    padding: 10px 40px 10px 0;
    outline: none;
}

.search-overlay-form input[type="search"]::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.search-submit-btn {
    background: none;
    border: none;
    color: var(--criterio-fe-primary);
    cursor: pointer;
    padding: 10px;
    position: absolute;
    right: 0;
}

.search-submit-btn .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    transition: var(--criterio-fe-transition);
}

.search-submit-btn:hover .dashicons {
    transform: translateX(4px);
    color: #3b82f6;
}

.search-tip {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 15px;
}

/* 8. FOOTER PREMIUM MULTICOLUMNA */
.criterio-main-footer {
    background-color: #070a13;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    padding: 70px 0 30px 0;
    font-family: 'Inter', sans-serif;
    margin-top: 60px;
}

.criterio-footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 576px) {
    .criterio-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .criterio-footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
    }
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 15px 0;
}

.brand-desc {
    font-size: 13.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 20px 0;
}

/* Redes Sociales del Footer */
.footer-social-links {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6) !important;
    text-decoration: none !important;
    transition: var(--criterio-fe-transition);
}

.social-icon:hover {
    color: #ffffff !important;
    transform: translateY(-3px);
}

.social-icon.facebook:hover { background-color: #1877f2; border-color: #1877f2; box-shadow: 0 0 15px rgba(24, 119, 242, 0.5); }
.social-icon.twitter:hover { background-color: #000000; border-color: #222222; box-shadow: 0 0 15px rgba(255, 255, 255, 0.2); }
.social-icon.instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); border-color: #e6683c; box-shadow: 0 0 15px rgba(220, 39, 67, 0.5); }
.social-icon.youtube:hover { background-color: #ff0000; border-color: #ff0000; box-shadow: 0 0 15px rgba(255, 0, 0, 0.5); }

.social-icon .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Enlaces Rápidos del Footer */
.footer-col-title {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 20px 0;
    position: relative;
    padding-bottom: 8px;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--criterio-fe-primary);
}

.footer-links-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-list a {
    color: rgba(255, 255, 255, 0.6) !important;
    text-decoration: none !important;
    font-size: 13.5px;
    transition: var(--criterio-fe-transition);
}

.footer-links-list a:hover {
    color: var(--criterio-fe-primary) !important;
    padding-left: 5px;
}

/* Newsletter del Footer */
.newsletter-desc {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.55);
    margin: 0 0 15px 0;
}

.footer-newsletter-form {
    display: flex;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 30px;
    padding: 4px;
    transition: var(--criterio-fe-transition);
}

.footer-newsletter-form:focus-within {
    border-color: var(--criterio-fe-primary);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.15);
}

.footer-newsletter-form input[type="email"] {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 13px;
    padding: 8px 15px;
    outline: none;
    flex-grow: 1;
}

.footer-newsletter-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.footer-newsletter-form button {
    background-color: var(--criterio-fe-primary);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--criterio-fe-transition);
}

.footer-newsletter-form button:hover {
    background-color: #059669;
    transform: scale(1.05);
}

.footer-newsletter-form button .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.newsletter-success-msg {
    color: var(--criterio-fe-primary);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    animation: fadeIn 0.4s ease-out;
}

/* Fila Inferior */
.criterio-footer-bottom {
    max-width: 1200px;
    margin: 60px auto 0 auto;
    padding: 25px 20px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.criterio-footer-bottom strong {
    color: rgba(255, 255, 255, 0.7);
}

/* Spinner Loader */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spin-loader {
    animation: spin 1s linear infinite;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 9. COMPATIBILIDAD CON TEMAS DE BLOQUES (FSE) */
body.has-criterio-header {
    padding-top: 150px !important;
}

@media (max-width: 991px) {
    body.has-criterio-header {
        padding-top: 90px !important;
    }
}

/* Ocultar el título de la página por defecto en la página de inicio para un diseño premium */
.home .wp-block-post-title,
.home .entry-title,
.home h1.entry-title,
.home .page-header,
.home h1.page-title {
    display: none !important;
}

/* Ocultar el contenedor de grupo completo que envuelve DIRECTAMENTE al título y sus espaciadores asociados para colapsar el espacio en blanco vacío sin afectar contenedores ancestros */
.home .wp-block-group:has(> .wp-block-post-title),
.home .wp-block-group:has(> .entry-title),
.home .wp-block-group:has(> .page-title) {
    display: none !important;
}

/* Forzar el ancho de la página de inicio a 1200px para que coincida con el encabezado y el pie de página */
.home .wp-block-post-content,
.home .entry-content,
.home .post-content {
    max-width: 1200px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Hacer que nuestros bloques del portal ocupen los 1200px completos y estén centrados */
.home .criterio-hero-news,
.home .criterio-news-carousel,
.home .criterio-news-grid,
.home .criterio-section-header,
.home .criterio-news-list {
    max-width: 1200px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Asegurar compatibilidad en selectores de diseño heredados de WordPress y Gutenberg */
.home .is-layout-constrained > .criterio-hero-news,
.home .is-layout-constrained > .criterio-news-carousel,
.home .is-layout-constrained > .criterio-news-grid,
.home .is-layout-constrained > .criterio-section-header {
    max-width: 1200px !important;
}

/* Eliminar espaciado superior residual de todos los contenedores principales del tema en la página de inicio */
.home .wp-site-blocks,
.home .site-content,
.home .content-area,
.home .site-main,
.home #primary,
.home #content,
.home .wp-block-post-content,
.home .entry-content,
.home .post-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Quitar el margen superior de los bloques que son los primeros hijos del contenido */
.home .wp-block-post-content > *:first-child,
.home .entry-content > *:first-child,
.home .post-content > *:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Ajuste fino del espacio de relleno del body para un acoplamiento perfecto bajo el header flotante */
.home.has-criterio-header {
    padding-top: 80px !important;
}

/* Evitar desbordamiento horizontal general en la portada */
html, body.home {
    overflow-x: hidden !important;
}

/* 10. ICONOS EN CATEGORÍAS DEL HEADER Y DRAWER */
.category-header-emoji {
    font-size: 14px;
    margin-right: 4px;
    vertical-align: middle;
    display: inline-block;
}

.category-header-dashicon {
    font-size: 14px !important;
    width: 14px !important;
    height: 14px !important;
    margin-right: 4px;
    vertical-align: middle;
    display: inline-block;
}

/* Rediseño de items de menú para albergar iconos */
.criterio-nav-menu-categories .menu-item a {
    display: inline-flex;
    align-items: center;
}

/* 11. BANNER PREMIUM PARA ARCHIVOS DE CATEGORÍAS */
.criterio-category-archive-banner {
    position: relative;
    width: 100%;
    min-height: 280px;
    border-radius: var(--criterio-fe-radius);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    margin-top: 10px;
    overflow: hidden;
    box-shadow: var(--criterio-fe-shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-family: 'Outfit', sans-serif;
    box-sizing: border-box;
}

.criterio-category-archive-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 30%, rgba(10, 15, 30, 0.6) 100%);
    pointer-events: none;
}

.category-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px;
    max-width: 800px;
}

.category-banner-title {
    font-family: 'Outfit', sans-serif;
    font-size: 40px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin: 0 !important;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.category-banner-emoji {
    font-size: 42px;
    vertical-align: middle;
}

.category-banner-icon {
    font-size: 38px !important;
    width: 38px !important;
    height: 38px !important;
    color: #ffffff !important;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .criterio-category-archive-banner {
        min-height: 200px;
        margin-bottom: 30px;
    }
    .category-banner-title {
        font-size: 28px !important;
    }
    .category-banner-emoji {
        font-size: 30px;
    }
    .category-banner-icon {
        font-size: 28px !important;
        width: 28px !important;
        height: 28px !important;
    }
}
