/* ============================================================
   UECIB SAN FRANCISCO DE ASÍS — HOJA DE ESTILOS MAESTRA
   Estética: Híbrida futurista / institucional premium amazónica
   Colores base: Azul institucional #002b6b · Rojo #d62828
   Compatibilidad: Chrome, Firefox, Safari, Edge (últimas 2 versiones)
   ============================================================ */

/* ============================================================
   1. VARIABLES GLOBALES
   ============================================================ */
:root {
    /* — Paleta institucional — */
    --azul:          #002b6b;   /* Azul principal */
    --azul-noche:    #001b44;   /* Azul profundo (fondos oscuros) */
    --azul-abismo:   #00102b;   /* Azul casi negro (hero) */
    --azul-claro:    #1e4d9e;   /* Azul vivo para acentos */
    --rojo:          #d62828;   /* Rojo institucional */
    --rojo-osc:      #a80000;   /* Rojo hover */
    --dorado:        #ffd166;   /* Acento cálido (estadísticas) */
    --verde-selva:   #2e7d5b;   /* Toque amazónico sutil */

    /* — Neutros — */
    --blanco:        #ffffff;
    --hueso:         #f5f7fb;
    --gris-texto:    #3a4252;
    --gris-suave:    #6b7280;

    /* — Cristal (glassmorphism) sobre fondo oscuro — */
    --glass:          rgba(255,255,255,0.06);
    --glass-fuerte:   rgba(255,255,255,0.10);
    --glass-borde:    rgba(255,255,255,0.12);
    --glass-borde-h:  rgba(255,255,255,0.24);

    /* — Cristal sobre fondo claro — */
    --glass-claro:    rgba(255,255,255,0.65);
    --glass-claro-b:  rgba(0,43,107,0.10);

    /* — Texto sobre oscuro — */
    --txt-1: rgba(255,255,255,0.92);
    --txt-2: rgba(255,255,255,0.65);
    --txt-3: rgba(255,255,255,0.40);

    /* — Sistema — */
    --nav-h:        76px;
    --radio:        18px;
    --radio-pill:   999px;
    --ease:         cubic-bezier(0.16, 1, 0.3, 1);
    --sombra-card:  0 18px 50px rgba(0,16,43,0.16);
    --sombra-glow:  0 0 35px rgba(30,77,158,0.35);

    /* — Variable controlada por JS (engranaje) — */
    --gear-angle: 0deg;
}

/* ============================================================
   2. RESET
   ============================================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    background: var(--azul-abismo);
    color: var(--txt-1);
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Sora', 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

a { color: inherit; }
img { display: block; max-width: 100%; }

/* ============================================================
   3. CAPAS DE FONDO FIJAS (atmósfera futurista)
   ============================================================ */

/* — Textura de ruido sutil (grano cinematográfico) — */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: overlay;
}

/* — Rejilla técnica de fondo — */
.grid-background {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.030) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.030) 1px, transparent 1px);
    background-size: 58px 58px;
    -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, #fff, rgba(255,255,255,0.05));
            mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, #fff, rgba(255,255,255,0.05));
    z-index: 0;
    pointer-events: none;
}

/* — Auras de color que dan profundidad (azul + rojo) — */
.aura {
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.55;
}
.aura.aura-azul {
    width: 620px; height: 620px;
    background: radial-gradient(circle, rgba(30,77,158,0.55), transparent 70%);
    top: -180px; left: -120px;
}
.aura.aura-roja {
    width: 520px; height: 520px;
    background: radial-gradient(circle, rgba(214,40,40,0.30), transparent 70%);
    bottom: -160px; right: -100px;
}

/* — Canvas de partículas (estrellas/polen amazónico) — */
#particles-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

/* — Glow que sigue el ratón — */
.mouse-glow {
    position: fixed;
    width: 460px; height: 460px;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(30,77,158,0.18) 0%,
        rgba(30,77,158,0.06) 30%,
        transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: screen;
    transition: opacity 0.4s;
}

/* — Engranaje translúcido animado por scroll (esquina) — */
.gear-corner {
    position: fixed;
    bottom: -18%;
    right: -14%;
    width: min(62vw, 680px);
    height: min(62vw, 680px);
    z-index: 1;
    pointer-events: none;
    opacity: 0.28;            /* más visible que el ejemplo */
    filter: drop-shadow(0 0 40px rgba(214,40,40,0.25));
}
.gear-corner::before {        /* halo ambiental detrás del engranaje */
    content: '';
    position: absolute;
    inset: -15%;
    border-radius: 50%;
    background: radial-gradient(circle at 60% 60%,
        rgba(214,40,40,0.10) 0%,
        rgba(30,77,158,0.06) 40%,
        transparent 70%);
    z-index: -1;
}
.gear-svg {
    width: 100%; height: 100%;
    transform-origin: center center;
    transform: rotate(var(--gear-angle));
    will-change: transform;
    overflow: visible;
}
/* Logo institucional FIJO en el centro del engranaje (no gira) */
.gear-logo {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 32%;
    height: auto;
    pointer-events: none;
    filter: drop-shadow(0 0 22px rgba(0,0,0,0.55));
    animation: logo-respira 5s var(--ease) infinite;
    opacity: 0.92;
}
@keyframes logo-respira {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50%      { transform: translate(-50%, -50%) scale(1.04); }
}

/* Todo el contenido va por encima de las capas de fondo */
.topbar, header, nav, main, section, footer { position: relative; z-index: 5; }
/* La barra superior y el selector de idioma SIEMPRE por encima del banner y la navegación */
.topbar { z-index: 200; }
.idioma-selector { z-index: 320; }

/* ============================================================
   4. REVEAL CINEMATOGRÁFICO (blur → clear al entrar en viewport)
   ============================================================ */
.reveal-item {
    opacity: 0;
    filter: blur(16px);
    transform: translateY(28px);
    transition:
        opacity   1.1s var(--ease) var(--delay, 0s),
        filter    1.1s var(--ease) var(--delay, 0s),
        transform 1.1s var(--ease) var(--delay, 0s);
}
.reveal-item.visible {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    .reveal-item { transition: none; opacity: 1; filter: none; transform: none; }
}

/* ============================================================
   5. BARRA SUPERIOR (topbar)
   ============================================================ */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 7%;
    font-size: 0.82rem;
    color: var(--txt-2);
    background: rgba(0,16,43,0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-borde);
}
.info-top span { margin-right: 22px; }
.info-top i { color: var(--dorado); margin-right: 6px; }
.topbar-derecha { display: flex; align-items: center; gap: 6px; }
.redes a {
    margin-left: 14px;
    color: var(--txt-2);
    transition: color 0.25s var(--ease), transform 0.25s var(--ease);
    display: inline-block;
}
.redes a:hover { color: var(--blanco); transform: translateY(-2px); }

/* ============================================================
   6. HEADER + LOGO ANIMADO
   ============================================================ */
header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 24px;
    padding: 16px 7%;
    background: rgba(0,16,43,0.45);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--glass-borde);
}
.logo-container { display: flex; align-items: center; gap: 18px; }

/* Logo con halo girando lentamente (logo animado) */
.logo-anillo {
    position: relative;
    width: 78px; height: 78px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.logo-anillo::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(from 0deg,
        var(--rojo), var(--dorado), var(--azul-claro), var(--rojo));
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
            mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
    animation: girar-anillo 8s linear infinite;
    opacity: 0.9;
}
.logo-anillo img {
    width: 64px; height: 64px;
    border-radius: 50%;
    object-fit: cover;
    animation: latir-logo 4s var(--ease) infinite;
}
@keyframes girar-anillo { to { transform: rotate(360deg); } }
@keyframes latir-logo {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.05); }
}

