/*ESTILOS GENERALES*/
:root {
    --color-primario: #2e6fa3;
    --color-primario-oscuro: #1a4d7a;
    --color-primario-claro: #4a8bc2;
    --color-secundario: #6ba832;
    --color-secundario-claro: #8bc653;
    --color-acento: #f57c00;
    --color-dorado: #d4af37;
    --color-texto: #2c3e50;
    --color-texto-claro: #5a6c7d;
    --color-fondo: #ffffff;
    --color-fondo-alterno: #f8fbfd;
    --sombra-suave: 0 10px 40px rgba(46, 111, 163, 0.1);
    --sombra-media: 0 20px 60px rgba(46, 111, 163, 0.15);
    --sombra-fuerte: 0 30px 80px rgba(46, 111, 163, 0.2);
    --transicion-suave: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transicion-rebote: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --fuente-decorativa: 'Playfair Display', serif;
    --fuente-principal: 'Montserrat', 'Segoe UI', sans-serif;
}
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-y: scroll !important;
    overflow-x: hidden;
    scroll-behavior: smooth;
    min-height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    padding-top: 160px;
}

.encabezado-principal {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.98) 0%, 
        rgba(248, 251, 253, 0.98) 50%, 
        rgba(255, 255, 255, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 
        0 4px 30px rgba(46, 111, 163, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.05),
        inset 0 -1px 0 rgba(46, 111, 163, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    padding: 0;
    height: 160px;
    display: flex;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    border-bottom: 1px solid rgba(46, 111, 163, 0.08);
}

/* Línea decorativa inferior con gradiente animado */
.encabezado-principal::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%,
        #2e6fa3 15%,
        #6ba832 50%,
        #2e6fa3 85%,
        transparent 100%);
    background-size: 200% 100%;
    animation: gradiente-linea 4s ease infinite;
    opacity: 0.8;
}

