/**
 * Archivo: assets/css/archive-articulo-new.css
 * Descripción: Estilos para el rediseño del Home de Artículos (Pillars Strategy)
 */

/* =========================================
   VARIABLES & GLOBAL
   ========================================= */
:root {
    --color-navy: #001344;
    --color-blue: #001345;
    --color-dark-blue: #001345;
    --color-white: #ffffff;
    --color-gray-bg: #F0F2F5;
    --color-text: #333333;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    --transition: all 0.3s ease;
}

.site-main {
    background-color: var(--color-gray-bg);
    overflow-x: clip;
    /* Prevent horizontal scroll from negative margins */
}

/* FIX: Remove top padding from #content if present globally */
#content {
    padding-top: 0 !important;
}

/* =========================================
   1. HERO SECTION
   ========================================= */
.articles-hero {
    position: relative;
    padding: 2vh 20px 120px;
    text-align: center;
    color: var(--color-white);
    overflow: hidden; /* CRÍTICO: Evita que la imagen fotográfica se salga de los márgenes */
    background: #001344; /* Fallback por si la imagen tarda en cargar */
}

/* La imagen física de fondo */
.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

/* Capa Oscura + Efecto de Desenfoque (Blur) */
.hero-overlay-blur {
    position: absolute;
    inset: 0;
    /* Azul Navy con 70% de opacidad para oscurecer la foto */
    background-color: rgba(0, 19, 68, 0.70); 
    /* El truco mágico: Desenfoca lo que esté detrás de este div (la imagen) */
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px); /* Soporte para Safari y iOS */
    z-index: 1;
}

/* El Contenedor de Texto y Buscador */
.hero-content-wrapper {
    position: relative;
    z-index: 2; /* Obliga al texto a estar por encima del overlay desenfocado */
    max-width: 900px;
    margin: 0 auto;
}

/* Sombra extra al texto para máxima legibilidad contra fotografías */
.articles-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -1px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6); /* Sombra aumentada */
}

.articles-hero .tagline {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 3rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); /* Sombra aumentada */
}

/* Search Bar - Matches Ref: Dark input, Bright Button */
.hero-search-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.hero-search-form {
    display: flex;
    background: rgba(255, 255, 255, 0.15);
    /* Lighter/Glassier */
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    padding: 6px;
    transition: var(--transition);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.hero-search-form:focus-within {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.hero-search-form input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 25px;
    color: var(--color-white);
    font-size: 0.95rem;
    outline: none;
}

.hero-search-form input::placeholder {
    color: rgba(255, 255, 255, 0.8);
    font-style: normal;
}

.hero-search-form button {
    background-color: var(--color-blue);
    color: var(--color-white);
    border: none;
    border-radius: 40px;
    padding: 0 40px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    text-transform: capitalize;
    box-shadow: 0 4px 15px rgba(0, 51, 255, 0.3);
}

.hero-search-form button:hover {
    background-color: #1a45ff;
    box-shadow: 0 6px 20px rgba(0, 51, 255, 0.5);
    transform: translateY(-2px);
}

/* =========================================
   PILLARS GRID (UPDATED)
   ========================================= */

.pillars-container {
    max-width: 1300px;
    /* Slightly wider */
    margin: -80px auto 20px;
    /* Deep negative margin for "floating" effect */
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.pillar-card {
    position: relative;
    height: 250px;
    border-radius: 12px;
    overflow: hidden; /* Crucial para que el drawer no se salga */
    background-color: #000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
}

.pillar-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Enlace principal que actúa como fondo */
.pillar-main-link {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    text-decoration: none;
}

.pillar-bg {
    position: absolute;
    inset: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
    opacity: 0.85;
    transition: transform 0.8s ease, opacity 0.5s ease;
}

.pillar-card:hover .pillar-bg {
    transform: scale(1.1);
    opacity: 0.6;
}

.pillar-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 20%, rgba(0,0,0,0.8) 80%);
    z-index: 1;
}

.pillar-content {
    position: absolute;
    top: 20%;
    left: 0;
    width: 100%;
    padding: 0 24px;
    z-index: 2;
    text-align: center;
    transition: top 0.4s ease;
}

