/* Tipografías de marca (Brandbook 2026): Funnel Display para títulos, Funnel Sans para texto. */
@font-face { font-family: "Funnel Display"; src: url("fonts/FunnelDisplay-latin.woff2") format("woff2"); font-weight: 300 800; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Funnel Display"; src: url("fonts/FunnelDisplay-latin-ext.woff2") format("woff2"); font-weight: 300 800; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Funnel Sans"; src: url("fonts/FunnelSans-latin.woff2") format("woff2"); font-weight: 300 800; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Funnel Sans"; src: url("fonts/FunnelSans-latin-ext.woff2") format("woff2"); font-weight: 300 800; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Paleta de marca (DESIGN.md y diseño de Midaz Learning). El naranja es acento: nunca domina junto al azul. */
:root {
  --navy: #07143a;
  --blue: #004be0;
  --blue-ink: #003bb3;
  --blue-50: #eaf0ff;
  --blue-light: #dbe5ff;
  --gold: #ffb05a;
  --gold-hover: #f39a41;
  --orange-100: #fff0e1;
  --orange-700: #d87e25;
  --paper: #f4f5f7;
  --white: #fff;
  --ink: var(--navy);
  --ink-2: #4a5570;
  --muted: #6a7490;
  --line: #dfe3ea;
  --track: #e8ecf3;
  --success: #1f9d63;
  --success-bg: #e4f6ec;
  --danger: #dc3a4b;
  --danger-bg: #fce8ea;
  --radius: 20px;
  --radius-md: 14px;
  --shadow: 0 2px 10px rgba(7, 20, 58, .06);
  --shadow-lg: 0 12px 32px rgba(7, 20, 58, .12);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: "Funnel Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Funnel Display", var(--font);
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 16px/1.5 var(--font); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; width: 100%; max-width: 1400px; margin: 0 auto; padding: 24px 16px 48px; outline: none; }
main.full { max-width: none; padding: 0; }
@media (min-width: 720px) { main { padding: 32px 32px 64px; } main.full { padding: 0; } }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.03em; line-height: 1.04; margin: 0; text-wrap: balance; }
p { text-wrap: pretty; }
.muted { color: var(--ink-2); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--blue); color: var(--white); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
svg { stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Piezas comunes */
.kicker { font-size: .78rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--blue); }
.kicker-gold { color: var(--gold); }
.kicker-orange { color: var(--orange-700); }
.kicker-light { color: var(--blue-light); }
.kicker-danger { color: var(--danger); }
.kicker-success { color: var(--success); }
.chip { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); padding: 6px 14px; border-radius: 999px; background: var(--blue-50); }
.chip-dark { color: var(--white); background: rgba(255, 255, 255, .14); }
.pill { font-size: .75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.pill-blue { background: var(--blue-50); color: var(--blue); }
.pill-gray { background: var(--track); color: var(--ink-2); }
.pill-green { background: var(--success-bg); color: var(--success); }
.bar { height: 6px; border-radius: 999px; background: var(--track); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--blue); border-radius: 999px; transition: width .4s var(--ease); }
.bar-dark { background: rgba(255, 255, 255, .12); }
.bar-dark i { background: var(--gold); }
.bar-light { width: 100%; max-width: 320px; background: rgba(255, 255, 255, .2); }
.bar-light i { background: var(--gold); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; cursor: pointer; text-decoration: none !important; transition: background .15s, border-color .15s; }
.btn svg { width: 18px; height: 18px; }
.btn-full { width: 100%; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-ink); }
.btn-primary:disabled { background: var(--track); color: var(--muted); cursor: not-allowed; }
.btn-ghost { background: var(--white); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--blue); }
.btn-ghost[aria-pressed="true"] { background: var(--success-bg); border-color: var(--success); color: var(--success); }
.btn-accent { background: var(--gold); color: var(--navy); min-height: 52px; padding: 0 28px; font-size: 1.05rem; }
.btn-accent:hover { background: var(--gold-hover); }
.btn-accent.is-disabled { opacity: .45; cursor: not-allowed; }
.btn-line { border-color: rgba(255, 255, 255, .25); color: var(--white); }
.btn-line:hover { background: rgba(255, 255, 255, .1); }
.row-btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* Barra superior */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .88); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.topbar-in { max-width: 1200px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 16px; }
@media (min-width: 720px) { .topbar-in { padding: 14px 32px; } }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none !important; flex: none; }
.brand img { height: 28px; width: auto; display: block; }
.brand-tag { font: 500 1.25rem var(--display); color: var(--blue); letter-spacing: -.02em; padding-left: 12px; border-left: 1px solid var(--line); }
.search { position: relative; flex: 1; min-width: 0; max-width: 460px; margin-left: auto; display: flex; align-items: center; }
.search > svg { position: absolute; left: 12px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search input { width: 100%; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); padding: 0 40px 0 38px; font: inherit; }
.search input:focus { outline: none; border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 18%, transparent); }
.search kbd { position: absolute; right: 12px; font: 500 12px var(--font); color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; }
.results { position: absolute; top: 46px; left: 0; right: 0; max-height: min(70vh, 560px); overflow: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); padding: 6px; }
.results a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.results a:hover, .results a.active { background: var(--blue-50); }
.results .r-title { font-weight: 600; }
.results .r-meta { font-size: 12px; color: var(--muted); }
.results .r-snip { font-size: 13px; color: var(--ink-2); }
.results mark { background: color-mix(in srgb, var(--gold) 40%, transparent); color: inherit; border-radius: 3px; }
.results .r-empty { padding: 14px; color: var(--muted); }
.top-actions { display: flex; align-items: center; gap: 14px; flex: none; margin-left: auto; }
.search:not([hidden]) + .top-actions { margin-left: 0; }
.session { font-size: .9rem; color: var(--ink-2); }
.audience { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
.audience button { border: 0; cursor: pointer; padding: 8px 18px; border-radius: 999px; font-weight: 600; font-size: .9rem; background: transparent; color: var(--ink-2); transition: all .2s; }
.audience button.on { background: var(--blue); color: var(--white); }
@media (max-width: 760px) { .search kbd, .session { display: none; } .topbar-in { flex-wrap: wrap; } .search { order: 3; flex-basis: 100%; max-width: none; } .audience button { padding: 7px 12px; } }
@media (max-width: 400px) { .brand-tag { display: none; } }

/* Inicio */
.home-hero { max-width: 1200px; margin: 0 auto; padding: 80px 16px 40px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.home-hero h1 { font-size: clamp(2.6rem, 6vw, 4.75rem); line-height: 1; }
.home-hero p { margin: 0; max-width: 640px; font-size: 1.15rem; line-height: 1.6; color: var(--ink-2); }
.products { max-width: 1200px; margin: 0 auto; padding: 24px 16px 104px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; }
@media (min-width: 720px) { .home-hero, .products { padding-left: 32px; padding-right: 32px; } }
.pcard { border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden; color: var(--ink);
  text-decoration: none !important; transition: transform .3s var(--ease), box-shadow .3s; }
a.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.pcard.soon { cursor: default; }
.pc-top { padding: 28px 28px 0; display: flex; flex-direction: column; gap: 10px; }
.pc-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pcard h2 { font-size: 2.1rem; line-height: 1; }
.pcard p { margin: 0; font-size: .98rem; line-height: 1.5; color: var(--ink-2); }
.pc-img { height: 220px; flex: 1 0 auto; margin-top: 16px; display: grid; place-items: center; padding: 12px; }
.pc-img img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.pc-ph { font: 700 1.6rem var(--display); letter-spacing: -.03em; color: color-mix(in srgb, var(--blue) 35%, var(--paper)); }
.pc-foot { margin-top: auto; padding: 16px 28px 24px; display: flex; flex-direction: column; gap: 8px; background: var(--white); border-top: 1px solid var(--line); font-size: .85rem; color: var(--ink-2); }

/* Acceso del equipo */
.login { min-height: 70vh; background: var(--blue); padding: 96px 16px; display: flex; justify-content: center; align-items: flex-start; }
.login-card { width: 100%; max-width: 420px; background: var(--white); border-radius: var(--radius); padding: 40px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 20px 48px rgba(7, 20, 58, .3); }
.login-card h1 { font-size: 2rem; line-height: 1.08; }
.login-card p { margin: 0; }
.login-note { font-size: .9rem; color: var(--orange-700); background: var(--orange-100); padding: 10px 14px; border-radius: 12px; }

/* Curso */
.course-hero { background: var(--blue); color: var(--white); padding: 88px 16px 96px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.course-hero h1 { font-size: clamp(2.6rem, 6vw, 4.75rem); line-height: 1; max-width: 1000px; }
.course-hero > p { margin: 0; max-width: 640px; font-size: 1.2rem; line-height: 1.6; color: var(--blue-light); }
.hero-shot { position: relative; width: 100%; max-width: 960px; aspect-ratio: 16 / 9; margin-top: 24px; border-radius: var(--radius); overflow: hidden; background: var(--navy); box-shadow: 0 20px 48px rgba(7, 20, 58, .35); }
.hero-shot img { width: 100%; height: 100%; object-fit: contain; display: block; }
.hero-play { position: absolute; inset: 0; display: grid; place-items: center; }
.hero-play span { width: 80px; height: 80px; border-radius: 999px; background: var(--gold); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(255, 176, 90, .45); transition: transform .2s var(--ease); }
.hero-play span::after { content: ""; border-left: 24px solid var(--navy); border-top: 15px solid transparent; border-bottom: 15px solid transparent; margin-left: 7px; }
.hero-play:hover span { transform: scale(1.06); }
.hero-note { margin: 0; color: var(--blue-light); }
.hero-note a { color: var(--white); font-weight: 600; text-decoration: underline; }
.progress-strip { position: sticky; top: 61px; z-index: 10; background: rgba(255, 255, 255, .9); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.progress-in { max-width: 1200px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 16px; font-size: .85rem; font-weight: 600; white-space: nowrap; }
.progress-in .bar { flex: 1; }
@media (min-width: 720px) { .progress-in { padding: 12px 32px; } }
@media (max-width: 760px) { .progress-strip { position: static; } }
.module { padding: 88px 16px; scroll-margin-top: 110px; }
.module.alt { background: var(--paper); }
.module-in { max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.module-head { display: flex; gap: 10px; align-items: center; }
.module h2 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); }
.module-meta { margin: 0; color: var(--ink-2); font-size: 1.05rem; }
.locked { margin-top: 20px; padding: 18px 28px; border-radius: 999px; border: 1px dashed #b9c3d6; color: var(--ink-2); }
.lessons { width: 100%; margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 16px; text-align: left; }
.lcard { display: flex; flex-direction: column; gap: 10px; color: var(--ink); text-decoration: none !important; }
.lthumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--radius-md); overflow: hidden; background: var(--navy); border: 1px solid var(--line); transition: transform .25s var(--ease), box-shadow .25s; }
.lthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lcard:hover .lthumb { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.ldur { position: absolute; right: 8px; bottom: 8px; font: 600 12px var(--font); color: var(--white); background: rgba(7, 20, 58, .8); padding: 2px 8px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.lchk { position: absolute; left: 8px; top: 8px; width: 26px; height: 26px; border-radius: 999px; background: var(--success); color: var(--white); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.ltitle { font-weight: 600; line-height: 1.3; }
.lcard.done .ltitle { color: var(--ink-2); }
.quiz { width: 100%; max-width: 640px; margin-top: 32px; background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-align: left; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); }
.quiz-q { font: 700 1.35rem/1.25 var(--display); letter-spacing: -.02em; }
.quiz-opts { display: flex; flex-direction: column; gap: 8px; }
.quiz-opt { text-align: left; cursor: pointer; padding: 14px 16px; border-radius: var(--radius-md); font-weight: 500; font-size: 1rem; color: var(--ink); background: var(--white); border: 1.5px solid var(--line); transition: all .15s; }
.quiz-opt:hover { border-color: var(--blue); }
.quiz-opt.picked { border-color: var(--blue); background: var(--blue-50); }
.quiz-opt.right { border-color: var(--success); background: var(--success-bg); }
.quiz-opt.wrong { border-color: var(--danger); background: var(--danger-bg); }
.quiz-fb { font-size: .95rem; font-weight: 600; min-height: 1.4em; }
.quiz-fb.ok { color: var(--success); }
.quiz-fb.bad { color: var(--danger); }
.exam-band { background: var(--navy); color: var(--white); padding: 112px 16px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.exam-band h2 { font-size: clamp(2.4rem, 5vw, 4rem); }
.exam-band > p { margin: 0; max-width: 640px; font-size: 1.05rem; line-height: 1.6; color: #c9d4f2; }
.exam-stats { display: flex; gap: 40px; flex-wrap: wrap; justify-content: center; margin: 8px 0; }
.exam-stats div { display: flex; flex-direction: column; gap: 4px; }
.exam-stats b { font: 700 2.4rem var(--display); letter-spacing: -.03em; }
.exam-stats span { font-size: .9rem; color: #8fa3d6; }

/* Examen y certificado */
.exam-page { max-width: 760px; margin: 0 auto; padding: 72px 16px 96px; display: flex; flex-direction: column; gap: 24px; }
.exam-head { display: flex; flex-direction: column; gap: 10px; text-align: center; align-items: center; }
.exam-head h1, .exam-page .exam-card > h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
.exam-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.exam-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); }
.exam-card p { margin: 0; }
.exam-submit { position: sticky; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); }
.cert-page { max-width: 1000px; margin: 0 auto; padding: 56px 16px 96px; display: flex; flex-direction: column; gap: 20px; align-items: center; }
.cert-tools { width: 100%; display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.cert-name { flex: 1 1 320px; display: flex; flex-direction: column; gap: 6px; font-size: .9rem; color: var(--ink-2); }
.cert-name input { height: 46px; border-radius: 12px; border: 1px solid var(--line); padding: 0 14px; font: inherit; color: var(--ink); }
.cert-name input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 18%, transparent); }
.cert { width: 100%; aspect-ratio: 1.414; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 6% 8%;
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 18px; position: relative; overflow: hidden; }
.cert::before { content: ""; position: absolute; inset: 0; border: 10px solid var(--blue); border-radius: inherit; pointer-events: none; }
.cert-logo { height: 34px; width: auto; }
.cert h1 { font-size: clamp(2rem, 5vw, 3.6rem); color: var(--blue); }
.cert p { margin: 0; font-size: 1.15rem; color: var(--ink-2); max-width: 560px; }
.cert-foot { margin-top: 12px; display: flex; gap: 32px; font-size: .9rem; color: var(--muted); }
@media print {
  @page { size: A4 landscape; margin: 0; }
  body { background: var(--white); }
  .topbar, .foot, .no-print, .skip { display: none !important; }
  main, .cert-page { padding: 0 !important; max-width: none; }
  .cert { border: 0; border-radius: 0; box-shadow: none; width: 297mm; height: 210mm; aspect-ratio: auto; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .cert::before { border-radius: 0; }
}

/* Brandbook */
.brand-page { background: var(--navy); color: var(--white); padding: 64px 16px 88px; }
.brand-page > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.brand-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.brand-head > div:first-child { display: flex; flex-direction: column; gap: 12px; }
.brand-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); }
.brand-nav { display: flex; align-items: center; gap: 12px; }
.round { width: 48px; height: 48px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); background: transparent; color: var(--white); font-size: 1.2rem; cursor: pointer; }
.round:hover { background: rgba(255, 255, 255, .1); }
.round-gold { border: 0; background: var(--gold); color: var(--navy); }
.round-gold:hover { background: var(--gold-hover); }
.bb-label { font: 700 1.1rem var(--display); min-width: 72px; text-align: center; }
.bb-view { display: flex; justify-content: center; width: 100%; aspect-ratio: 1450 / 1120; max-height: 78vh; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 20px 48px rgba(0, 0, 0, .35); cursor: pointer; padding: 0; margin-bottom: 20px; }
.bb-view img { height: 100%; width: 100%; object-fit: contain; display: block; }
.bb-thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 16px 0 6px; }
.bb-thumbs button { flex: none; padding: 0; border: 2px solid transparent; border-radius: 8px; background: none; cursor: pointer; opacity: .55; transition: opacity .2s; }
.bb-thumbs button.on { border-color: var(--gold); opacity: 1; }
.bb-thumbs img { height: 72px; width: auto; display: block; border-radius: 6px; }

