/* ============================================================
   Ekho Academy — Landing institucional (B2B)
   Estilo moderno y corporativo · Material/Corporate hybrid
   Paleta: navy + azul corporativo + acento teal · neutros slate
   ============================================================ */

:root {
    /* Marca / corporativo */
    --acad-navy:        #071a32;
    --acad-navy-2:      #0a2540;
    --acad-primary:     #1557b0;
    --acad-primary-2:   #1a73e8;
    --acad-primary-3:   #3b82f6;
    --acad-accent:      #0e8f9e;
    --acad-accent-2:    #14b8c4;

    /* Tinta y neutros (slate) */
    --acad-ink:         #0f172a;
    --acad-ink-2:       #334155;
    --acad-muted:       #64748b;
    --acad-muted-2:     #94a3b8;
    --acad-line:        #e2e8f0;
    --acad-line-2:      #eef2f7;

    /* Superficies */
    --acad-surface:     #ffffff;
    --acad-bg:          #f6f8fb;
    --acad-bg-2:        #eef3f9;

    /* Radios */
    --acad-r-sm: 10px;
    --acad-r-md: 16px;
    --acad-r-lg: 24px;
    --acad-r-pill: 9999px;

    /* Sombras (sutiles, corporativas) */
    --acad-sh-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .04);
    --acad-sh-md: 0 8px 24px rgba(15, 23, 42, .08);
    --acad-sh-lg: 0 20px 48px rgba(7, 26, 50, .14);

    /* Fuentes */
    --acad-font-head: 'Sora', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --acad-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --acad-nav-h: 68px;
}

* { box-sizing: border-box; }

body.acad-body {
    margin: 0;
    font-family: var(--acad-font-body);
    color: var(--acad-ink);
    background: var(--acad-surface);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.acad-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Botones ─────────────────────────────────────────────── */
.acad-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--acad-font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .01em;
    line-height: 1;
    padding: 12px 22px;
    border-radius: var(--acad-r-sm);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
    white-space: nowrap;
}
.acad-btn:hover { text-decoration: none; transform: translateY(-1px); }