/* Cuando el drawer está abierto, subimos el título */
.pillar-card.is-open .pillar-content {
    top: 25%; 
}

.pillar-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-white);
    margin: 0 0 8px 0;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* Nuevo estilo para el contador */
.pillar-count-badge {
    display: inline-block;
    font-size: 0.85rem;
    color: #fff;
    background: rgba(0,0,0,0.7);
    padding: 5px 14px;
    border-radius: 20px;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,0.2);
    letter-spacing: 0.5px;
}

/* --- DRAWER (Zona Inferior) --- */
.pillar-drawer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10; /* Por encima del enlace principal */
    background: rgba(0, 19, 68, 0.9); /* Azul Navy semitransparente */
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.2);
    transition: max-height 0.5s ease, background-color 0.3s;
    max-height: 50px; /* Altura inicial (solo botón) */
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Estado Abierto */
.pillar-card.is-open .pillar-drawer {
    max-height: 80%; /* Altura máxima al abrir */
    background: rgba(0, 19, 68, 0.95);
}

.drawer-trigger {
    width: 100%;
    height: 50px; /* Altura fija del botón */
    background: transparent;
    border: none;
    color: var(--color-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    flex-shrink: 0; /* No encoger */
    text-shadow: 0 1px 2px rgba(0,0,0,0.5); 
}

.drawer-trigger:hover {
    background: rgba(255,255,255,0.1);
}

.trigger-icon {
    transition: transform 0.4s;
}

/* Rotar icono al abrir */
.pillar-card.is-open .trigger-icon {
    transform: rotate(180deg);
}

/* Lista de especialidades (Scrollable) */
.drawer-list-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 10px 20px 20px;
    /* Custom Scrollbar */
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.3) transparent;
}

.drawer-list-wrapper::-webkit-scrollbar {
    width: 4px;
}
.drawer-list-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
}

@media (max-width: 768px) {
    
    /* Forzar fondo sólido en móvil para evitar el 'glitch' del blur y mejorar lectura */
    .pillar-drawer {
        background: #001344; /* Color Navy sólido (tu variable --color-navy) */
        backdrop-filter: none !important; /* Desactivar blur forzosamente */
        border-top: 1px solid rgba(255,255,255,0.15);
    }
    
    /* Asegurar que la lista también tenga fondo sólido al abrirse */
    .pillar-card.is-open .pillar-drawer {
        background: #001344; 
    }

    /* Aumentar un poco el tamaño de fuente del disparador en móvil para mejor tacto/lectura */
    .drawer-trigger {
        font-size: 0.95rem; 
        background: rgba(0,0,0,0.2); /* Un poco de oscuridad extra en el botón */
    }
}

.specialties-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.specialties-list li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.specialties-list li:last-child {
    border-bottom: none;
}

.specialties-list a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 12px 0;
    font-size: 0.9rem;
    text-transform: capitalize;
    transition: color 0.2s, padding-left 0.2s;
}

.specialties-list a:hover {
    color: #fff;
    padding-left: 5px;
}

.empty-msg {
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    padding: 10px 0;
}

/* =========================================
   3. EXPLORE BY TOPIC
   ========================================= */
.explore-section {
    padding: 20px 0 80px;
    /* Top padding accounts for floating overlap area */
    text-align: center;
}

.section-title-wrapper {
    margin-bottom: 50px;
    text-align: center;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-navy);
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0;
}

.explore-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: left;
}

.explore-col h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.explore-col h3 i {
    color: var(--color-blue);
    font-style: normal;
}

.topic-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.topic-btn {
    display: block;
    padding: 12px 16px;
    background: var(--color-white);
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    color: #4B5563;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: capitalize;
    text-decoration: none;
    transition: var(--transition);
}

.topic-btn:hover {
    border-color: var(--color-blue);
    color: var(--color-blue);
    background: #F3F6FF;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 51, 255, 0.05);
}

/* =========================================
   4. LATEST PUBLICATIONS
   ========================================= */
.latest-section {
    padding: 30px 20px;
    max-width: 1240px;
    margin: 20px auto;
}

