/* =====================================================================
   CENDAE – Centro de Desarrollo en Análisis Estadístico
   Hoja de estilos principal
   ===================================================================== */

:root {
    --blue-900: #071d40;
    --blue-800: #0b2a5b;   /* azul institucional */
    --blue-700: #123a7a;
    --blue-600: #1c4d9c;
    --blue-100: #e7eef9;
    --blue-50:  #f3f6fc;
    --red-700:  #b51f2e;
    --red-600:  #d62839;   /* rojo institucional */
    --red-100:  #fde8ea;
    --wa:       #25d366;
    --ink:      #14213d;
    --text:     #4a5670;
    --muted:    #7d879c;
    --line:     #e1e7f0;
    --white:    #fff;

    --radius-sm: 10px;
    --radius:    16px;
    --radius-lg: 24px;
    --shadow-sm: 0 2px 8px rgba(11, 42, 91, .06);
    --shadow:    0 10px 30px rgba(11, 42, 91, .10);
    --shadow-lg: 0 24px 60px rgba(11, 42, 91, .18);

    --font-head: 'Montserrat', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --container: 1200px;
    --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue-700); text-decoration: none; transition: color .2s; }
a:hover { color: var(--red-600); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.3rem); font-weight: 900; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 1.15rem; font-weight: 700; }
p  { margin: 0 0 1em; }
ul { padding: 0; margin: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--red-600); outline-offset: 2px; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.narrow { max-width: 860px; }
.center { text-align: center; justify-content: center; }
.text-red { color: var(--red-600); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--red-600); color: #fff; padding: .6rem 1rem; z-index: 999; }
.skip-link:focus { left: 1rem; }

/* ---------- Buttons ---------- */
.btn {
    --bg: var(--blue-800); --fg: #fff; --bd: transparent;
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid var(--bd);
    background: var(--bg); color: var(--fg);
    font-family: var(--font-head); font-weight: 700; font-size: .95rem; line-height: 1;
    transition: transform .2s, box-shadow .2s, background .2s, color .2s;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(11,42,91,.2); color: var(--fg); }
