/* =====================================================================
   Academia Diego Kuhn — folha de estilo única.
   Direção visual herdada do protótipo oficial: base quase preta, dourado
   sóbrio, Fraunces para display e Manrope para texto.
   Mobile-first. Contraste conferido para AA em todo texto de corpo.
   ===================================================================== */

:root {
  --bg: #0a0807;
  --bg-soft: #0f0c0a;
  --bg-card: #131110;
  --bg-elevated: #1a1614;

  --ink: #f5efe6;
  --ink-soft: #c9c2b5;
  --ink-muted: #969087;

  --gold: #c9a961;
  --gold-bright: #dcbe7a;
  --gold-soft: #8b7548;
  --copper: #b8623c;

  --line: rgba(245, 239, 230, 0.09);
  --line-strong: rgba(245, 239, 230, 0.18);

  --ok: #6fbf8b;
  --warn: #d9a441;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --wrap: 1140px;
  --gutter: 20px;

  --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9);
  --gradient: linear-gradient(135deg, #c9a961 0%, #b8623c 100%);

  --font-display: 'Fraunces', Georgia, serif;
  --font-sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--gold); color: #0a0807; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--gold); color: #0a0807; padding: 10px 16px; font-weight: 700;
}
.skip:focus { left: 12px; top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------------------------------------------------------------- type */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.3rem); }
h3 { font-size: clamp(1.1rem, 2.4vw, 1.4rem); }

em { font-style: italic; color: var(--gold); }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 10px;
}

.prose p { color: var(--ink-soft); margin-bottom: 1em; }
.prose h2 { font-size: 1.3rem; margin: 1.8em 0 0.5em; }
.prose ul { color: var(--ink-soft); padding-left: 1.2em; margin-bottom: 1em; }
.prose li { margin-bottom: 0.4em; }
.prose a { color: var(--gold-bright); text-decoration: underline; text-underline-offset: 3px; }
.prose-legal { max-width: 72ch; }

/* -------------------------------------------------------------- botões */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-size: 0.92rem; font-weight: 700;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
  text-align: center; line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--gold); color: #0a0807; }
.btn-primary:hover { background: var(--gold-bright); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); }
.btn-sm { padding: 8px 16px; font-size: 0.82rem; }
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: progress; transform: none; }

.linkish {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--gold-bright); font: inherit; font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px;
}

/* ------------------------------------------------------------- header */

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(10, 8, 7, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: 66px; }

.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand-mark {
  width: 34px; height: 34px; display: grid; place-items: center; flex: none;
  border-radius: 10px; background: var(--gradient); color: #0a0807;
  font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.02em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--font-display); font-size: 1.02rem; font-weight: 500; }
.brand-text em {
  font-style: normal; font-size: 0.62rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-muted);
}

.nav { display: none; gap: 4px; }
.nav-link {
  padding: 8px 14px; border-radius: 999px; font-size: 0.88rem; font-weight: 600;
  color: var(--ink-soft); transition: color 0.2s ease, background 0.2s ease;
}
.nav-link:hover { color: var(--ink); background: rgba(245, 239, 230, 0.05); }
.nav-link.is-active { color: var(--gold-bright); background: rgba(201, 169, 97, 0.1); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.header-actions .btn-ghost { display: none; }

.avatar {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-elevated); border: 1px solid var(--line-strong);
  color: var(--gold-bright); font-weight: 700; font-size: 0.8rem;
}

.nav-toggle {
  width: 40px; height: 36px; display: grid; align-content: center; gap: 5px; justify-items: center;
  background: none; border: 1px solid var(--line-strong); border-radius: 10px; cursor: pointer; padding: 0;
}
.nav-toggle span { display: block; width: 16px; height: 1.5px; background: var(--ink); }

.nav-mobile { display: grid; border-top: 1px solid var(--line); background: var(--bg-soft); }
.nav-mobile a { padding: 14px var(--gutter); border-bottom: 1px solid var(--line); font-weight: 600; }

@media (min-width: 900px) {
  .nav { display: flex; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none !important; }
  .header-actions .btn-ghost { display: inline-flex; }
}

/* --------------------------------------------------------------- hero */