.texto-logo { max-width: 900px; }
.texto-logo h1 {
    color: var(--blanco);
    font-size: clamp(1.05rem, 1.9vw, 1.7rem);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    background: linear-gradient(90deg, #fff, #bcd0f5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.texto-logo h2 { color: var(--txt-1); font-size: 1.05rem; font-weight: 600; margin-top: 2px; }
.texto-logo p  { color: var(--dorado); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 3px; }

/* Botón Iniciar Sesión (glass pill) */
.btn-login {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    color: var(--blanco);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 12px 22px;
    border-radius: var(--radio-pill);
    background: linear-gradient(180deg, rgba(214,40,40,0.95), rgba(168,0,0,0.95));
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 10px 30px rgba(214,40,40,0.35);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.btn-login:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(214,40,40,0.5); }
.btn-login i { transition: transform 0.4s var(--ease); }
.btn-login:hover i { transform: rotate(-8deg) scale(1.1); }

/* ============================================================
   7. NAVEGACIÓN PRINCIPAL + SUBMENÚS
   ============================================================ */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(0,27,68,0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-borde);
}
nav.nav-scrolled { background: rgba(0,16,43,0.92); box-shadow: 0 8px 30px rgba(0,0,0,0.4); }

.nav-inner {
    display: flex;
    justify-content: center;
    align-items: center;
}
nav ul.menu-principal {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    flex-wrap: wrap;
}
nav ul.menu-principal > li { position: relative; }
nav ul.menu-principal > li > a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--txt-1);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 22px 22px;
    position: relative;
    transition: color 0.25s var(--ease);
}
/* Subrayado animado — LÍNEA BLANCA base (reemplaza la amarilla) */
nav ul.menu-principal > li > a::after {
    content: '';
    position: absolute;
    left: 22px; right: 22px; bottom: 14px;
    height: 2px;
    border-radius: 2px;
    background: rgba(255,255,255,0.85);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease);
}
/* Capa de BRILLO que recorre la línea de izquierda a derecha (efecto "Ver oferta") */
nav ul.menu-principal > li > a::before {
    content: '';
    position: absolute;
    left: 22px; right: 22px; bottom: 14px;
    height: 2px;
    border-radius: 2px;
    overflow: hidden;
    opacity: 0;
    /* franja de luz que se desplaza */
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255,255,255,0.15) 35%,
        #ffffff 50%,
        rgba(255,255,255,0.15) 65%,
        transparent 100%);
    background-size: 220% 100%;
    background-position: -120% 0;
    -webkit-mask: linear-gradient(#000, #000);
            mask: linear-gradient(#000, #000);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease), opacity 0.25s ease;
    pointer-events: none;
    filter: drop-shadow(0 0 6px rgba(255,255,255,0.8));
}
nav ul.menu-principal > li > a:hover,
nav ul.menu-principal > li > a.activo { color: var(--blanco); }
/* Aparece la línea blanca al hover o activo */
nav ul.menu-principal > li > a:hover::after,
nav ul.menu-principal > li > a.activo::after { transform: scaleX(1); }
/* El brillo barre repetidamente mientras el cursor esté encima o esté activo */
nav ul.menu-principal > li > a:hover::before,
nav ul.menu-principal > li > a.activo::before {
    transform: scaleX(1);
    opacity: 1;
    animation: nav-shine 2.2s ease-in-out infinite;
}
@keyframes nav-shine {
    0%   { background-position: -120% 0; }
    100% { background-position: 120% 0; }
}

/* Submenú translúcido */
.submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    min-width: 230px;
    background: rgba(0,16,43,0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--glass-borde);
    border-radius: var(--radio);
    list-style: none;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
    z-index: 200;
}
nav ul.menu-principal > li:hover .submenu,
nav ul.menu-principal > li:focus-within .submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(6px);
}
.submenu li a {
    display: block;
    color: var(--txt-2);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: 12px;
    transition: background 0.25s var(--ease), color 0.25s var(--ease), padding-left 0.25s var(--ease);
}
.submenu li a:hover {
    background: rgba(255,255,255,0.08);
    color: var(--blanco);
    padding-left: 22px;
}

/* Botón hamburguesa (móvil) */
.hamburguesa {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 22px;
    margin-left: auto;
}
.hamburguesa span {
    width: 26px; height: 2px;
    background: var(--blanco);
    border-radius: 2px;
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.hamburguesa.activo span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburguesa.activo span:nth-child(2) { opacity: 0; }
.hamburguesa.activo span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   8. HERO / SLIDER CON PARALLAX
   ============================================================ */
.slider {
    position: relative;
    height: 88vh;
    min-height: 560px;
    overflow: hidden;
}
.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 1.4s var(--ease), transform 7s linear;
    will-change: transform, opacity;
    pointer-events: none;
}
.slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}
/* Capa de degradado para legibilidad */
.slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg,
        rgba(0,16,43,0.90) 0%,
        rgba(0,27,68,0.72) 40%,
        rgba(0,16,43,0.30) 100%);
}
.contenido-slide {
    position: absolute;
    top: 50%;
    left: 7%;
    transform: translateY(-50%);
    max-width: 640px;
    z-index: 6;
}
.eyebrow-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--glass);
    border: 1px solid var(--glass-borde);
    border-radius: var(--radio-pill);
    padding: 7px 16px 7px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--txt-1);
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}
.badge-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--dorado);
    box-shadow: 0 0 10px var(--dorado);
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%,100% { opacity: 1; transform: scale(1); }
    50%     { opacity: 0.4; transform: scale(0.6); }
}
.contenido-slide h2 {
    font-size: clamp(2.4rem, 6vw, 5rem);
    font-weight: 800;
    color: var(--blanco);
    margin-bottom: 20px;
}
.contenido-slide h2 .resalte {
    background: linear-gradient(90deg, var(--dorado), #ffe9a8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.contenido-slide p {
    font-size: clamp(1rem, 2vw, 1.35rem);
    color: var(--txt-2);
    margin-bottom: 34px;
    max-width: 520px;
}
.botones-slide { display: flex; gap: 16px; flex-wrap: wrap; }

/* Flechas/indicadores del slider */
.slider-dots {
    position: absolute;
    bottom: 28px;
    left: 7%;
    display: flex;
    gap: 10px;
    z-index: 7;
}
.slider-dots button {
    width: 36px; height: 4px;
    border: none;
    border-radius: 4px;
    background: rgba(255,255,255,0.25);
    cursor: pointer;
    transition: background 0.3s var(--ease);
}
.slider-dots button.active { background: var(--dorado); }

/* ============================================================
   9. BOTÓN PREMIUM (glass + luz que recorre el borde)
   ============================================================ */
.btn-glow {
    --mx: 50%; --my: 50%;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 14px 28px 14px 14px;
    border-radius: var(--radio-pill);
    overflow: hidden;
    text-decoration: none;
    color: var(--blanco);
    font-weight: 600;
    font-size: 1rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.03));
    border: 1px solid var(--glass-borde);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 12px 32px rgba(0,0,0,0.4);
    transition: transform 0.45s var(--ease), border-color 0.45s, background 0.45s, box-shadow 0.45s;
}
.btn-glow:hover {
    transform: translateY(-3px) scale(1.015);
    border-color: var(--glass-borde-h);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.09), 0 18px 46px rgba(0,0,0,0.55);
}
/* Variantes de color — color CORPORATIVO aplicado de forma TRASLÚCIDA (glass) */
.btn-glow.rojo     { background: linear-gradient(180deg, #d62828, #a80000); border-color: rgba(255,255,255,0.22); }
.btn-glow.azul     { background: linear-gradient(180deg, rgba(30,77,158,0.42), rgba(0,43,107,0.30)); border-color: rgba(255,255,255,0.22); }
.btn-glow.whatsapp { background: linear-gradient(180deg, rgba(37,211,102,0.45), rgba(18,140,64,0.32)); border-color: rgba(255,255,255,0.25); }
.btn-glow.whatsapp .button-icon i { color: #25D366; }

.btn-glow .border-light {
    position: absolute;
    left: -40%;
    width: 40%;
    height: 2px;
    opacity: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.95), transparent);
    transition: opacity 0.3s ease;
}
.btn-glow .border-light.top    { top: 0; }
.btn-glow .border-light.bottom { bottom: 0; }
.btn-glow:hover .border-light  { opacity: 1; }
.btn-glow:hover .border-light.top    { animation: moveLight 2.2s linear infinite; }
.btn-glow:hover .border-light.bottom { animation: moveLightReverse 2.2s linear infinite; }
@keyframes moveLight        { 0% { left: -40%; } 100% { left: 120%; } }
@keyframes moveLightReverse { 0% { left: 120%; } 100% { left: -40%; } }

.btn-glow .button-shine {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at var(--mx) var(--my), rgba(255,255,255,0.16), transparent 28%);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}
.btn-glow:hover .button-shine { opacity: 1; }