/* Guía comercial */
.s-hero { background: var(--blue); color: var(--white); padding: 96px 16px 88px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.s-hero h1 { font-size: clamp(2.6rem, 6.5vw, 5.25rem); line-height: .98; max-width: 1100px; }
.s-hero > p { margin: 0; max-width: 600px; font-size: 1.15rem; line-height: 1.6; color: var(--blue-light); }
.pitch { width: 100%; max-width: 820px; margin-top: 28px; padding: 32px; border-radius: var(--radius); background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); text-align: left; display: flex; flex-direction: column; gap: 18px; }
.pitch p { margin: 0; font: 500 clamp(1.2rem, 2.2vw, 1.55rem)/1.45 var(--display); letter-spacing: -.01em; }
.btn-mini { cursor: pointer; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); background: transparent; color: var(--white); font-weight: 600; font-size: .85rem; }
.s-sec { padding: 96px 16px; }
.s-sec > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.s-sec.alt { background: var(--paper); }
.s-sec.dark { background: var(--navy); color: var(--white); }
.s-sec.blue { background: var(--blue); color: var(--white); }
.s-sec.blue .kicker, .s-sec.dark .sec-head .kicker { color: var(--blue-light); }
.sec-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; margin-bottom: 36px; }
.sec-head h2 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); }
.sec-head p { margin: 0; color: var(--blue-light); }
.reco { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px; align-items: start; }
.reco-list { display: flex; flex-direction: column; gap: 8px; }
.reco-list button { cursor: pointer; text-align: left; padding: 14px 18px; border-radius: var(--radius-md); border: 1.5px solid var(--line); background: var(--white); display: flex; gap: 12px; align-items: center; font-weight: 500; transition: all .15s; }
.reco-list .dot { width: 10px; height: 10px; flex: none; border-radius: 999px; background: var(--line); }
.reco-list button.on { border-color: var(--blue); background: var(--blue-50); }
.reco-list button.on .dot { background: var(--blue); }
.reco-card { position: sticky; top: 90px; border-radius: var(--radius); background: var(--blue); color: var(--white); padding: 36px; display: flex; flex-direction: column; gap: 24px; box-shadow: 0 20px 48px rgba(0, 75, 224, .25); }
.reco-rec { font: 700 clamp(1.8rem, 3vw, 2.4rem)/1.08 var(--display); letter-spacing: -.03em; }
.reco-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; border-top: 1px solid rgba(255, 255, 255, .2); padding-top: 20px; }
.reco-grid div { display: flex; flex-direction: column; gap: 6px; }
.reco-grid b { font: 700 1.3rem var(--display); }
.ask { margin-top: 40px; border-radius: var(--radius); background: var(--paper); padding: 32px; }
.ask ol { margin: 18px 0 0; padding-left: 22px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px 40px; }
.ask li::marker { font: 700 1rem var(--display); color: var(--blue); }
.folio { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-bottom: 36px; }
.folio button { cursor: pointer; text-align: left; padding: 16px; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--white); display: flex; flex-direction: column; gap: 4px; transition: all .2s; }
.folio button:hover { transform: translateY(-2px); }
.folio b { font: 700 1.05rem var(--display); letter-spacing: -.02em; }
.folio span { font-size: .78rem; font-weight: 600; color: var(--blue); }
.folio button.on { background: var(--navy); border-color: var(--navy); color: var(--white); }
.folio button.on span { color: var(--gold); }
.folio-card { border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.folio-dark { background: var(--navy); color: var(--white); padding: 40px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.folio-dark > div { display: flex; flex-direction: column; gap: 6px; }
.folio-dark b { font: 700 2.6rem/1 var(--display); letter-spacing: -.03em; }
.hook { font: 500 1.6rem/1.2 var(--display); letter-spacing: -.02em; color: var(--gold); }
.folio-body { padding: 40px; display: flex; flex-direction: column; gap: 22px; }
.folio-body p, .three p, .pack p, .decisions p, .two p, .channels p { margin: 6px 0 0; line-height: 1.55; }
.tabs-pill { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 28px; }
.tabs-pill button { cursor: pointer; padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font-weight: 600; font-size: .95rem; transition: all .2s; }
.tabs-pill button.on { background: var(--blue); border-color: var(--blue); color: var(--white); }
.three { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.three > div { padding: 28px; border-radius: var(--radius); }
.three p { font-size: 1.05rem; }
.t-red { background: var(--danger-bg); }
.t-blue { background: var(--blue-50); }
.t-gray { background: var(--paper); }
.t-navy { background: var(--navy); color: var(--white); display: flex; flex-direction: column; gap: 10px; }
.t-navy b { font: 700 1.35rem/1.3 var(--display); letter-spacing: -.02em; }
.objs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.obj { cursor: pointer; text-align: left; min-height: 190px; padding: 28px; border-radius: var(--radius); background: var(--navy); color: var(--white); border: 1px solid rgba(255, 255, 255, .14);
  display: flex; flex-direction: column; justify-content: space-between; gap: 16px; transition: all .3s var(--ease); }
.obj:hover { transform: translateY(-3px); }
.obj b { font: 700 1.45rem/1.2 var(--display); letter-spacing: -.02em; }
.obj .see { font-size: .85rem; font-weight: 600; color: var(--gold); }
.obj.open { background: var(--white); color: var(--navy); }
.obj.open span { line-height: 1.55; color: var(--ink-2); }
.lang { display: flex; flex-direction: column; gap: 12px; }
.lang-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; align-items: stretch; }
.lang-row > b { padding: 20px 22px; display: flex; align-items: center; font: 700 1.15rem var(--display); letter-spacing: -.02em; }
.say, .avoid { padding: 20px 22px; border-radius: var(--radius-md); }
.say { background: var(--success-bg); }
.avoid { background: var(--paper); }
.avoid p { color: var(--ink-2); text-decoration: line-through; text-decoration-color: rgba(74, 85, 112, .4); }
.tone { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 32px; }
.tone span { padding: 10px 18px; border-radius: 999px; background: var(--blue-50); color: var(--blue); font-size: .92rem; font-weight: 600; }
.pack { border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 40px; display: flex; flex-direction: column; gap: 24px; }
.pack > div:first-child { display: flex; flex-direction: column; gap: 6px; }
.pack-name { font: 700 2.4rem/1 var(--display); letter-spacing: -.03em; color: var(--blue); }
.pack-msg { margin: 0 !important; font: 500 1.6rem/1.25 var(--display); letter-spacing: -.02em; }
.pack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; border-top: 1px solid var(--line); padding-top: 24px; }
.decisions { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; margin-bottom: 40px; }
.decisions > div { display: flex; flex-direction: column; gap: 8px; padding-top: 18px; border-top: 2px solid var(--blue); }
.decisions .num { font: 700 2rem var(--display); color: var(--gold); letter-spacing: -.03em; }
.decisions b { font: 700 1.15rem/1.25 var(--display); letter-spacing: -.02em; }
.decisions p { color: var(--ink-2); font-size: .95rem; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 20px; margin-top: 24px; }
.two > div { border-radius: var(--radius); padding: 36px; display: flex; flex-direction: column; gap: 16px; }
.two > div > div { border-top: 1px solid rgba(255, 255, 255, .2); padding-top: 14px; }
.box-title { font: 700 1.8rem var(--display); letter-spacing: -.03em; }
.box-blue { background: var(--blue); color: var(--white); }
.box-blue p { color: var(--blue-light); }
.box-navy { background: var(--navy); color: var(--white); }
.box-navy p { color: #c9d4f2; }
.box-line { border: 1px solid var(--line); }
.box-line > div { border-top-color: var(--line) !important; }
.box-line p { color: var(--ink-2); }
.box-line .box-title { font-size: 1.4rem; }
.gold { color: var(--gold); }
.channels { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.channels > div { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow); }
.channels b { font: 700 1.2rem/1.2 var(--display); letter-spacing: -.02em; }
.channels p { color: var(--ink-2); font-size: .95rem; }
.ch-foot { display: flex; flex-direction: column; gap: 6px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: .88rem; line-height: 1.45; }
.ch-foot strong { color: var(--blue); }
.s-quiz { max-width: 760px !important; display: flex; flex-direction: column; gap: 16px; }
.s-quiz .quiz { max-width: none; margin: 0; border: 0; }
.s-done { border-radius: var(--radius); background: var(--gold); color: var(--navy); padding: 28px; text-align: center; font: 700 1.5rem var(--display); letter-spacing: -.02em; }

/* Lección */
.lesson-layout { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); max-width: 1336px; margin: 0 auto; }
.lesson, .outline { min-width: 0; }
@media (min-width: 1100px) { .lesson-layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.course-hero .crumbs { justify-content: center; margin-bottom: 0; color: var(--blue-light); }
.course-hero .crumbs a { color: var(--white); }
.player { position: relative; background: var(--navy); border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; box-shadow: var(--shadow-lg); }
.player video { width: 100%; height: 100%; display: block; }
.player video::cue { font-family: var(--font); font-size: .95em; background: rgba(7, 20, 58, .82); color: #fff; }
.player-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin: 12px 0 20px; }
.speeds { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--white); padding: 3px; gap: 2px; }
.speeds button { border: 0; background: none; padding: 6px 12px; font-size: 13px; cursor: pointer; color: var(--ink-2); border-radius: 999px; }
.speeds button.on { background: var(--blue); color: var(--white); }
.cc { font-size: 14px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; cursor: pointer; }
.lesson-head { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.lesson-head > div { flex: 1 1 280px; min-width: 0; }
.eyebrow { margin: 0 0 8px; font-size: .78rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--blue); }
.lesson-title { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; }
.lesson-summary { color: var(--ink-2); margin: 10px 0 0; max-width: 760px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 10px 14px; cursor: pointer; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--blue); border-color: var(--blue); }
.panel-tools { display: flex; min-width: 0; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: 13px; margin-bottom: 12px; color: var(--ink-2); }
.follow { display: flex; align-items: center; gap: 6px; cursor: pointer; margin-right: auto; }
.link { cursor: pointer; }
.transcript { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 6px; max-height: 460px; overflow: auto; }
.t-block { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 4px 10px; padding: 10px 12px; border-radius: 12px; }
.t-time { font: 600 12px var(--font); color: var(--blue); background: var(--blue-50); border: 0; border-radius: 999px; height: 26px; cursor: pointer; font-variant-numeric: tabular-nums; }
.t-cap { grid-column: 2; font-weight: 600; font-size: 13px; color: var(--ink); }
.t-text { grid-column: 2; margin: 0; color: var(--ink-2); }
.t-text span { cursor: pointer; border-radius: 4px; transition: background .2s, color .2s; }
.t-text span:hover { background: var(--paper); }
.t-text span.now { background: color-mix(in srgb, var(--gold) 35%, transparent); color: var(--ink); }
.chapters { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.chapters button { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 10px 14px; cursor: pointer; }
.chapters button:hover { border-color: var(--blue); }
.chapters .c-time { font: 600 12px var(--font); color: var(--blue); font-variant-numeric: tabular-nums; min-width: 42px; }
.chapters .now { border-color: var(--blue); background: var(--blue-50); }
.objectives { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 10px; }
.objectives li { display: flex; gap: 12px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 12px 14px; }
.objectives li::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: 8px; border-radius: 50%; background: var(--gold); }
.manual-link { font-size: 14px; color: var(--ink-2); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.pager-link { display: block; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 12px 16px; color: var(--ink); text-decoration: none !important; min-height: 64px; }
.pager-link:hover { border-color: var(--blue); }
.pager-link small { display: block; font-size: 12px; color: var(--muted); }
.pager-link.next { text-align: right; }
.pager-link:empty { visibility: hidden; }
.outline { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
@media (min-width: 1100px) { .outline { position: sticky; top: 84px; max-height: calc(100vh - 110px); display: flex; flex-direction: column; } }
.outline-toggle { width: 100%; border: 0; background: none; padding: 14px 16px; text-align: left; font-weight: 600; cursor: pointer; }
@media (min-width: 1100px) { .outline-toggle { display: none; } }
.outline-body { overflow: auto; padding: 6px; }
@media (max-width: 1099px) { .outline-body { display: none; } .outline.open .outline-body { display: block; } }
.o-mod { border-bottom: 1px solid var(--line); }
.o-mod:last-child { border-bottom: 0; }
.o-mod summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 10px; font-weight: 600; font-size: 14px; }
.o-mod summary::-webkit-details-marker { display: none; }
.o-mod summary .o-count { margin-left: auto; font-weight: 500; font-size: 12px; color: var(--muted); }
.o-mod.o-locked summary { color: var(--muted); cursor: default; }
.o-mod ol { list-style: none; margin: 0 0 8px; padding: 0; }
.o-mod a { display: flex; gap: 10px; align-items: center; padding: 7px 10px 7px 12px; border-radius: 10px; color: var(--ink-2); font-size: 13.5px; text-decoration: none; }
.o-mod a:hover { background: var(--paper); }
.o-mod a.current { background: var(--blue-50); color: var(--ink); font-weight: 600; }
.o-mod .chk { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; }
.o-mod .done .chk { background: var(--success); border-color: var(--success); }
.o-mod .done .chk::after { content: ""; width: 7px; height: 4px; border: 2px solid var(--white); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.o-mod .o-t { flex: 1; }
.o-mod .o-d { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Pie */
.foot { background: var(--navy); color: #8fa3d6; font-size: .9rem; border-top: 1px solid rgba(255, 255, 255, .12); }
.foot-in { max-width: 1200px; margin: 0 auto; padding: 28px 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (min-width: 720px) { .foot-in { padding: 28px 32px; } }

@media (max-width: 480px) { .t-block { grid-template-columns: 1fr; } .t-cap, .t-text { grid-column: 1; } .t-time { justify-self: start; padding: 0 10px; } .login-card { padding: 28px; } .reco-grid { grid-template-columns: 1fr; } }