.hero {
  position: relative;
  padding: clamp(56px, 12vw, 120px) 0 clamp(40px, 8vw, 80px);
  background:
    radial-gradient(120% 90% at 80% -10%, rgba(201, 169, 97, 0.14) 0%, transparent 60%),
    radial-gradient(100% 80% at 0% 0%, rgba(184, 98, 60, 0.1) 0%, transparent 55%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero-title { max-width: 16ch; margin-bottom: 20px; }
.hero-lead { color: var(--ink-soft); font-size: clamp(1rem, 2vw, 1.14rem); max-width: 56ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero-stats {
  display: flex; flex-wrap: wrap; gap: 12px 40px; list-style: none; padding: 0;
  margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line);
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-display); font-size: 1.9rem; color: var(--gold); line-height: 1; }
.hero-stats span { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); margin-top: 6px; }

/* ------------------------------------------------------------ seções */

.section { padding: clamp(44px, 8vw, 84px) 0; }
.section-tight { padding-block: clamp(24px, 5vw, 44px); }
.section-alt { background: var(--bg-soft); border-block: 1px solid var(--line); }
.section-offer { padding-top: 0; }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 28px; flex-wrap: wrap;
}
.section-lead { color: var(--ink-soft); margin-top: 10px; max-width: 60ch; }
.section-link {
  font-size: 0.85rem; font-weight: 700; color: var(--gold-bright);
  border-bottom: 1px solid rgba(201, 169, 97, 0.4); padding-bottom: 2px; white-space: nowrap;
}
.section-link:hover { color: var(--gold); }

.page-head { padding: clamp(36px, 7vw, 64px) 0 clamp(18px, 3vw, 28px); border-bottom: 1px solid var(--line); }
.page-lead { color: var(--ink-soft); margin-top: 14px; max-width: 62ch; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 620px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* --------------------------------------------------------------- card */

.card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card.is-soon { opacity: 0.86; }

.card-media { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--bg-elevated); overflow: hidden; }
.card-img { width: 100%; height: 100%; object-fit: cover; }

.card-ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  background:
    radial-gradient(90% 120% at 20% 0%, rgba(201, 169, 97, 0.16) 0%, transparent 60%),
    linear-gradient(150deg, #16120f 0%, #0d0b09 100%);
}
.card-ph-mark {
  font-family: var(--font-display); font-size: 2.6rem; color: rgba(201, 169, 97, 0.55);
  width: 68px; height: 68px; display: grid; place-items: center;
  border: 1px solid rgba(201, 169, 97, 0.28); border-radius: 50%;
}

.card-badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge {
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px; backdrop-filter: blur(6px);
}
.badge-new { background: var(--gold); color: #0a0807; }
.badge-featured { background: rgba(10, 8, 7, 0.7); color: var(--gold-bright); border: 1px solid rgba(201, 169, 97, 0.4); }
.badge-soon { background: rgba(10, 8, 7, 0.78); color: var(--ink-soft); border: 1px solid var(--line-strong); }
.badge-done { background: rgba(111, 191, 139, 0.15); color: var(--ok); border: 1px solid rgba(111, 191, 139, 0.35); }

.card-duration {
  position: absolute; right: 10px; bottom: 10px; font-size: 0.7rem; font-weight: 700;
  background: rgba(10, 8, 7, 0.8); padding: 3px 8px; border-radius: 6px; color: var(--ink-soft);
}
.card-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, 0.12); }
.card-progress span { display: block; height: 100%; background: var(--gold); }

