/* 
   ESTILOS GENERALES - PROYECTO SOYCA S.L.
   DiseÃƒÂ±o: Moderno, Corporativo, Premium
   Paleta: Blanco, Azul, Azul Claro, Azul Oscuro
*/

/* ImportaciÃƒÂ³n de fuente local Inter */
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Reset y configuraciones base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #334155;
    background-color: #ffffff;
    line-height: 1.7;
    overflow-x: hidden;
}

/* TipografÃƒÂ­a Premium */
h1,
h2,
h3,
h4,
h5 {
    color: #0f172a;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.75rem;
}

/* ===================================================
   NUEVO NAVBAR - DISEÃƒâ€˜O FLOATING ISLAND
   Concepto: CÃƒÂ¡psula flotante centrada, mega-dropdown
   enriquecido y menÃƒÂº mÃƒÂ³vil full-screen.
   =================================================== */

/* --- Envoltura exterior del navbar --- */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2050;
    padding: 16px 20px;
    transition: padding 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    /* Sin fondo propio: la cÃƒÂ¡psula interior tiene el suyo */
}

#navbar.scrolled {
    padding: 10px 20px;
}

/* --- La cÃƒÂ¡psula flotante --- */
.nav-capsula {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(59, 130, 246, 0.12);
    border-radius: 100px;
    padding: 8px 8px 8px 20px;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.10), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#navbar.scrolled .nav-capsula {
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.14);
    background: rgba(255, 255, 255, 0.96);
}