.btn-glow .button-icon {
    width: 44px; height: 44px;
    min-width: 44px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(180deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
    border: 1px solid rgba(255,255,255,0.12);
    transition: transform 0.5s var(--ease), background 0.5s;
}
.btn-glow .button-icon i { font-size: 1.15rem; }
.btn-glow:hover .button-icon { transform: translateX(4px) rotate(-10deg) scale(1.08); }

.btn-glow .button-text {
    position: relative;
    transition: text-shadow 0.35s ease;
}
.btn-glow:hover .button-text { text-shadow: 0 0 10px rgba(255,255,255,0.5); }

/* ============================================================
   10. SECCIÓN GENÉRICA + ENCABEZADOS
   ============================================================ */
.seccion {
    padding: 96px 7%;
}
.seccion-clara {
    background: var(--hueso);
    color: var(--gris-texto);
}
.titulo-seccion {
    text-align: center;
    margin-bottom: 18px;
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 800;
}
.seccion .titulo-seccion { color: var(--blanco); }
.seccion-clara .titulo-seccion { color: var(--azul); }
.subtitulo-seccion {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
    font-size: 1.05rem;
    color: var(--txt-2);
}
.seccion-clara .subtitulo-seccion { color: var(--gris-suave); }

.kicker {
    display: block;
    text-align: center;
    color: var(--rojo);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.seccion .kicker { color: var(--dorado); }

/* ============================================================
   11. TARJETAS (cards)
   ============================================================ */
.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}
.card {
    position: relative;
    background: var(--glass);
    border: 1px solid var(--glass-borde);
    border-radius: var(--radio);
    padding: 38px 26px;
    text-align: center;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow: hidden;
    transition: transform 0.45s var(--ease), border-color 0.45s, box-shadow 0.45s;
}
.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.05), transparent);
    opacity: 0;
    transition: opacity 0.45s var(--ease);
}
.card:hover {
    transform: translateY(-10px);
    border-color: var(--glass-borde-h);
    box-shadow: var(--sombra-glow);
}
.card:hover::before { opacity: 1; }
.card h3 { color: var(--blanco); margin-bottom: 12px; font-size: 1.2rem; }
.card p  { color: var(--txt-2); font-size: 0.92rem; }

/* Cards sobre secciones CLARAS → fondo blanco y texto oscuro */
.seccion-clara .card,
.seccion-clara .card-link .card {
    background: var(--blanco);
    border-color: var(--glass-claro-b);
    box-shadow: var(--sombra-card);
    backdrop-filter: none;
}
.seccion-clara .card::before {
    background: linear-gradient(180deg, rgba(0,43,107,0.04), transparent);
}
.seccion-clara .card:hover { box-shadow: 0 22px 55px rgba(0,43,107,0.22); }
.seccion-clara .card h3 { color: var(--azul); }
.seccion-clara .card p  { color: var(--gris-suave); }

.icono {
    width: 76px; height: 76px;
    border-radius: 22px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 22px;
    position: relative;
    transition: transform 0.5s var(--ease);
}
.card:hover .icono { transform: rotate(-6deg) scale(1.08); }
.icono i { color: var(--blanco); font-size: 1.7rem; }
.icono.azul  { background: linear-gradient(145deg, var(--azul-claro), var(--azul)); box-shadow: 0 10px 26px rgba(0,43,107,0.5); }
.icono.rojo  { background: linear-gradient(145deg, #ef4444, var(--rojo)); box-shadow: 0 10px 26px rgba(214,40,40,0.5); }
.icono.dorado{ background: linear-gradient(145deg, #ffe08a, var(--dorado)); box-shadow: 0 10px 26px rgba(255,209,102,0.4); }
.icono.dorado i { color: var(--azul-noche); }

.card-link { text-decoration: none; color: inherit; display: block; }

/* ============================================================
   12. SOBRE NOSOTROS (grid 2 col con parallax suave)
   ============================================================ */
.nosotros {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.img-nosotros {
    position: relative;
    border-radius: var(--radio);
    overflow: hidden;
    box-shadow: var(--sombra-card);
}
.img-nosotros img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease);
}
.img-nosotros:hover img { transform: scale(1.05); }
.img-nosotros::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, transparent 50%, rgba(0,43,107,0.4));
}
.texto-nosotros h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--azul); margin-bottom: 20px; }
.seccion .texto-nosotros h2 { color: var(--blanco); }
.texto-nosotros p { margin-bottom: 18px; font-size: 1.02rem; }
.seccion-clara .texto-nosotros p { color: var(--gris-texto); }

/* Tarjeta de iframe del sello / engranaje */
.sello-box {
    margin-top: 28px;
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--glass);
    border: 1px solid var(--glass-borde);
    border-radius: var(--radio);
    padding: 16px 22px;
    backdrop-filter: blur(12px);
}
.seccion-clara .sello-box { background: var(--glass-claro); border-color: var(--glass-claro-b); }
.sello-box .sello-animado,
.sello-box iframe {
    width: 90px; height: 90px;
    border: none;
    border-radius: 12px;
    flex-shrink: 0;
}
.sello-box .sello-txt h4 { color: inherit; margin-bottom: 4px; }
.sello-box .sello-txt p  { font-size: 0.85rem; margin: 0; opacity: 0.8; }

/* ============================================================
   13. ESTADÍSTICAS (contadores animados)
   ============================================================ */
.estadisticas {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    text-align: center;
}
.dato {
    background: var(--glass);
    border: 1px solid var(--glass-borde);
    border-radius: var(--radio);
    padding: 36px 20px;
    backdrop-filter: blur(12px);
    transition: transform 0.45s var(--ease), border-color 0.45s;
}
.dato:hover { transform: translateY(-6px); border-color: var(--glass-borde-h); }
.dato h2 {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    color: var(--dorado);
    font-weight: 800;
}
.dato p { color: var(--txt-2); margin-top: 8px; font-size: 0.95rem; }

/* ============================================================
   14. NOTICIAS
   ============================================================ */
.contenedor-noticias {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.noticia {
    background: var(--glass);
    border: 1px solid var(--glass-borde);
    border-radius: var(--radio);
    overflow: hidden;
    backdrop-filter: blur(12px);
    transition: transform 0.45s var(--ease), border-color 0.45s, box-shadow 0.45s;
}
.seccion-clara .noticia { background: var(--blanco); border-color: var(--glass-claro-b); box-shadow: var(--sombra-card); }
.noticia:hover { transform: translateY(-10px); border-color: var(--glass-borde-h); box-shadow: var(--sombra-glow); }
.noticia-img { position: relative; height: 220px; overflow: hidden; }
.noticia-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.noticia:hover .noticia-img img { transform: scale(1.08); }
.noticia-fecha {
    position: absolute;
    top: 14px; left: 14px;
    background: rgba(214,40,40,0.92);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: var(--radio-pill);
    backdrop-filter: blur(6px);
}
.texto-noticia { padding: 24px; }
.texto-noticia h3 { color: var(--blanco); margin-bottom: 10px; font-size: 1.15rem; }
.seccion-clara .texto-noticia h3 { color: var(--azul); }
.texto-noticia p { color: var(--txt-2); font-size: 0.9rem; margin-bottom: 14px; }
.seccion-clara .texto-noticia p { color: var(--gris-suave); }
.leer-mas {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--rojo); font-weight: 700; font-size: 0.85rem;
    text-decoration: none;
    transition: gap 0.3s var(--ease);
}
.leer-mas:hover { gap: 12px; }