.latest-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.latest-header h2{
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-navy);
    margin: 0;
    text-transform: uppercase;
}

.section-header a {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-navy);
    margin-bottom: 10px;
    text-transform: uppercase;
}


.latest-tabs {
    display: flex;
    gap: 25px;
}

/* Resetear estilos de botón para que parezcan links/tabs */
.latest-tabs button.tab-link {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body); /* Asegura que herede la fuente */
    padding: 0 0 6px 0; /* Mismo padding que tenías */
    margin-right: 25px; /* Espaciado entre tabs */
    /* Heredar estilos del link original */
    color: #000;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s;
}

.latest-tabs button.tab-link:hover, 
.latest-tabs button.tab-link.active {
    color: var(--color-blue);
}

.latest-tabs button.tab-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--color-blue);
}

/* Wrapper para controles (Tabs + Search) */
.latest-controls-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
    gap: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 30px;
}

/* Ajuste de Tabs para que no ocupen todo el ancho si hay buscador */
.latest-tabs {
    border-bottom: none; /* Quitamos borde individual */
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Buscador Secundario */
.secondary-search {
    flex-shrink: 0;
}

.sec-search-form {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 4px 10px;
    transition: all 0.3s ease;
}

.sec-search-form:focus-within {
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px rgba(0, 51, 255, 0.1);
}

.sec-search-form input {
    border: none;
    outline: none;
    font-size: 0.9rem;
    padding: 6px 8px;
    width: 200px; /* Ancho fijo desktop */
    color: #333;
}

.sec-search-form button {
    background: none;
    border: none;
    color: #6B7280;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.sec-search-form button:hover {
    color: var(--color-blue);
}

/* Mensaje de vacío */
.grid-empty-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .latest-controls-wrapper {
        flex-direction: column;
        align-items: flex-start;
        border-bottom: none;
    }
    
    .latest-tabs {
        width: 100%;
        overflow-x: auto;
        border-bottom: 1px solid #eee;
        padding-bottom: 10px;
    }

    .secondary-search {
        width: 100%;
        margin-top: 10px;
    }

    .sec-search-form {
        width: 100%;
    }

    .sec-search-form input {
        width: 100%;
    }
}

/* Grid */
.latest-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.article-card-new {
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.article-card-new:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.ac-thumb-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.ac-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.article-card-new:hover .ac-thumb {
    transform: scale(1.05);
}

.ac-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ac-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    color: var(--color-white);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 5px;
    align-self: flex-start;
}

/* Dynamic Pill Colors */
.ac-pill.energia {
    background-color: #001345;
}

.ac-pill.integridad {
    background-color: #8A2BE2;
}

.ac-pill.industria {
    background-color: #10B981;
}

.ac-pill.gestion {
    background-color: #F59E0B;
}

/* Default */
.ac-pill {
    background-color: var(--color-blue);
}

.ac-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-navy);
    line-height: 1.4;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-new:hover .ac-title {
    color: var(--color-blue);
}

.ac-excerpt {
    font-size: 0.9rem;
    color: #6B7280;
    line-height: 1.5;
    margin-bottom: 20px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Ajustes para el footer de la tarjeta (Autor + Fecha) */
.ac-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    border-top: 1px solid #f0f0f0; /* Opcional: una línea sutil separadora */
    padding-top: 15px; /* Espacio extra si pones borde */
}

.ac-meta-info {
    display: flex;
    flex-direction: column; /* Apilamos Autor arriba, Fecha abajo para limpieza */
    gap: 2px;
    font-size: 0.8rem;
    line-height: 1.3;
}
.ac-meta-info .ac-author{
    color: var(--color-navy)
}
.ac-author {
    font-weight: 700;
    text-transform: capitalize;
}

.ac-date {
    color: #444953;
    font-size: 0.75rem;
}

.ac-sep {
    display: none; /* Ocultamos el punto si usamos flex-column */
}

/* OPCIONAL: Si prefieres Autor y Fecha en una sola línea (Autor • Fecha) */
/* Descomenta esto si prefieres una sola línea:
.ac-meta-info {
    flex-direction: row;
    align-items: center;
    gap: 6px;
}
.ac-sep {
    display: inline-block;
    color: #ccc;
}
*/