/* --- Logo dentro de la cÃƒÂ¡psula --- */
.nav-logo {
    text-decoration: none;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.nav-logo img {
    height: 38px;
    width: auto;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-logo:hover img {
    transform: scale(1.08);
}

/* --- Grupo de enlaces centrales --- */
.nav-grupo-enlaces {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 3px;
    background: rgba(241, 245, 249, 0.7);
    border-radius: 80px;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.nav-grupo-enlaces>li>a,
.nav-grupo-enlaces>li>.nav-dropdown-activador {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    border-radius: 60px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    white-space: nowrap;
    border: none;
    background: transparent;
    font-family: inherit;
}

.nav-grupo-enlaces>li>a:hover,
.nav-grupo-enlaces>li>.nav-dropdown-activador:hover {
    color: #1e3a8a;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.nav-grupo-enlaces>li>a.activo {
    color: #1e3a8a;
    background: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 12px rgba(59, 130, 246, 0.15);
}

.nav-dropdown-activador .nav-flecha-icono {
    font-size: 0.7rem;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: #94a3b8;
}

/* --- Mega-dropdown de servicios --- */
.nav-item-dropdown {
    position: relative;
}

.nav-item-dropdown:hover .nav-flecha-icono,
.nav-item-dropdown.abierto .nav-flecha-icono {
    transform: rotate(180deg);
    color: #3b82f6;
}

.nav-megamenu {
    position: absolute;
    top: calc(100% + 1px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    width: 420px;
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12), 0 4px 16px rgba(59, 130, 246, 0.08);
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 100;
    list-style: none;
}

/* TriÃƒÂ¡ngulo superior del mega-menu */
.nav-megamenu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    border-left: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 2px;
}

.nav-item-dropdown:hover .nav-megamenu {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}

/* Items del mega-menu */
.nav-megamenu-item {
    list-style: none;
}

.nav-megamenu-enlace {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: none !important;
}

.nav-megamenu-enlace::after {
    display: none !important;
}

.nav-megamenu-enlace:hover {
    background: #f8fafc;
    transform: translateX(4px);
}

.nav-megamenu-icono {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.nav-megamenu-enlace:hover .nav-megamenu-icono {
    transform: scale(1.1);
}

.icono-compras {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
}

.icono-becas {
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
}

.icono-energy {
    background: rgba(5, 150, 105, 0.12);
    color: #059669;
}

.nav-megamenu-texto {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-megamenu-titulo {
    font-weight: 600;
    font-size: 0.92rem;
    color: #0f172a;
    display: block;
}

.nav-megamenu-desc {
    font-size: 0.78rem;
    color: #94a3b8;
    display: block;
    line-height: 1.4;
}

.nav-megamenu-separador {
    height: 1px;
    background: #f1f5f9;
    margin: 6px 0;
}

/* --- CTA del navbar (lado derecho) --- */
.nav-cta-grupo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nav-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: #1e3a8a;
    color: #ffffff;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(30, 58, 138, 0.35);
    letter-spacing: 0.01em;
}

.nav-cta-btn:hover {
    background: #3b82f6;
    transform: translateY(-2px);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.5);
}

.nav-cta-btn .nav-cta-flecha {
    width: 22px;
    height: 22px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    transition: transform 0.3s ease;
}

.nav-cta-btn:hover .nav-cta-flecha {
    transform: translateX(3px);
    background: rgba(255, 255, 255, 0.3);
}

/* BotÃƒÂ³n mÃƒÂ³vil pequeÃƒÂ±o (solo visible en mÃƒÂ³vil) */
.nav-cta-btn-movil {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #3b82f6;
    color: #ffffff;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
    white-space: nowrap;
}

/* --- BotÃƒÂ³n hamburguesa (mobile) --- */
.nav-hamburguesa {
    display: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(241, 245, 249, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.8);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2200;
}

.nav-hamburguesa:hover {
    background: #e0f2fe;
    border-color: rgba(59, 130, 246, 0.3);
}

.nav-hamburguesa-linea {
    width: 18px;
    height: 1.5px;
    background: #0f172a;
    border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center;
}

/* AnimaciÃƒÂ³n a X cuando estÃƒÂ¡ abierto */
.nav-hamburguesa.abierto .nav-hamburguesa-linea:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.nav-hamburguesa.abierto .nav-hamburguesa-linea:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-hamburguesa.abierto .nav-hamburguesa-linea:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* ========================================
   MENÃƒÅ¡ MÃƒâ€œVIL - PANTALLA COMPLETA
   Cortina que baja desde arriba
   ======================================== */
.nav-menu-movil {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(160deg, #0f172a 0%, #1e3a8a 100%);
    z-index: 2100;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    /* Estado inicial: oculto hacia arriba */
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.6s cubic-bezier(0.85, 0, 0.15, 1);
    overflow: hidden;
}

.nav-menu-movil.abierto {
    clip-path: inset(0 0 0% 0);
}

/* BotÃƒÂ³n de cierre dentro del menÃƒÂº mÃƒÂ³vil */
.nav-menu-movil-cerrar {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-menu-movil-cerrar:hover {
    background: rgba(59, 130, 246, 0.4);
    color: #ffffff;
    transform: rotate(90deg);
}

/* Logo dentro del menÃƒÂº mÃƒÂ³vil */
.nav-menu-movil-logo {
    position: absolute;
    top: 22px;
    left: 22px;
}

.nav-menu-movil-logo img {
    height: 34px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

/* Lista de enlaces del menÃƒÂº mÃƒÂ³vil */
.nav-menu-movil-lista {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
    width: 100%;
    max-width: 360px;
}

.nav-menu-movil-lista>li {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.nav-menu-movil.abierto .nav-menu-movil-lista>li:nth-child(1) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.15s;
}

.nav-menu-movil.abierto .nav-menu-movil-lista>li:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.22s;
}

.nav-menu-movil.abierto .nav-menu-movil-lista>li:nth-child(3) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.29s;
}

.nav-menu-movil.abierto .nav-menu-movil-lista>li:nth-child(4) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.36s;
}

.nav-menu-movil-enlace {
    display: block;
    padding: 18px 20px;
    font-size: 1.6rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: color 0.2s ease;
}

.nav-menu-movil-enlace:hover,
.nav-menu-movil-enlace.activo {
    color: #ffffff;
}

/* SubmenÃƒÂº en el menÃƒÂº mÃƒÂ³vil */
.nav-menu-movil-sub {
    list-style: none;
    padding: 0 0 10px;
    margin: 0;
    display: none;
}

.nav-menu-movil-sub.abierto {
    display: block;
}

.nav-menu-movil-sub-enlace {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-menu-movil-sub-enlace:hover {
    color: #93c5fd;
}

.nav-menu-movil-sub-icono {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

/* BotÃƒÂ³n de servicios con flecha en mÃƒÂ³vil */
.nav-menu-movil-servicios-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 18px 20px;
    font-size: 1.6rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: -0.02em;
    transition: color 0.2s ease;
}

.nav-menu-movil-servicios-btn:hover {
    color: #ffffff;
}

.nav-menu-movil-servicios-flecha {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
    color: rgba(255, 255, 255, 0.4);
}

.nav-menu-movil-servicios-btn.abierto .nav-menu-movil-servicios-flecha {
    transform: rotate(180deg);
    color: #93c5fd;
}

/* CTA en el menÃƒÂº mÃƒÂ³vil */
.nav-menu-movil-cta {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    margin-top: 30px;
    text-align: center;
    padding: 0 20px;
}

.nav-menu-movil.abierto .nav-menu-movil-cta {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.43s;
}

.nav-menu-movil-cta a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: #3b82f6;
    color: #ffffff;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
}

.nav-menu-movil-cta a:hover {
    background: #2563eb;
    transform: translateY(-2px);
    color: #ffffff;
}

/* Elemento decorativo de fondo en el menÃƒÂº mÃƒÂ³vil */
.nav-menu-movil-deco {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.08);
    pointer-events: none;
}

.nav-menu-movil-deco-1 {
    bottom: -100px;
    right: -100px;
}

.nav-menu-movil-deco-2 {
    top: -100px;
    left: -150px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.03);
}

/* ======================================
   RESPONSIVIDAD DEL NAVBAR
   ====================================== */
@media (max-width: 991px) {
    .nav-grupo-enlaces {
        display: none;
    }

    .nav-cta-btn {
        display: none;
    }

    .nav-hamburguesa {
        display: flex;
    }

    .nav-cta-btn-movil {
        display: inline-flex;
    }
}

@media (max-width: 480px) {
    #navbar {
        padding: 12px 12px;
    }

    .nav-capsula {
        padding: 7px 7px 7px 14px;
    }

    .nav-logo img {
        height: 32px;
    }

    .nav-cta-btn-movil {
        display: none;
    }
}

/* Preservar espacio del body para el navbar flotante */
body {
    padding-top: 0;
}


/* Compatibilidad con clases de heroes especÃƒÂ­ficas antiguas (noticias, etc.) */
.hero-noticias,
.hero-nosotros,
.hero-compras,
.hero-energy,
.hero-becas {
    padding-top: 100px;
}