/* ============================================================
   15. FRANJA CTA (llamado a la acción)
   ============================================================ */
.cta-franja {
    text-align: center;
    background: linear-gradient(135deg, var(--azul-noche), var(--azul));
    border: 1px solid var(--glass-borde);
    border-radius: 28px;
    padding: 64px 40px;
    position: relative;
    overflow: hidden;
}
.cta-franja::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(214,40,40,0.3), transparent 50%);
}
.cta-franja h2 { color: var(--blanco); font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 18px; position: relative; }
.cta-franja p  { color: var(--txt-2); max-width: 560px; margin: 0 auto 32px; position: relative; }
.cta-franja .botones-slide { justify-content: center; position: relative; }

/* ============================================================
   16. PÁGINAS INTERNAS — HERO COMPACTO
   ============================================================ */
.page-hero {
    position: relative;
    padding: 130px 7% 90px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    text-align: center;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,16,43,0.85), rgba(0,27,68,0.78));
}
.page-hero-inner { position: relative; z-index: 6; max-width: 800px; margin: 0 auto; }
.page-hero h1 {
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    color: var(--blanco);
    margin-bottom: 16px;
}
.page-hero p { color: var(--txt-2); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }
.breadcrumb {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 22px;
    font-size: 0.82rem;
    color: var(--txt-3);
}
.breadcrumb a { color: var(--dorado); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* Bloque de contenido tipo artículo */
.contenido-articulo {
    max-width: 860px;
    margin: 0 auto;
}
.contenido-articulo h2 { color: var(--blanco); font-size: 1.8rem; margin: 40px 0 18px; }
.seccion-clara .contenido-articulo h2 { color: var(--azul); }
.contenido-articulo h3 { color: var(--dorado); font-size: 1.3rem; margin: 30px 0 14px; }
.seccion-clara .contenido-articulo h3 { color: var(--rojo); }
.contenido-articulo p  { margin-bottom: 18px; font-size: 1.05rem; }
.contenido-articulo ul { margin: 0 0 22px 22px; }
.contenido-articulo li { margin-bottom: 10px; }

/* Caja destacada / valores */
.grid-valores {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 36px;
}
.valor-box {
    background: var(--glass);
    border: 1px solid var(--glass-borde);
    border-radius: var(--radio);
    padding: 30px 26px;
    backdrop-filter: blur(12px);
    transition: transform 0.45s var(--ease), border-color 0.45s;
}
.seccion-clara .valor-box { background: var(--blanco); border-color: var(--glass-claro-b); box-shadow: var(--sombra-card); backdrop-filter: none; }
.valor-box:hover { transform: translateY(-8px); border-color: var(--glass-borde-h); }
.valor-box .icono { margin: 0 0 18px; width: 60px; height: 60px; border-radius: 16px; }
.valor-box h3 { color: var(--blanco); margin-bottom: 10px; font-size: 1.15rem; }
.seccion-clara .valor-box h3 { color: var(--azul); }
.valor-box p { font-size: 0.92rem; color: var(--txt-2); }
.seccion-clara .valor-box p { color: var(--gris-suave); }

/* ============================================================
   17. NIVELES ACADÉMICOS (oferta)
   ============================================================ */
.nivel-fila {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 70px;
}
.nivel-fila:nth-child(even) { grid-template-columns: 1.2fr 1fr; }
.nivel-fila:nth-child(even) .nivel-img { order: 2; }
.nivel-img { border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra-card); }
.nivel-img img { width: 100%; height: 340px; object-fit: cover; transition: transform 0.8s var(--ease); }
.nivel-img:hover img { transform: scale(1.06); }
.nivel-info h2 { color: var(--blanco); font-size: 2rem; margin-bottom: 14px; }
.seccion-clara .nivel-info h2 { color: var(--azul); }
.nivel-info .edad { color: var(--dorado); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; display: block; }

/* ============================================================
   18. CONTACTO (formulario glass)
   ============================================================ */
.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 50px;
    align-items: start;
}
.info-contacto .item-contacto {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 28px;
}
.info-contacto .icono { width: 54px; height: 54px; min-width: 54px; border-radius: 14px; margin: 0; }
.info-contacto .item-contacto h4 { color: var(--blanco); margin-bottom: 4px; }
.seccion-clara .info-contacto .item-contacto h4 { color: var(--azul); }
.info-contacto .item-contacto p { color: var(--txt-2); margin: 0; }
.seccion-clara .info-contacto .item-contacto p { color: var(--gris-suave); }

.form-glass {
    background: var(--glass);
    border: 1px solid var(--glass-borde);
    border-radius: var(--radio);
    padding: 40px;
    backdrop-filter: blur(16px);
}
.seccion-clara .form-glass { background: var(--blanco); box-shadow: var(--sombra-card); border-color: var(--glass-claro-b); }
.campo { margin-bottom: 20px; }
.campo label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--txt-1);
}
.seccion-clara .campo label { color: var(--azul); }
.campo input,
.campo textarea,
.campo select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--glass-borde);
    background: rgba(255,255,255,0.04);
    color: var(--blanco);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s;
}
.seccion-clara .campo input,
.seccion-clara .campo textarea,
.seccion-clara .campo select {
    background: var(--hueso);
    color: var(--gris-texto);
    border-color: var(--glass-claro-b);
}
.campo input:focus,
.campo textarea:focus,
.campo select:focus {
    outline: none;
    border-color: var(--azul-claro);
    box-shadow: 0 0 0 3px rgba(30,77,158,0.25);
    background: rgba(255,255,255,0.07);
}
.campo textarea { resize: vertical; min-height: 130px; }

.mapa-embed {
    margin-top: 40px;
    border-radius: var(--radio);
    overflow: hidden;
    border: 1px solid var(--glass-borde);
    box-shadow: var(--sombra-card);
}
.mapa-embed iframe { width: 100%; height: 320px; border: none; display: block; }

/* ============================================================
   19. GALERÍA (masonry sencillo)
   ============================================================ */
.galeria-grid {
    columns: 3;
    column-gap: 20px;
}
.galeria-item {
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: var(--radio);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: var(--sombra-card);
}
.galeria-item img { width: 100%; transition: transform 0.7s var(--ease); }
.galeria-item:hover img { transform: scale(1.07); }
.galeria-item::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 1.6rem;
    background: rgba(0,43,107,0.5);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}
.galeria-item:hover::after { opacity: 1; }

/* ============================================================
   20. FOOTER
   ============================================================ */