.btn--sm { padding: .6rem 1.1rem; font-size: .85rem; }
.btn--lg { padding: 1.05rem 1.9rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--red  { --bg: var(--red-600); }
.btn--red:hover { --bg: var(--red-700); box-shadow: 0 10px 24px rgba(214,40,57,.35); }
.btn--blue { --bg: var(--blue-800); }
.btn--blue:hover { --bg: var(--blue-700); }
.btn--white { --bg: #fff; --fg: var(--blue-800); }
.btn--white:hover { --fg: var(--red-600); }
.btn--ghost { --bg: rgba(255,255,255,.08); --bd: rgba(255,255,255,.45); }
.btn--ghost:hover { --bg: rgba(255,255,255,.18); }
.btn--outline { --bg: transparent; --fg: var(--blue-800); --bd: var(--blue-800); }
.btn--outline:hover { --bg: var(--blue-800); --fg: #fff; }
.btn--outline-blue { --bg: transparent; --fg: var(--blue-800); --bd: var(--blue-100); }
.btn--outline-blue:hover { --bd: var(--blue-800); }
.btn--whatsapp { --bg: var(--wa); }
.btn--whatsapp:hover { box-shadow: 0 10px 24px rgba(37,211,102,.35); }

.link-arrow { font-weight: 700; font-family: var(--font-head); font-size: .9rem; display: inline-flex; gap: .4rem; align-items: center; color: var(--red-600); }
.link-arrow i { transition: transform .2s; }
.link-arrow:hover i { transform: translateX(4px); }

.eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    font-family: var(--font-head); font-weight: 800; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
    color: var(--red-600); margin-bottom: .9rem;
}
.eyebrow::before { content: ''; width: 28px; height: 3px; border-radius: 3px; background: currentColor; }
.eyebrow--light { color: #ffb3bb; }

/* ---------- Topbar ---------- */
.topbar { background: var(--blue-900); color: #c9d4ea; font-size: .82rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 1rem; }
.topbar__info { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.topbar__info i { color: var(--red-600); margin-right: .35rem; }
.topbar a { color: #c9d4ea; }
.topbar a:hover { color: #fff; }
.topbar__social { display: flex; gap: .9rem; }

/* ---------- Header ---------- */
.header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .3s;
}
.header.is-scrolled { box-shadow: var(--shadow); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1.5rem; }
.logo img { height: 56px; width: auto; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav__list { display: flex; align-items: center; gap: .3rem; }
.nav__link {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .55rem .8rem; border-radius: 8px;
    font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: var(--ink);
    position: relative;
}
.nav__link i { font-size: .65rem; }
.nav__link::after {
    content: ''; position: absolute; left: .8rem; right: .8rem; bottom: .25rem; height: 3px; border-radius: 3px;
    background: var(--red-600); transform: scaleX(0); transition: transform .25s; transform-origin: left;
}
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--blue-800); }
.nav__actions { display: flex; gap: .6rem; }

.nav__dropdown { position: relative; }
.dropdown {
    position: absolute; top: calc(100% + 10px); left: 0; min-width: 300px;
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: .6rem;
    opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s;
    border-top: 3px solid var(--red-600);
}
.nav__dropdown:hover .dropdown, .nav__dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: flex; align-items: center; gap: .7rem; padding: .65rem .8rem; border-radius: 10px; color: var(--ink); font-weight: 600; font-size: .9rem; }
.dropdown a i { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-800); font-size: .85rem; }
.dropdown a:hover { background: var(--blue-50); color: var(--blue-800); }
.dropdown .dropdown__all { color: var(--red-600); justify-content: space-between; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; margin-top: .3rem; }
.dropdown .dropdown__all i { background: none; color: inherit; width: auto; height: auto; }

.burger { display: none; width: 44px; height: 44px; border: 0; background: var(--blue-50); border-radius: 10px; padding: 11px; }
.burger span { display: block; height: 2px; background: var(--blue-800); border-radius: 2px; transition: .3s; }
.burger span + span { margin-top: 6px; }
.burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden; color: #dfe7f5;
    background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-800) 55%, var(--blue-700) 100%);
    padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(4rem, 8vw, 6.5rem);
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__grid {
    position: absolute; inset: 0; opacity: .35;
    background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse at 30% 40%, #000 30%, transparent 75%);
}
.hero__blob { position: absolute; border-radius: 50%; filter: blur(70px); }
.hero__blob--1 { width: 420px; height: 420px; background: rgba(214,40,57,.35); right: -80px; top: -120px; }
.hero__blob--2 { width: 380px; height: 380px; background: rgba(28,77,156,.6); left: -120px; bottom: -160px; }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3.5rem; align-items: center; }
.hero h1 { color: #fff; }
.hero .hl { color: #fff; position: relative; white-space: nowrap; }
.hero .hl::after { content: ''; position: absolute; left: 0; right: 0; bottom: .05em; height: .28em; background: var(--red-600); z-index: -1; border-radius: 4px; opacity: .9; }
.hero h1 .hl { z-index: 0; }
.hero__lead { font-size: 1.1rem; max-width: 600px; color: #c6d3ea; }
.hero__btns { display: flex; flex-wrap: wrap; gap: .9rem; margin: 1.8rem 0; }
.hero__checks { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-size: .92rem; }
.hero__checks i { color: #ff8a96; margin-right: .35rem; }

/* ---------- Lead form ---------- */
.lead-form {
    background: #fff; color: var(--text); border-radius: var(--radius-lg); padding: 1.8rem;
    box-shadow: var(--shadow-lg); position: relative;
}
.hero__form .lead-form { border-top: 6px solid var(--red-600); }
.lead-form__head h3 { font-size: 1.4rem; margin-bottom: .2rem; color: var(--blue-800); }
.lead-form__head p { font-size: .9rem; color: var(--muted); margin-bottom: 1.1rem; }
.lead-form__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; background: var(--blue-50); padding: .35rem; border-radius: 12px; margin-bottom: 1rem; }
.lead-form__tabs input { position: absolute; opacity: 0; }
.lead-form__tabs span { display: flex; align-items: center; justify-content: center; gap: .4rem; padding: .6rem; border-radius: 9px; font-weight: 700; font-family: var(--font-head); font-size: .85rem; color: var(--blue-800); cursor: pointer; transition: .2s; }
.lead-form__tabs input:checked + span { background: var(--blue-800); color: #fff; box-shadow: var(--shadow-sm); }
.lead-form__tabs input:focus-visible + span { outline: 2px solid var(--red-600); }
.lead-form__msg { margin: .8rem 0 0; font-size: .9rem; font-weight: 600; }
.lead-form__msg.is-ok { color: #138a4a; }
.lead-form__msg.is-error { color: var(--red-600); }

.field { margin-bottom: .85rem; }
.field label { display: block; font-size: .8rem; font-weight: 700; color: var(--ink); margin-bottom: .3rem; }
.field input, .field select, .field textarea, .filters select {
    width: 100%; padding: .78rem .95rem; border: 1.5px solid var(--line); border-radius: 10px;
    font: inherit; font-size: .95rem; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .filters select:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(28,77,156,.12); }
.field.is-invalid input, .field.is-invalid select { border-color: var(--red-600); }
.field-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: .8rem; }
.field select { max-width: 100%; min-width: 0; text-overflow: ellipsis; }
.hero__inner > *, .info-split > *, .contact > *, .catalog > *, .course-layout > * { min-width: 0; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .82rem; color: var(--text); margin: .3rem 0 1rem; cursor: pointer; }
.check input { margin-top: .25rem; accent-color: var(--red-600); width: 16px; height: 16px; flex-shrink: 0; }
[data-show-when][hidden] { display: none; }

/* ---------- Stats ---------- */
.stats { position: relative; z-index: 2; }
.hero + .stats { margin-top: -3rem; }
.stats--page { padding-bottom: clamp(3rem, 6vw, 5rem); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.stat { padding: 1.8rem 1rem; text-align: center; position: relative; }
.stat + .stat::before { content: ''; position: absolute; left: 0; top: 25%; bottom: 25%; width: 1px; background: var(--line); }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 900; color: var(--blue-800); line-height: 1.1; }
.stat strong span { color: var(--blue-800); }
.stat > span { font-size: .9rem; color: var(--muted); font-weight: 500; }
.stat:nth-child(even) strong { color: var(--red-600); }
.stat:nth-child(even) strong span { color: var(--red-600); }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section--soft { background: var(--blue-50); }
.section--blue { background: linear-gradient(135deg, var(--blue-900), var(--blue-800)); color: #c6d3ea; }
.section--blue h2, .section--blue h3 { color: #fff; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.8rem; }
.section-head p { font-size: 1.05rem; }
.section-head--left { text-align: left; margin: 0; }
.section-head--row { display: flex; align-items: flex-end; justify-content: space-between; text-align: left; max-width: none; gap: 2rem; }
.section-head--row p { margin: 0; }

/* ---------- Two paths ---------- */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8rem; }
.path { border-radius: var(--radius-lg); padding: 2.5rem; color: #e4ebf7; position: relative; overflow: hidden; }
.path::after { content: ''; position: absolute; width: 260px; height: 260px; border-radius: 50%; right: -80px; bottom: -110px; background: rgba(255,255,255,.08); }
.path--blue { background: linear-gradient(140deg, var(--blue-800), var(--blue-600)); }
.path--red  { background: linear-gradient(140deg, var(--red-700), var(--red-600)); }
.path h3 { color: #fff; font-size: 1.6rem; }
.path__icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: rgba(255,255,255,.15); font-size: 1.6rem; color: #fff; margin-bottom: 1.3rem; }
.path ul { margin: 0 0 1.8rem; }
.path li { padding-left: 1.6rem; position: relative; margin-bottom: .45rem; }
.path li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0; color: #fff; font-size: .85rem; top: .15rem; }
.path .btn { position: relative; z-index: 1; }

/* ---------- Chips / filters ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.chip {
    border: 1.5px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px;
    padding: .55rem 1.1rem; font-weight: 600; font-size: .88rem; display: inline-flex; align-items: center; gap: .45rem; transition: .2s;
}
.chip i { color: var(--blue-600); }
.chip:hover { border-color: var(--blue-800); }
.chip.is-active { background: var(--blue-800); border-color: var(--blue-800); color: #fff; }
.chip.is-active i { color: #fff; }
.empty-msg { text-align: center; padding: 2rem; background: #fff; border-radius: var(--radius); border: 1px dashed var(--line); }

/* ---------- Course cards ---------- */
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.course-card {
    background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
    border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s;
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.course-card[hidden] { display: none; }
.course-card__media {
    position: relative; height: 170px; display: grid; place-items: center; overflow: hidden; color: rgba(255,255,255,.9);
    background: linear-gradient(135deg, var(--blue-800), var(--blue-600));
}
.cat--software-estadistico  { background: linear-gradient(135deg, #0b2a5b, #1c4d9c); }
.cat--programacion-datos    { background: linear-gradient(135deg, #0a3b66, #12709e); }
.cat--investigacion         { background: linear-gradient(135deg, #8f1724, #d62839); }
.cat--analisis-avanzado     { background: linear-gradient(135deg, #2a1f5e, #4b3aa6); }
.cat--inteligencia-negocios { background: linear-gradient(135deg, #0b2a5b, #b51f2e); }
.course-card__icon { font-size: 3.6rem; transition: transform .4s; position: relative; z-index: 1; }
.course-card:hover .course-card__icon { transform: scale(1.12) rotate(-4deg); }
.course-card__deco { position: absolute; left: 0; right: 0; bottom: 0; height: 60px; width: 100%; color: rgba(255,255,255,.25); }
.course-card__tag { position: absolute; left: 1rem; top: 1rem; background: rgba(255,255,255,.18); backdrop-filter: blur(4px); color: #fff; font-weight: 800; font-family: var(--font-head); font-size: .75rem; padding: .3rem .7rem; border-radius: 999px; letter-spacing: .04em; }
.course-card__badge { position: absolute; right: 1rem; top: 1rem; background: var(--red-600); color: #fff; font-weight: 800; font-family: var(--font-head); font-size: .72rem; padding: .3rem .7rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.cat--investigacion .course-card__badge, .cat--inteligencia-negocios .course-card__badge { background: #fff; color: var(--red-600); }
.course-card__body { padding: 1.3rem 1.4rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.course-card__cat { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--red-600); margin-bottom: .4rem; }
.course-card__title { font-size: 1.08rem; margin-bottom: .9rem; }
.course-card__title a { color: var(--ink); }
.course-card__title a:hover { color: var(--blue-700); }
.course-card__meta { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem .8rem; font-size: .82rem; color: var(--text); margin-bottom: 1.2rem; }
.course-card__meta i { color: var(--blue-600); width: 16px; }
.course-card__footer { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.price { display: flex; flex-direction: column; line-height: 1.15; }
.price del { font-size: .8rem; color: var(--muted); }
.price strong { font-family: var(--font-head); font-size: 1.35rem; font-weight: 900; color: var(--blue-800); }

/* ---------- Services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; transition: .25s; position: relative; overflow: hidden;
}
.service::before { content: ''; position: absolute; left: 0; top: 0; height: 4px; width: 0; background: var(--red-600); transition: width .35s; }
.service:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: transparent; }
.service:hover::before { width: 100%; }
.service__icon { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-800); font-size: 1.45rem; margin-bottom: 1.2rem; transition: .25s; }
.service:hover .service__icon { background: var(--red-600); color: #fff; }
.service p { font-size: .95rem; }

/* ---------- Why ---------- */
.why { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3.5rem; align-items: center; }
.why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.why__item { display: flex; gap: 1rem; padding: 1.3rem; border-radius: var(--radius); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); transition: .25s; }
.why__item:hover { background: rgba(255,255,255,.1); }
.why__item > i { flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--red-600); color: #fff; font-size: 1.1rem; }
.why__item h3 { font-size: 1rem; margin-bottom: .25rem; }
.why__item p { font-size: .88rem; margin: 0; }

/* ---------- Modes ---------- */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.mode { position: relative; padding: 2.2rem 2rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); overflow: hidden; transition: .25s; }
.mode:hover { box-shadow: var(--shadow); }
.mode > i { font-size: 2rem; color: var(--red-600); margin-bottom: 1rem; }
.mode__num { position: absolute; right: 1.2rem; top: .6rem; font-family: var(--font-head); font-weight: 900; font-size: 4rem; color: var(--blue-50); line-height: 1; }

/* ---------- Campus promo ---------- */
.campus-promo { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.checklist li { display: flex; gap: .65rem; align-items: flex-start; margin-bottom: .6rem; }
.checklist i { color: #fff; background: var(--red-600); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .65rem; flex-shrink: 0; margin-top: .2rem; }
.checklist--2 { display: grid; grid-template-columns: 1fr 1fr; gap: .2rem 1.5rem; }
.checklist--sm { font-size: .9rem; margin-top: .8rem; }
.checklist--sm i { width: 18px; height: 18px; font-size: .55rem; }
.campus-promo .checklist { margin-bottom: 1.8rem; }
.mock { background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; transform: perspective(1200px) rotateY(-8deg) rotateX(3deg); transition: transform .5s; }
.mock:hover { transform: none; }
.mock__bar { display: flex; align-items: center; gap: .4rem; padding: .8rem 1rem; background: var(--blue-50); border-bottom: 1px solid var(--line); }
.mock__bar span { width: 11px; height: 11px; border-radius: 50%; background: #f26b6b; }
.mock__bar span:nth-child(2) { background: #f5c04a; }
.mock__bar span:nth-child(3) { background: #4cc77a; }
.mock__bar em { margin-left: 1rem; font-style: normal; font-size: .75rem; color: var(--muted); background: #fff; padding: .15rem .8rem; border-radius: 6px; }
.mock__body { display: grid; grid-template-columns: 70px 1fr; min-height: 300px; }
.mock__side { background: var(--blue-800); padding: 1rem .8rem; display: flex; flex-direction: column; gap: .8rem; }
.mock__side b { height: 30px; border-radius: 8px; background: var(--red-600); }
.mock__side i { height: 10px; border-radius: 5px; background: rgba(255,255,255,.2); }
.mock__main { padding: 1.3rem; }
.mock__title { height: 14px; width: 45%; border-radius: 7px; background: var(--blue-100); margin-bottom: 1.1rem; }
.mock__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin-bottom: 1rem; }
.mock__card { height: 70px; border-radius: 12px; background: var(--blue-50); position: relative; padding: .7rem; }
.mock__card::before { content: ''; display: block; height: 8px; width: 70%; border-radius: 4px; background: var(--blue-100); }
.mock__card span { position: absolute; left: .7rem; right: .7rem; bottom: .8rem; height: 6px; border-radius: 3px; background: var(--blue-100); overflow: hidden; }
.mock__card span::after { content: ''; position: absolute; inset: 0; width: var(--p); background: var(--red-600); border-radius: 3px; }
.mock__chart { height: 120px; display: flex; align-items: flex-end; gap: .7rem; padding: .8rem; border-radius: 12px; background: var(--blue-50); }
.mock__chart i { flex: 1; height: var(--h); border-radius: 6px 6px 0 0; background: linear-gradient(var(--blue-600), var(--blue-800)); }
.mock__chart i:nth-child(4) { background: linear-gradient(#ef5b6a, var(--red-600)); }

/* ---------- Testimonials slider ---------- */
.slider { position: relative; }
.slider__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3rem) / 3); gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: .5rem .2rem 1.5rem; }
.slider__track::-webkit-scrollbar { display: none; }
.testimonial { scroll-snap-align: start; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; display: flex; flex-direction: column; position: relative; }
.testimonial::before { content: '\201C'; position: absolute; right: 1.3rem; top: .2rem; font-family: Georgia, serif; font-size: 5rem; color: var(--blue-50); line-height: 1; }
.stars { color: #f5b301; font-size: .85rem; margin-bottom: .8rem; display: flex; gap: .15rem; }
.testimonial blockquote { margin: 0 0 1.4rem; font-size: .97rem; color: var(--ink); flex: 1; }
.testimonial figcaption { display: flex; align-items: center; gap: .8rem; }
.testimonial figcaption strong { display: block; color: var(--ink); font-family: var(--font-head); font-size: .95rem; }
.testimonial figcaption small { color: var(--muted); }
.avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue-800), var(--red-600)); color: #fff; font-weight: 800; font-family: var(--font-head); flex-shrink: 0; }
.slider__nav { display: flex; justify-content: center; gap: .7rem; }
.slider__btn { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--blue-800); transition: .2s; }
.slider__btn:hover { background: var(--blue-800); color: #fff; border-color: var(--blue-800); }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: start; }
.faq__item { background: #fff; border-radius: var(--radius-sm); margin-bottom: .8rem; border: 1px solid var(--line); overflow: hidden; }
.faq__item summary { list-style: none; cursor: pointer; padding: 1.1rem 1.3rem; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-family: var(--font-head); font-size: .98rem; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary i { color: var(--red-600); transition: transform .25s; }
.faq__item[open] summary i { transform: rotate(45deg); }
.faq__item[open] { border-color: var(--blue-100); box-shadow: var(--shadow-sm); }
.faq__item p { padding: 0 1.3rem 1.2rem; margin: 0; }

/* ---------- Page hero (internal pages) ---------- */
.page-hero {
    position: relative; overflow: hidden; color: #c6d3ea; padding: 3.5rem 0 3.8rem;
    background: linear-gradient(135deg, var(--blue-900), var(--blue-800) 60%, var(--blue-700));
}
.page-hero::after { content: ''; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: rgba(214,40,57,.28); filter: blur(60px); }
.page-hero--red { background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-800) 45%, var(--red-700) 130%); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.page-hero p { max-width: 680px; font-size: 1.08rem; }
.page-hero__split { display: grid; grid-template-columns: 1.3fr .7fr; gap: 3rem; align-items: center; }
.page-hero__badges { display: grid; gap: .8rem; }
.page-hero__badges li { display: flex; align-items: center; gap: .8rem; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); padding: .9rem 1.1rem; border-radius: 12px; color: #fff; font-weight: 600; }
.page-hero__badges i { color: #ff8a96; width: 20px; }
.breadcrumb { font-size: .85rem; margin-bottom: 1rem; color: #9fb0d0; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.breadcrumb a { color: #c6d3ea; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb i { font-size: .6rem; }

/* ---------- Catalog ---------- */
.catalog { display: grid; grid-template-columns: 280px 1fr; gap: 2rem; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 1rem); display: grid; gap: 1.2rem; }
.filters__box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; }
.filters h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 1.3rem 0 .7rem; }
.filters__list { display: grid; gap: .3rem; }
.filter-btn { display: flex; align-items: center; gap: .6rem; border: 0; background: none; text-align: left; padding: .6rem .7rem; border-radius: 10px; color: var(--ink); font-weight: 600; font-size: .9rem; transition: .2s; }
.filter-btn i { color: var(--blue-600); width: 18px; }
.filter-btn span { margin-left: auto; font-size: .75rem; background: var(--blue-50); color: var(--blue-800); padding: .1rem .55rem; border-radius: 999px; }
.filter-btn:hover { background: var(--blue-50); }
.filter-btn.is-active { background: var(--blue-800); color: #fff; }
.filter-btn.is-active i { color: #fff; }
.filter-btn.is-active span { background: var(--red-600); color: #fff; }
.search { position: relative; display: block; }
.search i { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { width: 100%; padding: .78rem .9rem .78rem 2.5rem; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; font-size: .92rem; }
.search input:focus { outline: none; border-color: var(--blue-600); }
.filters__help { background: linear-gradient(140deg, var(--blue-800), var(--blue-600)); color: #c6d3ea; border-radius: var(--radius); padding: 1.4rem; font-size: .9rem; }
.filters__help > i { font-size: 1.8rem; color: #fff; margin-bottom: .6rem; }
.filters__help h4 { color: #fff; text-transform: none; letter-spacing: 0; font-size: 1.05rem; margin: 0 0 .4rem; }
.catalog__bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.2rem; }
.catalog__bar p { margin: 0; }
.catalog__bar strong { color: var(--blue-800); }
.course-grid--3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* ---------- Course detail ---------- */
.course-hero { color: #dfe7f5; padding: 3.2rem 0 3.5rem; position: relative; overflow: hidden; }
.course-hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 85% 20%, rgba(255,255,255,.12), transparent 40%); }
.course-hero__inner { position: relative; z-index: 1; max-width: 860px; margin-left: max(1.25rem, calc((100% - var(--container)) / 2)); }
.course-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.5vw, 2.7rem); margin-top: 1rem; }
.course-hero__lead { font-size: 1.1rem; max-width: 720px; }
.pill { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .85rem; border-radius: 999px; background: rgba(255,255,255,.16); color: #fff; font-size: .8rem; font-weight: 700; margin-right: .4rem; }
.pill--red { background: var(--red-600); }
.cat--investigacion .pill--red, .cat--inteligencia-negocios .pill--red { background: #fff; color: var(--red-600); }
.course-hero__facts { display: grid; grid-template-columns: repeat(4, auto); gap: 1rem 2rem; margin-top: 1.8rem; justify-content: start; }
.course-hero__facts li { display: flex; align-items: center; gap: .7rem; }
.course-hero__facts i { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.14); color: #fff; }
.course-hero__facts small { display: block; font-size: .75rem; opacity: .75; }
.course-hero__facts span { color: #fff; font-weight: 700; font-size: .92rem; line-height: 1.3; }

.course-layout { display: grid; grid-template-columns: 1fr 360px; gap: 2.2rem; align-items: start; }
.course-main { display: grid; gap: 1.5rem; }
.box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }
.box h2 { font-size: 1.35rem; }
.box--certificate { display: flex; gap: 1.3rem; align-items: center; background: var(--blue-50); border-color: var(--blue-100); }
.box--certificate > i { font-size: 3rem; color: var(--red-600); }
.box--certificate p { margin: 0; }
.syllabus__item { border: 1px solid var(--line); border-radius: 12px; margin-bottom: .7rem; overflow: hidden; }
.syllabus__item summary { list-style: none; cursor: pointer; padding: 1rem 1.2rem; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: .8rem; font-family: var(--font-head); font-size: .95rem; }
.syllabus__item summary::-webkit-details-marker { display: none; }
.syllabus__item summary i { margin-left: auto; transition: transform .25s; color: var(--blue-600); }
.syllabus__item[open] summary { background: var(--blue-50); }
.syllabus__item[open] summary i { transform: rotate(180deg); }
.syllabus__num { background: var(--red-600); color: #fff; font-size: .72rem; padding: .2rem .6rem; border-radius: 6px; white-space: nowrap; }
.syllabus__item ul { padding: .8rem 1.2rem 1rem; }
.syllabus__item li { padding: .35rem 0; font-size: .93rem; display: flex; gap: .6rem; }
.syllabus__item li i { color: var(--blue-600); margin-top: .3rem; }

.course-aside { position: sticky; top: calc(var(--header-h) + 1rem); margin-top: -7rem; z-index: 2; }
.buy-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 1.8rem; display: grid; gap: .8rem; border-top: 6px solid var(--red-600); }
.buy-card__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .7rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.buy-card__price del { color: var(--muted); }
.buy-card__price .off { background: var(--red-100); color: var(--red-600); font-weight: 800; font-size: .8rem; padding: .15rem .55rem; border-radius: 6px; }
.buy-card__price strong { width: 100%; font-family: var(--font-head); font-size: 2.4rem; font-weight: 900; color: var(--blue-800); line-height: 1.1; }
.buy-card__price small { color: var(--muted); }
.buy-card__list li { display: flex; gap: .7rem; font-size: .9rem; padding: .35rem 0; }
.buy-card__list i { color: var(--blue-600); width: 18px; margin-top: .25rem; }
.buy-card__pay { font-size: .8rem; color: var(--muted); display: grid; gap: .4rem; text-align: center; padding-top: .4rem; }
.pay-tags { display: flex; justify-content: center; gap: .4rem; flex-wrap: wrap; }
.pay-tags b { background: var(--blue-50); color: var(--blue-800); padding: .2rem .6rem; border-radius: 6px; font-size: .75rem; }

.info-split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }

/* ---------- Asesorías ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: s; padding: 0; list-style: none; position: relative; }
.step { background: #fff; border-radius: var(--radius); padding: 2rem 1.5rem; text-align: center; position: relative; border: 1px solid var(--line); }
.step__num { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); width: 36px; height: 36px; border-radius: 50%; background: var(--red-600); color: #fff; font-family: var(--font-head); font-weight: 900; display: grid; place-items: center; box-shadow: 0 0 0 6px var(--blue-50); }
.step > i { font-size: 2rem; color: var(--blue-800); margin: .6rem 0 1rem; }
.step p { font-size: .9rem; margin: 0; }
.levels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.level { text-align: center; padding: 2rem 1.4rem; border-radius: var(--radius); border: 1px solid var(--line); transition: .25s; }
.level:hover { border-color: var(--blue-800); box-shadow: var(--shadow); }
.level > i { width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 1rem; background: var(--blue-50); color: var(--blue-800); font-size: 1.6rem; }
.level p { font-size: .9rem; margin: 0; }
.software { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem; margin-top: 2.5rem; }
.software span { font-weight: 700; color: var(--ink); margin-right: .4rem; }
.software b { padding: .45rem 1rem; border-radius: 999px; background: var(--blue-50); color: var(--blue-800); font-size: .85rem; border: 1px solid var(--blue-100); }
.ethics { display: flex; gap: 2rem; align-items: center; max-width: 900px; }
.ethics > i { font-size: 3.5rem; color: #ff8a96; }
.ethics p { margin: 0; font-size: 1.05rem; }

/* ---------- Nosotros ---------- */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3.5rem; align-items: center; }
.company-card { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.8rem; background: var(--blue-50); border-radius: var(--radius); padding: 1.3rem; border-left: 5px solid var(--red-600); }
.company-card small, .company-box small { display: block; font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.company-card strong, .company-box strong { color: var(--ink); font-size: .92rem; }
.viz-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 1.8rem; border: 1px solid var(--line); }
.viz-card__head, .viz-card__foot { display: flex; justify-content: space-between; font-size: .85rem; }
.viz-card__head span { font-weight: 700; color: var(--ink); font-family: var(--font-head); }
.viz-card__head b { color: var(--red-600); }
.viz-card svg { margin: 1.2rem 0; width: 100%; }
.viz-card__foot span { background: var(--blue-50); color: var(--blue-800); font-weight: 700; padding: .3rem .8rem; border-radius: 8px; }
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.mv__item { background: var(--blue-800); color: #c6d3ea; border-radius: var(--radius-lg); padding: 2.4rem; }
.mv__item--red { background: var(--red-600); color: #ffe3e6; }
.mv__item h3 { color: #fff; font-size: 1.5rem; }
.mv__item > i { font-size: 2.2rem; color: #fff; margin-bottom: 1rem; }
.mv__item p { margin: 0; font-size: 1.02rem; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.contact__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-card { display: flex; gap: 1rem; padding: 1.4rem; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; color: var(--text); transition: .25s; }
a.contact-card:hover { border-color: var(--blue-800); box-shadow: var(--shadow); color: var(--text); }
.contact-card > i { width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-800); font-size: 1.25rem; }
.contact-card:first-child > i { background: var(--wa); color: #fff; }
.contact-card h3 { font-size: 1rem; margin-bottom: .2rem; }
.contact-card p { margin: 0; font-size: .9rem; word-break: break-word; }
.map iframe { width: 100%; height: 420px; border: 0; display: block; filter: grayscale(.2); }

/* ---------- Forms (libro) ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
.form-grid__full { grid-column: 1 / -1; }
.form-grid h2 { font-size: 1.1rem; color: var(--blue-800); padding-bottom: .6rem; border-bottom: 2px solid var(--blue-50); margin: 1.2rem 0 1rem; }
.form-grid h2:first-of-type { margin-top: 0; }
.radio-row { display: grid; gap: .3rem; }
.company-box { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; background: var(--blue-50); }
.note { font-size: .82rem; color: var(--muted); }
.alert { display: flex; gap: 1rem; align-items: flex-start; padding: 1.3rem 1.5rem; border-radius: var(--radius); margin-bottom: 1.5rem; }
.alert > i { font-size: 1.6rem; }
.alert p { margin: 0; }
.alert--ok { background: #e6f7ee; color: #146c3c; }
.alert--ok h3 { color: #146c3c; }
.alert--error { background: var(--red-100); color: var(--red-700); }

/* ---------- Legal ---------- */
.legal h2 { font-size: 1.25rem; margin-top: 2rem; color: var(--blue-800); }
.legal ul { list-style: disc; padding-left: 1.3rem; margin-bottom: 1em; }
.legal li { margin-bottom: .4rem; }

/* ---------- Notice (gracias / 404) ---------- */
.notice { min-height: 55vh; display: grid; place-items: center; }
.notice__icon { width: 90px; height: 90px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 1.5rem; font-size: 2.4rem; color: #fff; background: #22a35a; box-shadow: 0 0 0 12px #e6f7ee; }
.notice__code { font-family: var(--font-head); font-weight: 900; font-size: clamp(5rem, 14vw, 9rem); line-height: 1; color: var(--blue-800); margin-bottom: 1rem; }
.notice__code span { color: var(--red-600); }

/* ---------- Footer ---------- */
.footer { background: var(--blue-900); color: #9fb0d0; font-size: .92rem; }
.footer__cta { background: linear-gradient(90deg, var(--red-700), var(--red-600)); color: #ffe3e6; }
.footer__cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 2.2rem 0; }
.footer__cta h3 { color: #fff; font-size: clamp(1.2rem, 2.2vw, 1.6rem); margin: 0 0 .3rem; }
.footer__cta p { margin: 0; }
.footer__cta-btns { display: flex; gap: .8rem; flex-wrap: wrap; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2.5rem; padding: 4rem 0 3rem; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1.1rem; position: relative; padding-bottom: .7rem; }
.footer h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 30px; height: 3px; border-radius: 3px; background: var(--red-600); }
.footer a { color: #9fb0d0; }
.footer a:hover { color: #fff; }
.footer li { margin-bottom: .55rem; }
.footer__brand img { height: 58px; width: auto; margin-bottom: 1.2rem; }
.footer__ruc { color: #fff; font-weight: 600; }
.footer__social { display: flex; gap: .6rem; margin-top: 1.2rem; }
.footer__social a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; transition: .2s; }
.footer__social a:hover { background: var(--red-600); }
.footer__contact li { display: flex; gap: .7rem; }
.footer__contact i { color: var(--red-600); margin-top: .3rem; width: 16px; }
.libro { display: flex; align-items: center; gap: .9rem; margin-top: 1.2rem; padding: .8rem 1rem; background: #fff; border-radius: 12px; color: var(--ink) !important; max-width: 300px; }
.libro i { font-size: 1.6rem; color: var(--red-600); }
.libro strong { display: block; font-size: .9rem; }
.libro small { font-size: .7rem; color: var(--muted); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); font-size: .82rem; }
.footer__bottom-inner { display: flex; justify-content: space-between; gap: 1rem; padding: 1.3rem 0; flex-wrap: wrap; }

/* ---------- Floating ---------- */
.wa-float {
    position: fixed; right: 22px; bottom: 22px; z-index: 90;
    width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
    background: var(--wa); color: #fff !important; font-size: 1.9rem; box-shadow: 0 10px 25px rgba(37,211,102,.45);
    animation: pulse 2.4s infinite;
}
.wa-float__tip { position: absolute; right: 72px; background: #fff; color: var(--ink); font-size: .85rem; font-weight: 700; padding: .5rem .9rem; border-radius: 10px; white-space: nowrap; box-shadow: var(--shadow); opacity: 0; transform: translateX(10px); transition: .25s; pointer-events: none; }
.wa-float:hover .wa-float__tip { opacity: 1; transform: none; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } }
.to-top { position: fixed; right: 30px; bottom: 96px; z-index: 89; width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--blue-800); color: #fff; opacity: 0; visibility: hidden; transform: translateY(10px); transition: .25s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1100px) {
    .nav__actions .btn--outline { display: none; }
    .nav__list { gap: 0; }
    .nav__link { padding: .55rem .55rem; font-size: .85rem; }
}

@media (max-width: 980px) {
    .topbar__info span { display: none; }
    .burger { display: block; }
    .nav {
        position: fixed; inset: calc(var(--header-h) + 40px) 0 0 0; background: #fff;
        flex-direction: column; align-items: stretch; padding: 1.5rem; gap: 1.5rem; overflow-y: auto;
        transform: translateX(100%); transition: transform .35s ease; visibility: hidden;
    }
    .header.is-scrolled .nav, body.nav-open .nav { inset-block-start: var(--header-h); }
    body.nav-open .nav { transform: none; visibility: visible; }
    body.nav-open { overflow: hidden; }
    .nav__list { flex-direction: column; align-items: stretch; }
    .nav__link { padding: .9rem .4rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; justify-content: space-between; }
    .nav__link::after { display: none; }
    .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: .3rem 0 .5rem; min-width: 0; display: none; }
    .nav__dropdown.is-open .dropdown { display: block; }
    .nav__actions { flex-direction: column; }
    .nav__actions .btn--outline { display: inline-flex; }
    .nav__actions .btn { padding: .95rem; font-size: .95rem; }

    .hero__inner, .why, .campus-promo, .faq-wrap, .info-split, .about, .contact, .page-hero__split { grid-template-columns: minmax(0, 1fr); }
    .hero__inner { gap: 2.5rem; }
    .course-grid, .service-grid, .modes { grid-template-columns: repeat(2, 1fr); }
    .steps, .levels { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
    .stats__grid { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(3)::before { display: none; }
    .paths { grid-template-columns: 1fr; }
    .catalog { grid-template-columns: 1fr; }
    .filters { position: static; }
    .filters__help { display: none; }
    .course-layout { grid-template-columns: 1fr; }
    .course-aside { position: static; margin-top: 0; order: -1; }
    .course-hero__facts { grid-template-columns: repeat(2, auto); }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .footer__cta-inner { flex-direction: column; text-align: center; }
    .slider__track { grid-auto-columns: calc((100% - 1.5rem) / 2); }
    .section-head--row { flex-direction: column; align-items: flex-start; }
    .mock { transform: none; }
    .company-box { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    :root { --header-h: 66px; }
    .topbar { display: none; }
    .nav { inset: var(--header-h) 0 0 0; }
    .logo img { height: 46px; }
    .course-grid, .service-grid, .modes, .steps, .levels, .why__grid, .mv, .contact__cards, .checklist--2, .company-card { grid-template-columns: 1fr; }
    .field-row, .form-grid { grid-template-columns: minmax(0, 1fr); }
    .hero .hl { white-space: normal; }
    .eyebrow { letter-spacing: .1em; }
    .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
    .slider__track { grid-auto-columns: 88%; }
    .lead-form { padding: 1.4rem; }
    .hero__btns .btn { width: 100%; }
    .path { padding: 1.8rem; }
    .ethics { flex-direction: column; text-align: center; }
    .box { padding: 1.3rem; }
    .course-hero__facts { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .4rem; margin-inline: -1.25rem; padding-inline: 1.25rem; scrollbar-width: none; }
    .chip { flex-shrink: 0; }
    .wa-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
    .to-top { right: 21px; bottom: 82px; }
}

/* ---------- Contenido gestionado desde el panel ---------- */
.topbar__login { margin-left: .6rem; padding-left: .9rem; border-left: 1px solid rgba(255,255,255,.15); font-weight: 600; }
.topbar__social { align-items: center; }
.course-card__media.has-img { background: var(--blue-900); }
.course-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.course-card:hover .course-card__img { transform: scale(1.06); }
.course-card__media.has-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,29,64,.45), transparent 45%); }
.course-card__media.has-img .course-card__tag, .course-card__media.has-img .course-card__badge { z-index: 1; }
.course-card__media.has-img .course-card__deco { display: none; }
.course-hero.has-img { background: linear-gradient(90deg, rgba(7,29,64,.96) 0%, rgba(7,29,64,.85) 50%, rgba(7,29,64,.45) 100%), var(--hero-img) center/cover; }
.rich { white-space: normal; }
.teacher { display: flex; gap: 1.4rem; align-items: flex-start; }
.teacher h2 { margin-bottom: .2rem; }
.teacher__photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex-shrink: 0; box-shadow: 0 0 0 4px var(--blue-50); }
.teacher__photo--ph { display: grid; place-items: center; background: linear-gradient(135deg, var(--blue-800), var(--red-600)); color: #fff; font-family: var(--font-head); font-weight: 900; font-size: 2rem; }
.teacher__esp { color: var(--red-600); font-weight: 600; margin-bottom: .6rem; }
@media (max-width: 640px) { .teacher { flex-direction: column; } }