/* --- Herencia por compatibilidad (usado en otras partes del CSS) --- */
/* Mantenemos .nav-contenedor por si alguna pÃƒÂ¡gina lo necesita, pero vacÃƒÂ­o */
.nav-contenedor {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (min-width: 992px) {
    .menu-overlay {
        display: none;
    }
}

/* Estilos para el Mapa Interactivo */
.seccion-mapa {
    background: linear-gradient(to bottom, #ffffff 0%, #f1f5f9 100%);
}

.mapa-contenedor {
    height: 500px;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(59, 130, 246, 0.15);
    border: 8px solid #ffffff;
}

.mapa-iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: contrast(1.1) saturate(1.2);
}

/* Tarjeta Flotante Mapa */
.tarjeta-mapa {
    position: absolute;
    bottom: 40px;
    left: 40px;
    max-width: 350px;
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    z-index: 100;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tarjeta-mapa-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tarjeta-mapa-icon {
    width: 55px;
    height: 55px;
    flex-shrink: 0;
    background-color: #3b82f6;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.tarjeta-mapa-titulos {
    display: flex;
    flex-direction: column;
}

.tarjeta-mapa-titulo {
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.25rem;
    font-size: 1.25rem;
}

.tarjeta-mapa-badge {
    letter-spacing: 0.5px;
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    font-weight: 700;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    border-radius: 0.375rem;
    display: inline-block;
    width: fit-content;
}

.tarjeta-mapa-info {
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
}

.tarjeta-mapa-direccion {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    line-height: 1.4;
}

.tarjeta-mapa-direccion-icon {
    color: #3b82f6;
    margin-top: 0.25rem;
}

.tarjeta-mapa-btn {
    border-radius: 20px;
    padding: 10px 15px;
    display: block;
    width: 100%;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border: 1px solid #3b82f6;
    color: #3b82f6;
    background-color: transparent;
    transition: all 0.3s ease;
}

.tarjeta-mapa-btn:hover {
    background-color: #3b82f6;
    color: #ffffff;
}

.tarjeta-mapa-btn i {
    font-size: 0.875rem;
    margin-left: 0.25rem;
}

/* Responsividad para tarjeta del mapa */
@media (max-width: 768px) {
    .tarjeta-mapa {
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: none;
        padding: 1.5rem;
    }
}

.texto-destacado {
    color: #3b82f6;
}

/* Utilidades de espaciado */
.seccion-pad {
    padding: 100px 0;
}

.seccion-pad a {
    text-decoration: none;
    color: #334155;
}

.seccion-pad-cta {
    padding: 100px 0;
}

@media (max-width: 768px) {
    .seccion-pad {
        padding: 60px 0;
    }
}

.fondo-claro {
    background-color: #f8fafc;
}

.fondo-azul-claro {
    background-color: #e0f2fe;
}

.fondo-oscuro {
    background-color: #0f172a;
    color: #ffffff;
}

/* NavegaciÃƒÂ³n Glassmorphism */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 2050;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    padding: 15px 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#navbar.scrolled {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.nav-contenedor {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 45px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 35px;
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    color: #475569;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #3b82f6;
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #3b82f6;
}

.nav-links a.active::after {
    width: 100%;
}

/* Dropdown de Servicios */
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-toggle i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #ffffff;
    min-width: 240px;
    padding: 15px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(59, 130, 246, 0.1);
    list-style: none;
    display: block;
    /* Bootstrap override */
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(10px);
}

.dropdown-menu li {
    margin: 0;
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 12px 15px;
    color: #475569;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.dropdown-menu a::after {
    display: none;
}

.dropdown-menu a:hover {
    background-color: #f0f7ff;
    color: #3b82f6;
    padding-left: 20px;
}

/* Estilos para Pantallas MÃƒÂ³viles Modernizados */
@media (max-width: 991px) {
    .dropdown {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .dropdown-toggle {
        padding: 15px 0;
        width: 100%;
        justify-content: center;
        position: relative;
    }

    .dropdown-menu {
        position: static;
        transform: none !important;
        opacity: 0;
        visibility: hidden;
        display: none;
        max-height: 0;
        overflow: hidden;
        width: 100%;
        background: #f1f5f9;
        border: none;
        border-radius: 15px;
        padding: 0;
        margin: 10px 0;
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
    }

    .dropdown.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
        display: block;
        max-height: 500px;
        padding: 10px 0;
    }

    .dropdown-menu a {
        font-size: 1.1rem;
        padding: 12px 20px;
        color: #475569;
        text-align: center;
    }

    .dropdown-menu a:hover {
        background-color: #e2e8f0;
        padding-left: 20px;
        /* Reset animation padding for mobile center */
    }

    .dropdown-toggle i {
        transition: transform 0.3s ease;
    }

    .dropdown.active .dropdown-toggle i {
        transform: rotate(180deg);
    }
}

.nav-links a.active::after {
    width: 100%;
}

/* Botones Premium */
.btn-personalizado {
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
}

.btn-azul {
    background-color: #3b82f6;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.btn-azul:hover {
    background-color: #2563eb;
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
    color: #ffffff;
}

.btn-azul a {
    color: white;
}

.btn-outline-azul {
    background-color: transparent;
    border: 2px solid #3b82f6;
    color: #3b82f6;
}

.btn-outline-azul:hover {
    background-color: #3b82f6;
    color: #ffffff;
    transform: translateY(-4px);
}