footer {
    background: var(--azul-abismo);
    border-top: 1px solid var(--glass-borde);
    color: var(--txt-2);
    overflow: hidden;
}
.footer-contenido {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding: 64px 7% 40px;
}
.footer-box h3 { color: var(--blanco); margin-bottom: 18px; font-size: 1.1rem; }
.footer-box p, .footer-box a { color: var(--txt-2); margin-bottom: 10px; font-size: 0.9rem; text-decoration: none; display: block; transition: color 0.25s, padding-left 0.25s var(--ease); }
.footer-box a:hover { color: var(--dorado); padding-left: 6px; }
.footer-logo { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.footer-logo img { width: 56px; height: 56px; border-radius: 50%; }
/* Sello animado que sustituye al logo .png en el pie de página */
.footer-logo .footer-logo-sello { width: 64px; height: 64px; flex-shrink: 0; }
.footer-logo .footer-logo-sello iframe { width: 100%; height: 100%; border: none; background: transparent; display: block; pointer-events: none; }
.footer-redes { display: flex; gap: 12px; margin-top: 16px; }
.footer-redes a {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--glass);
    border: 1px solid var(--glass-borde);
    display: flex; align-items: center; justify-content: center;
    margin: 0;
    transition: transform 0.35s var(--ease), background 0.35s, border-color 0.35s;
}
.footer-redes a:hover { transform: translateY(-4px); background: var(--rojo); border-color: var(--rojo); color: #fff; }
.copy {
    text-align: center;
    padding: 22px;
    font-size: 0.85rem;
    color: var(--txt-3);
    border-top: 1px solid var(--glass-borde);
    background: rgba(0,0,0,0.25);
}
.copy span { color: var(--dorado); }

/* Botón volver arriba */
.btn-top {
    position: fixed;
    bottom: 28px; right: 28px;
    width: 50px; height: 50px;
    border-radius: 50%;
    border: 1px solid var(--glass-borde);
    background: rgba(0,27,68,0.85);
    backdrop-filter: blur(10px);
    color: #fff;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), background 0.3s;
    z-index: 90;
}
.btn-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.btn-top:hover { background: var(--rojo); }

/* ============================================================
   21. RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 1199px) {
    .cards { grid-template-columns: repeat(2, 1fr); }
    .estadisticas { grid-template-columns: repeat(2, 1fr); }
    .contenedor-noticias { grid-template-columns: repeat(2, 1fr); }
    .footer-contenido { grid-template-columns: repeat(2, 1fr); }
    .galeria-grid { columns: 2; }
    nav ul.menu-principal > li > a { padding: 20px 16px; font-size: 0.86rem; }
}

/* Móvil */
@media (max-width: 767px) {
    :root { --nav-h: 64px; }

    .topbar { flex-direction: column; gap: 8px; text-align: center; padding: 10px 24px; }
    .info-top span { display: block; margin: 0 0 4px; }

    header { flex-direction: column; gap: 16px; padding: 16px 24px; text-align: center; }
    .logo-container { flex-direction: column; gap: 12px; }

    /* Menú hamburguesa */
    .hamburguesa { display: flex; }
    .nav-inner { justify-content: flex-end; }
    nav ul.menu-principal {
        position: fixed;
        top: 0; right: 0;
        height: 100vh;
        width: 80%;
        max-width: 320px;
        flex-direction: column;
        justify-content: flex-start;
        padding: 90px 0 40px;
        background: rgba(0,16,43,0.98);
        backdrop-filter: blur(20px);
        transform: translateX(100%);
        transition: transform 0.45s var(--ease);
        overflow-y: auto;
        z-index: 150;
    }
    nav ul.menu-principal.abierto { transform: translateX(0); }
    nav ul.menu-principal > li { width: 100%; }
    nav ul.menu-principal > li > a { padding: 16px 28px; justify-content: space-between; }
    nav ul.menu-principal > li > a::after { display: none; }

    /* Submenús en acordeón */
    .submenu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        background: rgba(0,0,0,0.25);
        border: none;
        border-radius: 0;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        transition: max-height 0.4s var(--ease);
    }
    nav ul.menu-principal > li.sub-abierto .submenu { max-height: 400px; padding: 8px 0; }
    nav ul.menu-principal > li:hover .submenu { transform: none; }

    .slider { height: 78vh; min-height: 480px; }
    .contenido-slide { left: 24px; right: 24px; }

    .seccion { padding: 64px 24px; }
    .cards,
    .estadisticas,
    .contenedor-noticias,
    .footer-contenido { grid-template-columns: 1fr; }
    .galeria-grid { columns: 1; }

    .nosotros,
    .contacto-grid,
    .nivel-fila,
    .nivel-fila:nth-child(even) { grid-template-columns: 1fr; gap: 32px; }
    .nivel-fila:nth-child(even) .nivel-img { order: 0; }

    .gear-corner { opacity: 0.08; }
    .mouse-glow { display: none; }
}


/* ============================================================
   22. MEJORAS PREMIUM v2 — UECIB
   (Bloque añadido: sello scroll, engranaje footer, idioma,
    redes, botones premium, HUD Iron Man, robot, tarjetas)
   ============================================================ */

/* ------------------------------------------------------------
   22.1 SELLO ANIMADO INSTITUCIONAL (reemplaza logos)
   El <iframe> se reinicia (recarga) cuando entra en viewport
   para reproducir su animación UNA sola vez por entrada.
------------------------------------------------------------ */
.sello-animado {
    position: relative;
    background: transparent;
    overflow: visible;
}
.sello-animado iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    display: block;
    pointer-events: none;   /* el sello es decorativo */
}

/* Sello dentro del HEADER (sustituye al logo-anillo) */
.header-sello {
    width: 92px;
    height: 92px;
    flex-shrink: 0;
}

/* Sello dentro del bloque institucional inferior (footer-logo o sello-box) */
.footer-sello {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
}

/* ------------------------------------------------------------
   22.2 ENGRANAJE TRANSLÚCIDO DEL FOOTER
   Extraído SOLO del engranaje del sello (sin texto).
   Glassmorphism, glow institucional azul/rojo, giro lento.
------------------------------------------------------------ */
footer { position: relative; }   /* refuerza el contexto de apilado */
.footer-gear {
    position: absolute;
    bottom: -120px;
    right: -90px;
    width: min(46vw, 460px);
    height: min(46vw, 460px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.22;
    /* glow institucional azul + rojo */
    filter: drop-shadow(0 0 30px rgba(30,77,158,0.45))
            drop-shadow(0 0 50px rgba(214,40,40,0.25));
    animation: footer-gear-spin 60s linear infinite;
    will-change: transform;
}
.footer-gear svg { width: 100%; height: 100%; display: block; }
/* halo ambiental azul/rojo detrás del engranaje */
.footer-gear::before {
    content: '';
    position: absolute;
    inset: -12%;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%,
        rgba(30,77,158,0.18) 0%,
        rgba(214,40,40,0.10) 45%,
        transparent 72%);
    z-index: -1;
}
@keyframes footer-gear-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }   /* gira lentamente a la DERECHA */
}
/* El contenido del footer queda por encima del engranaje */
.footer-contenido, .copy { position: relative; z-index: 2; }

/* ------------------------------------------------------------
   22.3 SELECTOR DE IDIOMA (topbar)
   Minimalista, futurista, glassmorphism.
------------------------------------------------------------ */
.idioma-selector {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 18px;
}
.idioma-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--glass);
    border: 1px solid var(--glass-borde);
    border-radius: var(--radio-pill);
    color: var(--txt-1);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 12px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: border-color 0.3s var(--ease), background 0.3s, transform 0.3s var(--ease);
}
.idioma-btn i.fa-globe { color: var(--dorado); }
.idioma-btn .chevron { font-size: 0.6rem; transition: transform 0.3s var(--ease); }
.idioma-btn:hover { border-color: var(--glass-borde-h); transform: translateY(-1px); }
.idioma-selector.abierto .idioma-btn .chevron { transform: rotate(180deg); }

.idioma-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: rgba(0,16,43,0.96);
    border: 1px solid var(--glass-borde);
    border-radius: 14px;
    padding: 6px;
    box-shadow: 0 18px 44px rgba(0,0,0,0.5);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
    z-index: 300;
}
.idioma-selector.abierto .idioma-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.idioma-menu button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: none;
    border: none;
    color: var(--txt-2);
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 500;
    text-align: left;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.22s var(--ease), color 0.22s, padding-left 0.22s var(--ease);
}
.idioma-menu button .bandera { font-size: 1rem; line-height: 1; }
.idioma-menu button:hover { background: rgba(255,255,255,0.08); color: var(--blanco); padding-left: 18px; }
.idioma-menu button.activo { color: var(--dorado); background: rgba(255,209,102,0.08); }