.ac-arrow {
    color: var(--color-blue);
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.article-card-new:hover .ac-arrow {
    transform: translateX(5px);
}

/* =========================================
   5. TRENDING SECTION
   ========================================= */
.trending-section {
    max-width: 1240px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.trending-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-navy);
    margin-bottom: 25px;
    text-transform: uppercase;
}

.trending-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.trending-card {
    background-color: var(--color-navy);
    border-radius: 12px;
    padding: 24px;
    color: var(--color-white);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.trending-card:hover {
    background-color: #002266;
    transform: translateY(-4px);
}

.tc-cat {
    font-size: 0.7rem;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.tc-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 15px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tc-date {
    margin-top: auto;
    font-size: 0.75rem;
    opacity: 0.5;
}

/* =========================================
   Responsive Adjustments
   ========================================= */

/* Tablet */
@media (max-width: 1024px) {
    .pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .explore-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .latest-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trending-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .articles-hero {
        padding-bottom: 160px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .articles-hero {
        padding: 60px 20px 140px;
    }

    .articles-hero h1 {
        font-size: 2.2rem;
    }

    .hero-search-form {
        flex-direction: column;
        padding: 10px;
        background: rgba(30, 41, 89, 0.9);
        border-radius: 20px;
    }

    .hero-search-form button {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
        padding: 12px;
    }

    /* Pillars Carousel on Mobile */
    .pillars-container {
        margin-top: -100px;
        padding: 0;
    }

    .pillar-content {
        top: 40%;
    }

    .pillars-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding: 20px 20px 40px;
        /* Space for shadow */
        gap: 15px;
    }

    .pillar-card {
        min-width: 280px;
        scroll-snap-align: center;
        height: 300px;
    }

    /* Grids to single column */
    .explore-grid {
        grid-template-columns: 1fr;
    }

    .latest-section {
        margin: 0px;
    }
    .latest-grid {
        grid-template-columns: 1fr;
    }

    .trending-grid {
        grid-template-columns: 1fr;
    }

    .latest-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .latest-header h2, .section-header a {
        font-size: 1.5rem;
    }

    /* Scrollable Tabs */
    .latest-tabs {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }

    .tab-link {
        white-space: nowrap;
        margin-right: 15px;
    }
}

.knowledge-formats {
    background-color: var(--bg-light);
    padding: 60px 20px;
}

.knowledge-formats .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Grid Layout */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* Card Style */
.k-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.k-card:hover {
    transform: translateY(-5px);
}

/* Sidebar de la Card */
.card-side-bar {
    width: 70px;
    min-width: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-side-bar .icon {
    font-size: 24px;
    color: white;
}

/* Colores de los gradientes */
.insights { background: linear-gradient(180deg, #003366 0%, #001a33 100%); }
.applications { background: linear-gradient(180deg, #8b4513 0%, #5d2e0d 100%); }
.foundations { background: linear-gradient(180deg, #005f6b 0%, #003d45 100%); }
.codes { background: linear-gradient(180deg, #1a3c34 0%, #0d1f1b 100%); }

/* Contenido de la Card */
.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-body h3 {
    margin: 0 0 10px 0;
    font-size: 0.95rem;
    color: var(--color-dark-blue);
    font-weight: 700;
}

.card-body p {
    margin: 0 0 15px 0;
    font-size: 0.85rem;
    color: var(--color-text);
    line-height: 1.4;
}

.btn-link {
    color: var(--color-navy);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: gap 0.2s;
}

.btn-link:hover .arrow {
    padding-left: 5px;
}

.arrow {
    transition: all 0.2s;
}

/* Ajustes para móviles */
@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   INDUSTRY VOICES (VIDEO TV SECTION)
   ========================================= */

.industry-voices-section {
    padding: 60px 20px;
    background-color: var(--color-gray-bg); /* Fondo gris claro */
}

.container-iv {
    max-width: 1240px; /* Alineado con tu grid principal */
    margin: 0 auto;
}

/* --- Header de la Sección --- */
.iv-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.iv-title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.iv-accent-line {
    width: 4px;
    height: 24px;
    background-color: #005c66; /* Naranja de acento */
    border-radius: 2px;
}

.iv-title-wrapper h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-navy);
    margin: 0;
    text-transform: uppercase;
}

.iv-subtitle {
    margin: 0;
    font-size: 0.95rem;
    color: #0f0f10;
}

.btn-watch-tv {
    background-color: var(--color-navy);
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-watch-tv:hover {
    background-color: #002266;
    color: #fff;
    transform: translateY(-2px);
}

/* --- Grid Principal (Dual Container) --- */
.iv-dual-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columnas iguales */
    gap: 32px;
}

/* --- Sub-contenedor (cada mitad del dual-grid) --- */
.iv-sub-container {
    display: grid;
    /* El título ocupa todo el ancho; las 2 tarjetas se colocan en 2 columnas */
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto 1fr;
    gap: 16px 20px;
    align-items: start;
}

.iv-sub-title {
    grid-column: 1 / -1; /* Ocupa ambas columnas */
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-navy);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 10px;
    border-bottom: 2px solid #005c66;
    margin: 0;
}
.iv-sub-title a{
    color: var(--color-navy);
}

/* --- Tarjetas de Video TV (reutilizadas) --- */
.iv-video-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    height:310px;
}

.iv-video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* --- Tarjeta de Evento (mismo visual base que iv-video-card) --- */
.iv-event-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    height:310px;
}

.iv-event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.iv-event-card:hover .iv-thumb {
    transform: scale(1.05);
}

/* Fecha del evento */
.iv-event-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #005c66;
    font-weight: 600;
    margin-top: 8px;
}

.iv-event-date svg {
    flex-shrink: 0;
    stroke: #005c66;
}

/* Badge variante Evento (verde teal) */
.iv-badge--event {
    background: #005c66;
    color: #ffffff;
}

/* Mensaje de lista vacía */
.iv-empty-msg {
    font-size: 0.9rem;
    color: #6B7280;
    padding: 20px 0;
    text-align: center;
}

/* =========================================
   Responsive
   ========================================= */

@media (max-width: 1024px) {
    .iv-dual-grid {
        /* En tablets pasamos a 1 columna (cada sub-contenedor ocupa el ancho completo) */
        grid-template-columns: 1fr;
        gap: 40px;
    }
    /* Las tarjetas dentro de cada sub-contenedor se mantienen en 2 columnas en tablet */
}

@media (max-width: 768px) {

    .industry-voices-section{
        padding: 20px;
    }

    .iv-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .iv-dual-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* En móvil las tarjetas se apilan (1 columna dentro de cada sub-contenedor) */
    .iv-sub-container {
        grid-template-columns: 1fr;
    }
}


.iv-thumb-wrapper {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.iv-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.iv-video-card:hover .iv-thumb {
    transform: scale(1.05);
}

/* Icono de Play */
.iv-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: rgba(0, 19, 68, 0.7);
    border: 2px solid rgba(255,255,255,0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    backdrop-filter: blur(4px);
    transition: var(--transition);
}

.iv-play-icon svg {
    width: 20px;
    height: 20px;
    margin-left: 3px; /* Centrar ópticamente el triángulo */
}

.iv-video-card:hover .iv-play-icon {
    background: var(--color-blue);
    border-color: #fff;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Badge Superpuesto (Categoría) */
.iv-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: #ffffff;
    color: var(--color-navy);
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Contenido de la Tarjeta */
.iv-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.iv-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-navy);
    margin: 0 0 6px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.iv-card-tag {
    font-size: 0.8rem;
    color: #6B7280;
    margin: 0 0 16px 0;
}

/* Info de Autor */
.iv-author-box {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.iv-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.iv-author-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text);
    display: block;
}

/* --- Tarjeta Promocional (Columna 4) --- */
.iv-promo-card {
    display: flex; /* La partimos a la mitad (Imagen izquierda, texto derecha) */
    background: var(--color-navy);
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #002d33 0%, #001344 100%); /* Azul corporativo */

}

.iv-promo-img {
    width: 35%; /* Ancho de la franja de imagen lateral */
    /* Te sugiero reemplazar esta URL por una imagen real de tu biblioteca de medios */
    background: url('https://cdn.inspenet.com/placeholder-800x450.webp') center/cover;
}

.iv-promo-content {
    width: 100%;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.iv-promo-content h3 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0 0 16px 0;
}

.iv-promo-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.iv-promo-list li {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-explore-tv, .btn-explore-tv-sec {
    background-color: #005c66; 
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
    transition: var(--transition);
    align-self: flex-start;
    margin: 5px 0px;
}
.btn-explore-tv-sec {
    background-color: #005c6600; 
    border-style: solid;
}
.btn-explore-tv:hover, .btn-explore-tv-sec:hover {
    background-color: #00e7ff;
    color: #0e1325;
    transform: scale(1.02);
}

/* =========================================
   Responsive
   ========================================= */

@media (max-width: 1024px) {
    .iv-grid {
        /* En tablets pasamos a 2 columnas */
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .iv-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .iv-grid {
        /* En móviles pasamos a 1 columna */
        grid-template-columns: 1fr;
    }

    .iv-promo-card {
        /* En móvil, la tarjeta promo puede cambiar a vertical para leerse mejor */
        flex-direction: column;
    }

    .iv-promo-img {
        width: 100%;
        height: 120px;
    }

    .iv-promo-content {
        width: 100%;
    }
}

/* =========================================
   COMPANIES LEADING THIS SPACE (CORPORATE)
   ========================================= */

.companies-leading-section {
    padding: 20px 20px 60px; /* Padding top menor porque viene debajo de la otra sección */
    background-color: var(--color-gray-bg); 
}

/* Wrapper principal del carrusel */
.comp-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* El Track (Pista deslizante) con CSS Scroll Snap */
.comp-carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 10px 0; /* Espacio para las sombras de las tarjetas */
    width: 100%;
    
    /* Ocultar barra de scroll para un look limpio */
    -ms-overflow-style: none;  /* IE y Edge */
    scrollbar-width: none;  /* Firefox */
}

.comp-carousel-track::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Tarjeta individual del logo corporativo */
.comp-card {
    flex: 0 0 220px; /* Ancho fijo de la tarjeta. No se encoge (0), no crece (0) */
    height: 100px;
    background: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 25px;
    scroll-snap-align: start; /* El navegador "imanta" la tarjeta al inicio del contenedor */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0,0,0,0.03);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.comp-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* El Logo */
.comp-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* CRÍTICO: Mantiene la proporción del logo dentro de la caja */
    transition: filter 0.3s ease;
}

/* Si no hay logo, muestra el texto centrado */
.comp-no-logo {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-navy);
    text-align: center;
}

/* --- Botones de Navegación (Flechas) --- */
.comp-prev-btn,
.comp-next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%); /* Centrado vertical exacto */
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-navy);
    cursor: pointer;
    transition: all 0.3s ease;
}

.comp-prev-btn:hover,
.comp-next-btn:hover {
    background: var(--color-navy);
    color: #ffffff;
    /* Al hacer hover, debemos mantener el translateY para que no salte de posición */
    transform: translateY(-50%) scale(1.05); 
}

/* Posiciones individuales */
.comp-prev-btn {
    left: -20px;
    /* Arranca deshabilitada visualmente porque el carrusel empieza en la posición 0 */
    opacity: 0.5;
    pointer-events: none; 
}

.comp-next-btn {
    right: -20px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .comp-card {
        flex: 0 0 180px;
        height: 80px;
    }
}

@media (max-width: 768px) {
    .comp-prev-btn,
    .comp-next-btn {
        display: none; /* Ocultamos ambas en móvil (swipe táctil nativo) */
    }
    
    .comp-carousel-track {
        gap: 12px;
        padding-right: 20px; 
    }

    .comp-card {
        flex: 0 0 150px; 
        height: 70px;
    }
}

/* =========================================
   TRUST METRICS (SOCIAL PROOF)
   ========================================= */

.trust-metrics-section {
    padding:20px;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1100px; /* Un poco más estrecho para mantenerlos unidos visualmente */
    margin: 0 auto;
    position:relative;
    z-index: 1;
}

.metric-card {
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-5px);
}