/* MenÃƒÂº MÃƒÂ³vil Moderno */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 2100;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #0f172a;
    transition: 0.4s;
    border-radius: 2px;
}

.menu-toggle span.active:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle span.active:nth-child(2) {
    opacity: 0;
}

.menu-toggle span.active:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

@media (max-width: 991px) {
    .menu-toggle {
        display: flex;
        order: 3;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 120px 40px;
        transition: all 0.6s cubic-bezier(0.85, 0, 0.15, 1);
        z-index: 2050;
        box-shadow: -20px 0 50px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        margin-bottom: 30px;
        opacity: 0;
        transform: translateX(30px);
        transition: all 0.5s ease;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-links.active li:nth-child(1) {
        transition-delay: 0.2s;
    }

    .nav-links.active li:nth-child(2) {
        transition-delay: 0.3s;
    }

    .nav-links.active li:nth-child(3) {
        transition-delay: 0.4s;
    }

    .nav-links a {
        font-size: 1.4rem;
        color: #ffffff !important;
        font-weight: 600;
        letter-spacing: 0.5px;
    }

    .nav-links a::after {
        background-color: #3b82f6;
    }

    /* Ajuste para el dropdown en menÃƒÂº oscuro */
    .dropdown-menu {
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    .dropdown-menu a {
        color: rgba(255, 255, 255, 0.8) !important;
        font-size: 1.1rem !important;
    }

    .dropdown-menu a:hover {
        background: rgba(59, 130, 246, 0.2) !important;
        color: #ffffff !important;
    }

    .menu-toggle span {
        background-color: #0f172a;
        /* Color cuando el menu estÃƒÂ¡ CERRADO */
    }

    .nav-links.active~.d-flex .menu-toggle span,
    .menu-toggle.active span {
        background-color: #ffffff;
        /* Color cuando el menu estÃƒÂ¡ ABIERTO */
    }

    /* El selector anterior es difÃƒÂ­cil, mejor forzamos el color del burger si el nav-links tiene active */
    /* Pero el menu-toggle no es hijo ni hermano posterior directo de nav-links en el orden actual. */

    .btn-navbar {
        display: none;
        /* Ocultar el de escritorio si es diferente del mÃƒÂ³vil */
    }

    /* BotÃƒÂ³n de consulta mÃƒÂ³vil especÃƒÂ­fico */
    .btn-movil-consulta {
        display: inline-flex;
        padding: 8px 16px;
        background: #3b82f6;
        color: #ffffff;
        border-radius: 50px;
        font-size: 0.85rem;
        font-weight: 600;
        text-decoration: none;
        order: 2;
        margin-right: 15px;
        box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
    }
}

@media (min-width: 992px) {
    .btn-movil-consulta {
        display: none;
    }
}

/* ================================================
   HERO / BANNER - SLIDESHOW DE FONDO FULLSCREEN
   DiseÃƒÂ±o moderno: imagenes a pantalla completa
   con transiciÃƒÂ³n suave (crossfade) y overlay
   ================================================ */

/* Contenedor principal del hero con slideshow */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 0;
}

/* Pista de diapositivas (todas apiladas) */
.hero-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* Cada diapositiva: imagen de fondo a pantalla completa */
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1);
    animation: zoom-suave 8s ease-in-out infinite alternate;
}

.hero-slide.activa {
    opacity: 1;
}

@keyframes zoom-suave {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.06);
    }
}

/* Overlay gradient oscuro sobre las imÃƒÂ¡genes */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(15, 23, 42, 0.72) 0%,
            rgba(30, 58, 138, 0.50) 50%,
            rgba(15, 23, 42, 0.65) 100%);
    z-index: 1;
}

/* Contenido del hero encima del overlay */
.hero-contenedor {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: 120px;
    padding-bottom: 80px;
}

/* Etiqueta superior (eyebrow) */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(59, 130, 246, 0.25);
    border: 1px solid rgba(59, 130, 246, 0.5);
    color: #93c5fd;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
}

/* Encabezado h1 en el hero sobre fondo oscuro */
.hero h1,
.hero-contenedor h1 {
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
    font-size: 3.8rem;
    line-height: 1.12;
    margin-bottom: 1.5rem;
}

/* Destacado azul en h1 del hero */
.hero .texto-destacado,
.hero-contenedor .texto-destacado {
    color: #60a5fa;
}