/* ------------------------------------------------------------
   22.4 REDES SOCIALES (topbar + footer) con glow institucional
------------------------------------------------------------ */
.redes a, .footer-redes a {
    position: relative;
}
/* hover glow por red en la topbar */
.redes a i { transition: filter 0.3s var(--ease), transform 0.3s var(--ease); }
.redes a:hover i { transform: scale(1.15); }
.redes a.red-facebook:hover  { color: #4e8cff; }
.redes a.red-instagram:hover { color: #e1306c; }
.redes a.red-tiktok:hover    { color: #25f4ee; }
.redes a.red-whatsapp:hover  { color: #25d366; }
.redes a.red-correo:hover    { color: var(--dorado); }
.redes a:hover i { filter: drop-shadow(0 0 8px currentColor); }

/* iconos del footer: glassmorphism + glow al hover */
.footer-redes a {
    overflow: hidden;
    transition: transform 0.35s var(--ease), background 0.35s, border-color 0.35s, box-shadow 0.35s;
}
.footer-redes a i { transition: transform 0.35s var(--ease); position: relative; z-index: 2; }
.footer-redes a:hover i { transform: scale(1.12); }
.footer-redes a.red-facebook:hover  { background: #1877f2; border-color: #1877f2; box-shadow: 0 0 18px rgba(24,119,242,0.6); }
.footer-redes a.red-instagram:hover { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); border-color: #dc2743; box-shadow: 0 0 18px rgba(220,39,67,0.6); }
.footer-redes a.red-tiktok:hover    { background: #010101; border-color: #25f4ee; box-shadow: 0 0 18px rgba(37,244,238,0.5); }
.footer-redes a.red-whatsapp:hover  { background: #25d366; border-color: #25d366; box-shadow: 0 0 18px rgba(37,211,102,0.6); }
.footer-redes a.red-correo:hover    { background: var(--rojo); border-color: var(--rojo); box-shadow: 0 0 18px rgba(214,40,40,0.6); }
/* destello suave que recorre el icono al hover */
.footer-redes a::after {
    content: '';
    position: absolute;
    top: 0; left: -120%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s var(--ease);
    z-index: 1;
}
.footer-redes a:hover::after { left: 140%; }

/* ------------------------------------------------------------
   22.5 BOTÓN PREMIUM (efecto "Nuestros valores" reforzado)
   Líneas animadas SIEMPRE visibles + destello rápido + glow.
   Se aplica con la clase extra .btn-premium sobre .btn-glow
------------------------------------------------------------ */
.btn-glow.btn-premium {
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.10),
                0 12px 32px rgba(0,0,0,0.45),
                0 0 0 rgba(30,77,158,0);
}
/* El glow pulsante SOLO se activa al pasar el puntero por encima */
.btn-glow.btn-premium:hover      { animation: btn-premium-glow 3.2s ease-in-out infinite; }
.btn-glow.btn-premium.rojo:hover { animation: btn-premium-glow-rojo 3.2s ease-in-out infinite; }
.btn-glow.btn-premium.whatsapp:hover { animation: btn-premium-glow-wa 3.2s ease-in-out infinite; }
@keyframes btn-premium-glow-wa {
    0%,100% { box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 12px 32px rgba(0,0,0,0.45), 0 0 14px rgba(37,211,102,0.30); }
    50%     { box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 14px 38px rgba(0,0,0,0.5),  0 0 28px rgba(37,211,102,0.6); }
}
@keyframes btn-premium-glow {
    0%,100% { box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 12px 32px rgba(0,0,0,0.45), 0 0 14px rgba(30,77,158,0.25); }
    50%     { box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 14px 38px rgba(0,0,0,0.5),  0 0 26px rgba(30,77,158,0.55); }
}
@keyframes btn-premium-glow-rojo {
    0%,100% { box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 12px 32px rgba(0,0,0,0.45), 0 0 14px rgba(214,40,40,0.3); }
    50%     { box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 14px 38px rgba(0,0,0,0.5),  0 0 28px rgba(214,40,40,0.6); }
}


.btn-glow.btn-premium.azul:hover { animation: btn-premium-glow-azul-soft 3.2s ease-in-out infinite; }
@keyframes btn-premium-glow-azul-soft {
    0%,100% { box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 12px 32px rgba(0,0,0,0.45), 0 0 14px rgba(30,77,158,0.30); }
    50%     { box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 14px 38px rgba(0,0,0,0.5),  0 0 28px rgba(30,77,158,0.60); }
}

/* Líneas de luz: ocultas en reposo, aparecen y se mueven SOLO en hover */
.btn-glow.btn-premium .border-light { opacity: 0; }
.btn-glow.btn-premium:hover .border-light { opacity: 1; }
.btn-glow.btn-premium:hover .border-light.top    { animation: moveLight 1.4s linear infinite; }
.btn-glow.btn-premium:hover .border-light.bottom { animation: moveLightReverse 1.4s linear infinite; }
/* Destello rápido diagonal: SOLO recorre el botón mientras el puntero está encima */
.btn-glow.btn-premium::after {
    content: '';
    position: absolute;
    top: 0; left: -150%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
    transform: skewX(-22deg);
    pointer-events: none;
    z-index: 1;
}
@keyframes btn-premium-sweep {
    0%   { left: -150%; }
    55%  { left: 150%; }
    100% { left: 150%; }
}
/* Al pasar el puntero: el destello recorre el botón en bucle continuo */
.btn-glow.btn-premium:hover::after { animation: btn-premium-sweep 1.4s ease-in-out infinite; }
.btn-glow.btn-premium:hover { box-shadow: 0 0 20px rgba(30,77,158,0.5); }
/* Asegura que icono y texto queden sobre el destello */
.btn-glow .button-icon, .btn-glow .button-text { position: relative; z-index: 2; }

/* ------------------------------------------------------------
   22.6 CTA "FORMA PARTE" estilo sección de cifras + HUD Iron Man
------------------------------------------------------------ */
/* La franja CTA pasa a fondo oscuro futurista (como "cifras") */
.cta-franja.cta-comunidad {
    background: linear-gradient(135deg, var(--azul-abismo) 0%, var(--azul-noche) 55%, #0a1f3d 100%);
    border: 1px solid var(--glass-borde);
    border-radius: 28px;
    padding: 90px 40px;
    isolation: isolate;
    overflow: hidden;                /* recorta el HUD en la esquina y contiene al robot */
    box-shadow: inset 0 0 80px rgba(0,0,0,0.45), var(--sombra-card);
}
.cta-comunidad::before {
    background: radial-gradient(circle at 80% 15%, rgba(214,40,40,0.25), transparent 45%),
                radial-gradient(circle at 15% 85%, rgba(30,77,158,0.30), transparent 50%);
}
/* Blur cinematográfico / profundidad: capa de partículas internas */
.cta-comunidad .cta-glow-orbs {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    border-radius: inherit;
}
.cta-comunidad .cta-glow-orbs span {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    animation: cta-orb 14s ease-in-out infinite;
}
.cta-comunidad .cta-glow-orbs span:nth-child(1){ width:280px;height:280px;background:rgba(30,77,158,0.5); top:-60px; left:-40px; }
.cta-comunidad .cta-glow-orbs span:nth-child(2){ width:240px;height:240px;background:rgba(214,40,40,0.4); bottom:-50px; right:-30px; animation-delay:-5s; }
.cta-comunidad .cta-glow-orbs span:nth-child(3){ width:180px;height:180px;background:rgba(46,125,91,0.35); top:40%; left:55%; animation-delay:-9s; }
@keyframes cta-orb {
    0%,100% { transform: translate(0,0) scale(1); }
    50%     { transform: translate(20px,-24px) scale(1.12); }
}
.cta-comunidad h2 { color: var(--blanco); }
.cta-comunidad p  { color: var(--txt-2); }

/* --- HUD ESTILO IRON MAN (escáner holográfico de fondo) --- */
.hud-iron {
    position: absolute;
    bottom: -90px; left: -90px;       /* esquina inferior izquierda — ~25% fuera → ~75% visible */
    width: 360px; height: 360px;
    transform: perspective(800px) rotateX(12deg) rotateY(-8deg);
    transform-style: preserve-3d;
    z-index: -1;
    pointer-events: auto;            /* permite hover/click */
    opacity: 0.55;                    /* translúcido, parte del fondo */
    --hud-color: #00f2fe;             /* color base holográfico (cyan) */
    cursor: crosshair;
    transition: opacity 0.5s var(--ease);
}
.hud-iron:hover { opacity: 0.85; }
.hud-iron .anillo {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px solid var(--hud-color);
    box-shadow: 0 0 14px var(--hud-color), inset 0 0 14px rgba(0,242,254,0.25);
    opacity: 0.9;
}
/* Anillo exterior — semicírculo (borde superior transparente) girando horario */
.hud-iron .anillo.r1 {
    border-color: var(--hud-color) var(--hud-color) transparent transparent;
    animation: hud-spin-cw 8s linear infinite, hud-flicker 4s steps(40) infinite;
}
/* Anillo medio — antihorario */
.hud-iron .anillo.r2 {
    inset: 38px;
    border-color: transparent var(--hud-color) transparent var(--hud-color);
    animation: hud-spin-ccw 6s linear infinite;
}
/* Anillo interior — horario rápido, segmentado */
.hud-iron .anillo.r3 {
    inset: 76px;
    border-style: dashed;
    border-color: var(--hud-color);
    opacity: 0.6;
    animation: hud-spin-cw 4.5s linear infinite;
}
/* Marcas radiales (ticks) */
.hud-iron .ticks {
    position: absolute;
    inset: 14px;
    border-radius: 50%;
    background:
        repeating-conic-gradient(from 0deg,
            var(--hud-color) 0deg 0.6deg,
            transparent 0.6deg 12deg);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 16px), #000 calc(100% - 16px));
            mask: radial-gradient(farthest-side, transparent calc(100% - 16px), #000 calc(100% - 16px));
    opacity: 0.5;
    animation: hud-spin-ccw 22s linear infinite;
}
/* Núcleo con datos numéricos ficticios */
.hud-iron .hud-core {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 150px; height: 150px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: radial-gradient(circle, rgba(0,242,254,0.10), transparent 70%);
    box-shadow: inset 0 0 30px rgba(0,242,254,0.2);
    color: var(--hud-color);
    font-family: 'Sora', monospace;
    text-shadow: 0 0 8px var(--hud-color);
}
.hud-iron .hud-core .hud-val {
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1;
}
.hud-iron .hud-core .hud-sub {
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    opacity: 0.8;
    text-transform: uppercase;
}
.hud-iron .hud-core .hud-bars {
    display: flex; gap: 3px; margin-top: 6px;
}
.hud-iron .hud-core .hud-bars i {
    width: 3px; height: 12px;
    background: var(--hud-color);
    border-radius: 2px;
    opacity: 0.7;
    animation: hud-bar 1s ease-in-out infinite;
}
.hud-iron .hud-core .hud-bars i:nth-child(2){ animation-delay:.15s }
.hud-iron .hud-core .hud-bars i:nth-child(3){ animation-delay:.3s }
.hud-iron .hud-core .hud-bars i:nth-child(4){ animation-delay:.45s }
.hud-iron .hud-core .hud-bars i:nth-child(5){ animation-delay:.6s }
@keyframes hud-bar { 0%,100% { transform: scaleY(0.4); } 50% { transform: scaleY(1.3); } }
/* Estado acelerado (hover/activo vía JS) */
.hud-iron.activo { --hud-color: #ff0844; }
.hud-iron.activo .anillo.r1 { animation: hud-spin-cw 2.2s linear infinite, hud-flicker 4s steps(40) infinite; }
.hud-iron.activo .anillo.r2 { animation: hud-spin-ccw 1.8s linear infinite; }
.hud-iron.activo .anillo.r3 { animation: hud-spin-cw 1.4s linear infinite; }
@keyframes hud-spin-cw  { to { transform: rotate(360deg); } }
@keyframes hud-spin-ccw { to { transform: rotate(-360deg); } }
@keyframes hud-flicker {
    0%,19%,21%,100% { opacity: 0.9; }
    20%             { opacity: 0.55; }
    50%,52%         { opacity: 1; }
    51%             { opacity: 0.7; }
}
/* El contenido de la CTA va por encima del HUD */
.cta-comunidad h2, .cta-comunidad p, .cta-comunidad .botones-slide { position: relative; z-index: 3; }

/* --- ROBOT/DRON AZUL FLOTANTE que reacciona al mouse --- */
.robot-flotante {
    position: absolute;
    top: 22%; right: 8%;
    width: 90px; height: 110px;
    z-index: 3;
    pointer-events: auto;            /* permite detectar el puntero sobre el robot (cara feliz) */
    cursor: pointer;
    /* idle: flotación autónoma suave */
    animation: robot-idle 6s ease-in-out infinite;
    transition: transform 0.6s cubic-bezier(0.22,1,0.36,1);
    filter: drop-shadow(0 0 18px rgba(30,120,255,0.55));
}
.robot-flotante svg { width: 100%; height: 100%; display: block; }
@keyframes robot-idle {
    0%,100% { transform: translateY(0) rotate(-2deg); }
    50%     { transform: translateY(-14px) rotate(2deg); }
}

/* --- CARA EXPRESIVA DEL ROBOT (ojos tomados de robot_faces.html, sin boca) --- */
/* Se superpone sobre el visor oscuro del SVG (rect x30 y32 w40 h20 en viewBox 100x120) */
.robot-flotante .robot-cara {
    position: absolute;
    top: 23%; left: 20%;
    width: 60%; height: 23%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.robot-flotante .robot-ojos {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 35%;
    height: 85%;
}
/* Estado base / estático: bloques cian nítidos (NEUTRO) */
.robot-flotante .robot-ojo {
    position: relative;
    width: 20%;
    height: 60%;
    background: #00f2fe;
    border-radius: 6px;
    box-shadow: none; /*0 0 6px rgba(0,242,254,0.8); */
    animation: robot-ojos-neutro 5s infinite;
}
/* Arco "feliz" (∩) oculto en reposo */
.robot-flotante .robot-arco {
    position: absolute;
    left: 50%; bottom: 0;
    transform: translateX(-50%) scale(0.6);
    width: 150%; height: 90%;
    border: 2px solid #00f2fe;
    border-bottom: none;
    border-radius: 50% 50% 0 0;
    box-shadow: 0 0 6px rgba(0,242,254,0.8);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.25s ease;
}

/* NEUTRO: escaneo lateral suave + parpadeo */
@keyframes robot-ojos-neutro {
    0%, 15%, 85%, 100% { transform: translateX(0) scaleY(1); }
    18%, 22%           { transform: translateX(0) scaleY(0.12); }
    20%, 24%           { transform: translateX(0) scaleY(1); }
    35%, 50%           { transform: translateX(-2px) scaleY(1); }
    62%, 77%           { transform: translateX(2px) scaleY(1); }
}

/* ============================================================
   ROBOT — 5 EXPRESIONES
   Activadas por clases .is-* en #robotCara desde JS
   ============================================================ */

/* Cejas — ocultas por defecto, visibles en expresiones que las usan */
.robot-flotante .robot-cara .brow {
    position: absolute;
    width: 36%; height: 10%;
    top: -28%;
    background: #00f2fe;
    border-radius: 3px;
    opacity: 0;
    box-shadow: 0 0 6px rgba(0,242,254,0.8);
    transition: opacity 0.2s;
}
.robot-flotante .robot-cara .brow.left  { left: 4%; }
.robot-flotante .robot-cara .brow.right { right: 4%; }

/* X en los ojos — solo en desconectado */
.robot-flotante .robot-ojo .x-shape {
    position: absolute; inset: 0;
    opacity: 0;
    pointer-events: none;
}
.robot-flotante .robot-ojo .x-shape::before,
.robot-flotante .robot-ojo .x-shape::after {
    content: ''; position: absolute;
    top: 50%; left: 50%;
    width: 130%; height: 18%;
    background: #00f2fe; border-radius: 3px;
    box-shadow: 0 0 6px rgba(0,242,254,0.8);
}
.robot-flotante .robot-ojo .x-shape::before { transform: translate(-50%,-50%) rotate(45deg); }
.robot-flotante .robot-ojo .x-shape::after  { transform: translate(-50%,-50%) rotate(-45deg); }

/* Cuando hay expresión activa, cancela la animación neutra base */
.robot-flotante .robot-cara.is-active .robot-ojo { animation: none; }

/* ── 1. PECULIAR ── */
.robot-flotante .robot-cara.is-peculiar .robot-ojos      { animation: rc-peculiarTilt 5s infinite ease-in-out; }
.robot-flotante .robot-cara.is-peculiar .robot-ojo.left  { animation: rc-peculiarL   5s infinite ease-in-out; }
.robot-flotante .robot-cara.is-peculiar .robot-ojo.right { animation: rc-peculiarR   5s infinite ease-in-out; }
@keyframes rc-peculiarL {
    0%,15%,85%,100% { transform: scale(1); }
    30%,45%         { transform: scale(1.4); }
    55%,70%         { transform: scaleY(0.3) scaleX(0.8) translateY(4px); }
}
@keyframes rc-peculiarR {
    0%,15%,85%,100% { transform: scale(1); }
    30%,45%         { transform: scaleY(0.3) scaleX(0.8) translateY(4px); }
    55%,70%         { transform: scale(1.4); }
}
@keyframes rc-peculiarTilt {
    0%,15%,85%,100% { transform: rotate(0); }
    30%,45%         { transform: rotate(-8deg); }
    55%,70%         { transform: rotate(8deg); }
}

/* ── 2. SONRIENTE ── */
.robot-flotante .robot-cara.is-sonriente .robot-ojo { animation: rc-smilingEyes 5s infinite; }
@keyframes rc-smilingEyes {
    0%,20%,80%,100% { transform: scaleY(1) translateY(0);      border-radius: 2px; }
    30%,75%         { transform: scaleY(0.35) translateY(-2px); border-radius: 8px 8px 2px 2px; }
    40%,60%         { transform: scaleY(0.25) translateY(-3px); }
    50%,68%         { transform: scaleY(0.35) translateY(-2px); }
}

/* ── 3. FELIZ (hover + expresión) ── */
.robot-flotante:hover .robot-ojo,
.robot-flotante .robot-cara.is-feliz .robot-ojo {
    background: transparent;
    box-shadow: none;
    animation: rc-happyBase 5s infinite;
}
.robot-flotante:hover .robot-arco,
.robot-flotante .robot-cara.is-feliz .robot-arco {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}
.robot-flotante:hover .robot-ojos,
.robot-flotante .robot-cara.is-feliz .robot-ojos {
    animation: rc-happyBounce 1.2s ease-in-out infinite;
}
@keyframes rc-happyBase {
    0%,20%,80%,100% { background: transparent; }
    25%,75%         { background: transparent; }
}
@keyframes rc-happyBounce {
    0%,100% { transform: translateY(0); }
    50%     { transform: translateY(-2px); }
}

/* ── 4. PREOCUPADO ── */
.robot-flotante .robot-cara.is-preocupado .brow.left  { animation: rc-worriedBrowL 5s infinite; }
.robot-flotante .robot-cara.is-preocupado .brow.right { animation: rc-worriedBrowR 5s infinite; }
.robot-flotante .robot-cara.is-preocupado .robot-ojo  { animation: rc-worriedEyes  5s infinite; }
@keyframes rc-worriedBrowL {
    0%,25%,85%,100% { transform: rotate(0) translateY(0);       opacity: 0; }
    35%,75%         { transform: rotate(-14deg) translateY(-2px); opacity: 1; }
}
@keyframes rc-worriedBrowR {
    0%,25%,85%,100% { transform: rotate(0) translateY(0);      opacity: 0; }
    35%,75%         { transform: rotate(14deg) translateY(-2px); opacity: 1; }
}
@keyframes rc-worriedEyes {
    0%,25%,85%,100% { transform: scale(1) translateY(0); }
    30%,45%         { transform: scaleY(0.15); }
    34%,49%         { transform: scaleY(1); }
    55%,75%         { transform: scale(0.9) translateY(2px); }
}

/* ── 5. DESCONECTADO ── */
.robot-flotante .robot-cara.is-desconectado .robot-ojo { animation: rc-deadEyeBase    5s infinite; }
.robot-flotante .robot-cara.is-desconectado .x-shape   { animation: rc-deadXTimeline  5s infinite; }
@keyframes rc-deadEyeBase {
    0%,22%,78%,100% { background: #00f2fe; }
    25%,75%         { background: transparent; }
}
@keyframes rc-deadXTimeline {
    0%,22%,78%,100%         { opacity: 0; }
    25%,38%,42%,55%,68%,75% { opacity: 1; }
    30%,40%,60%,70%         { opacity: 0.15; }
}

/* ------------------------------------------------------------
   22.7 TARJETAS PREMIUM (cards) — barrido de luz + glow + reveal
------------------------------------------------------------ */
/* línea azul institucional superior + glow */
.cards .card {
    position: relative;
    isolation: isolate;
}
.cards .card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--azul-claro), transparent);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}
.cards .card:hover::after { opacity: 1; box-shadow: 0 0 14px var(--azul-claro); }
.cards .card:hover { box-shadow: 0 18px 50px rgba(30,77,158,0.30), 0 0 22px rgba(30,77,158,0.25); }

/* Barrido de luz diagonal sobre la tarjeta */
.cards .card .card-sweep {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}
.cards .card .card-sweep::before {
    content: '';
    position: absolute;
    top: 0; left: -150%;
    width: 55%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(120,170,255,0.45), transparent);
    transform: skewX(-22deg);
}
/* Disparo del barrido al entrar en viewport (clase .barrido) — UNA vez */
.cards .card.barrido .card-sweep::before { animation: card-sweep 1s ease-out forwards; }
/* Repetición al hacer hover */
.cards .card:hover .card-sweep::before { animation: card-sweep 0.9s ease-out forwards; }
@keyframes card-sweep {
    0%   { left: -150%; }
    100% { left: 160%; }
}
/* glow de los iconos internos al entrar / hover */
.cards .card .icono { transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), filter 0.5s var(--ease); }
.cards .card.barrido .icono { animation: icono-glow 1.2s ease-out; }
.cards .card:hover .icono   { filter: drop-shadow(0 0 14px rgba(120,170,255,0.7)); }
@keyframes icono-glow {
    0%   { filter: drop-shadow(0 0 0 rgba(120,170,255,0)); }
    40%  { filter: drop-shadow(0 0 18px rgba(120,170,255,0.9)); }
    100% { filter: drop-shadow(0 0 6px rgba(120,170,255,0.3)); }
}

/* ------------------------------------------------------------
   22.8 RESPONSIVE del bloque nuevo
------------------------------------------------------------ */
@media (max-width: 1199px) {
    .robot-flotante { width: 70px; height: 86px; top: 12%; right: 4%; }
    .hud-iron { width: 300px; height: 300px; bottom: -75px; left: -75px; }
}
@media (max-width: 767px) {
    .idioma-selector { margin-left: 0; margin-top: 6px; }
    .header-sello { width: 78px; height: 78px; }
    .footer-gear { opacity: 0.12; width: 70vw; height: 70vw; bottom: -60px; right: -60px; }
    .hud-iron { width: 230px; height: 230px; opacity: 0.4; bottom: -58px; left: -58px; }
    .hud-iron .hud-core { width: 110px; height: 110px; }
    .hud-iron .hud-core .hud-val { font-size: 1.4rem; }
    .robot-flotante { display: none; }   /* se oculta en móvil por rendimiento */
    .cta-franja.cta-comunidad { padding: 70px 24px; }
}
@media (prefers-reduced-motion: reduce) {
    .footer-gear, .robot-flotante, .hud-iron .anillo, .hud-iron .ticks,
    .btn-glow.btn-premium, .btn-glow.btn-premium::after,
    .cta-comunidad .cta-glow-orbs span { animation: none !important; }
}