.metric-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: #dbe3e9; /* Azul muy clarito de fondo */
    color: var(--color-navy);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Efecto hover en el icono */
.metric-card:hover .metric-icon {
    background: var(--color-navy);
    color: #ffffff;
}

.metric-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 8px 0;
    letter-spacing: -1px; /* Hace que los números grandes se vean más sólidos */
    font-family: 'Montserrat', sans-serif;
}

.m-sign {
    color: #005c66; /* El signo + en naranja para darle impacto */
    font-size: 2.2rem;
    margin-right: 2px;
}

.metric-label {
    font-size: 1rem;
    font-weight: 600;
    color: #0f0f10; /* Gris elegante para el texto */
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =========================================
   Responsive
   ========================================= */

@media (max-width: 1024px) {
    .metric-number {
        font-size: 2rem; /* Achicamos la fuente un poco en tablets */
    }
    .m-sign {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .metrics-grid {
        /* En tablets pasamos a 2x2 para que los números no se rompan */
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 20px;
    }
}

@media (max-width: 480px) {
    .metrics-grid {
        /* En móviles pequeños apilamos en 1 columna */
        grid-template-columns: 1fr;
        gap: 35px;
    }
    
    .metric-card {
        padding: 0;
    }
    
    .metric-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 15px;
    }

    .metric-number {
        font-size: 2.2rem;
    }
}

/* =========================================
   NEWSLETTER SUBSCRIPTION BANNER
   ========================================= */

.newsletter-banner-section {
    padding: 20px 0px; /* Separación inferior */
}

.nl-banner-wrapper {
    display: flex;
    position: relative;
    background-color: var(--color-navy); /* Azul oscuro base */
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 19, 68, 0.15);
}