/* PÃƒÂ¡rrafo lead dentro del hero */
.hero p.lead,
.hero-contenedor p.lead {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.15rem;
    line-height: 1.75;
    max-width: 560px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

/* Botones en el hero - override para fondo oscuro */
.hero .btn-outline-azul {
    border-color: rgba(255, 255, 255, 0.55);
    color: #ffffff;
}

.hero .btn-outline-azul:hover {
    background-color: rgba(255, 255, 255, 0.18);
    border-color: #ffffff;
    color: #ffffff;
}

/* Indicadores de diapositiva (puntos) */
.hero-indicadores {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
}

.hero-punto {
    width: 8px;
    height: 8px;
    border-radius: 100%;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.4s ease;
}

.hero-punto.activo {
    background: #ffffff;
    width: 28px;
    border-radius: 4px;
}

/* Flecha de scroll hacia abajo */
.hero-scroll-flecha {
    position: absolute;
    bottom: 34px;
    right: 48px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.1s ease;
}

.hero-scroll-flecha:hover {
    color: rgba(255, 255, 255, 0.9);
}

.hero-scroll-flecha i {
    animation: bouncing 1.8s ease-in-out infinite;
    font-size: 1rem;
}

@keyframes bouncing {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}

/* Animaciones de entrada del contenido del hero */
.hero-contenido-animado {
    animation: fadeInUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-contenido-animado.retraso-1 {
    animation-delay: 0.15s;
}

.hero-contenido-animado.retraso-2 {
    animation-delay: 0.3s;
}

.hero-contenido-animado.retraso-3 {
    animation-delay: 0.45s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Texto de la etiqueta eyebrow (spans) dentro del hero legacy */
.hero .text-uppercase.fw-bold.text-primary,
.hero .text-uppercase.fw-bold.text-success {
    color: #93c5fd !important;
}

/* Ocultar columna de imagen al lado del texto (no se usa en nuevo diseÃƒÂ±o) */
.hero .col-lg-6.d-none.d-lg-block.revelar.retraso-2,
.hero .col-lg-6.revelar.retraso-2 .contenedor-imagen {
    display: none !important;
}

/* ================================================
   HERO DE PÃƒÂGINAS INTERNAS (banner mÃƒÂ¡s compacto)
   ================================================ */
.hero-pagina {
    min-height: 70vh;
}

.hero-pagina .hero-contenedor {
    padding-top: 160px;
    padding-bottom: 80px;
}

/* Responsividad del hero */
@media (max-width: 991px) {

    .hero h1,
    .hero-contenedor h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .hero {
        min-height: 85vh;
        text-align: left;
    }

    .hero h1,
    .hero-contenedor h1 {
        font-size: 2.2rem;
    }

    .hero p.lead,
    .hero-contenedor p.lead {
        font-size: 1rem;
    }

    .hero-scroll-flecha {
        display: none;
    }

    .hero-pagina {
        min-height: 60vh;
    }

    .hero-pagina .hero-contenedor {
        padding-top: 130px;
    }
}

/* Tarjetas de Servicio */
.tarjeta-premium {
    background: #ffffff;
    padding: 40px;
    border-radius: 30px;
    border: 1px solid rgba(59, 130, 246, 0.08);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tarjeta-premium:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.2);
}

.tarjeta-premium i {
    font-size: 2.5rem;
    color: #3b82f6;
    margin-bottom: 25px;
}

/* GalerÃƒÂ­a y Contenedores de Imagen */
.contenedor-imagen {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.contenedor-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.contenedor-imagen:hover img {
    transform: scale(1.05);
}

/* AnimaciÃƒÂ³n de Revelado Premium */
.revelar {
    opacity: 0;
    transform: translateY(50px) scale(0.96);
    filter: blur(10px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity, filter;
}

.revelar-activo {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.retraso-1 {
    transition-delay: 0.2s;
}

.retraso-2 {
    transition-delay: 0.4s;
}

.retraso-3 {
    transition-delay: 0.6s;
}

/* Loader */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader-content {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-logo {
    width: 35px;
    height: auto;
    position: absolute;
    z-index: 10;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.8;
    }
}

.loader {
    width: 100%;
    height: 100%;
    position: absolute;
    border: 3px solid #e2e8f0;
    border-top: 3px solid #3b82f6;
    border-right: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 5;
}

.loader-oculto {
    opacity: 0;
    visibility: hidden;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ===================================================
/* Borde superior decorativo con gradiente de marca */
footer::before {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg, #1e3a8a, #3b82f6, #60a5fa, #3b82f6, #1e3a8a);
    background-size: 200% 100%;
    animation: footer-gradiente-flujo 6s ease-in-out infinite;
}

@keyframes footer-gradiente-flujo {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Footer principal */
footer {
    padding: 40px 0 0;
    background: #060a14;
    color: #8b95a8;
    position: relative;
    overflow: hidden;
}

/* Textura de puntos radiales (sutil, solo decorativa) */
footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 0;
}

/* Resplandor ambiental superior derecho */
footer::after {
    content: '';
    position: absolute;
    top: -150px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.04) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* Resplandor ambiental inferior izquierdo */
.footer-orbe-izquierda {
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(30, 58, 138, 0.05) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* Container sobre las capas decorativas */
footer .container {
    position: relative;
    z-index: 1;
}

/* --- Logo con resplandor --- */
footer .logo-footer-blanco {
    filter: brightness(0) invert(1);
    height: 42px;
    transition: all 0.4s ease;
}

footer .logo:hover .logo-footer-blanco {
    filter: brightness(0) invert(1) drop-shadow(0 0 20px rgba(59, 130, 246, 0.4));
}

/* --- Descripción del footer --- */
footer .col-lg-4>p {
    color: #6b7a90;
    font-size: 0.9rem;
    line-height: 1.85;
    max-width: 320px;
    letter-spacing: 0.01em;
}

/* --- Títulos de columnas --- */
.footer-titulo {
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.footer-titulo::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    flex-shrink: 0;
}

/* --- Lista de enlaces --- */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0;
}

.footer-links a {
    color: #5a6578;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 400;
    display: block;
    padding: 9px 0;
    transition: all 0.3s ease;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.025);
}

.footer-links li:last-child a {
    border-bottom: none;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 12px;
}

.footer-links a::after {
    content: '→';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    color: #3b82f6;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.footer-links a:hover::after {
    opacity: 1;
    right: -4px;
}

/* --- Iconos sociales Premium --- */
.sociales {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.social-link {
    width: 42px;
    height: 42px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #5a6578;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.social-link:hover {
    transform: translateY(-3px) scale(1.08);
    color: #ffffff;
    border-color: transparent;
}

/* Colores individuales por red social */
.social-link:nth-child(1):hover {
    background: #0077b5;
    box-shadow: 0 6px 20px rgba(0, 119, 181, 0.3), 0 0 0 3px rgba(0, 119, 181, 0.1);
}

.social-link:nth-child(2):hover {
    background: #0077b5;
    box-shadow: 0 6px 20px rgba(0, 119, 181, 0.3), 0 0 0 3px rgba(0, 119, 181, 0.1);
}

.social-link:nth-child(3):hover {
    background: #0077b5;
    box-shadow: 0 6px 20px rgba(0, 119, 181, 0.3), 0 0 0 3px rgba(0, 119, 181, 0.1);
}

/* --- Barra inferior del footer --- */
.footer-inferior {
    margin-top: 70px;
    padding: 28px 0;
    text-align: center;
    font-size: 0.8rem;
    color: #3d4a5c;
    position: relative;
    letter-spacing: 0.02em;
}

/* Línea separadora con degradado */
.footer-inferior::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(59, 130, 246, 0.12) 20%, rgba(59, 130, 246, 0.2) 50%, rgba(59, 130, 246, 0.12) 80%, transparent 100%);
}

.footer-inferior p {
    margin: 0;
}

/* --- Responsive del footer --- */
@media (max-width: 991px) {
    footer {
        padding: 60px 0 0;
    }

    .footer-ola {
        height: 50px;
    }

    .footer-ola svg {
        height: 50px;
    }
}

@media (max-width: 767px) {
    footer {
        padding: 50px 0 0;
    }

    .footer-titulo {
        margin-bottom: 1.2rem;
        margin-top: 0.5rem;
    }

    .footer-inferior {
        margin-top: 40px;
        padding: 22px 0;
        font-size: 0.75rem;
    }

    .footer-links a::after {
        display: none;
    }
}

/* Refinamientos EspecÃƒÂ­ficos */
.seccion-titulo {
    max-width: 700px;
    margin-bottom: 60px;
}

.seccion-titulo h2 {
    margin-bottom: 1rem;
}

.subtitulo {
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Grid de beneficios */
.beneficio-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.beneficio-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: #e0f2fe;
    color: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    font-size: 1.25rem;
}

/* Ajustes de logo mÃƒÂ³vil */
@media (max-width: 576px) {
    .logo img {
        height: 35px;
    }
}

/* Estilos de Formulario Premium */

.tarjeta-contacto .nota-contacto {
    font-size: small;
}

.tarjeta-contacto .nota-contacto strong {
    color: red;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #475569;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.15);
    background-color: #f8fafc;
    transition: all 0.3s ease;
    font-family: inherit;
    color: #0f172a;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.tarjeta-contacto {
    background: #ffffff;
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.info-icon {
    width: 60px;
    height: 60px;
    background: #e0f2fe;
    color: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    font-size: 1.5rem;
}

/* EQUIPO */
/* --- PÃƒÆ’Ã‚ÂGINA SOBRE NOSOTROS (EXTRAS) --- */
.rejilla-equipo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.tarjeta-equipo {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    display: flex;
    flex-direction: column;
}

.tarjeta-equipo:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

.imagen-equipo {
    height: 360px;
    position: relative;
    overflow: hidden;
    background: #f1f5f9;
}

.imagen-equipo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: all 0.7s ease;
}

.tarjeta-equipo:hover .imagen-equipo img {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.redes-equipo {
    position: absolute;
    bottom: -60px;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.8), transparent);
    padding: 2.5rem 1rem 1rem;
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    transition: all 0.4s ease;
    opacity: 0;
}

.tarjeta-equipo:hover .redes-equipo {
    bottom: 0;
    opacity: 1;
}

.icono-social {
    color: white;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.icono-social:hover {
    transform: translateY(-5px);
    background: #3b82f6;
    color: white;
}

.info-equipo {
    padding: 2.5rem 2rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nombre-miembro {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.puesto-miembro {
    display: block;
    color: #3b82f6;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.25rem;
}

.descripcion-miembro {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.icono-valor {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto;
}

.hitos-numero {
    min-width: 40px;
}

/* ===================================================
   DISEÃƒâ€˜O ENRIQUECIDO DE IMÃƒÂGENES (NON-HERO)
   Efectos premium, sombras profundas y micro-interacciones.
   =================================================== */

.contenedor-imagen {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 40px 100px -20px rgba(15, 23, 42, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    background: #f1f5f9;
    z-index: 1;
}

/* Efecto de brillo (Shine) que recorre la imagen */
.contenedor-imagen::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-25deg);
    transition: 0.7s;
    z-index: 2;
}

.contenedor-imagen:hover::after {
    left: 150%;
}

.contenedor-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.contenedor-imagen:hover {
    transform: translateY(-20px) scale(1.02);
    box-shadow: 0 60px 120px -30px rgba(15, 23, 42, 0.35);
}

.contenedor-imagen:hover img {
    transform: scale(1.12);
}

/* Decoraciones geomÃƒÂ©tricas extra 'guays' */
.contenedor-imagen::before {
    content: '';
    position: absolute;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    top: -40px;
    right: -40px;
    border-radius: 50%;
    z-index: -1;
    filter: blur(20px);
    transition: all 0.6s ease;
}

.contenedor-imagen:hover::before {
    transform: scale(2);
    opacity: 0.5;
}

/* AplicaciÃƒÂ³n a tarjetas premium que no tienen contenedor-imagen explÃƒÂ­cito */
.tarjeta-premium img {
    border-radius: 20px;
    transition: all 0.4s ease;
}

.tarjeta-premium:hover img {
    transform: scale(1.03);
}

/* ===================================================
   COMPONENTES Y UTILIDADES (CLASES EN ESPAÃƒâ€˜OL)
   OrganizaciÃƒÂ³n de estilos extraÃƒÂ­dos del HTML.
   =================================================== */

/* Iconos y elementos decorativos circulares */
.icono-premium-grande {
    font-size: 2rem;
    color: #3b82f6;
    margin-bottom: 1rem;
}

.icono-en-caja {
    color: #3b82f6;
    margin-bottom: 8px;
    font-size: 1.2rem;
    display: block;
}

.circulo-icono-central {
    width: 65px;
    height: 65px;
    background: #e0f2fe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.6rem;
    color: #3b82f6;
}

.circulo-icono-central-grande {
    width: 72px;
    height: 72px;
    background: #e0f2fe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    color: #3b82f6;
}

.circulo-numero-azul {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: #e0f2fe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #1e3a8a;
}

.circulo-check-azul {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #ffffff;
}

/* Tarjetas y Contenedores */
.tarjeta-clara-borde {
    padding: 18px;
    background: #f8fafc;
    border-radius: 16px;
    border-left: 4px solid #3b82f6;
}

.contenedor-centrado-angosto {
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.contenedor-max-600 {
    max-width: 600px;
}

/* Secciones de impacto y cifras (Modo Oscuro) */
.seccion-cifras-oscura {
    background: linear-gradient(135deg, #0f172a 0%, #064e3b 100%);
    color: #ffffff;
}

.caja-dato-oscura {
    padding: 30px 15px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.numero-dato-grande {
    font-size: 2.8rem;
    font-weight: 800;
    color: #6ee7b7;
}

.etiqueta-dato {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    margin-top: 6px;
}

.subtitulo-oscuridad {
    color: rgba(255, 255, 255, 0.75);
    max-width: 540px;
    margin: 0 auto;
}

/* Utilidades de Texto */
.texto-blanco {
    color: #ffffff !important;
}

.texto-esmeralda {
    color: #6ee7b7 !important;
}

/* Filtros y Logotipos */
.logo-footer-blanco {
    filter: brightness(0) invert(1);
}

/* Clases GESTIÃƒâ€œN DE COMPRAS y Varias */
.circulo-numero-pequeno {
    width: 52px;
    height: 52px;
    background: #e0f2fe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 1.5rem;
}

.tarjeta-clara-borde-ancha {
    padding: 20px;
    background: #f8fafc;
    border-radius: 16px;
    border-left: 4px solid #3b82f6;
}

.imagen-fija-tarjeta {
    height: 150px;
    width: 100%;
    object-fit: cover;
}

.fila-beneficio-clara {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px;
    background: #f8fafc;
    border-radius: 16px;
    margin-bottom: 12px;
}

.caja-icono-azul-redondeada {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: #e0f2fe;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
}

.seccion-cifras-azul-oscura {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: #ffffff;
}

/* Clases GESTIÃƒâ€œN DE BECAS y Varias */
.caja-icono-azul-redondeada-mediana {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: #e0f2fe;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    font-size: 1.1rem;
}

.fila-beneficio-clara-espaciada {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px;
    background: #f8fafc;
    border-radius: 16px;
    margin-bottom: 12px;
}

.caja-clara-centrada {
    padding: 20px;
    background: #f8fafc;
    border-radius: 16px;
    text-align: center;
}

.contenedor-max-600 {
    max-width: 600px;
}

.contenedor-max-620 {
    max-width: 620px;
}

.contenedor-max-560 {
    max-width: 560px;
}

.oculto {
    display: none !important;
}

.tarjeta-exito {
    max-width: 600px;
    padding: 60px 40px;
}

.emoji-bandera {
    font-size: 1.8rem;
}

.emoji-bandera-grande {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* ================================================
   SECCIÃ¯Â¿Â½N DE TESTIMONIOS - VIDEO INSTAGRAM (becas.html)
   ================================================ */

/* Tarjeta contenedora del testimonio */
.tarjeta-testimonio-video {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0, 82, 204, 0.10);
    overflow: hidden;
    border: 1px solid rgba(0, 82, 204, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tarjeta-testimonio-video:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 82, 204, 0.16);
}

/* Cabecera con badge de Instagram */
.testimonio-cabecera {
    padding: 1rem 1.5rem 0.75rem;
    border-bottom: 1px solid #f0f4ff;
}

.testimonio-instagram-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #ffffff;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.testimonio-instagram-badge i {
    font-size: 1rem;
}

/* Contenedor del embed de Instagram */
.testimonio-video-wrapper {
    padding: 0.75rem;
    background: #f8f9ff;
}

.testimonio-video-wrapper .instagram-media {
    border-radius: 12px !important;
    margin: 0 auto !important;
}

/* Fila de informaciÃ¯Â¿Â½n del testimoniante */
.testimonio-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid #f0f4ff;
}

/* Avatar circular con icono */
.testimonio-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0052cc, #0a84ff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Datos del testimoniante */
.testimonio-datos {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.testimonio-nombre {
    font-size: 0.95rem;
    color: #0d1b2a;
    font-weight: 700;
    line-height: 1.3;
}

.testimonio-rol {
    font-size: 0.78rem;
    color: #0052cc;
    font-weight: 500;
    margin-top: 0.1rem;
}

/* Estrellas de valoraciÃ¯Â¿Â½n */
.testimonio-estrellas {
    display: flex;
    gap: 0.15rem;
    color: #f5a623;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* Bloque de comentario / cita */
.testimonio-comentario {
    position: relative;
    padding: 1.25rem 1.5rem 1.75rem;
    background: #f8f9ff;
    border-top: 1px solid #f0f4ff;
}

.testimonio-comilla {
    font-size: 2rem;
    color: #0052cc;
    opacity: 0.20;
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    line-height: 1;
}

.testimonio-comentario p {
    font-size: 0.92rem;
    color: #3d4f6e;
    line-height: 1.7;
    font-style: italic;
    margin: 0;
    padding-left: 1.5rem;
}

/* Enlace al perfil de Instagram */
.enlace-instagram-soyca {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #ffffff !important;
    text-decoration: none;
    padding: 0.7rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: opacity 0.25s ease, transform 0.25s ease;
    letter-spacing: 0.02em;
}

.enlace-instagram-soyca:hover {
    opacity: 0.88;
    transform: translateY(-2px);
}

.enlace-instagram-soyca i:first-child {
    font-size: 1.1rem;
}

/* ================================================
   MINIATURA CLICABLE DEL REEL DE INSTAGRAM
   ================================================ */

/* Contenedor principal - miniatura clicable del video */
.testimonio-miniatura-reel {
    display: block;
    position: relative;
    width: 100%;
    height: 340px;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
    background: #1a0533;
}

@media (min-width: 992px) {
    .testimonio-miniatura-reel {
        height: 380px;
    }
}

/* Fondo con gradiente de colores de Instagram */
.reel-fondo-gradiente {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            #833ab4 0%,
            #fd1d1d 40%,
            #fcb045 75%,
            #f77737 100%);
    opacity: 0.92;
    transition: opacity 0.3s ease;
}

.testimonio-miniatura-reel:hover .reel-fondo-gradiente {
    opacity: 1;
}

/* Icono de Instagram - esquina superior derecha */
.reel-icono-instagram {
    position: absolute;
    top: 14px;
    right: 16px;
    z-index: 3;
    color: #ffffff;
    font-size: 1.6rem;
    opacity: 0.9;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Etiqueta "Reel" - esquina superior izquierda */
.reel-etiqueta {
    position: absolute;
    top: 14px;
    left: 16px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.20);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    backdrop-filter: blur(6px);
}

/* BotÃ¯Â¿Â½n de play - centrado vertical y horizontal */
.reel-boton-play {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

/* CÃ¯Â¿Â½rculo blanco del botÃ¯Â¿Â½n de play */
.reel-play-circulo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reel-play-circulo i {
    color: #833ab4;
    font-size: 1.6rem;
    margin-left: 4px;
    /* centra visualmente el triÃ¯Â¿Â½ngulo de play */
}

.testimonio-miniatura-reel:hover .reel-play-circulo {
    transform: scale(1.12);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

/* Texto debajo del botÃƒÂ³n de play */
.reel-play-texto {
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Pie de la miniatura - barra inferior */
.reel-pie {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.60), transparent);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 500;
}

.reel-pie i {
    font-size: 1rem;
    opacity: 0.9;
}

/* ================================================
   IFRAME DEL REEL DE INSTAGRAM (reemplaza gradiente)
   ================================================ */

/* Wrapper que da altura al iframe */
.testimonio-iframe-wrapper {
    position: relative;
    width: 100%;
    /* Relacion de aspecto 9:16 para Reels, con maximo de 560px */
    padding-top: 177.78%;
    max-height: 560px;
    overflow: hidden;
    background: #000;
}

/* El iframe ocupa todo el wrapper */
.testimonio-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Corrige el max-height haciendo que el wrapper no crezca mÃƒÂ¡s de 560px */
@media (min-width: 768px) {
    .testimonio-iframe-wrapper {
        padding-top: min(177.78%, 560px);
    }
}

/* ================================================
   TARJETA PRÃ¯Â¿Â½XIMAMENTE (segunda columna)
   ================================================ */

.testimonio-proximamente-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    padding: 3rem 2rem;
    background: #f0f4ff;
    min-height: 300px;
    text-align: center;
}

.testimonio-proximamente-icono {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0052cc, #0a84ff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 82, 204, 0.25);
}

.testimonio-proximamente-texto {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0d1b2a;
    margin: 0;
}

.testimonio-proximamente-sub {
    font-size: 0.85rem;
    color: #6b7a99;
}

.testimonio-proximamente-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-top: 0.5rem;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.testimonio-proximamente-btn:hover {
    opacity: 0.85;
    transform: translateY(-2px);
    color: #fff;
}