@keyframes gradiente-linea {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Efecto de resplandor sutil en el fondo */
.encabezado-principal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(107, 168, 50, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(46, 111, 163, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/*Ocultar el header*/
.header-oculto {
    transform: translateY(-100%) !important;
    box-shadow: none !important;
}

/*Mostrar el header*/
.header-visible {
    transform: translateY(0) !important;
    box-shadow: 
        0 8px 40px rgba(46, 111, 163, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

/*Animación suave al aparecer */
.header-visible {
    animation: deslizarAbajo 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes deslizarAbajo {
    from {
        transform: translateY(-100%);
        opacity: 0.9;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ========================================
   CONTENEDOR DE NAVEGACIÓN
   ======================================== */
.navegacion-contenedor {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    height: 100%;
    position: relative;
    z-index: 1;
}

/* ========================================
   LOGO DE LA COOPERATIVA
   ======================================== */
.logo-cooperativa {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    position: relative;
}

.logo-cooperativa a {
    display: flex;
    align-items: center;
    text-decoration: none;
    position: relative;
}

/* Efecto de resplandor detrás del logo */
.logo-cooperativa a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, 
        rgba(107, 168, 50, 0.08) 0%, 
        rgba(46, 111, 163, 0.05) 40%,
        transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

.logo-cooperativa a:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.imagen-logo {
    height: 150px;
    width: auto;
    max-width: 100%;
    display: block;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 15px rgba(46, 111, 163, 0.1));
    position: relative;
    z-index: 2;
}

.imagen-logo:hover {
    transform: scale(1.03) translateY(-2px);
    filter: drop-shadow(0 8px 25px rgba(46, 111, 163, 0.15));
}

/* ========================================
   SEPARADOR DECORATIVO (OPCIONAL)
   Añadir este elemento en el HTML entre logo y menú
   ======================================== */
.separador-nav {
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, 
        transparent 0%,
        rgba(46, 111, 163, 0.2) 30%,
        rgba(107, 168, 50, 0.3) 50%,
        rgba(46, 111, 163, 0.2) 70%,
        transparent 100%);
    margin: 0 30px;
    flex-shrink: 0;
}

/* ========================================
   MENÚ DE NAVEGACIÓN
   ======================================== */
.menu-navegacion {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
    margin: 0;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 60px;
    border: 1px solid rgba(46, 111, 163, 0.08);
    box-shadow: 
        0 4px 20px rgba(46, 111, 163, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    transition: all 0.4s ease;
}

/* Efecto hover en todo el menú */
.menu-navegacion:hover {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 
        0 8px 30px rgba(46, 111, 163, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(46, 111, 163, 0.12);
}

/* ========================================
   ITEMS DEL MENÚ
   ======================================== */
.item-menu {
    position: relative;
    display: flex;
    align-items: center;
}

/* ========================================
   ENLACES DEL MENÚ - DISEÑO ELEGANTE
   ======================================== */
.enlace-menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    color: #3a4f63;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border-radius: 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    background: transparent;
    border: 2px solid transparent;
}

/* Efecto de fondo animado en hover */
.enlace-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(46, 111, 163, 0.08) 0%, 
        rgba(107, 168, 50, 0.08) 100%);
    border-radius: 30px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

/* Línea inferior decorativa */
.enlace-menu::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, #2e6fa3, #6ba832);
    border-radius: 3px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(46, 111, 163, 0.3);
}

/* Estado Hover */
.enlace-menu:hover {
    color: #2e6fa3;
    transform: translateY(-2px);
}

.enlace-menu:hover::before {
    opacity: 1;
    transform: scale(1);
}

.enlace-menu:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* Estado Activo */
.enlace-menu.activo {
    color: #ffffff;
    background: linear-gradient(135deg, #2e6fa3 0%, #3d85c6 50%, #2e6fa3 100%);
    background-size: 200% 200%;
    animation: gradiente-activo 3s ease infinite;
    border-color: transparent;
    box-shadow: 
        0 4px 15px rgba(46, 111, 163, 0.35),
        0 2px 6px rgba(46, 111, 163, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

@keyframes gradiente-activo {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.enlace-menu.activo::before {
    display: none;
}

.enlace-menu.activo::after {
    display: none;
}

.enlace-menu.activo:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 8px 25px rgba(46, 111, 163, 0.4),
        0 4px 10px rgba(46, 111, 163, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Efecto de brillo en activo */
.enlace-menu.activo::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    animation: brillo-boton 3s ease-in-out infinite;
    border-radius: 30px;
}

@keyframes brillo-boton {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

/* ========================================
   BOTÓN MENÚ MÓVIL
   ======================================== */
.boton-menu-movil {
    display: none;
    flex-direction: column;
    background: linear-gradient(135deg, #ffffff, #f8fbfd);
    border: 2px solid rgba(46, 111, 163, 0.15);
    border-radius: 12px;
    cursor: pointer;
    padding: 12px;
    gap: 5px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(46, 111, 163, 0.1);
}

.boton-menu-movil:hover {
    background: linear-gradient(135deg, #2e6fa3, #3d85c6);
    border-color: #2e6fa3;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(46, 111, 163, 0.25);
}

.boton-menu-movil:hover .linea-hamburguesa {
    background-color: #ffffff;
}

.linea-hamburguesa {
    width: 28px;
    height: 3px;
    background-color: #2e6fa3;
    border-radius: 3px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animación hamburguesa activa */
.boton-menu-movil.activo {
    background: linear-gradient(135deg, #2e6fa3, #3d85c6);
    border-color: #2e6fa3;
}

.boton-menu-movil.activo .linea-hamburguesa {
    background-color: #ffffff;
}

.boton-menu-movil.activo .linea-hamburguesa:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.boton-menu-movil.activo .linea-hamburguesa:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.boton-menu-movil.activo .linea-hamburguesa:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ========================================
   RESPONSIVE - TABLETS
   ======================================== */
@media screen and (max-width: 1024px) {
    .encabezado-principal {
        height: 110px;
    }

    .navegacion-contenedor {
        padding: 0 25px;
    }

    .imagen-logo {
        height: 100px;
    }

    .menu-navegacion {
        position: fixed;
        top: 110px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 110px);
        background: linear-gradient(180deg, 
            rgba(255, 255, 255, 0.98) 0%, 
            rgba(248, 251, 253, 0.98) 100%);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        gap: 8px;
        padding: 30px 25px;
        border-radius: 0;
        border: none;
        box-shadow: 0 10px 40px rgba(46, 111, 163, 0.15);
        transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        overflow-y: auto;
        justify-content: flex-start;
        align-items: stretch;
    }

    .menu-navegacion.menu-abierto {
        left: 0;
    }

    .item-menu {
        width: 100%;
    }

    .enlace-menu {
        width: 100%;
        padding: 18px 25px;
        font-size: 17px;
        border-radius: 16px;
        justify-content: flex-start;
        border: 1px solid rgba(46, 111, 163, 0.08);
        background: rgba(255, 255, 255, 0.5);
    }

    .enlace-menu::after {
        display: none;
    }

    .enlace-menu:hover,
    .enlace-menu.activo {
        border-radius: 16px;
    }

    .boton-menu-movil {
        display: flex;
    }

    .separador-nav {
        display: none;
    }
}

/* ========================================
   RESPONSIVE - MÓVILES PEQUEÑOS
   ======================================== */
@media screen and (max-width: 480px) {
    .encabezado-principal {
        height: 80px;
    }

    .navegacion-contenedor {
        padding: 0 15px;
    }

    .imagen-logo {
        height: 70px;
    }

    .menu-navegacion {
        top: 80px;
        height: calc(100vh - 80px);
        padding: 20px 15px;
    }

    .enlace-menu {
        font-size: 16px;
        padding: 16px 20px;
    }

    .boton-menu-movil {
        padding: 10px;
        border-radius: 10px;
    }

    .linea-hamburguesa {
        width: 24px;
        height: 2.5px;
    }
}

/*SCROLL */
.encabezado-principal.scrolled {
    height: 130px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 
        0 4px 30px rgba(46, 111, 163, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.06);
}

.encabezado-principal.scrolled .imagen-logo {
    height: 120px;
}

@media screen and (max-width: 1024px) {
    .encabezado-principal.scrolled {
        height: 100px;
    }
    
    .encabezado-principal.scrolled .imagen-logo {
        height: 90px;
    }
}

@media screen and (max-width: 480px) {
    .encabezado-principal.scrolled {
        height: 70px;
    }
    
    .encabezado-principal.scrolled .imagen-logo {
        height: 60px;
    }
}

/* ========================================
   ANIMACIONES REDUCIDAS PARA ACCESIBILIDAD
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    .encabezado-principal,
    .encabezado-principal::after,
    .enlace-menu,
    .enlace-menu::before,
    .enlace-menu::after,
    .enlace-menu.activo,
    .imagen-logo,
    .boton-menu-movil,
    .linea-hamburguesa {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }
}

/*BANNER DE AVISOS*/
.banner-avisos {
    background: linear-gradient(135deg, #FFFFFF 0%, #FFFFFF 50%, #FFFFFF 100%);
    overflow: hidden;
    position: relative;
    left: 0;
    right: 0;
    width: 100%;
    padding: 8px 0;
}

.contenedor-scroll {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: desplazar 30s linear infinite;
    width: max-content;
}

@keyframes desplazar {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.texto-aviso {
    color: #2e6fa3;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-right: 60px;
}

.separador-aviso {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin: 0 30px;
}

.boton-menu-movil {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 5px;
}

.linea-hamburguesa {
    width: 30px;
    height: 3px;
    background-color: #2c5c8f;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/*TARJETA DE TESTIMONIOS*/
.tarjeta-testimonio {
    min-width: 100%;
    opacity: 0;
    transform: scale(0.95) translateY(30px);
    animation: tarjeta-aparecer 0.8s ease forwards;
}

@keyframes tarjeta-aparecer {
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/*ICONO DE COMILLAS*/
.icono-comillas {
    position: absolute;
    top: 30px;
    right: 40px;
    width: 70px;
    height: 70px;
    opacity: 0.08;
    color: #2e6fa3;
    transition: all 0.5s ease;
}

.icono-comillas svg {
    width: 100%;
    height: 100%;
}

/*INFORMACION DE LOS TESTIMONIOS*/
.anillo-animado {
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #2e6fa3;
    border-right-color: #6ba832;
    opacity: 0;
    animation: rotar-anillo 2s linear infinite;
    transition: opacity 0.5s ease;
}

@keyframes rotar-anillo {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


.datos-testimonio {
    flex: 1;
    min-width: 0;
}

.nombre-testimonio {
    font-size: clamp(18px, 3vw, 24px);
    font-weight: 700;
    color: #2e6fa3;
    margin-bottom: 6px;
    transition: color 0.3s ease;
}

.cargo-testimonio {
    font-size: clamp(13px, 2vw, 15px);
    color: #666;
    font-weight: 500;
    line-height: 1.4;
}

/*TEXTO DE LOS TESTIMONIOS*/
.texto-testimonio {
    font-size: clamp(14px, 2.2vw, 17px);
    color: #555;
    line-height: 1.8;
    margin-bottom: 25px;
    font-style: italic;
    position: relative;
    z-index: 2;
    padding: 0 10px;
}

/*ESTRELLAS DE CALIFICACION*/
.estrellas-rating {
    display: flex;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.estrella-rating {
    width: clamp(20px, 3vw, 26px);
    height: clamp(20px, 3vw, 26px);
    color: #f59e0b;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(245, 158, 11, 0.3));
}

.estrella-rating:nth-child(1) { animation: brillar-estrella 2s ease-in-out infinite; animation-delay: 0s; }
.estrella-rating:nth-child(2) { animation: brillar-estrella 2s ease-in-out infinite; animation-delay: 0.2s; }
.estrella-rating:nth-child(3) { animation: brillar-estrella 2s ease-in-out infinite; animation-delay: 0.4s; }
.estrella-rating:nth-child(4) { animation: brillar-estrella 2s ease-in-out infinite; animation-delay: 0.6s; }
.estrella-rating:nth-child(5) { animation: brillar-estrella 2s ease-in-out infinite; animation-delay: 0.8s; }

@keyframes brillar-estrella {
    0%, 100% { 
        opacity: 1;
        filter: drop-shadow(0 2px 4px rgba(245, 158, 11, 0.3));
    }
    50% { 
        opacity: 0.7;
        filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.6));
    }
}

/*FONDO DECORATIVO*/
.patron-fondo {
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(46, 111, 163, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transition: all 0.6s ease;
}

/*BOTONES DE NAVEGACION*/
.boton-navegacion-testimonio {
    width: clamp(48px, 8vw, 60px);
    height: clamp(48px, 8vw, 60px);
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #2e6fa3;
    color: #2e6fa3;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(46, 111, 163, 0.2);
    position: relative;
    overflow: hidden;
}

.boton-navegacion-testimonio::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #2e6fa3, #6ba832);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: 0;
}

.boton-navegacion-testimonio svg {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    width: clamp(20px, 4vw, 26px);
    height: clamp(20px, 4vw, 26px);
}

.boton-navegacion-testimonio:hover {
    transform: scale(1.15);
    box-shadow: 0 10px 30px rgba(46, 111, 163, 0.35);
    border-color: #6ba832;
}

.boton-navegacion-testimonio:hover::before {
    width: 100%;
    height: 100%;
}

.boton-navegacion-testimonio:hover svg {
    color: #ffffff;
    transform: scale(1.2);
}

.boton-navegacion-testimonio:active {
    transform: scale(1.05);
}

.boton-navegacion-testimonio:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: scale(1);
}

.boton-navegacion-testimonio:disabled:hover {
    transform: scale(1);
    box-shadow: 0 6px 20px rgba(46, 111, 163, 0.2);
}

/*INDICADORES DE TESTIMONIOS*/
.indicadores-testimonios {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
}

.indicador-testimonio {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d9eaf0, #b8dae8);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #ffffff;
    box-shadow: 
        0 2px 8px rgba(46, 111, 163, 0.3),
        0 0 0 3px rgba(46, 111, 163, 0.1);
    position: relative;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.indicador-testimonio::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 130%;
    height: 130%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(107, 168, 50, 0.4), transparent);
    transition: transform 0.4s ease;
}

.indicador-testimonio.activo {
    background: linear-gradient(135deg, #2e6fa3, #4a8bc2);
    border: 2px solid #ffffff;
    transform: scale(1.5);
    box-shadow: 
        0 4px 20px rgba(46, 111, 163, 0.6),
        0 0 0 4px rgba(46, 111, 163, 0.2),
        0 0 25px rgba(46, 111, 163, 0.4),
        inset 0 2px 8px rgba(255, 255, 255, 0.3);
    animation: pulso-indicador-testimonio 2s ease-in-out infinite;
}

@keyframes pulso-indicador-testimonio {
    0%, 100% {
        box-shadow: 
            0 4px 20px rgba(46, 111, 163, 0.6),
            0 0 0 4px rgba(46, 111, 163, 0.2),
            0 0 25px rgba(46, 111, 163, 0.4),
            inset 0 2px 8px rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 
            0 6px 25px rgba(46, 111, 163, 0.8),
            0 0 0 6px rgba(46, 111, 163, 0.3),
            0 0 35px rgba(46, 111, 163, 0.6),
            inset 0 2px 8px rgba(255, 255, 255, 0.4);
    }
}

.indicador-testimonio:hover {
    background: linear-gradient(135deg, #6ba832, #8bc653);
    transform: scale(1.4) translateY(-3px);
    box-shadow: 
        0 4px 15px rgba(107, 168, 50, 0.5),
        0 0 0 5px rgba(107, 168, 50, 0.2),
        0 0 20px rgba(107, 168, 50, 0.3);
}

.indicador-testimonio:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

/*SECCION DE TESTIMONIOS*/
.seccion-testimonios {
    padding: 100px 20px;
    background: linear-gradient(135deg, #f8fbfd 0%, #ffffff 50%, #f5f9fb 100%);
    position: relative;
    overflow: hidden;
}

.seccion-testimonios::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 15% 30%, rgba(46, 111, 163, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 85% 70%, rgba(107, 168, 50, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.contenedor-testimonios {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.encabezado-testimonios {
    text-align: center;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(30px);
    animation: aparecer-desde-abajo 0.8s ease forwards;
}

@keyframes aparecer-desde-abajo {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.titulo-testimonios {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 52px;
    font-weight: 700;
    font-style: normal;
    color: rgb(26, 77, 122);
    line-height: 62px;
    margin: 0 0 20px 0;
    position: relative;
    display: inline-block;
}

.titulo-testimonios::after {
    content: none;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 5px;
    background: linear-gradient(90deg, #2e6fa3, #6ba832);
    border-radius: 3px;
    box-shadow: 0 2px 10px rgba(46, 111, 163, 0.3);
}

@media screen and (max-width: 1024px) {
    .titulo-testimonios {
        font-size: 36px;
        line-height: 44px;
    }
}

@media screen and (max-width: 767px) {
    .titulo-testimonios {
        font-size: 30px;
        line-height: 38px;
    }
}

@media screen and (max-width: 480px) {
    .titulo-testimonios {
        font-size: 30px;
        line-height: 34px;
    }
}

.subtitulo-testimonios {
    font-size: clamp(15px, 2.5vw, 18px);
    color: #666;
    max-width: 850px;
    margin: 30px auto 0;
    line-height: 1.7;
    padding: 0 20px;
}

/*CONTROLES DE NAVEGACION*/
.controles-testimonios {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-bottom: 40px;
    padding: 0 10px;
}

.boton-nav-testimonio {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #2e6fa3;
    color: #2e6fa3;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(46, 111, 163, 0.15);
    position: relative;
    overflow: hidden;
}

.boton-nav-testimonio::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #2e6fa3, #4a8bc2);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.boton-nav-testimonio svg {
    position: relative;
    z-index: 1;
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
}

.boton-nav-testimonio:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(46, 111, 163, 0.3);
    border-color: #4a8bc2;
}

.boton-nav-testimonio:hover::before {
    width: 100%;
    height: 100%;
}

.boton-nav-testimonio:hover svg {
    color: #ffffff;
    transform: scale(1.15);
}

.boton-nav-testimonio:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.boton-nav-testimonio:disabled:hover {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(46, 111, 163, 0.15);
}

/*GRID DE TESTIMONIOS*/
.grid-testimonios-wrapper {
    overflow: hidden;
    padding: 10px 5px;
}

.grid-testimonios {
    display: grid;
    grid-template-columns: repeat(5, calc(33.333% - 20px));
    gap: 30px;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/*TARJETA DE TESTIMONIOS*/
.seccion-testimonios {
    padding: 100px 20px;
    background: linear-gradient(135deg, #f8fbfd 0%, #ffffff 50%, #f5f9fb 100%);
    position: relative;
    overflow: hidden;
}

.seccion-testimonios::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 15% 30%, rgba(46, 111, 163, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 85% 70%, rgba(107, 168, 50, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.contenedor-testimonios {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ==========================================================
   ENCABEZADO DE LA SECCIÓN
   ========================================================== */
.encabezado-testimonios {
    text-align: center;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(30px);
    animation: aparecer-desde-abajo 0.8s ease forwards;
}

@keyframes aparecer-desde-abajo {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.titulo-testimonios {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 52px;
    font-weight: 700;
    color: rgb(26, 77, 122);
    line-height: 62px;
    margin: 0 0 20px 0;
    position: relative;
    display: inline-block;
}

.subtitulo-testimonios {
    font-size: clamp(15px, 2.5vw, 18px);
    color: #666;
    max-width: 850px;
    margin: 30px auto 0;
    line-height: 1.7;
    padding: 0 20px;
}

/* ==========================================================
   CONTROLES DE NAVEGACIÓN (botones anterior / siguiente)
   ========================================================== */
.controles-testimonios {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-bottom: 40px;
    padding: 0 10px;
}

.boton-nav-testimonio {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #2e6fa3;
    color: #2e6fa3;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(46, 111, 163, 0.15);
    position: relative;
    overflow: hidden;
}

.boton-nav-testimonio::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #2e6fa3, #4a8bc2);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.boton-nav-testimonio svg {
    position: relative;
    z-index: 1;
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
}

.boton-nav-testimonio:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(46, 111, 163, 0.3);
    border-color: #4a8bc2;
}

.boton-nav-testimonio:hover::before {
    width: 100%;
    height: 100%;
}

.boton-nav-testimonio:hover svg {
    color: #ffffff;
    transform: scale(1.15);
}

.boton-nav-testimonio:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.boton-nav-testimonio:disabled:hover {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(46, 111, 163, 0.15);
}

/* ==========================================================
   GRID DE TESTIMONIOS
   ========================================================== */
.grid-testimonios-wrapper {
    overflow: hidden;
    padding: 10px 5px;
}

.grid-testimonios {
    display: grid;
    grid-template-columns: repeat(5, calc(33.333% - 20px));
    gap: 30px;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================
   TARJETA DE TESTIMONIO
   ========================================================== */
.tarjeta-testimonio {
    background: linear-gradient(135deg, #ffffff 0%, #f9fcff 100%);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 10px 40px rgba(46, 111, 163, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    opacity: 0;
    transform: translateY(20px);
    animation: tarjeta-aparecer 0.6s ease forwards;
}

.tarjeta-testimonio:nth-child(1) { animation-delay: 0.1s; }
.tarjeta-testimonio:nth-child(2) { animation-delay: 0.2s; }
.tarjeta-testimonio:nth-child(3) { animation-delay: 0.3s; }
.tarjeta-testimonio:nth-child(4) { animation-delay: 0.4s; }
.tarjeta-testimonio:nth-child(5) { animation-delay: 0.5s; }

@keyframes tarjeta-aparecer {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Barra superior con gradiente animado */
.tarjeta-testimonio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #2e6fa3, #6ba832, #2e6fa3);
    background-size: 200% 200%;
    animation: gradiente-borde 3s ease infinite;
}

@keyframes gradiente-borde {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.tarjeta-testimonio:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow:
        0 20px 60px rgba(46, 111, 163, 0.15),
        0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: rgba(46, 111, 163, 0.2);
}

/* ==========================================================
   CONTENEDOR DEL AVATAR (antes: .foto-testimonio-contenedor)
   Mantiene el mismo nombre para compatibilidad
   ========================================================== */
.foto-testimonio-contenedor {
    position: relative;
    display: inline-block;
    width: 110px;
    height: 110px;
    margin-bottom: 25px;
}

/* ==========================================================
   AVATAR SVG - NUEVO REEMPLAZO DE .foto-testimonio (img)
   ========================================================== */
.avatar-testimonio {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #ffffff;
    box-shadow: 0 8px 25px rgba(46, 111, 163, 0.2);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 2;
    background: #e8f4f8; /* color de respaldo */
}

.avatar-testimonio svg {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.tarjeta-testimonio:hover .avatar-testimonio {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 14px 35px rgba(46, 111, 163, 0.35);
}

.tarjeta-testimonio:hover .avatar-testimonio svg {
    transform: scale(1.04);
}

/* Fondos temáticos por profesión (respaldo visual) */
.avatar-medico-hombre   { background: linear-gradient(135deg, #e8f4f8 0%, #d0e8f0 100%); }
.avatar-enfermera       { background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 100%); }
.avatar-tecnico         { background: linear-gradient(135deg, #e0f2f1 0%, #b2dfdb 100%); }
.avatar-doctora         { background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%); }
.avatar-licenciado      { background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%); }

/* ==========================================================
   ANILLO ANIMADO ALREDEDOR DEL AVATAR
   ========================================================== */
.anillo-animado {
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #2e6fa3;
    border-right-color: #6ba832;
    opacity: 0;
    animation: rotar-anillo 2s linear infinite;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.tarjeta-testimonio:hover .anillo-animado {
    opacity: 1;
}

@keyframes rotar-anillo {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================
   NOMBRE DEL TESTIMONIO
   ========================================================== */
.nombre-testimonio {
    font-size: clamp(18px, 2.5vw, 22px);
    font-weight: 700;
    color: #2e6fa3;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.tarjeta-testimonio:hover .nombre-testimonio {
    color: #6ba832;
}

/* Cargo opcional */
.cargo-testimonio {
    font-size: clamp(13px, 1.8vw, 14px);
    color: #666;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.4;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================
   TEXTO DEL COMENTARIO
   ========================================================== */
.texto-testimonio {
    font-size: clamp(14px, 1.9vw, 15px);
    color: #555;
    line-height: 1.7;
    margin-bottom: 25px;
    font-style: italic;
    min-height: 160px;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 0 10px;
}

/* ==========================================================
   ESTRELLAS DE CALIFICACIÓN
   ========================================================== */
.estrellas-rating {
    display: flex;
    gap: 6px;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.estrella {
    width: 22px;
    height: 22px;
    color: #f59e0b;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(245, 158, 11, 0.3));
}

.tarjeta-testimonio:hover .estrella {
    transform: scale(1.15);
}

.estrella:nth-child(1) { animation: brillar-estrella 2s ease-in-out infinite; animation-delay: 0s; }
.estrella:nth-child(2) { animation: brillar-estrella 2s ease-in-out infinite; animation-delay: 0.2s; }
.estrella:nth-child(3) { animation: brillar-estrella 2s ease-in-out infinite; animation-delay: 0.4s; }
.estrella:nth-child(4) { animation: brillar-estrella 2s ease-in-out infinite; animation-delay: 0.6s; }
.estrella:nth-child(5) { animation: brillar-estrella 2s ease-in-out infinite; animation-delay: 0.8s; }

@keyframes brillar-estrella {
    0%, 100% {
        opacity: 1;
        filter: drop-shadow(0 2px 4px rgba(245, 158, 11, 0.3));
    }
    50% {
        opacity: 0.7;
        filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.6));
    }
}

/* ==========================================================
   INDICADORES (puntos debajo del carrusel)
   ========================================================== */
.indicadores-testimonios {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
}

.indicador-testimonio {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d9eaf0, #b8dae8);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #ffffff;
    box-shadow:
        0 2px 8px rgba(46, 111, 163, 0.3),
        0 0 0 3px rgba(46, 111, 163, 0.1);
    position: relative;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.indicador-testimonio::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 130%;
    height: 130%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(107, 168, 50, 0.4), transparent);
    transition: transform 0.4s ease;
}

.indicador-testimonio.activo {
    background: linear-gradient(135deg, #2e6fa3, #4a8bc2);
    border: 2px solid #ffffff;
    transform: scale(1.5);
    box-shadow:
        0 4px 20px rgba(46, 111, 163, 0.6),
        0 0 0 4px rgba(46, 111, 163, 0.2),
        0 0 25px rgba(46, 111, 163, 0.4),
        inset 0 2px 8px rgba(255, 255, 255, 0.3);
    animation: pulso-indicador-testimonio 2s ease-in-out infinite;
}

@keyframes pulso-indicador-testimonio {
    0%, 100% {
        box-shadow:
            0 4px 20px rgba(46, 111, 163, 0.6),
            0 0 0 4px rgba(46, 111, 163, 0.2),
            0 0 25px rgba(46, 111, 163, 0.4),
            inset 0 2px 8px rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow:
            0 6px 25px rgba(46, 111, 163, 0.8),
            0 0 0 6px rgba(46, 111, 163, 0.3),
            0 0 35px rgba(46, 111, 163, 0.6),
            inset 0 2px 8px rgba(255, 255, 255, 0.4);
    }
}

.indicador-testimonio:hover {
    background: linear-gradient(135deg, #6ba832, #8bc653);
    transform: scale(1.4) translateY(-3px);
    box-shadow:
        0 4px 15px rgba(107, 168, 50, 0.5),
        0 0 0 5px rgba(107, 168, 50, 0.2),
        0 0 20px rgba(107, 168, 50, 0.3);
}

.indicador-testimonio:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

/* ==========================================================
   RESPONSIVE - TABLETS (≤ 1024px)
   ========================================================== */
@media screen and (max-width: 1024px) {
    .seccion-testimonios {
        padding: 70px 15px;
    }

    .encabezado-testimonios {
        margin-bottom: 45px;
    }

    .titulo-testimonios {
        font-size: 36px;
        line-height: 44px;
    }

    .grid-testimonios {
        grid-template-columns: repeat(5, calc(50% - 15px));
        gap: 25px;
    }

    .controles-testimonios {
        margin-bottom: 30px;
    }

    .boton-nav-testimonio {
        width: 45px;
        height: 45px;
    }

    .boton-nav-testimonio svg {
        width: 20px;
        height: 20px;
    }

    .tarjeta-testimonio {
        padding: 35px 25px;
    }

    .foto-testimonio-contenedor {
        width: 95px;
        height: 95px;
    }

    .avatar-testimonio {
        border-width: 3px;
    }

    .texto-testimonio {
        min-height: 140px;
    }
}

/* ==========================================================
   RESPONSIVE - MÓVILES (≤ 767px)
   ========================================================== */
@media screen and (max-width: 767px) {
    .seccion-testimonios {
        padding: 60px 12px;
    }

    .encabezado-testimonios {
        margin-bottom: 35px;
    }

    .titulo-testimonios {
        font-size: 30px;
        line-height: 38px;
    }

    .grid-testimonios {
        grid-template-columns: repeat(5, 100%);
        gap: 20px;
    }

    .controles-testimonios {
        gap: 10px;
        margin-bottom: 25px;
    }

    .boton-nav-testimonio {
        width: 40px;
        height: 40px;
    }

    .boton-nav-testimonio svg {
        width: 18px;
        height: 18px;
    }

    .tarjeta-testimonio {
        padding: 30px 20px;
        border-radius: 20px;
    }

    .foto-testimonio-contenedor {
        width: 85px;
        height: 85px;
    }

    .cargo-testimonio {
        min-height: 35px;
    }

    .texto-testimonio {
        min-height: 120px;
    }

    .estrella {
        width: 20px;
        height: 20px;
    }

    .indicadores-testimonios {
        gap: 10px;
        margin-top: 35px;
    }

    .indicador-testimonio {
        width: 10px;
        height: 10px;
    }

    .indicador-testimonio.activo {
        transform: scale(1.3);
    }
}

/* ==========================================================
   RESPONSIVE - MÓVILES PEQUEÑOS (≤ 480px)
   ========================================================== */
@media screen and (max-width: 480px) {
    .seccion-testimonios {
        padding: 50px 10px;
    }

    .titulo-testimonios {
        font-size: 30px;
        line-height: 34px;
    }

    .tarjeta-testimonio {
        padding: 25px 18px;
        border-radius: 18px;
    }

    .foto-testimonio-contenedor {
        width: 80px;
        height: 80px;
    }

    .texto-testimonio {
        min-height: 110px;
    }

    .indicadores-testimonios {
        margin-top: 30px;
    }
}

/*CARRUSEL DE IMAGENES*/
.carrusel-wrapper {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto 15px auto;
}

.carrusel-contenedor {
    width: 100%;
    height: 40vw;
    max-height: 707px;
    min-height: 300px;
    border-radius: 18px;
    overflow: hidden;
    position: relative; 
}

.carrusel-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.carrusel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    transition: opacity 1s ease;
    transform: scale(1);
    visibility: hidden;
}

.carrusel-slide.activo {
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
    visibility: visible;
}

.carrusel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    border-radius: 18px;
    box-shadow: 0 6px 24px rgba(44, 92, 143, 0.16);
}

/* INDICADORES DEL CARRUSEL */
.carrusel-indicadores {
    position: relative;
    display: flex;
    gap: 16px;
    justify-content: center;
    padding: 20px;
    margin-top: -5px;
    background: transparent;
}

/* ========================================
   TEXTO HERO SOBRE EL CARRUSEL
   ======================================== */
.hero-contenido {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
}

.hero-texto-contenedor {
    max-width: 1200px;
    width: 100%;
    text-align: center;
    color: #ffffff;
    padding-top: 100px; /* Bajar más el contenido */
}

/* ========================================
   ANIMACIONES DE TEXTO HERO - ULTRA ELEGANTES Y SOFISTICADAS
   ======================================== */

/* ANIMACIÓN PARA EL TÍTULO - Efecto de aparición con blur, scale y resplandor */
@keyframes aparecer-texto-titulo {
    0% {
        opacity: 0;
        transform: translateY(60px) scale(0.85);
        filter: blur(15px) brightness(0.7);
        text-shadow: 0 0 0 rgba(255, 255, 255, 0);
    }
    40% {
        opacity: 0.5;
        filter: blur(8px) brightness(0.85);
        text-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
    }
    70% {
        opacity: 0.85;
        filter: blur(3px) brightness(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0) brightness(1);
        text-shadow: 
            2px 4px 12px rgba(0, 0, 0, 0.3),
            0 0 35px rgba(255, 255, 255, 0.25),
            0 0 60px rgba(255, 255, 255, 0.1);
    }
}

/* ANIMACIÓN PARA EL SUBTÍTULO - Efecto de desvanecimiento lateral elegante con brillo */
@keyframes aparecer-texto-subtitulo {
    0% {
        opacity: 0;
        transform: translateY(50px) translateX(-40px);
        filter: blur(12px) brightness(0.6);
        text-shadow: 0 0 0 rgba(255, 255, 255, 0);
    }
    50% {
        opacity: 0.6;
        filter: blur(6px) brightness(0.8);
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    }
    100% {
        opacity: 0.95;
        transform: translateY(0) translateX(0);
        filter: blur(0) brightness(1);
        text-shadow: 
            1px 2px 8px rgba(0, 0, 0, 0.3),
            0 0 20px rgba(255, 255, 255, 0.15);
    }
}

/* ANIMACIÓN PARA LOS BOTONES - Efecto de zoom con resplandor y rebote suave */
@keyframes aparecer-texto-botones {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.75);
        filter: blur(10px);
    }
    30% {
        opacity: 0.3;
        filter: blur(6px);
    }
    60% {
        opacity: 0.7;
        transform: translateY(-8px) scale(1.08);
        filter: blur(2px);
    }
    80% {
        transform: translateY(3px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* ANIMACIÓN DE PULSO SUTIL PARA EL TÍTULO DESTAQUE */
@keyframes pulso-destaque {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1) drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    }
    50% {
        transform: scale(1.03);
        filter: brightness(1.15) drop-shadow(0 0 25px rgba(255, 255, 255, 0.5));
    }
}

/* EFECTO DE RESPLANDOR PULSANTE PARA EL FONDO */
@keyframes resplandor-fondo {
    0%, 100% {
        box-shadow: inset 0 0 80px rgba(255, 255, 255, 0.05);
    }
    50% {
        box-shadow: inset 0 0 120px rgba(255, 255, 255, 0.12);
    }
}

/* ========================================
   EFECTO TYPEWRITER - TEXTO HERO
   ======================================== */

/* Cursor parpadeante */
.typewriter-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background-color: #ffffff;
    margin-left: 5px;
    animation: parpadeo-cursor 0.7s infinite;
    vertical-align: middle;
}

@keyframes parpadeo-cursor {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Ocultar cursor cuando termina de escribir */
.typewriter-cursor.oculto {
    opacity: 0;
    animation: none;
}

/* ========================================
   OCULTAR TEXTO HERO INICIALMENTE - PREVENIR FLASH
   ======================================== */
.hero-titulo,
.hero-titulo-destaque,
.hero-subtitulo {
    opacity: 0 !important;
}

.hero-titulo.typewriter-activo,
.hero-titulo-destaque.typewriter-activo,
.hero-subtitulo.typewriter-activo {
    opacity: 1 !important;
}

/* ========================================
   TÍTULO HERO CON TYPEWRITER
   ======================================== */
.hero-titulo {
    font-size: clamp(32px, 6vw, 64px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 
        2px 4px 12px rgba(0, 0, 0, 0.3),
        0 0 35px rgba(255, 255, 255, 0.25);
    letter-spacing: -1px;
    min-height: 1.2em;
}

/* MANTENER EL GRADIENTE ANIMADO ORIGINAL */
.hero-titulo-destaque {
    display: block;
    font-size: clamp(40px, 8vw, 80px);
    background: linear-gradient(45deg, #ffffff, #e8f4f8, #ffffff, #d0e8f5);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradiente-texto 4s ease infinite, pulso-destaque 3s ease-in-out infinite;
    font-weight: 900;
    margin-top: 10px;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
    min-height: 1.2em;
}

@keyframes gradiente-texto {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ANIMACIÓN DE PULSO SUTIL PARA EL TÍTULO DESTAQUE */
@keyframes pulso-destaque {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1) drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    }
    50% {
        transform: scale(1.03);
        filter: brightness(1.15) drop-shadow(0 0 25px rgba(255, 255, 255, 0.5));
    }
}

/* ========================================
   SUBTÍTULO HERO
   ======================================== */
.hero-subtitulo {
    font-size: clamp(16px, 2.5vw, 22px);
    line-height: 1.6;
    margin-bottom: 40px;
    font-weight: 300;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 
        1px 2px 8px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 255, 255, 0.15);
    letter-spacing: 0.5px;
    min-height: 3em;
}

/* ========================================
   BOTONES HERO
   ======================================== */
.hero-botones {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-botones.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 35px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.2),
        0 0 40px rgba(255, 255, 255, 0.1);
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.7s ease;
}

.hero-btn:hover::before {
    left: 100%;
}

.hero-btn-primario {
    background: transparent;
    color: #ffffff;
    border: 3px solid rgba(255, 255, 255, 0.8);
}

.hero-btn-primario:hover {
    transform: translateY(-5px) scale(1.05);
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
    box-shadow: 
        0 12px 40px rgba(255, 255, 255, 0.3),
        0 0 60px rgba(255, 255, 255, 0.2),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.hero-btn-secundario {
    background: transparent;
    color: #ffffff;
    border: 3px solid rgba(255, 255, 255, 0.8);
}

.hero-btn-secundario:hover {
    transform: translateY(-5px) scale(1.05);
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
    box-shadow: 
        0 12px 40px rgba(255, 255, 255, 0.3),
        0 0 60px rgba(255, 255, 255, 0.2),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.btn-icono {
    font-size: 24px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-btn:hover .btn-icono {
    transform: translateX(8px) scale(1.2);
}

/* ========================================
   RESPONSIVE HERO - TABLETS
   ======================================== */
@media screen and (max-width: 1024px) {
     body {
        padding-top: 110px;
    }

    .hero-texto-contenedor {
        padding-top: 70px;
    }

    .hero-titulo {
        font-size: clamp(22px, 4.5vw, 36px);
        margin-bottom: 10px;
    }
    
    .hero-titulo-destaque {
        font-size: clamp(30px, 6vw, 48px);
        margin-top: 6px;
    }

    .hero-subtitulo {
        font-size: clamp(13px, 2.5vw, 17px);
        line-height: 1.5;
        margin-bottom: 20px;
        padding: 0 20px;
    }

    .hero-botones {
        flex-direction: row;
        gap: 12px;
        justify-content: center;
    }

    .hero-btn {
        padding: 10px 22px;
        font-size: 13px;
        white-space: nowrap;
        min-width: 140px;
        max-width: 170px;
    }

    .btn-icono {
        font-size: 16px;
    }
    
    .typewriter-cursor {
        width: 2px;
    }

    
}

/* ========================================
   RESPONSIVE HERO - MÓVILES
   ======================================== */
@media screen and (max-width: 767px) {
    body {
        padding-top: 70px;
    }

    .hero-texto-contenedor {
        padding-top: 60px;
    }

    .hero-titulo {
        font-size: clamp(16px, 4vw, 20px);
        margin-bottom: 6px;
        line-height: 1.1;
    }
    
    .hero-titulo-destaque {
        font-size: clamp(22px, 5.5vw, 28px);
        margin-top: 4px;
    }

    .hero-subtitulo {
        font-size: clamp(10px, 2.5vw, 12px);
        line-height: 1.3;
        margin-bottom: 10px;
        padding: 0 8px;
    }

    .hero-botones {
        flex-direction: row;
        gap: 8px;
        justify-content: center;
        align-items: center;
    }

    .hero-btn {
        padding: 7px 12px;
        font-size: 10px;
        width: auto;
        min-width: 130px;
        max-width: 150px;
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
        white-space: nowrap;
    }
    
    .btn-icono {
        font-size: 14px;
    }
    
    .typewriter-cursor {
        width: 2px;
        height: 0.9em;
    }
}

/* ========================================
   RESPONSIVE HERO - MÓVILES PEQUEÑOS
   ======================================== */
@media screen and (max-width: 480px) {
    body {
        padding-top: 70px;
    }   

    .hero-texto-contenedor {
        padding-top: 50px;
    }

    .hero-titulo {
        font-size: clamp(14px, 3.5vw, 18px);
        margin-bottom: 5px;
    }
    
    .hero-titulo-destaque {
        font-size: clamp(20px, 5vw, 26px);
        margin-top: 3px;
    }

    .hero-subtitulo {
        font-size: clamp(9px, 2.2vw, 11px);
        line-height: 1.2;
        margin-bottom: 8px;
        padding: 0 6px;
    }

    .hero-botones {
        flex-direction: row;
        gap: 6px;
        justify-content: center;
        align-items: center;
    }

    .hero-btn {
        padding: 6px 10px;
        font-size: 9px;
        width: auto;
        min-width: 120px;
        max-width: 140px;
        white-space: nowrap;
    }

    .btn-icono {
        font-size: 12px;
    }
}

/* INDICADORES DEL CARRUSEL */
.carrusel-indicadores span {
    display: block;
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, #d9eaf0, #b8dae8);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 
        0 2px 8px rgba(46, 111, 163, 0.3),
        0 0 0 3px rgba(46, 111, 163, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #ffffff;
    position: relative;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.carrusel-indicadores span::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 120%;
    height: 120%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(107, 168, 50, 0.3), transparent);
    transition: transform 0.4s ease;
}

.carrusel-indicadores span:hover {
    transform: scale(1.3) translateY(-3px);
    box-shadow: 
        0 4px 15px rgba(46, 111, 163, 0.5),
        0 0 0 5px rgba(107, 168, 50, 0.2),
        0 0 20px rgba(107, 168, 50, 0.3);
    background: linear-gradient(135deg, #6ba832, #8bc653);
}

.carrusel-indicadores span:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.carrusel-indicadores .activo {
    background: linear-gradient(135deg, #2e6fa3, #4a8bc2);
    border: 2px solid #ffffff;
    transform: scale(1.4);
    box-shadow: 
        0 4px 20px rgba(46, 111, 163, 0.6),
        0 0 0 4px rgba(46, 111, 163, 0.2),
        0 0 25px rgba(46, 111, 163, 0.4),
        inset 0 2px 8px rgba(255, 255, 255, 0.3);
    animation: pulso-indicador 2s ease-in-out infinite;
}

@keyframes pulso-indicador {
    0%, 100% {
        box-shadow: 
            0 4px 20px rgba(46, 111, 163, 0.6),
            0 0 0 4px rgba(46, 111, 163, 0.2),
            0 0 25px rgba(46, 111, 163, 0.4),
            inset 0 2px 8px rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 
            0 6px 25px rgba(46, 111, 163, 0.8),
            0 0 0 6px rgba(46, 111, 163, 0.3),
            0 0 35px rgba(46, 111, 163, 0.6),
            inset 0 2px 8px rgba(255, 255, 255, 0.4);
    }
}

/* Resaltado de palabra */
.texto-resaltado {
    color: #2e6fa3;
    position: relative;
    z-index: 1;
}

.texto-resaltado::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, #6ba832, #8bc653);
    opacity: 0.30;
    border-radius: 4px;
    z-index: -1;
}

/* Ajuste del resaltado en móviles */
@media screen and (max-width: 767px) {
    .texto-resaltado::after {
        height: 4px;
        bottom: 2px;
    }
}

/*TARJETA DE VALORES*/
.tarjeta-valor {
    background: #ffffff;
    border-radius: 24px;
    padding: 45px 35px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 10px 40px rgba(46, 111, 163, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0;
    transform: translateY(30px);
    animation: tarjeta-aparecer 0.6s ease forwards;
}

/* Animación escalonada para cada tarjeta */
.tarjeta-valor:nth-child(1) { animation-delay: 0.1s; }
.tarjeta-valor:nth-child(2) { animation-delay: 0.2s; }
.tarjeta-valor:nth-child(3) { animation-delay: 0.3s; }
.tarjeta-valor:nth-child(4) { animation-delay: 0.4s; }
.tarjeta-valor:nth-child(5) { animation-delay: 0.5s; }
.tarjeta-valor:nth-child(6) { animation-delay: 0.6s; }

/* Efecto de resplandor en hover */
.tarjeta-valor::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, currentColor, transparent);
    border-radius: 24px;
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: -1;
}

.tarjeta-valor::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, currentColor 0%, transparent 70%);
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: width 0.8s ease, height 0.8s ease, opacity 0.6s ease;
}

.tarjeta-valor:hover::before {
    opacity: 0.1;
}

.tarjeta-valor:hover::after {
    width: 600px;
    height: 600px;
    opacity: 0.05;
}

/* Estado hover general de la tarjeta */
.tarjeta-valor:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 25px 60px rgba(46, 111, 163, 0.15),
        0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: currentColor;
}

/*COLORES ESPECIFICOS*/
.tarjeta-valor[data-color="azul"] {
    color: #2e6fa3;
}

.tarjeta-valor[data-color="rojo"] {
    color: #d32f2f;
}

.tarjeta-valor[data-color="dorado"] {
    color: #f57c00;
}

.tarjeta-valor[data-color="verde"] {
    color: #6ba832;
}

.tarjeta-valor[data-color="morado"] {
    color: #7b1fa2;
}

.tarjeta-valor[data-color="naranja"] {
    color: #ef6c00;
}

/* RESPONSIVE VALORES - TABLETS */
@media screen and (max-width: 1024px) {
    .tarjeta-valor {
        padding: 32px 25px;
    }
}

/* ========================================
   RESPONSIVE VALORES - MÓVILES
   ======================================== */
@media screen and (max-width: 767px) {
    .tarjeta-valor {
        padding: 30px 22px;
        border-radius: 18px;
    }

    .tarjeta-valor:hover {
        transform: translateY(-6px) scale(1.01);
    }
}

/* ========================================
   RESPONSIVE VALORES - MÓVILES PEQUEÑOS
   ======================================== */
@media screen and (max-width: 480px) {

    .tarjeta-valor {
        padding: 25px 18px;
        border-radius: 15px;
    }
}

/*LISTA DE CARACTERISTICAS*/
.lista-caracteristicas {
    list-style: none;
    padding: 0;
    margin: 0 0 35px 0;
    flex-grow: 1;
}

.caracteristica-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: clamp(14px, 2vw, 15px);
    color: #4a5568;
    transition: all 0.3s ease;
    position: relative;
}

.caracteristica-item::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, currentColor, transparent);
    transition: width 0.4s ease;
}

.contenido-servicio:hover .caracteristica-item::before {
    width: 100%;
}

.caracteristica-item:hover {
    transform: translateX(5px);
    color: #2e6fa3;
}

/*BOTON DE SERVICIO*/
.boton-servicio {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 30px;
    background: linear-gradient(135deg, #2e6fa3, #4a8bc2);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(46, 111, 163, 0.3);
    margin-top: auto;
}

.boton-servicio::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.boton-servicio:hover::before {
    left: 100%;
}

.boton-servicio:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(46, 111, 163, 0.4);
}



.texto-boton {
    position: relative;
    z-index: 1;
}

.icono-flecha {
    width: 20px;
    height: 20px;
    transition: transform 0.4s ease;
}

.boton-servicio:hover .icono-flecha {
    transform: translateX(5px);
}

/*BADGE EXCLUSIVO*/
.badge-exclusivo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 25px;
    background: linear-gradient(135deg, #f57c00, #ff9800);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(245, 124, 0, 0.3);
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.badge-exclusivo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.contenido-servicio:hover .badge-exclusivo::before {
    width: 300px;
    height: 300px;
}

.badge-exclusivo svg {
    width: 24px;
    height: 24px;
    animation: rotar-estrella 3s linear infinite;
}

@keyframes rotar-estrella {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================
   RESPONSIVE SERVICIOS - TABLETS
   ======================================== */
@media screen and (max-width: 1024px) {
    .contenido-servicio {
        padding: 38px 30px;
    }

    .icono-servicio-contenedor {
        width: 85px;
        height: 85px;
        margin-bottom: 28px;
    }

    .icono-servicio {
        width: 45px;
        height: 45px;
    }
}

/* ========================================
   RESPONSIVE SERVICIOS - MÓVILES
   ======================================== */
@media screen and (max-width: 767px) {
    .contenido-servicio {
        padding: 32px 24px;
        border-radius: 20px;
    }

    .icono-servicio-contenedor {
        width: 75px;
        height: 75px;
        margin-bottom: 22px;
    }

    .icono-servicio {
        width: 40px;
        height: 40px;
    }

    .lista-caracteristicas {
        margin-bottom: 28px;
    }

    .caracteristica-item {
        padding: 10px 0;
    }

    .boton-servicio {
        padding: 14px 25px;
        font-size: 15px;
    }

    .badge-exclusivo {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* ========================================
   RESPONSIVE SERVICIOS - MÓVILES PEQUEÑOS
   ======================================== */
@media screen and (max-width: 480px) {
    .contenido-servicio {
        padding: 28px 20px;
        border-radius: 18px;
    }

    .icono-servicio-contenedor {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }

    .icono-servicio {
        width: 36px;
        height: 36px;
    }

    .boton-servicio {
        padding: 12px 22px;
        font-size: 14px;
    }
}

/* ========================================
   RESPONSIVE - TABLETS (768px - 1024px)
   ======================================== */
@media screen and (max-width: 1024px) {
    .encabezado-principal {
        height: 110px;
    }

    .navegacion-contenedor {
        padding: 0 20px;
    }

    .imagen-logo {
        height: 100px;
    }

    .menu-navegacion {
        position: fixed;
        top: 110px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 110px);
        background-color: #ffffff;
        flex-direction: column;
        gap: 0;
        padding: 30px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        transition: left 0.4s ease;
        z-index: 999;
    }

    .menu-navegacion.menu-abierto {
        left: 0;
    }

    .item-menu {
        width: 100%;
    }

    .enlace-menu {
        width: 100%;
        padding: 15px 20px;
        font-size: 18px;
    }

    .boton-menu-movil {
        display: flex;
    }

    .boton-menu-movil.activo .linea-hamburguesa:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .boton-menu-movil.activo .linea-hamburguesa:nth-child(2) {
        opacity: 0;
    }

    .boton-menu-movil.activo .linea-hamburguesa:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }

    .texto-aviso {
        font-size: 14px;
        margin-right: 40px;
    }

    .banner-avisos {
        padding: 6px 0;
    }

    .carrusel-wrapper {
        margin-bottom: 12px;
        background: transparent !important;
    }

    .carrusel-contenedor {
        border-radius: 12px;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        background: transparent !important;
    }

    .carrusel-slider {
        height: auto !important;
        background: transparent !important;
    }

    .carrusel-slide {
        position: relative !important;
        height: auto !important;
        display: block !important;
        background: transparent !important;
    }

    .carrusel-slide.activo {
        display: block !important;
    }
    
    .carrusel-slide:not(.activo) {
        display: none !important;
    }

    .carrusel-slide img {
        border-radius: 12px;
        object-fit: cover !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        max-height: none !important;
        background: transparent !important;
    }

    .hero-contenido {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
    }

    .carrusel-indicadores {
        gap: 14px;
        padding: 18px 15px;
        margin-top: -3px;
    }

    .carrusel-indicadores span {
        width: 12px;
        height: 12px;
    }

    .contenido-tarjeta-lider {
        flex-direction: column;
        text-align: center;
    }

    .contenedor-etiquetas-lider {
        justify-content: center;
    }
}

/* ========================================
   RESPONSIVE - MÓVILES PEQUEÑOS (≤480px)
   ======================================== */
@media screen and (max-width: 480px) {
    .encabezado-principal {
        height: 70px;
    }

    .navegacion-contenedor {
        padding: 0 10px;
    }

    .imagen-logo {
        height: 60px;
    }

    .menu-navegacion {
        top: 70px;
        height: calc(100vh - 70px);
        padding: 15px;
    }

    .enlace-menu {
        font-size: 15px;
        padding: 10px 12px;
    }

    .boton-menu-movil {
        padding: 5px;
    }

    .linea-hamburguesa {
        width: 25px;
        height: 2.5px;
    }

    .texto-aviso {
        font-size: 12px;
        margin-right: 25px;
    }

    .separador-aviso {
        margin: 0 12px;
        width: 4px;
        height: 4px;
    }

    .banner-avisos {
        padding: 4px 0;
    }

    .contenido-tarjeta-lider {
        border-radius: 15px;
    }

    .indicadores-liderazgo {
        gap: 10px;
        margin-top: 22px;
    }

    .indicador-punto {
        width: 11px;
        height: 11px;
    }

    .indicador-punto.activo {
        transform: scale(1.3);
    }
}

/* ========================================
   ANIMACIONES REDUCIDAS PARA ACCESIBILIDAD
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   MEJORAS PARA TOUCH DEVICES
   ======================================== */
@media (hover: none) and (pointer: coarse) {
    .enlace-menu:hover,
    .contenido-tarjeta-lider:hover,
    .etiqueta-lider:hover,
    .boton-navegacion-lider:hover,
    .indicador-punto:hover,
    .tarjeta-valor:hover {
        transform: none;
    }
    
    .enlace-menu:active {
        background-color: #e8f4f8;
        color: #2e6fa3;
    }
    
    .tarjeta-valor:active {
        transform: scale(0.98);
        transition-duration: 0.1s;
    }
}

/* ========================================
   FOOTER ULTRA ELEGANTE - COSEVICA
   ======================================== */

.footer-principal {
    background: linear-gradient(135deg, #1a4d7a 0%, #2e6fa3 50%, #1a4d7a 100%);
    position: relative;
    overflow: hidden;
    margin-top: 100px;
}

/* ========================================
   FONDO ANIMADO CON PARTÍCULAS
   ======================================== */
.footer-fondo-animado {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    opacity: 0.15;
}

.particula-flotante {
    position: absolute;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
    border-radius: 50%;
    animation: flotar-particula-footer 20s ease-in-out infinite;
}

.particula-flotante:nth-child(1) {
    width: 150px;
    height: 150px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
    animation-duration: 18s;
}

.particula-flotante:nth-child(2) {
    width: 100px;
    height: 100px;
    top: 60%;
    left: 80%;
    animation-delay: 3s;
    animation-duration: 22s;
}

.particula-flotante:nth-child(3) {
    width: 120px;
    height: 120px;
    top: 40%;
    left: 60%;
    animation-delay: 6s;
    animation-duration: 20s;
}

.particula-flotante:nth-child(4) {
    width: 80px;
    height: 80px;
    top: 80%;
    left: 20%;
    animation-delay: 9s;
    animation-duration: 19s;
}

.particula-flotante:nth-child(5) {
    width: 110px;
    height: 110px;
    top: 20%;
    left: 90%;
    animation-delay: 12s;
    animation-duration: 21s;
}

@keyframes flotar-particula-footer {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translate(30px, -50px) scale(1.1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-30px, -80px) scale(0.9);
        opacity: 0.4;
    }
    75% {
        transform: translate(20px, -40px) scale(1.05);
        opacity: 0.6;
    }
}

/* ========================================
   CONTENEDOR PRINCIPAL
   ======================================== */
.footer-contenedor {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* ========================================
   GRID PRINCIPAL - COLUMNAS
   ======================================== */
.footer-principal-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 60px;
    padding: 80px 20px 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-columna {
    animation: aparecer-columna 0.8s ease forwards;
    opacity: 0;
}

.footer-columna:nth-child(1) { animation-delay: 0.1s; }
.footer-columna:nth-child(2) { animation-delay: 0.2s; }
.footer-columna:nth-child(3) { animation-delay: 0.3s; }
.footer-columna:nth-child(4) { animation-delay: 0.4s; }

@keyframes aparecer-columna {
    to {
        opacity: 1;
        transform: translateY(0);
    }
    from {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* ========================================
   COLUMNA LOGO Y DESCRIPCIÓN
   ======================================== */
.footer-logo-contenedor {
    margin-bottom: 25px;
}

.footer-logo {
    height: 90px;
    width: auto;
    filter: brightness(0) invert(1) drop-shadow(0 4px 15px rgba(255, 255, 255, 0.3));
    transition: transform 0.4s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
}

.footer-descripcion {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 30px;
}

/* ========================================
   REDES SOCIALES
   ======================================== */
.footer-redes-sociales {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.red-social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.red-social-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #6ba832, #8bc653);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.red-social-btn:hover::before {
    width: 100%;
    height: 100%;
}

.red-social-btn:hover {
    transform: translateY(-5px) scale(1.1);
    border-color: #6ba832;
    box-shadow: 0 10px 30px rgba(107, 168, 50, 0.4);
}

.red-social-btn svg {
    width: 22px;
    height: 22px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.red-social-btn:hover svg {
    transform: scale(1.2) rotate(360deg);
}

/* ========================================
   TÍTULOS DE COLUMNAS
   ======================================== */
.footer-columna-titulo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.footer-columna-titulo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #6ba832, transparent);
    border-radius: 2px;
}

.titulo-icono {
    width: 24px;
    height: 24px;
    color: #6ba832;
    filter: drop-shadow(0 2px 8px rgba(107, 168, 50, 0.4));
}

/* ========================================
   LISTAS DE ENLACES
   ======================================== */
.footer-lista {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-lista li {
    margin-bottom: 12px;
}

.footer-lista a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 20px;
}

.footer-lista a::before {
    content: '→';
    position: absolute;
    left: 0;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: #6ba832;
    font-weight: 700;
}

.footer-lista a:hover {
    color: #ffffff;
    padding-left: 25px;
    transform: translateX(5px);
}

.footer-lista a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* ========================================
   LISTA DE CONTACTO
   ======================================== */
.footer-lista-contacto {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-lista-contacto li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.6;
}

.footer-lista-contacto svg {
    width: 20px;
    height: 20px;
    color: #6ba832;
    flex-shrink: 0;
    margin-top: 2px;
    filter: drop-shadow(0 2px 6px rgba(107, 168, 50, 0.3));
}

.footer-lista-contacto span {
    flex: 1;
}

/* ========================================
   SECCIÓN INFERIOR - COPYRIGHT
   ======================================== */
.footer-inferior {
    padding: 30px 20px;
    background: rgba(0, 0, 0, 0.2);
}

.footer-inferior-contenido {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.copyright {
    flex: 1;
}

.copyright p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
}

.copyright strong {
    color: #ffffff;
    font-weight: 700;
}

.copyright-sub {
    font-size: 13px;
    opacity: 0.6;
    margin-top: 5px !important;
}

.footer-enlaces-legales {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-enlaces-legales a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    position: relative;
}

.footer-enlaces-legales a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: #6ba832;
    transition: width 0.3s ease;
}

.footer-enlaces-legales a:hover {
    color: #ffffff;
}

.footer-enlaces-legales a:hover::after {
    width: 100%;
}

.footer-enlaces-legales .separador {
    color: rgba(255, 255, 255, 0.3);
    font-size: 13px;
}

/* ========================================
   BOTÓN SCROLL TO TOP
   ======================================== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid #2e6fa3;
    color: #2e6fa3;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top svg {
    width: 28px;
    height: 28px;
    transition: transform 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .scroll-to-top:hover {
        transform: translateY(-1px) scale(1.1);
        background: linear-gradient(135deg, #2e6fa3);
        color: #ffffff;
    }

    .scroll-to-top:hover svg {
        transform: translateY(-3px);
    }
}

/* En móvil/táctil: solo cambia color mientras se mantiene presionado */
.scroll-to-top:active {
    transform: translateY(-1px) scale(1.05);
    background: linear-gradient(135deg, #2e6fa3);
    color: #ffffff;
}

.scroll-to-top:active svg {
    transform: translateY(-3px);
}

/* ========================================
   RESPONSIVE - TABLETS
   ======================================== */
@media screen and (max-width: 1024px) {
    .footer-principal-grid {
        grid-template-columns: 1fr 1fr;
        gap: 45px;
        padding: 60px 20px 45px;
    }

    .footer-columna-logo {
        grid-column: 1 / -1;
        text-align: center;
    }

    .footer-logo-contenedor {
        display: flex;
        justify-content: center;
    }

    .footer-redes-sociales {
        justify-content: center;
    }

    .newsletter-titulo {
        font-size: clamp(24px, 4vw, 32px);
    }

    .newsletter-subtitulo {
        font-size: clamp(14px, 2vw, 16px);
    }

    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}

/* ========================================
   RESPONSIVE - MÓVILES
   ======================================== */
@media screen and (max-width: 767px) {

    .footer-principal-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 50px 15px 40px;
    }

    .footer-columna {
        text-align: center;
    }

    .footer-descripcion {
        text-align: center;
    }

    .footer-lista a {
        justify-content: center;
    }

    .footer-lista-contacto li {
        justify-content: center;
        text-align: left;
    }

    .footer-columna-titulo {
        justify-content: center;
    }

    .footer-columna-titulo::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-inferior-contenido {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .copyright {
        text-align: center;
    }

    .footer-enlaces-legales {
        justify-content: center;
        font-size: 12px;
    }

    .scroll-to-top {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }

    .scroll-to-top svg {
        width: 22px;
        height: 22px;
    }
}

/*RESPONSIVE - MÓVILES PEQUEÑOS*/
@media screen and (max-width: 480px) {
    .footer-principal-grid {
        padding: 40px 10px 30px;
        gap: 35px;
    }

    .footer-logo {
        height: 60px;
    }

    .red-social-btn {
        width: 40px;
        height: 40px;
    }

    .red-social-btn svg {
        width: 18px;
        height: 18px;
    }

    .footer-inferior {
        padding: 25px 15px;
    }

    .copyright p {
        font-size: 13px;
    }

    .footer-enlaces-legales {
        flex-direction: column;
        gap: 10px;
    }

    .footer-enlaces-legales .separador {
        display: none;
    }
}

/*MEJORAS DE ACCESIBILIDAD*/
@media (prefers-reduced-motion: reduce) {
    .footer-principal *,
    .footer-principal *::before,
    .footer-principal *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/*BLOQUEO DE SCROLL CUANDO MENÚ ESTÁ ABIERTO*/
body.menu-abierto {
    overflow: hidden;
    height: 100vh;
    touch-action: none;
}

/* Capa de fondo oscuro que bloquea interacción */
.overlay-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.overlay-menu.activo {
    opacity: 1;
    visibility: visible;
}

/* Asegurar que el menú cubra toda la pantalla */
@media screen and (max-width: 1024px) {
    .menu-navegacion.menu-abierto {
        position: fixed;
        top: 110px;
        left: 0;
        width: 100%;
        height: calc(100vh - 110px);
        background-color: #ffffff;
        overflow-y: auto;
        z-index: 999;
    }
}

@media screen and (max-width: 480px) {
    .menu-navegacion.menu-abierto {
        top: 70px;
        height: calc(100vh - 70px);
    }
}

/* ========================================
   ANIMACIONES DE SCROLL ULTRA ELEGANTES V2
   EFECTOS PREMIUM PARA COSEVICA
   ======================================== */

/* ========================================
   VARIABLES DE ANIMACIÓN
   ======================================== */
:root {
    --animacion-duracion: 1s;
    --animacion-delay-base: 0.1s;
    --easing-elastico: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --easing-suave: cubic-bezier(0.16, 1, 0.3, 1);
    --easing-dramatico: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ========================================
   ESTADOS INICIALES - ELEMENTOS OCULTOS
   ======================================== */
.animacion-scroll {
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s var(--easing-suave);
}

.animacion-scroll.visible {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   EFECTO DE REVELACIÓN CON CLIP-PATH
   ======================================== */
.revelar-clip {
    clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
    transition: clip-path 1.2s var(--easing-suave), opacity 0.8s ease;
}

.revelar-clip.visible {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

/* Título con efecto de brillo recorriendo */

/* Tarjetas de valores - Efecto de entrada 3D con rebote */
.tarjeta-valor.animacion-scroll {
    opacity: 0;
    transform: perspective(1000px) rotateX(45deg) translateY(100px) scale(0.7);
    transform-origin: center bottom;
    filter: blur(15px);
    transform-style: preserve-3d;
}

.tarjeta-valor.animacion-scroll.visible {
    opacity: 1;
    transform: perspective(1000px) rotateX(0deg) translateY(0) scale(1);
    filter: blur(0);
    transition: all 1s var(--easing-dramatico);
}

/* Delays ultra escalonados para efecto cascada */
.tarjeta-valor.animacion-scroll:nth-child(1) { transition-delay: 0.05s; }
.tarjeta-valor.animacion-scroll:nth-child(2) { transition-delay: 0.15s; }
.tarjeta-valor.animacion-scroll:nth-child(3) { transition-delay: 0.25s; }
.tarjeta-valor.animacion-scroll:nth-child(4) { transition-delay: 0.35s; }
.tarjeta-valor.animacion-scroll:nth-child(5) { transition-delay: 0.45s; }
.tarjeta-valor.animacion-scroll:nth-child(6) { transition-delay: 0.55s; }

/* Efecto de brillo que recorre la tarjeta */
.tarjeta-valor::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 150%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.3),
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: skewX(-20deg);
    z-index: 10;
    pointer-events: none;
}

.tarjeta-valor.animacion-scroll.visible::before {
    animation: brillo-recorre 1.5s ease forwards;
    animation-delay: inherit;
}

@keyframes brillo-recorre {
    0% { left: -150%; }
    100% { left: 150%; }
}

@keyframes onda-expansiva {
    0% {
        transform: scale(0);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.3;
    }
    100% {
        transform: scale(1);
        opacity: 0.12;
    }
}

/* ========================================
   SECCIÓN TESTIMONIOS - EFECTOS MÁGICOS
   ======================================== */

/* Encabezado con efecto de zoom dramático */
.encabezado-testimonios.animacion-scroll {
    opacity: 0;
    transform: scale(0.5) translateY(100px);
    filter: blur(30px);
}

.encabezado-testimonios.animacion-scroll.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
    transition: all 1.4s var(--easing-suave);
}

/* Efecto de brillo en título de testimonios */
.encabezado-testimonios.visible .titulo-testimonios {
    animation: titulo-brilla 2s ease forwards;
    animation-delay: 0.5s;
}

@keyframes titulo-brilla {
    0% {
        text-shadow: 0 0 0 rgba(46, 111, 163, 0);
    }
    50% {
        text-shadow: 0 0 30px rgba(46, 111, 163, 0.5), 0 0 60px rgba(107, 168, 50, 0.3);
    }
    100% {
        text-shadow: 0 0 0 rgba(46, 111, 163, 0);
    }
}

/* Controles con efecto de deslizamiento */
.controles-testimonios.animacion-scroll {
    opacity: 0;
    transform: translateX(80px) scale(0.8);
}

.controles-testimonios.animacion-scroll.visible {
    opacity: 1;
    transform: translateX(0) scale(1);
    transition: all 0.9s var(--easing-dramatico);
    transition-delay: 0.4s;
}

/* Botones de navegación con efecto de rebote */
.controles-testimonios.animacion-scroll.visible .boton-nav-testimonio {
    animation: boton-rebota 0.6s var(--easing-elastico) forwards;
}

.controles-testimonios.animacion-scroll.visible .boton-prev-testimonio {
    animation-delay: 0.5s;
}

.controles-testimonios.animacion-scroll.visible .boton-next-testimonio {
    animation-delay: 0.6s;
}

@keyframes boton-rebota {
    0% {
        transform: scale(0);
    }
    60% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Grid wrapper con efecto de cortina */
.grid-testimonios-wrapper.animacion-scroll {
    opacity: 0;
    transform: translateY(50px);
}

.grid-testimonios-wrapper.animacion-scroll.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s var(--easing-suave);
    transition-delay: 0.2s;
}

/* IMPORTANTE: Asegurar que las tarjetas dentro del grid sean visibles */
.grid-testimonios-wrapper.animacion-scroll .tarjeta-testimonio {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    filter: none !important;
}

/* Tarjetas de testimonios con efecto de carta volteándose */
.tarjeta-testimonio.animacion-independiente {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    filter: blur(5px);
}

.tarjeta-testimonio.animacion-independiente.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
    transition: all 0.8s var(--easing-dramatico);
}

/* Las tarjetas dentro del grid de testimonios NO deben tener animación individual */
.grid-testimonios .tarjeta-testimonio {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    filter: none !important;
    animation: ninguna !important;
}

/* Delays escalonados con efecto dominó */
.tarjeta-testimonio.animacion-scroll:nth-child(1) { transition-delay: 0.1s; }
.tarjeta-testimonio.animacion-scroll:nth-child(2) { transition-delay: 0.2s; }
.tarjeta-testimonio.animacion-scroll:nth-child(3) { transition-delay: 0.3s; }
.tarjeta-testimonio.animacion-scroll:nth-child(4) { transition-delay: 0.4s; }
.tarjeta-testimonio.animacion-scroll:nth-child(5) { transition-delay: 0.5s; }

/* Foto de testimonio con efecto de portal */
.tarjeta-testimonio.animacion-scroll .foto-testimonio-contenedor {
    transform: scale(0) rotate(-180deg);
    opacity: 0;
}

.tarjeta-testimonio.animacion-scroll.visible .foto-testimonio-contenedor {
    animation: foto-portal 0.9s var(--easing-elastico) forwards;
    animation-delay: inherit;
}

@keyframes foto-portal {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(10deg);
        opacity: 1;
    }
    70% {
        transform: scale(0.95) rotate(-5deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* Anillo animado con efecto de aparición */
.tarjeta-testimonio.animacion-scroll.visible .anillo-animado {
    animation: anillo-aparece 0.5s ease forwards, rotar-anillo 2s linear infinite;
    animation-delay: 0.8s, 1.3s;
    opacity: 0;
}

@keyframes anillo-aparece {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Nombre con efecto de escritura */
.tarjeta-testimonio.animacion-scroll .nombre-testimonio {
    opacity: 0;
    transform: translateY(15px);
}

.tarjeta-testimonio.animacion-scroll.visible .nombre-testimonio {
    animation: texto-aparece 0.6s ease forwards;
    animation-delay: 0.4s;
}

/* Cargo con fade elegante */
.tarjeta-testimonio.animacion-scroll .cargo-testimonio {
    opacity: 0;
    transform: translateY(10px);
}

.tarjeta-testimonio.animacion-scroll.visible .cargo-testimonio {
    animation: texto-aparece 0.6s ease forwards;
    animation-delay: 0.5s;
}

/* Texto del testimonio con revelación gradual */
.tarjeta-testimonio.animacion-scroll .texto-testimonio {
    opacity: 0;
    transform: translateY(20px);
}

.tarjeta-testimonio.animacion-scroll.visible .texto-testimonio {
    animation: texto-aparece 0.7s ease forwards;
    animation-delay: 0.6s;
}

@keyframes texto-aparece {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estrellas con efecto de constelación */
.tarjeta-testimonio.animacion-scroll .estrellas-rating {
    perspective: 500px;
}

.tarjeta-testimonio.animacion-scroll .estrella {
    opacity: 0;
    transform: scale(0) rotateY(180deg);
}

.tarjeta-testimonio.animacion-scroll.visible .estrella:nth-child(1) {
    animation: estrella-constelacion 0.5s var(--easing-elastico) forwards;
    animation-delay: 0.7s;
}
.tarjeta-testimonio.animacion-scroll.visible .estrella:nth-child(2) {
    animation: estrella-constelacion 0.5s var(--easing-elastico) forwards;
    animation-delay: 0.8s;
}
.tarjeta-testimonio.animacion-scroll.visible .estrella:nth-child(3) {
    animation: estrella-constelacion 0.5s var(--easing-elastico) forwards;
    animation-delay: 0.9s;
}
.tarjeta-testimonio.animacion-scroll.visible .estrella:nth-child(4) {
    animation: estrella-constelacion 0.5s var(--easing-elastico) forwards;
    animation-delay: 1.0s;
}
.tarjeta-testimonio.animacion-scroll.visible .estrella:nth-child(5) {
    animation: estrella-constelacion 0.5s var(--easing-elastico) forwards;
    animation-delay: 1.1s;
}

@keyframes estrella-constelacion {
    0% {
        opacity: 0;
        transform: scale(0) rotateY(180deg);
        filter: brightness(0);
    }
    50% {
        transform: scale(1.5) rotateY(90deg);
        filter: brightness(2);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotateY(0deg);
        filter: brightness(1);
    }
}

/*EFECTO DE SEGUIMIENTO DEL MOUSE*/
.cursor-trail {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(46, 111, 163, 0.3), transparent);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, opacity 0.3s ease;
    opacity: 0;
}

.cursor-trail.visible {
    opacity: 1;
}

/*EFECTO DE NÚMERO CONTADOR ANIMADO*/
.contador-animado {
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

.contador-animado.animando {
    animation: contador-pulso 0.3s ease;
}

@keyframes contador-pulso {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.grid-testimonios-wrapper .grid-testimonios .tarjeta-testimonio {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    filter: none !important;
    clip-path: none !important;
}

/* Solo animar el contenedor, no las tarjetas individuales */
.grid-testimonios-wrapper.visible .grid-testimonios {
    opacity: 1;
}

@keyframes testimonios-aparecen {
    0% {
        opacity: 0.5;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mantener elementos internos de tarjetas visibles */
.titulo-testimonios,
.titulo-nosotros,
.titulo-historia,
.titulo-mision,
.titulo-vision,
.titulo-equipo,
.titulo-liderazgo,
.titulo-socio,
.titulo-beneficios,
.titulo-requisitos,
.titulo-formulario,
.titulo-noticias,
.titulo-contacto,
.titulo-ubicacion,
.titulo-principal,
.titulo-seccion,
[class*="titulo-"] {
    transition: text-shadow 0.4s ease, transform 0.3s ease;
    cursor: default;
}
.titulo-testimonios:hover,
.titulo-nosotros:hover,
.titulo-historia:hover,
.titulo-mision:hover,
.titulo-vision:hover,
.titulo-equipo:hover,
.titulo-liderazgo:hover,
.titulo-socio:hover,
.titulo-beneficios:hover,
.titulo-requisitos:hover,
.titulo-formulario:hover,
.titulo-noticias:hover,
.titulo-contacto:hover,
.titulo-ubicacion:hover,
.titulo-principal:hover,
.titulo-seccion:hover,
[class*="titulo-"]:hover {
    text-shadow: 
        0 0 20px rgba(46, 111, 163, 0.5), 
        0 0 40px rgba(107, 168, 50, 0.3),
        0 0 60px rgba(46, 111, 163, 0.2) !important;
    transform: scale(1.02);
}

/* Efecto especial para el texto resaltado dentro de títulos */
[class*="titulo-"]:hover .texto-resaltado {
    text-shadow: 
        0 0 25px rgba(46, 111, 163, 0.6), 
        0 0 50px rgba(107, 168, 50, 0.4) !important;
}

/*RESPONSIVE */
@media screen and (max-width: 1024px) {
    .tarjeta-valor.animacion-scroll,
    .tarjeta-testimonio.animacion-scroll {
        transform: translateY(60px) scale(0.9);
        filter: blur(8px);
    }
    
    .tarjeta-valor.animacion-scroll.visible,
    .tarjeta-testimonio.animacion-scroll.visible {
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@media screen and (max-width: 767px) {
    .tarjeta-valor.animacion-scroll,
    .tarjeta-testimonio.animacion-scroll {
        transform: translateY(40px) scale(0.95);
        filter: blur(5px);
    }
    
    .grid-testimonios-wrapper.animacion-scroll {
        clip-path: none;
        transform: translateY(30px);
    }
    
    .grid-testimonios-wrapper.animacion-scroll.visible {
        transform: translateY(0);
    }
}

/* ACCESIBILIDAD - MOVIMIENTO REDUCIDO */
@media (prefers-reduced-motion: reduce) {
    .animacion-scroll,
    .animacion-scroll * {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        filter: none !important;
        clip-path: none !important;
        transition: none !important;
        animation: none !important;
    }
    
    .cursor-trail {
        display: none !important;
    }
}

/* ========================================
   MODAL COMUNICADO FLOTANTE
   ======================================== */
.modal-comunicado {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal-comunicado.activo {
    opacity: 1;
    visibility: visible;
}

.modal-comunicado-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-comunicado-contenido {
    position: relative;
    max-width: min(700px, 90vw);
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.8) translateY(30px);
    transition: transform 0.4s ease;
    display: flex;
}

.modal-comunicado.activo .modal-comunicado-contenido {
    transform: scale(1) translateY(0);
}

.modal-comunicado-contenido img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

.modal-comunicado-cerrar {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease;
    z-index: 1;
    line-height: 1;
}

.modal-comunicado-cerrar:hover {
    background: #eb0303;
    transform: scale(1.1);
}

@media (max-width: 767px) {
    .modal-comunicado-contenido {
        max-width: 95vw;
        max-height: 90vh;
        border-radius: 12px;
    }

    .modal-comunicado-contenido img {
        max-height: 90vh;
    }

    .modal-comunicado-cerrar {
        width: 35px;
        height: 35px;
        font-size: 24px;
        top: 8px;
        right: 8px;
    }
}

/* TRANSICIÓN DE PÁGINA - EFECTO TELÓN COSEVICA */

#telon-transicion {
    position: fixed;
    inset: 0;
    z-index: 99999;
    pointer-events: none;
    overflow: hidden;
}

/* UN SOLO PANEL - arriba hacia abajo */
.telon-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    will-change: transform;
    transform: translateY(-100%);
    transition: transform 0.6s cubic-bezier(0.76, 0, 0.24, 1);

    background:
        radial-gradient(ellipse at 25% 35%, rgba(46, 111, 163, 0.05) 0%, transparent 55%),
        radial-gradient(ellipse at 75% 70%, rgba(107, 168, 50, 0.04) 0%, transparent 55%),
        linear-gradient(170deg, #fafcfe 0%, #f5f9fc 50%, #f0f7fa 100%);
}

/* CERRANDO baja y cubre la pantalla */
#telon-transicion.cerrando .telon-panel,
#telon-transicion.cerrado  .telon-panel {
    transform: translateY(0);
}

/* ABRIENDO sube y sale hacia arriba */
#telon-transicion.abriendo .telon-panel {
    transform: translateY(-100%);
    transition: transform 0.58s cubic-bezier(0.76, 0, 0.24, 1);
}

/* Línea decorativa en el borde inferior */
.telon-panel::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 4%;
    width: 92%;
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        rgba(46, 111, 163, 0.25) 20%,
        rgba(107, 168, 50, 0.30) 50%,
        rgba(46, 111, 163, 0.25) 80%,
        transparent
    );
}

/* LOGO CENTRAL */
.telon-logo-central {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    opacity: 0;
    transition: opacity 0.22s ease;
    pointer-events: none;
}

#telon-transicion.cerrado .telon-logo-central {
    opacity: 1;
}

.telon-logo-central img {
    height: 210px;
    width: auto;
    filter: drop-shadow(0 10px 28px rgba(46, 111, 163, 0.20));
    animation: telon-logo-pulso 2s ease-in-out infinite;
}

@keyframes telon-logo-pulso {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 10px 28px rgba(46, 111, 163, 0.20));
    }
    50% {
        transform: scale(1.045);
        filter: drop-shadow(0 16px 38px rgba(46, 111, 163, 0.30));
    }
}

/* Barra de carga animada */
.telon-barra-carga {
    width: 160px;
    height: 3px;
    background: rgba(46, 111, 163, 0.10);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.telon-barra-carga::after {
    content: '';
    position: absolute;
    top: 0;
    left: -65%;
    width: 65%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        #2e6fa3,
        #6ba832,
        #2e6fa3,
        transparent
    );
    border-radius: 10px;
    animation: telon-barra-slide 1.1s ease-in-out infinite;
}

@keyframes telon-barra-slide {
    0%   { left: -65%; }
    100% { left: 110%; }
}

/* COMPLETAMENTE ABIERTO: invisible */
#telon-transicion.abierto {
    visibility: hidden;
    pointer-events: none;
}

/* RESPONSIVE */
@media (max-width: 767px) {
    .telon-logo-central img { height: 160px; }
    .telon-barra-carga { width: 120px; }
}

@media (max-width: 480px) {
    .telon-logo-central img { height: 125px; }
    .telon-barra-carga { width: 95px; height: 2.5px; }
}

@media (prefers-reduced-motion: reduce) {
    .telon-panel { transition-duration: 0.01ms !important; }
    .telon-logo-central img { animation: none !important; }
    .telon-barra-carga::after { animation: none !important; }
}