.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-meta {
  display: flex; gap: 10px; flex-wrap: wrap; font-size: 0.68rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-muted); font-weight: 600;
}
.card-meta span + span::before { content: '·'; margin-right: 10px; color: var(--line-strong); }
.card-title { font-size: 1.12rem; }
.card-title a:hover { color: var(--gold-bright); }
.card-desc { font-size: 0.9rem; color: var(--ink-soft); flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.card-pct { font-size: 0.74rem; font-weight: 700; color: var(--gold); }
.card-pct-empty { color: var(--ink-muted); font-weight: 500; }

.fav {
  background: none; border: 1px solid var(--line-strong); border-radius: 50%;
  width: 34px; height: 34px; display: grid; place-items: center; cursor: pointer; color: var(--ink-muted);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.fav:hover { color: var(--gold); border-color: var(--gold-soft); }
.fav.is-on { color: var(--gold); border-color: var(--gold); }
.fav.is-on svg path { fill: var(--gold); }

/* ---------------------------------------------------------- passo a passo */

.steps { list-style: none; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.step {
  display: flex; gap: 16px; padding: 18px;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
}
.step-n { font-family: var(--font-display); font-size: 1.5rem; color: var(--gold-soft); line-height: 1; flex: none; }
.step h3 { font-size: 1.05rem; margin-bottom: 4px; }
.step h3 a:hover { color: var(--gold-bright); }
.step p { font-size: 0.9rem; color: var(--ink-soft); }

/* -------------------------------------------------------------- trilhas */

.track-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.track-card:hover { border-color: var(--gold-soft); transform: translateY(-2px); }
.track-link { display: block; padding: 24px; }
.track-desc { color: var(--ink-soft); font-size: 0.92rem; margin-top: 10px; }
.track-meta { font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); margin-top: 14px; }
.track-next { font-size: 0.85rem; color: var(--gold-bright); margin-top: 10px; }
.track-bar { display: block; height: 3px; background: rgba(255, 255, 255, 0.1); border-radius: 2px; margin-top: 10px; overflow: hidden; }
.track-bar span { display: block; height: 100%; background: var(--gradient); }
.track-bar-lg { height: 5px; max-width: 420px; margin-top: 18px; }
.track-status { margin-top: 14px; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); }
.track-cta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; }

.track-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.track-item {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 16px;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
}
.track-item.is-done { border-color: rgba(111, 191, 139, 0.25); }
.track-n { font-family: var(--font-display); font-size: 1.2rem; color: var(--gold-soft); }
.track-thumb { display: none; width: 132px; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; position: relative; background: var(--bg-elevated); }
.track-thumb img { width: 100%; height: 100%; object-fit: cover; }
.track-body h2 { font-size: 1.08rem; }
.track-body h2 a:hover { color: var(--gold-bright); }
.track-body p { font-size: 0.9rem; color: var(--ink-soft); margin-top: 4px; }
.track-item-meta {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px;
  font-size: 0.68rem !important; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted) !important;
}
.track-pct { color: var(--gold); font-weight: 700; }
@media (min-width: 720px) {
  .track-item { grid-template-columns: auto 132px 1fr; }
  .track-thumb { display: block; }
}

/* --------------------------------------------------------------- sobre */

.about { display: grid; gap: 28px; align-items: center; }
.about-media img { width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--line); object-fit: cover; aspect-ratio: 4/5; }
.about-text p { color: var(--ink-soft); margin-top: 12px; }
.benefits { list-style: none; padding: 0; margin-top: 22px; display: grid; gap: 12px; }
.benefits li { color: var(--ink-soft); font-size: 0.94rem; padding-left: 20px; position: relative; }
.benefits li::before { content: ''; position: absolute; left: 0; top: 0.65em; width: 8px; height: 1px; background: var(--gold); }
.benefits strong { color: var(--ink); }
@media (min-width: 860px) { .about { grid-template-columns: 0.8fr 1.2fr; gap: 48px; } }

.cta-band {
  text-align: center; padding: clamp(32px, 6vw, 56px) 24px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  background: radial-gradient(120% 140% at 50% 0%, rgba(201, 169, 97, 0.12) 0%, transparent 60%), var(--bg-card);
}
.cta-band p { color: var(--ink-soft); margin: 12px auto 24px; max-width: 46ch; }

/* ------------------------------------------------------------- filtros */

.filters { padding-top: 24px; display: grid; gap: 16px; }
.search { display: flex; gap: 10px; }
.search input {
  flex: 1; background: var(--bg-card); border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 12px 20px; color: var(--ink); font: inherit; font-size: 0.92rem;
}
.search input::placeholder { color: var(--ink-muted); }