/* Imagen de fondo con opacidad (Reemplaza la URL por tu imagen real de maquinaria/tecnología) */
.nl-bg-overlay {
    position: absolute;
    inset: 0;
    background-image: url('https://cdn.inspenet.com/placeholder-800x450.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.15; /* Muy transparente para no afectar la lectura */
    mix-blend-mode: luminosity; /* Efecto elegante de fusión con el azul */
    z-index: 0;
}

/* --- Columna Izquierda (Formulario) --- */
.nl-content-left {
    position: relative;
    z-index: 1;
    flex: 1; /* Ocupa el espacio restante (aprox 60-65%) */
    padding: 40px 50px;
}

.nl-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.nl-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nl-titles h3 {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 0 6px 0;
    line-height: 1.2;
}

.nl-titles p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin: 0;
}

/* El Grupo de Input tipo "Píldora" */
.nl-form {
    max-width: 550px;
}

.nl-input-group {
    display: flex;
    background: #ffffff;
    border-radius: 50px;
    padding: 5px; /* Crea el margen para que el botón se vea incrustado */
    margin-bottom: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nl-input-group input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0 20px;
    font-size: 0.95rem;
    color: var(--color-text);
    outline: none;
}

.nl-input-group input::placeholder {
    color: #9CA3AF;
}