.acad-btn-primary {
    background: var(--acad-primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(21, 87, 176, .28);
}
.acad-btn-primary:hover { background: var(--acad-navy-2); color: #fff; box-shadow: 0 8px 22px rgba(21, 87, 176, .34); }

.acad-btn-outline {
    background: transparent;
    color: var(--acad-ink);
    border-color: var(--acad-line);
}
.acad-btn-outline:hover { border-color: var(--acad-primary); color: var(--acad-primary); background: #fff; }

.acad-btn-ghost {
    background: rgba(255, 255, 255, .08);
    color: #fff;
    border-color: rgba(255, 255, 255, .28);
}
.acad-btn-ghost:hover { background: rgba(255, 255, 255, .16); color: #fff; }

.acad-btn-white {
    background: #fff;
    color: var(--acad-navy-2);
}
.acad-btn-white:hover { background: #f1f5f9; color: var(--acad-navy); }

.acad-btn-ghost-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, .4);
}
.acad-btn-ghost-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* Enlace discreto: acompaña a un CTA sólido sin competir con él */
.acad-btn-link-light {
    background: transparent;
    color: rgba(255, 255, 255, .72);
    border-color: transparent;
    font-weight: 500;
}
.acad-btn-link-light:hover { background: transparent; color: #fff; text-decoration: underline; transform: none; }

.acad-btn-secondary {
    background: var(--acad-bg-2);
    color: var(--acad-ink-2);
}
.acad-btn-secondary:hover { background: var(--acad-line); }

.acad-btn-lg { padding: 15px 28px; font-size: 15px; }
.acad-btn-full { width: 100%; }

/* ── Navbar ──────────────────────────────────────────────── */
.acad-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--acad-nav-h);
    background: rgba(255, 255, 255, .82);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--acad-line);
}
.acad-nav-inner {
    max-width: 100%;
    margin: 0 auto;
    height: 100%;
    padding: 0 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.acad-logo { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.acad-logo-mark {
    width: 38px; height: 38px;
    border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 18px;
    background: linear-gradient(135deg, var(--acad-primary), var(--acad-navy-2));
    box-shadow: 0 4px 12px rgba(21, 87, 176, .3);
}
.acad-logo-text { font-family: var(--acad-font-head); font-weight: 700; font-size: 20px; color: var(--acad-ink); letter-spacing: -.02em; }
.acad-logo-accent { color: var(--acad-primary); }

.acad-nav-actions { display: flex; align-items: center; gap: 12px; }

/* ── Language switcher ───────────────────────────────────── */
.language-switcher { position: relative; }
.language-button {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 12px;
    background: var(--acad-bg);
    border: 1px solid var(--acad-line);
    border-radius: var(--acad-r-sm);
    cursor: pointer;
    font-family: var(--acad-font-body);
    font-size: 13px; font-weight: 600; color: var(--acad-ink-2);
    transition: border-color .18s ease, background .18s ease;
}
.language-button:hover { border-color: var(--acad-primary); background: #fff; }
.current-lang { display: flex; align-items: center; gap: 7px; }
.flag-emoji { font-size: 16px; line-height: 1; }
.chevron { width: 15px; height: 15px; transition: transform .2s ease; }
.language-button.open .chevron,
.chevron.open { transform: rotate(180deg); }
.language-dropdown {
    position: absolute; top: calc(100% + 8px); right: 0;
    min-width: 180px;
    background: #fff;
    border: 1px solid var(--acad-line);
    border-radius: var(--acad-r-md);
    box-shadow: var(--acad-sh-md);
    padding: 6px;
    display: none;
    z-index: 60;
}
.language-dropdown.open, .language-dropdown.active { display: block; }
.language-option {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px;
    border-radius: var(--acad-r-sm);
    cursor: pointer;
    font-size: 13px; font-weight: 500; color: var(--acad-ink-2);
    transition: background .15s ease, color .15s ease;
}
.language-option:hover, .language-option.active { background: var(--acad-bg-2); color: var(--acad-primary); }
.language-option .lang-code { margin-left: auto; font-size: 11px; color: var(--acad-muted-2); text-transform: uppercase; }

/* ── Hamburger (decorativo / responsive) ─────────────────── */
.acad-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.acad-hamburger span { width: 24px; height: 2px; background: var(--acad-ink); border-radius: 2px; }

/* ── Hero ────────────────────────────────────────────────── */
.acad-hero {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    min-height: 100vh;
}
.acad-hero-topbar {
    position: absolute;
    top: 24px; right: 32px;
    z-index: 5;
    display: flex; align-items: center; gap: 12px;
}

/* Marca (wordmark) sobre el panel navy */
.acad-hero-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.acad-hero-brand .acad-logo-mark { width: 52px; height: 52px; font-size: 24px; border-radius: 15px; }
.acad-hero-brand-text { font-family: var(--acad-font-head); font-weight: 700; font-size: 30px; color: #fff; letter-spacing: -.02em; }
.acad-hero-brand .acad-logo-accent { color: #7cc0ff; }

/* Headline grande (slogan rotativo con palabra destacada) */
.acad-hero-headline { position: relative; min-height: 196px; margin: 4px 0 20px; }
.acad-headline-item {
    position: absolute; inset: 0; margin: 0;
    font-family: var(--acad-font-head);
    font-weight: 700;
    font-size: clamp(26px, 3.3vw, 40px);
    line-height: 1.1; letter-spacing: -.025em;
    color: #fff;
    opacity: 0;
    will-change: opacity, transform;
    animation: acadSloganRotate 18s infinite;
}
.acad-headline-item:nth-child(1) { animation-delay: 0s; }
.acad-headline-item:nth-child(2) { animation-delay: 4.5s; }
.acad-headline-item:nth-child(3) { animation-delay: 9s; }
.acad-headline-item:nth-child(4) { animation-delay: 13.5s; }
.acad-headline-item b { color: #7cc0ff; font-weight: 700; }
/* Si queda una sola frase (las demás comentadas), se muestra fija */
.acad-headline-item:only-child { position: relative; opacity: 1; animation: none; }
@media (prefers-reduced-motion: reduce) {
    .acad-headline-item { animation: none; opacity: 0; }
    .acad-headline-item:nth-child(1) { opacity: 1; position: relative; }
}

/* Panel izquierdo (navy) */
.acad-hero-left {
    position: relative;
    overflow: hidden;
    background: radial-gradient(1200px 500px at 80% -10%, rgba(26, 115, 232, .35), transparent 60%),
                linear-gradient(160deg, var(--acad-navy) 0%, var(--acad-navy-2) 55%, #0d3066 100%);
    color: #fff;
    display: flex; flex-direction: column;
    padding: 80px 64px 80px 96px;
}
.acad-hero-left-content { position: relative; z-index: 1; width: 100%; max-width: 560px; margin: auto 0; }
.acad-hero-left .acad-hero-title { font-size: clamp(34px, 4vw, 46px); }
.acad-hero-left .acad-hero-rotator { margin: -2px 0 24px; max-width: 100%; }
.acad-hero-left .acad-rotate-item { justify-content: flex-start; text-align: left; }
.acad-hero-left .acad-hero-desc { max-width: 520px; margin: 0 0 30px; }
.acad-hero-left .acad-hero-actions { justify-content: flex-start; }
.acad-hero-left .acad-hero-trust-label { justify-content: flex-start; }
.acad-hero-left .acad-hero-trust-label::before { display: none; }
.acad-hero-left .acad-hero-trust-logos { justify-content: flex-start; }

/* Panel derecho (formulario de login) */
.acad-hero-right {
    position: relative;
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    padding: 64px 56px;
}
.acad-hero-lang { position: absolute; top: 24px; right: 32px; z-index: 5; }
.acad-login { width: 100%; max-width: 420px; }
.acad-login-title { font-family: var(--acad-font-head); font-weight: 700; font-size: 30px; color: var(--acad-ink); margin: 0 0 6px; }
.acad-login-sub { font-size: 15px; color: var(--acad-muted); margin: 0 0 28px; }
.acad-login-divider { display: flex; align-items: center; color: var(--acad-muted-2); margin: 22px 0 18px; }
.acad-login-divider::before, .acad-login-divider::after { content: ''; flex: 1; height: 1px; background: var(--acad-line); }
.acad-login-divider span { padding: 0 14px; font-size: 12px; }
.acad-login-demo { text-align: center; font-size: 14px; color: var(--acad-ink-2); margin: 0 0 14px; }
.acad-login-demo a { color: var(--acad-primary); font-weight: 700; text-decoration: none; }
.acad-login-demo a:hover { text-decoration: underline; }
.acad-login-register { text-align: center; font-size: 13.5px; margin: 0; }
.acad-login-register a { color: var(--acad-primary); font-weight: 600; text-decoration: none; }
.acad-login-register a:hover { text-decoration: underline; }

/* ── Flujo animado: maestro → Ekho → estudiantes (panel derecho blanco) ── */
.acad-fl {
    position: relative;
    width: 100%; max-width: 400px; margin: 0 auto;
    padding-top: 4px;
    color: var(--acad-ink);
}
.acad-fl-step {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    font-family: var(--acad-font-head); font-weight: 700; font-size: 11px;
    letter-spacing: .6px; text-transform: uppercase; color: var(--acad-muted-2);
    text-align: center; margin: 5px 0;
}
.acad-fl-step-n {
    flex-shrink: 0;
    width: 22px; height: 22px; border-radius: 50%;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--acad-primary-2), var(--acad-primary));
    color: #fff; font-size: 12px; font-weight: 800; letter-spacing: 0;
    box-shadow: 0 5px 12px -4px rgba(26, 115, 232, .55);
}

/* nodo maestro */
.acad-fl-teacher {
    display: flex; align-items: center; gap: 13px; width: fit-content; margin: 0 auto;
    background: var(--acad-bg); border: 1px solid var(--acad-line);
    border-radius: 15px; padding: 14px 22px 14px 15px; position: relative; z-index: 3;
    animation: acadFlTeach 5s ease-in-out infinite;
}
@keyframes acadFlTeach { 0%, 100% { border-color: var(--acad-line); } 3%, 16% { border-color: var(--acad-primary-2); } 26% { border-color: var(--acad-line); } }
.acad-fl-teacher-ic { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: linear-gradient(135deg, #64748b, #475569); }
.acad-fl-teacher-ic svg { width: 23px; height: 23px; stroke: #fff; fill: none; stroke-width: 1.8; }
.acad-fl-teacher-name { font-family: var(--acad-font-head); font-weight: 700; font-size: 16px; color: var(--acad-ink); line-height: 1.1; }
.acad-fl-teacher-sub { font-size: 12.5px; color: var(--acad-muted); }

/* conector maestro -> Ekho */
.acad-fl-conn-top { display: block; width: 100%; height: 38px; overflow: visible; }

/* hub Ekho */
.acad-fl-ekho {
    background: linear-gradient(160deg, var(--acad-navy-2), var(--acad-primary));
    border: 1px solid rgba(26,115,232,.4); border-radius: 18px; padding: 18px 20px;
    box-shadow: 0 24px 50px -22px rgba(10,37,64,.55); position: relative; z-index: 3; width: 90%; margin: 0 auto;
}
.acad-fl-ekho::after { content: ""; position: absolute; inset: 0; border-radius: 18px; box-shadow: 0 0 0 0 rgba(26,115,232,.45); animation: acadFlPulse 5s ease-out infinite; }
@keyframes acadFlPulse { 0%, 16% { box-shadow: 0 0 0 0 rgba(26,115,232,0); } 20% { box-shadow: 0 0 0 0 rgba(26,115,232,.45); } 40% { box-shadow: 0 0 0 16px rgba(26,115,232,0); } 100% { box-shadow: 0 0 0 0 rgba(26,115,232,0); } }
.acad-fl-ekho-head { display: flex; align-items: center; gap: 12px; }
.acad-fl-ekho-ic { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center; font-family: var(--acad-font-head); font-weight: 800; font-size: 20px; color: #fff; background: linear-gradient(135deg, #56c4f0, #1f5fc4); }
.acad-fl-ekho-name { font-family: var(--acad-font-head); font-weight: 700; font-size: 16px; color: #fff; }
.acad-fl-ekho-name b { color: #8fdcff; }
.acad-fl-ekho-sub { font-size: 12.5px; color: rgba(255,255,255,.72); }
.acad-fl-bar { height: 7px; border-radius: 7px; margin-top: 15px; background: rgba(255,255,255,.14); overflow: hidden; position: relative; }
.acad-fl-bar::before { content: ""; position: absolute; inset: 0; width: 15%; border-radius: 7px; background: linear-gradient(90deg, #8fdcff, #3b82f6); animation: acadFlFill 5s ease-in-out infinite; }
@keyframes acadFlFill { 0%, 16% { width: 12%; } 40% { width: 92%; } 100% { width: 92%; } }

/* conector Ekho -> estudiantes */
.acad-fl-connect { display: block; width: 100%; height: 62px; overflow: visible; }
.acad-fl-branch { fill: none; stroke: rgba(15,23,42,.14); stroke-width: 2; }
.acad-fl-dot { fill: var(--acad-primary-2); filter: drop-shadow(0 0 6px rgba(26,115,232,.7)); }

/* estudiantes */
.acad-fl-students { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.acad-fl-stu { background: var(--acad-bg); border: 1px solid var(--acad-line); border-radius: 15px; padding: 16px 10px; text-align: center; position: relative; animation: acadFlStu 5s ease-in-out infinite; }
.acad-fl-stu:nth-child(1) { animation-delay: 2.45s; }
.acad-fl-stu:nth-child(2) { animation-delay: 2.7s; }
.acad-fl-stu:nth-child(3) { animation-delay: 2.95s; }
.acad-fl-ripple { position: absolute; inset: 0; border-radius: 15px; pointer-events: none; }
.acad-fl-ripple::before, .acad-fl-ripple::after { content: ""; position: absolute; inset: 0; border-radius: 15px; border: 1.5px solid var(--acad-primary-2); opacity: 0; animation: acadFlResonate 5s ease-out infinite; }
.acad-fl-stu:nth-child(1) .acad-fl-ripple::before { animation-delay: 2.45s; }
.acad-fl-stu:nth-child(2) .acad-fl-ripple::before { animation-delay: 2.7s; }
.acad-fl-stu:nth-child(3) .acad-fl-ripple::before { animation-delay: 2.95s; }
.acad-fl-stu:nth-child(1) .acad-fl-ripple::after { animation-delay: 2.6s; }
.acad-fl-stu:nth-child(2) .acad-fl-ripple::after { animation-delay: 2.85s; }
.acad-fl-stu:nth-child(3) .acad-fl-ripple::after { animation-delay: 3.1s; }
.acad-fl-ava { width: 40px; height: 40px; border-radius: 50%; margin: 0 auto 9px; display: grid; place-items: center; font-family: var(--acad-font-head); font-weight: 700; font-size: 14px; color: #fff; position: relative; z-index: 2; }
.acad-fl-ava.s1 { background: linear-gradient(135deg, #f0a83b, #e0742a); }
.acad-fl-ava.s2 { background: linear-gradient(135deg, #56c4f0, #1f5fc4); }
.acad-fl-ava.s3 { background: linear-gradient(135deg, #9b6bf0, #5b3bc4); }
.acad-fl-nm { font-family: var(--acad-font-head); font-weight: 600; font-size: 13.5px; color: var(--acad-ink); line-height: 1.2; position: relative; z-index: 2; }
.acad-fl-tag { font-size: 11px; color: var(--acad-muted); margin-top: 4px; line-height: 1.25; position: relative; z-index: 2; }
.acad-fl-chk { position: absolute; top: 9px; right: 9px; width: 18px; height: 18px; border-radius: 50%; z-index: 3; background: #34a853; display: grid; place-items: center; opacity: 0; transform: scale(.4); animation: acadFlChk 5s ease-in-out infinite; }
.acad-fl-stu:nth-child(1) .acad-fl-chk { animation-delay: 2.45s; }
.acad-fl-stu:nth-child(2) .acad-fl-chk { animation-delay: 2.7s; }
.acad-fl-stu:nth-child(3) .acad-fl-chk { animation-delay: 2.95s; }
.acad-fl-chk svg { width: 10px; height: 10px; stroke: #fff; stroke-width: 3.5; fill: none; }
@keyframes acadFlStu {
    0%, 100% { border-color: var(--acad-line); background: var(--acad-bg); transform: translateY(0); }
    6%, 36% { border-color: rgba(26,115,232,.5); background: rgba(26,115,232,.08); transform: translateY(-4px); }
    48% { border-color: var(--acad-line); background: var(--acad-bg); transform: translateY(0); }
}
@keyframes acadFlChk { 0%, 100% { opacity: 0; transform: scale(.4); } 6%, 40% { opacity: 1; transform: scale(1); } 50% { opacity: 0; transform: scale(.4); } }
@keyframes acadFlResonate { 0%, 4% { opacity: 0; transform: scale(.96); } 7% { opacity: .7; transform: scale(1); } 22% { opacity: 0; transform: scale(1.28); } 100% { opacity: 0; transform: scale(1.28); } }

@media (prefers-reduced-motion: reduce) {
    .acad-fl-float, .acad-fl-teacher, .acad-fl-ekho::after, .acad-fl-bar::before,
    .acad-fl-stu, .acad-fl-chk, .acad-fl-ripple::before, .acad-fl-ripple::after { animation: none; }
    .acad-fl-bar::before { width: 92%; }
    .acad-fl-chk { opacity: 1; transform: scale(1); }
    .acad-fl-stu { border-color: rgba(26,115,232,.5); background: rgba(26,115,232,.08); }
}
.acad-hero-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(900px 500px at 50% 0%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(900px 500px at 50% 0%, #000 30%, transparent 80%);
}
.acad-hero-glow {
    position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; pointer-events: none;
}
.acad-hero-glow-1 { width: 420px; height: 420px; background: rgba(20, 184, 196, .35); top: -120px; right: -80px; }
.acad-hero-glow-2 { width: 360px; height: 360px; background: rgba(59, 130, 246, .4); bottom: -160px; left: -60px; }

.acad-hero-inner { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; text-align: center; }
.acad-hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 16px;
    border-radius: var(--acad-r-pill);
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .22);
    font-size: 12.5px; font-weight: 600; letter-spacing: .02em;
    color: rgba(255, 255, 255, .92);
    margin-bottom: 26px;
}
.acad-hero-badge i { color: var(--acad-accent-2); }
.acad-hero-title {
    font-family: var(--acad-font-head);
    font-weight: 700;
    font-size: clamp(40px, 6vw, 60px);
    line-height: 1.05;
    letter-spacing: -.03em;
    margin: 0 0 20px;
}
.acad-hero-title-accent {
    background: linear-gradient(120deg, #7cc0ff, var(--acad-accent-2));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
/* Rotador de slogans (animación CSS pura) */
.acad-hero-rotator {
    position: relative;
    height: 34px;
    max-width: 700px;
    margin: -4px auto 24px;
}
.acad-rotate-item {
    position: absolute;
    inset: 0;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    font-family: var(--acad-font-head);
    font-weight: 600;
    font-size: 20px;
    letter-spacing: -.01em;
    color: #8fd0ff;
    opacity: 0;
    will-change: opacity, transform;
    animation: acadSloganRotate 18s infinite;
}
.acad-rotate-item:nth-child(1) { animation-delay: 0s; }
.acad-rotate-item:nth-child(2) { animation-delay: 4.5s; }
.acad-rotate-item:nth-child(3) { animation-delay: 9s; }
.acad-rotate-item:nth-child(4) { animation-delay: 13.5s; }

@keyframes acadSloganRotate {
    0%   { opacity: 0; transform: translateY(10px); }
    3%   { opacity: 1; transform: translateY(0); }
    22%  { opacity: 1; transform: translateY(0); }
    25%  { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 0; transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
    .acad-rotate-item { animation: none; opacity: 0; }
    .acad-rotate-item:nth-child(1) { opacity: 1; position: relative; }
}

/* Eyebrow chip del hero — dice qué es y para quién, sobre fondo navy */
.acad-hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 14px;
    border-radius: var(--acad-r-pill);
    background: rgba(124, 192, 255, .1);
    border: 1px solid rgba(124, 192, 255, .28);
    color: #add6ff;
    font-size: 12px; font-weight: 600;
    letter-spacing: .04em; text-transform: uppercase;
    margin-bottom: 18px;
}
.acad-hero-eyebrow i { font-size: 12px; opacity: .9; }

/* Línea fija descriptiva bajo el rotador (no rota — siempre visible) */
.acad-hero-subline {
    font-size: 16px; line-height: 1.6;
    color: rgba(255, 255, 255, .72);
    max-width: 480px; margin: 0 0 28px;
}

.acad-hero-desc {
    font-size: 18px; line-height: 1.65;
    color: rgba(255, 255, 255, .78);
    max-width: 640px; margin: 0 auto 36px;
}
.acad-hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.acad-hero-trust { position: relative; z-index: 1; max-width: 560px; margin-top: 32px; }
.acad-hero-trust-label {
    display: flex; align-items: center; justify-content: center; gap: 16px;
    font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    color: rgba(255, 255, 255, .5); margin-bottom: 20px;
}
.acad-hero-trust-label::before, .acad-hero-trust-label::after {
    content: ''; height: 1px; width: 64px; background: rgba(255, 255, 255, .2);
}
.acad-hero-trust-logos { display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; }
.acad-hero-trust-logos img { height: 60px; opacity: .85; }

/* ── Secciones ───────────────────────────────────────────── */
.acad-section { padding: 88px 0; background: var(--acad-surface); }
.acad-section-alt { background: linear-gradient(180deg, #eef4fd 0%, #e7eefb 100%); }

.acad-section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.acad-eyebrow {
    display: inline-block;
    font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--acad-primary);
    margin-bottom: 14px;
}
.acad-section-title {
    font-family: var(--acad-font-head);
    font-weight: 700; font-size: clamp(28px, 4vw, 38px);
    line-height: 1.15; letter-spacing: -.02em; color: var(--acad-ink);
    margin: 0;
}
.acad-section-sub { font-size: 16px; color: var(--acad-muted); margin-top: 14px; }

/* ── About ───────────────────────────────────────────────── */
.acad-about {
    display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center;
}
.acad-about-text p { font-size: 16px; color: var(--acad-ink-2); margin: 0 0 18px; }
.acad-about-text p:last-child { margin-bottom: 0; }
.acad-about-visual { display: flex; justify-content: center; }
.acad-about-card {
    width: 100%; max-width: 360px; aspect-ratio: 1 / 1;
    border-radius: var(--acad-r-lg);
    background: linear-gradient(160deg, #fff, var(--acad-bg-2));
    border: 1px solid var(--acad-line);
    box-shadow: var(--acad-sh-md);
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}
.acad-about-card::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(300px 200px at 80% 10%, rgba(26, 115, 232, .12), transparent 70%);
}
.acad-about-card img { position: relative; z-index: 1; max-width: 60%; height: auto; }

/* ── Features ────────────────────────────────────────────── */
.acad-features {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.acad-features-4 { grid-template-columns: repeat(4, 1fr); gap: 20px; }
.acad-feature {
    background: #fff;
    border: 1px solid var(--acad-line);
    border-radius: var(--acad-r-md);
    padding: 28px 26px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.acad-feature { position: relative; overflow: hidden; }
.acad-feature::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--acad-primary-2), var(--acad-accent-2)); opacity: 0; transition: opacity .25s ease; }
.acad-feature:hover { transform: translateY(-4px); box-shadow: var(--acad-sh-md); border-color: #cfdcec; }
.acad-feature:hover::before { opacity: 1; }
.acad-feature-icon {
    width: 50px; height: 50px;
    border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
    font-size: 21px; margin-bottom: 18px;
}
.acad-feature-icon-blue   { background: #e8f0fe; color: #1557b0; }
.acad-feature-icon-indigo { background: #eef0ff; color: #4f46e5; }
.acad-feature-icon-teal   { background: #e3f6f7; color: #0e8f9e; }
.acad-feature-icon-amber  { background: #fdf3e2; color: #b45309; }
.acad-feature-icon-violet { background: #f4e9ff; color: #7c3aed; }
.acad-feature-icon-slate  { background: #eef2f7; color: #334155; }
.acad-feature-title { font-family: var(--acad-font-head); font-weight: 600; font-size: 17px; color: var(--acad-ink); margin: 0 0 8px; }
.acad-feature-desc { font-size: 14.5px; color: var(--acad-muted); margin: 0; line-height: 1.6; }

/* ── How it works ────────────────────────────────────────── */
.acad-steps { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: flex-start; gap: 0; }
.acad-step { padding: 0 20px; }
.acad-step-num {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--acad-font-head); font-weight: 700; font-size: 18px;
    color: #fff; margin: 0 auto 18px;
    background: linear-gradient(135deg, var(--acad-primary), var(--acad-navy-2));
    box-shadow: 0 6px 16px rgba(21, 87, 176, .28);
}
.acad-step-body { text-align: center; }
.acad-step-title { font-family: var(--acad-font-head); font-weight: 600; font-size: 18px; color: var(--acad-ink); margin: 0 0 8px; }
.acad-step-desc { font-size: 14.5px; color: var(--acad-muted); margin: 0; line-height: 1.6; }
.acad-step-line { width: 100%; min-width: 40px; height: 2px; margin-top: 26px; background: linear-gradient(90deg, var(--acad-line), var(--acad-primary-3), var(--acad-line)); border-radius: 2px; }

/* ── Pricing ─────────────────────────────────────────────── */
.acad-pricing {
    max-width: 560px; margin: 0 auto;
    background: #fff;
    border: 1px solid var(--acad-line);
    border-radius: var(--acad-r-lg);
    padding: 38px 36px;
    box-shadow: var(--acad-sh-md);
    position: relative; overflow: hidden;
}
.acad-pricing::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--acad-primary), var(--acad-accent-2));
}
.acad-pricing-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.acad-pricing-head i {
    width: 48px; height: 48px; border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
    background: #e8f0fe; color: var(--acad-primary); font-size: 20px;
}
.acad-pricing-head h3 { font-family: var(--acad-font-head); font-weight: 700; font-size: 22px; color: var(--acad-ink); margin: 0; }
.acad-pricing-desc { font-size: 15px; color: var(--acad-ink-2); margin: 0 0 18px; }
.acad-pricing-list { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 12px; }
.acad-pricing-list li { position: relative; padding-left: 30px; font-size: 14.5px; color: var(--acad-ink-2); }
.acad-pricing-list li::before {
    content: '\f00c'; font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free', 'FontAwesome';
    font-weight: 900; position: absolute; left: 0; top: 1px; color: var(--acad-accent); font-size: 13px;
}
.acad-pricing-contact { border-top: 1px solid var(--acad-line); padding-top: 22px; }
.acad-pricing-contact > p { font-size: 14px; color: var(--acad-muted); margin: 0 0 14px; }
.acad-pricing-contact-row { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 20px; }
.acad-pricing-contact-row a { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--acad-primary); text-decoration: none; }
.acad-pricing-contact-row a:hover { color: var(--acad-navy-2); }

/* ── CTA ─────────────────────────────────────────────────── */
.acad-cta { position: relative; overflow: hidden; padding: 84px 0; background: linear-gradient(135deg, var(--acad-navy-2) 0%, var(--acad-primary) 100%); color: #fff; }
.acad-cta-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(700px 400px at 50% 50%, #000, transparent 75%);
    -webkit-mask-image: radial-gradient(700px 400px at 50% 50%, #000, transparent 75%);
}
.acad-cta-inner { position: relative; z-index: 1; text-align: center; max-width: 680px; margin: 0 auto; }
.acad-cta-title { font-family: var(--acad-font-head); font-weight: 700; font-size: clamp(28px, 4vw, 36px); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 14px; }
.acad-cta-desc { font-size: 17px; color: rgba(255, 255, 255, .82); margin: 0 0 30px; }
.acad-cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Banda de confianza / stats ──────────────────────────── */
.acad-trust-section { padding: 56px 0; border-top: 1px solid var(--acad-line); border-bottom: 1px solid var(--acad-line); background: linear-gradient(180deg, #e7eefb 0%, #eef4fd 100%); }
.acad-trust-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.acad-stats { display: flex; gap: 48px; flex-wrap: wrap; }
.acad-stat-n { font-family: var(--acad-font-head); font-weight: 800; font-size: 32px; color: var(--acad-ink); line-height: 1; }
.acad-stat-n span { color: var(--acad-primary); }
.acad-stat-t { font-size: 13px; color: var(--acad-muted); margin-top: 6px; }
.acad-trust-aws { text-align: right; }
.acad-trust-aws-label { font-family: var(--acad-font-head); font-weight: 600; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--acad-muted-2); margin-bottom: 12px; }
.acad-trust-aws-logos { display: flex; gap: 16px; align-items: center; }
.acad-trust-aws-logos img { height: 54px; }

/* ── CTA final con formulario de demo ────────────────────── */
.acad-cta-card {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
    max-width: 1000px; margin: 0 auto;
}
.acad-cta-card-text { text-align: left; }
.acad-cta-card .acad-cta-title { text-align: left; }
.acad-cta-card .acad-cta-desc { text-align: left; margin-bottom: 0; }
.acad-cta-form { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--acad-r-lg); padding: 28px; }
.acad-demo-form { display: flex; flex-direction: column; gap: 14px; }
.acad-cta-form .acad-field > label { color: rgba(255, 255, 255, .8); }
.acad-input-cta { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); color: #fff; padding: 13px 15px; }
.acad-input-cta::placeholder { color: rgba(255, 255, 255, .45); }
.acad-input-cta:focus { border-color: #8fdcff; background: rgba(255, 255, 255, .12); box-shadow: 0 0 0 3px rgba(143, 220, 255, .15); }
select.acad-input-cta option { background: var(--acad-navy-2); color: #fff; }
.acad-form-note { font-size: 12px; color: rgba(255, 255, 255, .6); text-align: center; margin: 2px 0 0; }
.acad-demo-success { display: none; text-align: center; padding: 24px 10px; }
.acad-demo-success.show { display: block; }
.acad-demo-success-check { width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; background: rgba(52, 168, 83, .18); border: 1px solid #34a853; color: #6ee7a0; font-size: 24px; }
.acad-demo-success h3 { font-family: var(--acad-font-head); font-weight: 700; color: #fff; font-size: 22px; margin: 0 0 8px; }
.acad-demo-success p { color: rgba(255, 255, 255, .8); margin: 0; }

/* ── Footer ──────────────────────────────────────────────── */
.acad-footer { background: var(--acad-navy); color: rgba(255, 255, 255, .72); padding: 64px 0 32px; }
.acad-footer-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; }
.acad-footer-logo { display: flex; align-items: center; gap: 10px; font-family: var(--acad-font-head); font-weight: 700; font-size: 19px; color: #fff; margin-bottom: 16px; }
.acad-footer-logo .acad-logo-mark { width: 34px; height: 34px; font-size: 16px; }
.acad-footer-desc { font-size: 14px; line-height: 1.7; color: rgba(255, 255, 255, .6); max-width: 420px; margin: 0 0 20px; }
.acad-footer-social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 11px;
    background: rgba(255, 255, 255, .08); color: #fff; font-size: 17px; text-decoration: none;
    transition: background .18s ease;
}
.acad-footer-social a:hover { background: var(--acad-primary); }
.acad-footer-col h4 { font-family: var(--acad-font-head); font-weight: 600; font-size: 15px; color: #fff; margin: 0 0 16px; }
.acad-footer-col > p { font-size: 14px; color: rgba(255, 255, 255, .6); margin: 0 0 14px; }
.acad-footer-link { display: flex; align-items: center; gap: 9px; font-size: 14px; color: rgba(255, 255, 255, .78); text-decoration: none; margin-bottom: 10px; }
.acad-footer-link:hover { color: #fff; }
.acad-footer-link i { color: var(--acad-accent-2); width: 16px; }
.acad-footer-bottom {
    margin-top: 48px; padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    font-size: 12.5px; color: rgba(255, 255, 255, .5);
}
.acad-footer-bottom p { margin: 0; }

/* ── Login modal (corporativo) ───────────────────────────── */
.acad-modal { border: none; border-radius: var(--acad-r-lg); overflow: hidden; box-shadow: var(--acad-sh-lg); }
.acad-modal-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 26px; color: #fff;
    background: linear-gradient(135deg, var(--acad-navy-2), var(--acad-primary));
}
.acad-modal-brand { display: flex; align-items: center; gap: 10px; font-family: var(--acad-font-head); font-weight: 700; font-size: 17px; }
.acad-modal-brand .acad-logo-mark { width: 32px; height: 32px; font-size: 15px; background: rgba(255, 255, 255, .16); box-shadow: none; }
.acad-modal-close { background: rgba(255, 255, 255, .14); border: none; color: #fff; width: 34px; height: 34px; border-radius: 9px; cursor: pointer; font-size: 15px; transition: background .18s ease; }
.acad-modal-close:hover { background: rgba(255, 255, 255, .28); }
.acad-modal-body { padding: 30px 30px 24px; }
.acad-modal-title { font-family: var(--acad-font-head); font-weight: 700; font-size: 24px; color: var(--acad-ink); margin: 0 0 6px; }
.acad-modal-sub { font-size: 14px; color: var(--acad-muted); margin: 0 0 24px; }
.acad-form { display: flex; flex-direction: column; gap: 18px; }
.acad-field { display: flex; flex-direction: column; gap: 8px; }
.acad-field > label { font-size: 13px; font-weight: 600; color: var(--acad-ink-2); }
.acad-label-row { display: flex; align-items: center; justify-content: space-between; }
.acad-forgot { font-size: 12.5px; font-weight: 600; color: var(--acad-primary); text-decoration: none; }
.acad-forgot:hover { text-decoration: underline; }
.acad-input-wrap { position: relative; display: flex; align-items: center; }
.acad-input-wrap > i { position: absolute; left: 14px; color: var(--acad-muted-2); font-size: 14px; }
.acad-input {
    width: 100%;
    padding: 13px 44px 13px 40px;
    border: 1px solid var(--acad-line);
    border-radius: var(--acad-r-sm);
    font-family: var(--acad-font-body); font-size: 14px; color: var(--acad-ink);
    background: var(--acad-bg);
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.acad-input:focus { outline: none; border-color: var(--acad-primary); background: #fff; box-shadow: 0 0 0 3px rgba(26, 115, 232, .12); }
.acad-input-action { position: absolute; right: 12px; color: var(--acad-muted-2); cursor: pointer; }
.acad-input-action:hover { color: var(--acad-primary); }
.acad-modal-foot { padding: 0 30px 28px; }
.acad-modal-divider { display: flex; align-items: center; justify-content: center; margin: 6px 0 16px; }
.acad-modal-divider span { font-size: 12px; color: var(--acad-muted-2); }
.acad-modal-register { text-align: center; margin: 0; font-size: 13.5px; }
.acad-modal-register a { color: var(--acad-primary); font-weight: 600; text-decoration: none; }
.acad-modal-register a:hover { text-decoration: underline; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 980px) {
    .acad-features { grid-template-columns: repeat(2, 1fr); }
    .acad-about { grid-template-columns: 1fr; gap: 36px; }
    .acad-steps { grid-template-columns: 1fr; gap: 28px; }
    .acad-step-line { display: none; }
    .acad-footer-inner { grid-template-columns: 1fr; gap: 32px; }
    .acad-hero { grid-template-columns: 1fr; min-height: auto; }
    .acad-hero-left, .acad-hero-right { padding: 56px 36px; }
    .acad-nav-inner { padding: 0 36px; }
    .acad-cta-card { grid-template-columns: 1fr; gap: 32px; }
    .acad-cta-card-text, .acad-cta-card .acad-cta-title, .acad-cta-card .acad-cta-desc { text-align: center; }
    .acad-trust-row { justify-content: center; text-align: center; }
    .acad-trust-aws { text-align: center; }
    .acad-trust-aws-logos { justify-content: center; }
}
@media (max-width: 640px) {
    .acad-features { grid-template-columns: 1fr; }
    .acad-section { padding: 60px 0; }
    .acad-hero-left, .acad-hero-right { padding: 40px 22px; }
    .acad-nav-inner { padding: 0 22px; }
}