.filter-row { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-row-split { justify-content: space-between; align-items: center; gap: 14px; }
.chip {
  font-size: 0.78rem; font-weight: 600; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--ink-soft); white-space: nowrap;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.chip:hover { color: var(--ink); border-color: var(--gold-soft); }
.chip.is-on { background: rgba(201, 169, 97, 0.14); border-color: var(--gold); color: var(--gold-bright); }

.sortbox { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--ink-muted); }
.sortbox select, .field select, .field input, .field textarea {
  background: var(--bg-card); border: 1px solid var(--line-strong); color: var(--ink);
  border-radius: 10px; padding: 9px 12px; font: inherit; font-size: 0.88rem;
}
.filters-clear { font-size: 0.82rem; }
.filters-clear a { color: var(--gold-bright); text-decoration: underline; text-underline-offset: 3px; }

.empty {
  border: 1px dashed var(--line-strong); border-radius: var(--radius-lg);
  padding: 46px 24px; text-align: center; color: var(--ink-muted);
}
.empty-title { font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); margin-bottom: 8px; }

/* ---------------------------------------------------------------- aula */

.crumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 22px; font-size: 0.76rem; color: var(--ink-muted); }
.crumb a:hover { color: var(--gold-bright); }
.crumb-sep { color: var(--line-strong); }

.lesson-grid { display: grid; gap: 32px; padding-top: 22px; }
@media (min-width: 1000px) { .lesson-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 44px; } }

.player {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--bg-elevated); border: 1px solid var(--line);
}
.player img, .player .card-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.player-poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; background: none; cursor: pointer; }
.play-btn {
  position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(201, 169, 97, 0.94); color: #0a0807;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); transition: transform 0.2s ease;
}
.player-poster:hover .play-btn { transform: scale(1.06); }
.player-frame { position: absolute; inset: 0; }
.player-frame iframe { width: 100%; height: 100%; border: 0; }

.player-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; gap: 12px; padding: 24px;
  background: linear-gradient(180deg, rgba(10, 8, 7, 0.7) 0%, rgba(10, 8, 7, 0.92) 100%);
}
.player-msg { color: var(--ink-soft); max-width: 42ch; font-size: 0.95rem; }
.player-alt { font-size: 0.85rem; }

.lesson-head { margin-top: 26px; }
.lesson-meta {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 0.7rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 12px; font-weight: 600;
}
.tag { color: var(--gold); }
.lesson-lead { color: var(--ink-soft); margin-top: 14px; font-size: 1.02rem; }
.lesson-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 20px; }
.lesson-actions .btn { border-radius: 999px; }
.lesson-actions .fav { border: 0; width: auto; height: auto; }

.progress-pill {
  display: inline-flex; align-items: center; gap: 10px; font-size: 0.78rem; font-weight: 700;
  color: var(--gold); border: 1px solid var(--line-strong); border-radius: 999px; padding: 7px 14px;
}
.progress-pill-bar { display: block; width: 70px; height: 3px; background: rgba(255, 255, 255, 0.12); border-radius: 2px; overflow: hidden; }
.progress-pill-bar span { display: block; height: 100%; background: var(--gold); }

.notice {
  margin-top: 26px; padding: 18px 20px; border-radius: var(--radius);
  border: 1px solid rgba(201, 169, 97, 0.3); background: rgba(201, 169, 97, 0.06);
}
.notice p { color: var(--ink-soft); }

.prose { margin-top: 26px; }

.materials { margin-top: 32px; }
.materials h2 { font-size: 1.15rem; margin-bottom: 12px; }
.materials ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.materials a {
  display: block; padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: 10px;
  color: var(--gold-bright); font-weight: 600; font-size: 0.9rem;
}
.materials a:hover { border-color: var(--gold); background: rgba(201, 169, 97, 0.06); }

.next-up { margin-top: 36px; }
.next-card {
  display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; margin-top: 12px;
  padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-card);
}
.next-card:hover { border-color: var(--gold-soft); }
.next-thumb { position: relative; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; background: var(--bg-elevated); }
.next-thumb img { width: 100%; height: 100%; object-fit: cover; }
.next-body strong { display: block; font-family: var(--font-display); font-size: 1.05rem; font-weight: 500; }
.next-body span { display: block; font-size: 0.85rem; color: var(--ink-soft); margin-top: 4px; }

