/* ==========================================================================
   1. RESETEO Y CONFIGURACIÓN GENERAL
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif; /* Puedes cambiarla luego por una tipografía corporativa */
    background-color: #ffffff;
    color: #333333;
    overflow-x: hidden;
}

/* Contenedor global alineado con el estilo Interbank */
.container {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Botones base */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-green { background-color: #00b965; color: white; }
.btn-green:hover { background-color: #009852; }

.btn-blue { background-color: #0033a0; color: white; margin-left: 10px; }
.btn-blue:hover { background-color: #002270; }


/* ==========================================================================
   2. DISEÑO DE LA CABECERA (HEADER)
   ========================================================================== */
.site-header {
    position: fixed; /* Mantiene la cabecera flotando arriba */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: transform 0.3s ease; /* Para el efecto de ocultado suave */
}

/* Nivel 1: Barra Azul */
.top-bar {
    background-color: #0033a0;
    padding: 8px 0;
    transition: margin-top 0.3s ease, opacity 0.2s ease;
}

.segment-nav a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    margin-right: 20px;
    text-transform: uppercase;
}

.segment-nav a.active, .segment-nav a:hover {
    color: #ffffff;
}

/* Nivel 2: Menú Blanco Principal */
.main-menu {
    background-color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
}

.main-menu-content {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Esto centra verticalmente el Logo, el Menú y las Acciones */
}

.header-actions {
    display: flex;
    align-items: center; /* Centra verticalmente botones, íconos y el portal */
    gap: 15px;           /* Controla la separación uniforme entre cada elemento */
}

.logo img {
    height: 4.5rem;   /* Se adapta proporcionalmente al tamaño de letra base del sitio */
    width: auto;
    max-width: 100%;
    display: block;
}

.btn-transparencia {
    display: flex;
    align-items: center;
    height: 4rem; /* Dale una altura máxima similar a la de los botones "Banca por Internet" */
}

.btn-transparencia img {
    height: 100%;  /* Ocupará los 40px de alto del contenedor */
    width: auto;    /* Mantendrá su proporción sin deformarse */
}


.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav ul li a {
    color: #333333;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    margin: 0 15px;
    transition: color 0.2s;
}

.main-nav ul li a:hover { color: #00b965; }

.header-actions {
    display: flex;
    align-items: center;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    margin-right: 15px;
}

/* Clase que aplicará JS cuando el usuario baje la página */
.site-header.scrolled .top-bar {
    margin-top: -35px; /* Empuja la barra azul hacia arriba fuera de la pantalla */
    opacity: 0;
    pointer-events: none;
}







/* ==========================================================================
   SLIDER A PANTALLA COMPLETA Y CURVA INFERIOR OCULTA HASTA HACER SCROLL
   ========================================================================== */

.hero-slider {
    position: relative;
    width: 100%;
    /* Ocupa el 100% del alto de la pantalla visible */
    height: 100vh; 
    /* O si tienes la barra superior fija, usa calc para ajustarlo exactamente:
       height: calc(100vh - 120px); (ajusta 120px según el alto de tu header) */
    min-height: 650px;
    overflow: hidden;
}
.slider-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    /* Transición de salida suave y más pausada */
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 1s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    z-index: 1;
    pointer-events: none; /* Evita clics invisibles mientras cambia */
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
    pointer-events: auto;
}

/* Capa de Fondo e Imagen de Cobertura Total */
.slide-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.slide-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la imagen llene la pantalla sin deformarse */
    object-position: center;
}

/* Fondo de la diapositiva con gradiente plomo/azul marino */
.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg, 
        rgba(0, 31, 77, 0.92) 0%, 
        rgba(10, 42, 90, 0.75) 50%, 
        rgba(15, 23, 42, 0.3) 100%
    );
}

/* Alineación Interna del Contenido dentro de la Pantalla */
.slide-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding-top: 120px;
    box-sizing: border-box;
}

/* Columna de Texto */
.slide-text {
    max-width: 580px;
    color: #ffffff;
}

/* ==========================================================================
   ANIMACIÓN FLUIDA DE ELEMENTOS INTERNOS (ENTRADA Y SALIDA)
   ========================================================================== */
/* Estado base para los elementos (Ocultos y levemente desplazados) */
.slide .hero-badge-clean,
.slide .slide-title-hero,
.slide .slide-desc-hero,
.slide .slide-actions,
.slide .slide-image {
    opacity: 0;
    /* Reducimos el desplazamiento de 35px a 20px para que el recorrido sea más delicado */
    transform: translateY(20px); 
    /* Transición de salida rápida y suave al desactivarse */
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
}

.slide .slide-image {
    transform: translateY(25px) scale(0.96);
}