.btn-subscribe {
    background-color: #005c66; /* Naranja corporativo */
    color: #ffffff;
    border: none;
    border-radius: 40px;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s;
}

.btn-subscribe:hover {
    background-color: #e66000;
}

.nl-disclaimer {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    text-align: center;
    margin: 0;
}

/* --- Columna Derecha (Beneficios) --- */
.nl-content-right {
    position: relative;
    z-index: 1;
    flex: 0 0 35%; /* Ancho fijo del 35% */
    padding: 40px 50px;
    border-left: 1px solid rgba(255, 255, 255, 0.15); /* La línea separadora */
    background: linear-gradient(to right, rgba(0, 19, 68, 0.9), rgba(0, 19, 68, 0.95)); /* Un poco más opaco para leer mejor la lista */
}

.nl-list-title {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 20px 0;
}

.nl-benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nl-benefits-list li {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.4;
}

.nl-benefits-list li svg {
    flex-shrink: 0;
    margin-top: 2px; /* Alineación óptica con el texto */
}

/* =========================================
   Responsive
   ========================================= */

@media (max-width: 1024px) {
    .nl-content-left {
        padding: 30px;
    }
    
    .nl-content-right {
        padding: 30px;
        flex: 0 0 40%;
    }
}

@media (max-width: 768px) {
    .nl-banner-wrapper {
        flex-direction: column; /* Apila las columnas */
    }

    .nl-content-right {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.15); /* La línea pasa a ser horizontal */
        padding: 30px;
    }

    .nl-header {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
}