.lesson-side { display: grid; gap: 18px; align-content: start; }
.side-block { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-card); }
.side-block h2 { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-muted); font-family: var(--font-sans); font-weight: 700; margin-bottom: 12px; }
.side-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.side-list a { color: var(--gold-bright); font-weight: 600; font-size: 0.9rem; }
.side-note p { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 8px; }
.side-note a { color: var(--gold-bright); font-size: 0.85rem; text-decoration: underline; text-underline-offset: 3px; }
.side-teacher { display: flex; align-items: center; gap: 14px; }
.side-teacher img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.side-teacher strong { font-family: var(--font-display); font-size: 1.05rem; font-weight: 500; }

/* -------------------------------------------------------------- oferta */

.offer {
  border: 1px solid rgba(201, 169, 97, 0.3); border-radius: var(--radius-lg); padding: 24px;
  background: radial-gradient(120% 140% at 0% 0%, rgba(201, 169, 97, 0.1) 0%, transparent 60%), var(--bg-card);
}
.offer h3 { font-size: 1.25rem; margin-bottom: 10px; }
.offer p { color: var(--ink-soft); font-size: 0.94rem; margin-bottom: 18px; max-width: 60ch; }
.offer-banner { padding: clamp(24px, 5vw, 40px); }
.offer-end { margin-top: 40px; }
.offer-inline { margin-top: 32px; }

/* --------------------------------------------------------------- modal */

.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4, 3, 3, 0.82); backdrop-filter: blur(6px); }
.modal-panel {
  position: relative; width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto;
  background: var(--bg-card); border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  padding: clamp(24px, 5vw, 36px); box-shadow: var(--shadow);
}
.modal-close {
  position: absolute; top: 12px; right: 14px; background: none; border: 0; color: var(--ink-muted);
  font-size: 1.7rem; line-height: 1; cursor: pointer; padding: 4px 8px;
}
.modal-close:hover { color: var(--ink); }
.modal-panel h2 { font-size: 1.55rem; }
.modal-lead { color: var(--ink-soft); font-size: 0.93rem; margin-top: 10px; }
.modal-alt { font-size: 0.85rem; color: var(--ink-muted); text-align: center; margin-top: 6px; }

.form { display: grid; gap: 14px; margin-top: 22px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; }
.field input::placeholder { color: rgba(150, 144, 135, 0.7); }
.field-row { display: grid; gap: 14px; }
@media (min-width: 520px) { .field-row { grid-template-columns: 1fr 1fr; } }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; color: var(--ink-soft); }
.check input { margin-top: 4px; accent-color: var(--gold); flex: none; width: 16px; height: 16px; }
.check a { color: var(--gold-bright); text-decoration: underline; text-underline-offset: 3px; }

.form-error {
  background: rgba(216, 76, 61, 0.12); border: 1px solid rgba(216, 76, 61, 0.35);
  color: #f0b8b1; border-radius: 10px; padding: 10px 14px; font-size: 0.86rem;
}
.field.is-invalid input, .field.is-invalid select { border-color: rgba(216, 76, 61, 0.6); }

/* --------------------------------------------------------------- toast */

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px);
  background: var(--bg-elevated); border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 11px 22px; font-size: 0.88rem; font-weight: 600; color: var(--ink);
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease, transform 0.25s ease; z-index: 140;
  box-shadow: var(--shadow); max-width: calc(100vw - 32px); text-align: center;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* -------------------------------------------------------------- footer */

.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); margin-top: 40px; }
.footer-inner { display: grid; gap: 20px; padding-block: 40px; }
.footer-brand { font-family: var(--font-display); font-size: 1.15rem; }
.footer-note { color: var(--ink-muted); font-size: 0.88rem; margin-top: 4px; max-width: 44ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 0.86rem; }
.footer-links a { color: var(--ink-soft); }
.footer-links a:hover { color: var(--gold-bright); }
.footer-legal { border-top: 1px solid var(--line); padding-block: 18px; }
.footer-legal p { font-size: 0.76rem; color: var(--ink-muted); }
@media (min-width: 760px) { .footer-inner { grid-template-columns: 1fr auto; align-items: start; } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