/* Transiciones de ENTRADA cuando la diapositiva se activa */
.slide.active .hero-badge-clean,
.slide.active .slide-title-hero,
.slide.active .slide-desc-hero,
.slide.active .slide-actions,
.slide.active .slide-image {
    /* Usamos una curva de aceleración orgánicamente pausada (ease-out suave) */
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
                opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Retrasos escalonados progresivos */
.slide.active .hero-badge-clean {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.slide.active .slide-title-hero {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.35s;
}

.slide.active .slide-desc-hero {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.slide.active .slide-actions {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.65s;
}

.slide.active .slide-image {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 0.45s;
}


/* Badge Superior estilo Plomo/Cristal */
.hero-badge-clean {
    display: inline-block;
    background: rgba(241, 245, 249, 0.15); /* Plomo claro translúcido */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(241, 245, 249, 0.3);
    color: #e2e8f0; /* Texto plomo muy claro */
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1.2px;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
    text-transform: uppercase;
}




/* Título de Pantalla */
.slide-title-hero {
    font-size: 3.2rem; /* Título principal de la diapositiva */
    line-height: 1.2;
    font-weight: 300;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

/* Acento en el título cambiado a Celeste Vivo */
.slide-title-hero strong {
    font-weight: 800;
    color: #00d2ff; /* Celeste eléctrico corporativo */
    text-shadow: 0 0 20px rgba(0, 210, 255, 0.3);
}

/* Párrafo descriptivo en color plomo/gris claro para legibilidad */
.slide-desc-hero {
   font-size: 1.25rem; /* Texto descriptivo */
    line-height: 1.6;
    color: #cbd5e1; /* Plomo suave (slate-300) */
    margin-bottom: 36px;
    max-width: 500px;
}

/* Botones de Acción */
.slide-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Botón Principal: Celeste Institucional */
.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #00a3e0 0%, #0082b3 100%); /* Celeste brillante */
    color: #ffffff;
    font-size: 1.1rem; /* Texto del botón */
    font-weight: 700;
    padding: 16px 30px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 6px 20px rgba(0, 163, 224, 0.35);
}

.btn-hero-primary:hover {
    background: linear-gradient(135deg, #0082b3 0%, #00668c 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 163, 224, 0.45);
}
/* Botón Secundario: Borde Plomo/Blanco */
.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    color: #f1f5f9;
    font-size: 15px;
    font-weight: 600;
    padding: 16px 26px;
    border: 1px solid rgba(226, 232, 240, 0.4);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.25s ease;
    background: rgba(15, 23, 42, 0.2);
}
.btn-hero-secondary:hover {
    background-color: rgba(241, 245, 249, 0.15);
    border-color: #ffffff;
    color: #ffffff;
}

/* Imagen Flotante Institucional */
.slide-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.slide-image img {
    max-height: 65vh; /* Ajuste proporcional para pantallas grandes */
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
    animation: floatSubtle 4s ease-in-out infinite;
}

@keyframes floatSubtle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Flechas Flotantes Laterales */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.25s ease;
}

.slider-arrow:hover {
    background: #ffffff;
    color: #001f4d;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.slider-arrow.prev { left: 30px; }
.slider-arrow.next { right: 30px; }

/* Barras Indicadoras de Paginación */
.slider-indicators {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

/* Barras Indicadoras del Slider (Paginación) */
.dot-bar {
    width: 36px;
    height: 4px;
    border: none;
    background-color: rgba(226, 232, 240, 0.3); /* Plomo tenue */
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot-bar.active {
    width: 60px;
    background-color: #00d2ff; /* Celeste activo */
}

/* Responsivo para Pantallas Reducidas / Tablets / Móviles */
@media (max-width: 992px) {
    .slide-title-hero { font-size: 34px; }
    .slide-content { 
        flex-direction: column; 
        justify-content: center;
        text-align: center;
        padding-top: 60px;
    }
    .slide-text { max-width: 100%; margin-bottom: 20px; }
    .slide-actions { justify-content: center; }
    .slide-image img { max-height: 38vh; }
    .slider-arrow { display: none; } /* En móviles se usa gesto swipe */
}

/* Laptop y PC: deja espacio lateral para que las flechas (left/right: 30px,
   52px de ancho) no tapen el texto ni la imagen del slide */
@media (min-width: 993px) and (max-width: 1640px) {
    .slide-content {
        padding-left: 100px;
        padding-right: 100px;
    }
}

/* ==========================================================================
   SOLO DIAPOSITIVA 1 Y 2 MAS PEGADO AL CENTRO
   ========================================================================== */
.slide:nth-child(1) .slide-image img,
.slide:nth-child(2) .slide-image img {
    margin-right: 6vw; /* Margen derecho relativo al ancho de la pantalla */
    max-width: 85%;    /* Evita desbordamientos en pantallas pequeñas */
}

/* Ajuste para pantallas pequeñas y móviles */
@media (max-width: 992px) {
    .slide:nth-child(1) .slide-image img,
    .slide:nth-child(2) .slide-image img {
        margin-right: 0; /* Remueve el margen cuando la columna pasa a formato vertical */
    }
}

/* ==========================================================================
   ANIMACIÓN DE FLOTACIÓN (REBOTE LENTO) PARA EL SLIDER
   ========================================================================== */

/* 1. Definición del movimiento suave hacia arriba y abajo */
@keyframes floatAnimation {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px); /* Eleva la imagen 15px */
    }
    100% {
        transform: translateY(0px);
    }
}

/* 2. Aplicar la animación a la imagen de la derecha */
.slide-image img {
    animation: floatAnimation 1.4s ease-in-out infinite;
    will-change: transform; /* Optimiza el rendimiento en el navegador */
}


/* CAMBIOS A LA DIAPOSITIVA DOS */
/* ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: */
/* Desactiva la animación solo en la tercera diapositiva */
.slide:nth-child(3) .slide-image img {
    animation: none;
}

/* Alineación de la imagen pegada hacia abajo solo en la Tercera Diapositiva */
.slide:nth-child(3) .slide-image {
    align-items: flex-end; /* Empuja el contenedor de la imagen al fondo */
    height: 100%;          /* Ocupa el alto total para servir de guía */
}

.slide:nth-child(3) .slide-image img {
    max-height: 80vh;      /* Permite que la imagen sea más alta */
    margin-bottom: 0;      /* Garantiza que no exista margen inferior */
    vertical-align: bottom; /* Elimina cualquier espacio fantasma de renderizado */
}
/* ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: */

/* 1. Contenedor con perspectiva para simular la sombra de piso */
.slide:nth-child(1) .slide-image,
.slide:nth-child(3) .slide-image {
    position: relative;
}

/* 2. Sombra de piso alineada exactamente bajo el celular */
.slide:nth-child(1) .slide-image::after,
.slide:nth-child(3) .slide-image::after {
    content: '';
    position: absolute;
    bottom: -18px; 
    
    /* Subimos al 58% para correr la sombra hacia la derecha junto con la imagen */
    left: 58%;
    transform: translateX(-50%); 
    
    width: 35%;    
    height: 18px;  
    background: rgba(0, 0, 0, 0.85); 
    border-radius: 50%;
    filter: blur(5px);
    z-index: 0;
    pointer-events: none;
    animation: shadowPulseDesplazada 1.4s ease-in-out infinite; 
}
/* 3. Asegura que la imagen esté sobre la sombra y añade sombra proyectada propia */
.slide:nth-child(1) .slide-image img,
.slide:nth-child(3) .slide-image img {
    position: relative;
    z-index: 1;
    /* Intensificamos la sombra directa en los bordes del PNG */
    filter: drop-shadow(0px 22px 18px rgba(0, 0, 0, 0.6));
}

/* 4. Animación manteniendo el ajuste de posición */
@keyframes shadowPulseDesplazada {
    0%, 100% {
        transform: translateX(-50%) scale(1);
        opacity: 0.9;
    }
    50% {
        transform: translateX(-50%) scale(0.8);
        opacity: 0.5;
    }
}




/* 2. Bajamos la curva al borde inferior absoluto */
.wave-divider {
    position: absolute;
    bottom: 0 !important;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 10;
    pointer-events: none;
}

/* 3. Aplanamos un poco la onda para que sea sutil */
.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 45px !important; /* Reduce la altura de la curva para que casi ni asome */
}

.wave-divider path {
    fill: #ffffff;
}



/* 2. Ajustamos la primera curva (onda del Slider) para que coincida con el nuevo fondo */
.wave-divider path {
    fill: #fbfdff !important; /* Mismo color que el inicio de la sección de servicios */
}

/* 3. Posición de la segunda curva invertida en la base del carrusel de servicios */
.wave-divider-inverted {
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 10;
    pointer-events: none;
}

/* 4. Dimensiones de la curva invertida */
.wave-divider-inverted svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 30px; /* Ajusta la altura del arco según prefieras */
}

/* 1. La curva invertida toma el color claro del inicio de la Plana Gerencial (.pg) */
.wave-divider-inverted path {
    fill: #f8fcff;
}


/* ==========================================================================
   ANIMACIÓN CONTINUA Y LENTA AL HACER SCROLL (SCROLL REVEAL LENTO)
   ========================================================================== */

.reveal-on-scroll {
    opacity: 0;
    /* Mayor desplazamiento inicial para que se aprecie la elevación lenta */
    transform: translateY(60px); 
    
    /* Transición de salida (cuando el elemento desaparece) */
    transition: opacity 0.6s ease-out, 
                transform 0.6s ease-out;
    will-change: opacity, transform;
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
    
    /* 
       Aumentamos la duración a 1.5s para que sea un efecto súper pausado y elegante.
       La curva cubic-bezier crea un frenado muy suave al final.
    */
    transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Opcional: Retardo escalonado si quieres que aparezcan en secuencia */
.reveal-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.reveal-on-scroll:nth-child(2) { transition-delay: 0.3s; }
.reveal-on-scroll:nth-child(3) { transition-delay: 0.5s; }
.reveal-on-scroll:nth-child(4) { transition-delay: 0.7s; }
.reveal-on-scroll:nth-child(5) { transition-delay: 0.9s; }
.reveal-on-scroll:nth-child(6) { transition-delay: 1.1s; }


/* ==========================================================================
   6. BLOQUE DE NOTICIAS INSTITUCIONALES (EXCELLENCE UI/UX DESIGN)
   ========================================================================== */
.news-section {
    padding: 90px 0;
    background: radial-gradient(circle at top right, rgba(0, 163, 224, 0.03) 0%, transparent 40%),
                linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
    width: 100%;
    position: relative;
}

.news-container {
    display: flex;
    flex-direction: column;
    gap: 38px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Cabecera optimizada */
.news-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 24px;
}

.news-header-titles {
    max-width: 700px;
}



/* Badge con línea acento igual a las secciones anteriores */
.section-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.badge-line {
    width: 24px;
    height: 3px;
    background-color: #00a3e0; /* Celeste institucional */
    border-radius: 2px;
    display: inline-block;
}

.news-subtitle {
    font-size: 11px;
    color: #00a3e0;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2.5px;
}

.news-header-titles h2 {
    font-size: 32px;
    color: #002244;
    font-weight: 300; /* Peso ligero moderno */
    margin: 0;
    letter-spacing: -0.5px;
    line-height: 1.25;
}

.news-header-titles h2 strong {
    font-weight: 700; /* Resaltado en negrita corporativa */
    color: #0033a0;
}

/* Controles de navegación premium */
.news-controls {
    display: flex;
    gap: 12px;
}

.news-nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #002244;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0, 34, 68, 0.04);
}

.news-nav-btn:hover {
    background: #0033a0;
    color: #ffffff;
    border-color: #0033a0;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 51, 160, 0.25);
}

.news-nav-btn:active {
    transform: translateY(-1px);
}

/* --- CONTENEDOR DEL SLIDER CON EFECTO DE DESBORDE FLUIDO --- */
.news-slider-wrapper {
    width: 100%;
    position: relative;
    padding: 10px 0 25px 0;
}

.news-track {
    display: flex;
    gap: 28px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 5px 4px 15px 4px; /* Espacio para evitar cortes de sombra */
}

.news-track::-webkit-scrollbar {
    display: none;
}

/* Tarjeta Estilo UI/UX de Élite */
.news-track .news-card {
    flex: 0 0 calc((100% - 56px) / 3);
    min-width: 350px;
    background: #ffffff;
    border-radius: 24px 6px 24px 24px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 34, 68, 0.05);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    scroll-snap-align: start;
    position: relative;
}