@media (max-width: 480px) {
    /* En teléfonos muy pequeños, apilamos el botón para que no se achique el input */
    .nl-input-group {
        flex-direction: column;
        border-radius: 12px;
        background: transparent;
        box-shadow: none;
        padding: 0;
        gap: 10px;
    }

    .nl-input-group input {
        background: #ffffff;
        border-radius: 8px;
        padding: 14px 20px;
    }

    .btn-subscribe {
        width: 100%;
        border-radius: 8px;
    }
}

/* ==========================================================================
   LATEST PUBLICATIONS: TICKER LAYOUT (1 Destacado + 5 Lista)
   ========================================================================== */

.art-ticker-layout {
    grid-column: 1 / -1; /* CRÍTICO: Obliga a esta sección a ocupar las 3 columnas del grid padre */
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* Columna izquierda más ancha */
    gap: 30px;
    margin-bottom: 10px;
}

/* --- Tarjeta Destacada (Izquierda) --- */
.art-featured-story {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-decoration: none;
    background: #000;
    min-height: 480px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.art-featured-story:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.af-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.art-featured-story:hover .af-thumb {
    transform: scale(1.05);
}

.af-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 19, 68, 0.95) 0%, rgba(0, 19, 68, 0.3) 60%, transparent 100%);
    z-index: 1;
}

.af-content {
    position: relative;
    z-index: 2;
    padding: 40px 30px 30px;
}

.af-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    margin: 12px 0;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.af-excerpt {
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
    margin: 0 0 20px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.af-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
}
.af-meta .ac-date {
    color: rgba(255,255,255,0.7);
    font-weight: 400;
}

/* --- Lista Lateral (Derecha) --- */
.art-side-feed {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 15px;
}

.art-feed-item {
    display: flex;
    gap: 15px;
    background: #ffffff;
    border-radius: 10px;
    padding: 12px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    align-items: center;
    border: 1px solid #f5f5f5;
}

.art-feed-item:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
    border-color: #e5e7eb;
}

.af-item-thumb {
    width: 110px;
    min-width: 110px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
}

.af-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.art-feed-item:hover .af-item-thumb img {
    transform: scale(1.05);
}

.af-item-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.af-item-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-navy, #001344);
    margin: 8px 0 6px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.art-feed-item:hover .af-item-title {
    color: var(--color-principal, #032A53);
}

.af-item-meta {
    font-size: 0.75rem;
    color: #6B7280;
}
/* ==========================================================================
   CARGAR MÁS (LOAD MORE) - Artículos
   ========================================================================== */

.latest-load-more-wrap {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
}

.btn-load-more-latest {
    background-color: var(--color-navy);
    padding: 12px 40px;
    border-radius: 50px;
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    transition: background 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

.btn-load-more-latest:hover {
    background-color: #002266;
    transform: translateY(-2px);
}

/* Ocupar el 100% del grid cuando está vacío */
.grid-empty-message.full-width {
    grid-column: 1 / -1;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .art-ticker-layout {
        grid-template-columns: 1fr; /* En tablet apilamos la lista bajo el destacado */
    }
    .art-featured-story {
        min-height: 400px;
    }
}
@media (max-width: 768px) {
    .art-featured-story {
        min-height: 350px;
    }
    .af-title {
        font-size: 1.4rem;
    }
    .art-feed-item {
        padding: 10px;
    }
    .af-item-thumb {
        width: 90px;
        min-width: 90px;
        height: 70px;
    }
}