/* Contenedor de Imagen con Overlay sutil */
.news-card-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background-color: #001f4d;
}

.news-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0, 34, 68, 0.25) 100%);
    pointer-events: none;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Badge Glassmorphism refinado */
.news-tag-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(0, 31, 77, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 2;
}

/* Contenido de la Tarjeta */
.news-card-content {
    padding: 26px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-date {
    font-size: 11px;
    color: #00a3e0;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.news-card-content h3 {
    font-size: 17.5px;
    color: #001f4d;
    margin: 0 0 10px 0;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.2px;
}

.news-desc {
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 22px;
    flex-grow: 1;
}

/* Botón "Profundizar en el tema" con micro-animación de flecha */
.news-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f8fafc;
    color: #0033a0;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
    border: 1px solid #e2e8f0;
}

.news-btn span {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- HOVER EFFECTS DE ALTA GAMA --- */
.news-track .news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 34, 68, 0.12);
    border-color: rgba(0, 163, 224, 0.45);
}

.news-track .news-card:hover .news-card-image img {
    transform: scale(1.08);
}

.news-track .news-card:hover .news-btn {
    background-color: #00a3e0;
    color: #ffffff;
    border-color: #00a3e0;
    box-shadow: 0 6px 15px rgba(0, 163, 224, 0.3);
}

.news-track .news-card:hover .news-btn span {
    transform: translateX(6px);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    .news-track .news-card {
        flex: 0 0 calc((100% - 28px) / 2);
        min-width: 310px;
    }
}

@media (max-width: 768px) {
    .news-header-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding-bottom: 18px;
    }
    .news-controls {
        align-self: flex-end;
    }
    .news-track .news-card {
        flex: 0 0 100%;
        min-width: 290px;
    }
}