/* Baltimore School of English · v3 "flyer"
   Brand palette from the printed flyer: navy #192B4A + red #E72834 on white.
   Type pairing mirrors the flyer (geometric sans headlines + English serif text): Jost + Libre Caslon Text. */

@font-face { font-family: "Jost"; src: url("../fonts/jost.woff") format("woff"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Caslon Text"; src: url("../fonts/caslon-text.woff") format("woff"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Caslon Text"; src: url("../fonts/caslon-text-italic.woff") format("woff"); font-weight: 400 700; font-style: italic; font-display: swap; }

:root {
  --navy: #192B4A;
  --navy-deep: #0F1C33;
  --navy-2: #22375C;
  --navy-line: rgba(255, 255, 255, .14);
  --on-navy: #FFFFFF;
  --on-navy-2: #C3CCDD;

  --red: #E72834;          /* brand red: marks, tags, icon tiles */
  --red-btn: #D92330;      /* slightly deeper for text-on-red contrast (5:1) */
  --red-hover: #BD1C28;
  --red-wash: #FDECEE;

  --white: #FFFFFF;
  --mist: #F3F5F9;
  --mist-2: #E9EDF4;
  --line: #E1E6EF;
  --ink: #192B4A;
  --ink-2: #44516B;
  --muted: #6A7389;

  --r-s: 8px;   /* buttons, inputs, icon tiles */
  --r-m: 14px;  /* cards, panels */
  --r-l: 22px;  /* hero photo */

  --shadow-1: 0 1px 2px rgba(25, 43, 74, .06), 0 2px 6px rgba(25, 43, 74, .05);
  --shadow-2: 0 1px 2px rgba(25, 43, 74, .05), 0 18px 40px -18px rgba(25, 43, 74, .35);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --f-sans: "Jost", "Century Gothic", "Avenir Next", system-ui, sans-serif;
  --f-serif: "Libre Caslon Text", "Bell MT", Georgia, serif;

  --wrap: 1220px;
  --gutter: clamp(16px, 4vw, 44px);
  --section: clamp(76px, 10vw, 136px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font: 400 17px/1.6 var(--f-sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip; -webkit-tap-highlight-color: rgba(231, 40, 52, .15);
}
a, button, input, select, textarea, label { touch-action: manipulation; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2.5px solid var(--red); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--f-sans); color: var(--ink); margin: 0; text-wrap: balance; line-height: 1.05; font-weight: 700; letter-spacing: -0.025em; }
[id] { scroll-margin-top: 92px; }
p { margin: 0; text-wrap: pretty; }
.serif { font-family: var(--f-serif); }
.ico { width: 1.2em; height: 1.2em; flex: none; fill: currentColor; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 16px; top: -60px; background: var(--red-btn); color: #fff; padding: 10px 16px; border-radius: var(--r-s); z-index: 100; }
.skip:focus { top: 12px; }
.tnum { font-variant-numeric: tabular-nums; }

/* label with red chevron, straight from the flyer */
.kicker { display: inline-flex; align-items: center; gap: .5em; font: 500 1rem/1.3 var(--f-sans); color: var(--red); margin: 0; letter-spacing: 0; }
.kicker .ico { width: 1.05em; height: 1.05em; padding: 2px; border-radius: 50%; background: var(--red); color: #fff; }

.h2 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.6rem); }
.lead { font-family: var(--f-serif); font-size: clamp(1.08rem, 1rem + .35vw, 1.25rem); line-height: 1.6; color: var(--ink-2); max-width: 56ch; }
.section { padding-block: var(--section); }
.mist { background: var(--mist); }
.head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 54px; padding: 0 26px; border-radius: var(--r-s); border: 1.5px solid var(--red-btn);
  background: var(--red-btn); color: #fff; text-decoration: none; white-space: nowrap; cursor: pointer;
  font: 600 1.02rem/1 var(--f-sans); letter-spacing: .005em;
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 10px 22px -12px rgba(217, 35, 48, .9);
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn .ico { transition: transform 220ms var(--ease-out); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); box-shadow: none; }
.btn-white { background: #fff; color: var(--navy); border-color: #fff; box-shadow: 0 12px 28px -14px rgba(0,0,0,.6); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--red-hover); border-color: var(--red-hover); }
  .btn:hover .ico-move { transform: translateX(3px); }
  .btn-ghost:hover { background: var(--mist); border-color: var(--ink); }
  .btn-ghost-light:hover { background: rgba(255,255,255,.08); border-color: #fff; }
  .btn-white:hover { background: var(--mist); color: var(--red-btn); }
}
.btn[aria-busy="true"] { pointer-events: none; opacity: .85; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* red icon tile (flyer motif) */
.tile { width: 44px; height: 44px; border-radius: var(--r-s); background: var(--red); color: #fff; display: grid; place-items: center; flex: none; box-shadow: 0 8px 16px -10px rgba(231, 40, 52, .9); }
.tile .ico { width: 24px; height: 24px; }

/* ---------- header ---------- */
.header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(255,255,255,.9); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color 200ms ease, box-shadow 200ms ease; }
.header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -20px rgba(25,43,74,.6); }
.header-in { display: flex; align-items: center; gap: 28px; height: 80px; }
.logo { flex: none; display: flex; }
.logo img { height: 58px; width: auto; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { padding: 10px 14px; border-radius: var(--r-s); text-decoration: none; font-weight: 500; color: var(--ink-2); transition: color 160ms ease, background-color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--ink); background: var(--mist); } }
.tel { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tel .ico { color: var(--red); }
.header .btn { min-height: 46px; padding: 0 20px; font-size: .96rem; }
.menu-btn { display: none; margin-left: auto; width: 48px; height: 48px; border-radius: var(--r-s); border: 1.5px solid var(--line); background: #fff; color: var(--ink); align-items: center; justify-content: center; cursor: pointer; }
.menu-btn .ico { width: 22px; height: 22px; }
.mobile-nav { position: fixed; inset: 0; z-index: 60; background: var(--navy); color: #fff; padding: calc(env(safe-area-inset-top, 0px) + 14px) var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 24px); display: flex; flex-direction: column; gap: 2px; overscroll-behavior: contain; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity 220ms var(--ease-out), transform 280ms var(--ease-out), visibility 0s linear 280ms; }
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 220ms var(--ease-out), transform 280ms var(--ease-out), visibility 0s; }
.mobile-nav-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.mobile-nav-top .plate { background: #fff; border-radius: var(--r-s); padding: 6px 10px; }
.mobile-nav-top .menu-btn { display: inline-flex; background: transparent; color: #fff; border-color: var(--navy-line); }
.mobile-nav .m-link { font-weight: 600; font-size: 1.9rem; letter-spacing: -.02em; text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--navy-line); }
.mobile-nav .btn { margin-top: auto; }

/* ---------- hero ---------- */
.hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; z-index: -1; width: 900px; height: 900px; left: -320px; top: -420px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.07), transparent); }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(36px, 5vw, 80px); align-items: center; padding-block: clamp(48px, 7vw, 96px); }
.hero h1.kicker { color: #FF8A91; }
.hero h1.kicker .ico { background: var(--red); }
.display { font-family: var(--f-sans); font-weight: 700; font-size: clamp(3rem, 1.6rem + 5.2vw, 6rem); line-height: .98; letter-spacing: -0.035em; color: #fff; margin: 0; }
.display .ln { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.display .ln > span { display: inline-block; animation: line-up 900ms var(--ease-out) both; }
.display .ln:nth-child(2) > span { animation-delay: 90ms; }
.display .ln:nth-child(3) > span { animation-delay: 180ms; }
.display em { font-style: normal; color: var(--red); }
@keyframes line-up { from { transform: translateY(105%); } }
.hero .lead { color: var(--on-navy-2); margin-top: 26px; max-width: 44ch; animation: fade-up 800ms var(--ease-out) 320ms both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; animation: fade-up 800ms var(--ease-out) 400ms both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } }

.hero-media { position: relative; }
.hero-photo { border-radius: var(--r-l); overflow: hidden; aspect-ratio: 4 / 4.6; box-shadow: 0 40px 80px -40px rgba(0,0,0,.7); animation: reveal 1100ms var(--ease-in-out) 120ms both; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; animation: settle 1600ms var(--ease-out) 120ms both; }
@keyframes reveal { from { clip-path: inset(100% 0 0 0 round var(--r-l)); } to { clip-path: inset(0 0 0 0 round var(--r-l)); } }
@keyframes settle { from { transform: scale(1.08); } }
.badge { position: absolute; left: clamp(-32px, -2.4vw, -12px); bottom: 32px; background: #fff; color: var(--ink); border-radius: var(--r-m); padding: 14px 18px; box-shadow: var(--shadow-2); display: flex; gap: 14px; align-items: center; text-decoration: none; animation: fade-up 700ms var(--ease-out) 900ms both; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .badge:hover { transform: translateY(-2px); } }
.badge b { font-size: 2.2rem; line-height: 1; letter-spacing: -.03em; }
.stars { display: inline-flex; gap: 2px; color: #F2B01E; }
.stars .ico { width: 15px; height: 15px; }
.badge small { display: block; color: var(--muted); font-size: .86rem; margin-top: 2px; }
.tag { position: absolute; right: 18px; top: 18px; background: var(--red); color: #fff; font-weight: 600; padding: 8px 14px; border-radius: 6px; font-size: .95rem; box-shadow: 0 10px 20px -10px rgba(0,0,0,.5); animation: fade-up 700ms var(--ease-out) 1000ms both; }

/* ---------- pillars ---------- */
.pillars { border-bottom: 1px solid var(--line); }
.pillars ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.pillars li { display: flex; gap: 14px; align-items: center; padding: 28px 22px; }
.pillars li + li { border-left: 1px solid var(--line); }
.pillars strong { display: block; font-weight: 600; font-size: 1.05rem; line-height: 1.25; }
.pillars li > div > span { color: var(--ink-2); font-size: .94rem; line-height: 1.35; }

/* ---------- programs (flyer front / back) ---------- */
.seg { display: inline-flex; gap: 4px; padding: 5px; border-radius: 12px; background: var(--mist-2); position: relative; max-width: 100%; }
.seg button { position: relative; z-index: 1; border: 0; background: none; cursor: pointer; padding: 12px 20px; border-radius: 9px; font: 600 .98rem/1 var(--f-sans); color: var(--ink-2); white-space: nowrap; transition: color 220ms ease; }
.seg button[aria-selected="true"] { color: #fff; }
.seg .pill { position: absolute; z-index: 0; top: 5px; left: 0; height: calc(100% - 10px); border-radius: 9px; background: var(--navy); transition: transform 360ms var(--ease-out), width 360ms var(--ease-out); box-shadow: 0 8px 18px -10px rgba(25,43,74,.8); }

.program { margin-top: 36px; display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.program.is-in .program-copy > *, .program.is-in .program-photo { animation: prog-in 520ms var(--ease-out) both; }
.program.is-in .program-copy > *:nth-child(2) { animation-delay: 40ms; }
.program.is-in .program-copy > *:nth-child(3) { animation-delay: 80ms; }
.program.is-in .program-photo { animation-delay: 60ms; }
@keyframes prog-in { from { opacity: 0; transform: translateY(12px); filter: blur(4px); } }
.program h3 { font-size: clamp(2.4rem, 1.6rem + 3vw, 4.2rem); line-height: .98; letter-spacing: -.035em; }
.program .intro { display: flex; gap: 12px; margin-top: 22px; }
.program .intro .ico { color: var(--red); width: 22px; height: 22px; margin-top: .25em; }
.features { list-style: none; padding: 0; margin: 34px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 32px; }
.features li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.features h4 { font-size: 1.1rem; letter-spacing: -.01em; margin-top: 2px; }
.features p { font-family: var(--f-serif); color: var(--ink-2); font-size: .98rem; margin-top: 4px; line-height: 1.5; }
.program-photo { border-radius: var(--r-l); overflow: hidden; aspect-ratio: 4 / 5; }
.program-photo img { width: 100%; height: 100%; object-fit: cover; }
.program-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* ---------- offer band ---------- */
.offer { background: var(--navy); color: #fff; }
.offer-in { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(20px, 4vw, 56px); align-items: center; padding-block: clamp(36px, 5vw, 56px); }
.offer-tag { display: grid; gap: 8px; }
.offer-tag b { display: inline-block; justify-self: start; background: var(--red); color: #fff; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); font-weight: 600; letter-spacing: -.02em; line-height: 1; padding: 10px 16px 12px; border-radius: 6px; }
.offer-tag span { font-family: var(--f-serif); color: var(--on-navy-2); }
.offer-friend { display: flex; gap: 16px; align-items: center; font-family: var(--f-serif); font-size: 1.1rem; color: #E6EBF4; max-width: 40ch; }
.offer-friend .ico { width: 44px; height: 44px; color: #fff; }

/* ---------- exams ---------- */
.exams { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(20px, 3vw, 32px); align-items: start; }
.cam { background: #fff; border-radius: var(--r-m); box-shadow: var(--shadow-1); border: 1px solid var(--line); overflow: hidden; }
.cam-top { padding: 26px 28px 8px; display: flex; justify-content: space-between; gap: 16px; align-items: baseline; flex-wrap: wrap; }
.cam-top h3 { font-size: 1.5rem; }
.cam-top span { color: var(--muted); font-size: .94rem; }
.ladder { list-style: none; margin: 0; padding: 8px 28px 16px; }
.ladder li { display: grid; grid-template-columns: 62px 1fr auto; gap: 16px; align-items: center; padding: 14px 0; }
.ladder li + li { border-top: 1px solid var(--line); }
.lvl { font-weight: 700; font-size: .95rem; color: #fff; background: var(--navy); border-radius: 6px; text-align: center; padding: 6px 0; font-variant-numeric: tabular-nums; }
.ladder li:nth-child(n+4) .lvl { background: var(--red-btn); }
.ladder b { font-weight: 600; }
.ladder small { color: var(--muted); font-size: .9rem; white-space: nowrap; }
.side-exams { display: grid; gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); padding: 26px 28px; box-shadow: var(--shadow-1); display: grid; gap: 10px; }
.card h3 { font-size: 1.35rem; }
.card p { font-family: var(--f-serif); color: var(--ink-2); }
.card.dark { background: var(--navy); color: #fff; border-color: var(--navy); }
.card.dark h3 { color: #fff; }
.card.dark p { color: var(--on-navy-2); }
.big-num { font-size: 3rem; font-weight: 700; letter-spacing: -.04em; line-height: 1; color: #fff; }

/* ---------- level test ---------- */
.test { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.quiz { background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow-2); padding: clamp(24px, 3.4vw, 40px); }
.quiz-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.quiz-top b { font-weight: 600; font-size: .92rem; color: var(--red-btn); }
.bars { display: flex; gap: 6px; }
.bars i { width: 26px; height: 5px; border-radius: 5px; background: var(--mist-2); transition: background-color 300ms ease; }
.bars i.on { background: var(--navy); }
.quiz-q { font-family: var(--f-serif); font-size: clamp(1.35rem, 1.1rem + .8vw, 1.75rem); line-height: 1.35; min-height: 2.7em; }
.quiz-q .gap { display: inline-block; min-width: 3.4em; border-bottom: 2.5px solid var(--red); color: var(--red-btn); text-align: center; }
.quiz-opts { display: grid; gap: 10px; margin-top: 22px; }
.quiz-opt { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 10px 16px; border-radius: var(--r-s); border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: 500 1.05rem/1.3 var(--f-sans); text-align: left; cursor: pointer; transition: transform 160ms var(--ease-out), border-color 160ms ease, background-color 160ms ease; }
.quiz-opt .key { width: 30px; height: 30px; border-radius: 7px; background: var(--mist); color: var(--muted); display: grid; place-items: center; font-weight: 600; font-size: .85rem; flex: none; transition: background-color 160ms ease, color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .quiz-opt:hover { border-color: var(--navy); } }
.quiz-opt:active { transform: scale(0.98); }
.quiz-opt.is-picked { border-color: var(--navy); background: var(--mist); }
.quiz-opt.is-picked .key { background: var(--navy); color: #fff; }
.quiz-body { transition: opacity 180ms ease, transform 220ms var(--ease-out), filter 180ms ease; }
.quiz-body.is-leaving { opacity: 0; transform: translateX(-10px); filter: blur(2px); }
.quiz-body.is-entering { opacity: 0; transform: translateX(10px); filter: blur(2px); transition: none; }
.quiz-foot { margin-top: 18px; font-size: .9rem; color: var(--muted); }
.quiz-level { display: flex; align-items: baseline; gap: 14px; margin: 6px 0 10px; }
.quiz-level strong { font-size: 4.6rem; line-height: 1; font-weight: 700; letter-spacing: -.05em; color: var(--red-btn); }
.quiz-level span { font-weight: 600; color: var(--ink-2); }
.quiz-result p { font-family: var(--f-serif); color: var(--ink-2); }
.quiz-result .row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 22px; }
.linkbtn { background: none; border: 0; padding: 8px 2px; color: var(--muted); font: 500 .95rem var(--f-sans); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }

/* ---------- prices ---------- */
.prices-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.prices-head .head { margin-bottom: 0; }
.price-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.p-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); padding: 28px; box-shadow: var(--shadow-1); display: flex; flex-direction: column; gap: 16px; }
.p-card h3 { font-size: 1.3rem; }
.p-card h3 small { display: block; font-family: var(--f-serif); font-weight: 400; font-size: .92rem; color: var(--muted); letter-spacing: 0; margin-top: 4px; }
.span-7 { grid-column: span 7; } .span-5 { grid-column: span 5; } .span-4 { grid-column: span 4; } .span-6 { grid-column: span 6; } .span-12 { grid-column: span 12; }
.p-card.feature { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: var(--shadow-2); }
.p-card.feature h3 { color: #fff; }
.p-card.feature h3 small { color: var(--on-navy-2); }
.hours { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 5px; border-radius: 12px; background: rgba(255,255,255,.08); border: 1px solid var(--navy-line); }
.hours label { position: relative; }
.hours input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.hours span { display: grid; place-items: center; min-height: 46px; border-radius: 9px; font-weight: 600; color: var(--on-navy-2); transition: background-color 200ms ease, color 200ms ease; }
.hours input:checked + span { background: #fff; color: var(--navy); }
.hours input:focus-visible + span { outline: 2.5px solid var(--red); outline-offset: 2px; }
.calc-out { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.calc-out strong { font-size: clamp(3.2rem, 2.4rem + 2.4vw, 4.6rem); font-weight: 700; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.calc-out span { color: var(--on-navy-2); }
.calc-out .alt { flex-basis: 100%; font-family: var(--f-serif); color: #E6EBF4; }
.p-card.feature .fine { color: var(--on-navy-2); font-size: .92rem; margin-top: auto; }
.rows { margin: 0; display: grid; }
.rows div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; }
.rows div + div { border-top: 1px solid var(--line); }
.rows dt { color: var(--ink-2); }
.rows dt small { display: block; color: var(--muted); font-size: .86rem; }
.rows dd { margin: 0; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rows dd small { font-weight: 400; color: var(--muted); font-size: .86rem; margin-left: 3px; }
.p-card .fine { color: var(--muted); font-size: .9rem; }
.p-notes { margin-top: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.p-notes div { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; color: var(--ink-2); }
.p-notes .ico { color: var(--red); width: 22px; height: 22px; margin-top: 2px; }
.p-notes b { color: var(--ink); font-weight: 600; }
.price-panel.is-in { animation: prog-in 460ms var(--ease-out) both; }

/* ---------- reviews ---------- */
.reviews { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; }
.rev { margin: 0; background: var(--mist); border-radius: var(--r-m); padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 22px; }
.rev blockquote { margin: 0; font-family: var(--f-serif); font-size: 1.15rem; line-height: 1.55; }
.rev.big { grid-row: span 2; background: var(--navy); color: #fff; }
.rev.big blockquote { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); line-height: 1.4; }
.rev figcaption { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .92rem; color: var(--muted); }
.rev.big figcaption { color: var(--on-navy-2); }
.rev figcaption b { display: block; color: var(--ink); font-weight: 600; font-size: 1rem; }
.rev.big figcaption b { color: #fff; }
.g-score { display: inline-flex; gap: 14px; align-items: center; text-decoration: none; }
.g-score b { font-size: 3rem; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.g-score .stars .ico { width: 18px; height: 18px; }
.g-score small { display: block; color: var(--muted); }

/* ---------- faq ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); transition: border-color 200ms ease, box-shadow 200ms ease; }
.faq details[open] { border-color: #C9D1DF; box-shadow: var(--shadow-1); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; font-weight: 600; font-size: 1.06rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { color: var(--red); transition: transform 240ms var(--ease-out); }
.faq details[open] summary .ico { transform: rotate(45deg); }
.faq .answer { padding: 0 22px 22px; font-family: var(--f-serif); color: var(--ink-2); max-width: 64ch; }
.faq details::details-content { block-size: 0; overflow-y: clip; transition: block-size 280ms var(--ease-out), content-visibility 280ms allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
@supports (interpolate-size: allow-keywords) { :root { interpolate-size: allow-keywords; } }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.info { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 18px; }
.info li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; }
.info small { display: block; color: var(--muted); font-size: .88rem; }
.info a, .info b { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) { .info a:hover { color: var(--red-btn); text-decoration: underline; } }
.form { background: var(--mist); border-radius: var(--r-m); padding: clamp(24px, 3.4vw, 40px); display: grid; gap: 16px; }
.form h3 { font-size: 1.7rem; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 600; font-size: .95rem; }
.field label span { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 14px; border-radius: var(--r-s); border: 1.5px solid var(--line); background-color: #fff; color: var(--ink); font: 400 16px/1.4 var(--f-sans); transition: border-color 160ms ease, box-shadow 160ms ease; }
.field textarea { min-height: 104px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #8790A3; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(25,43,74,.12); }
.field .err { display: none; color: #C01E2A; font-size: .88rem; }
.field.invalid input, .field.invalid select { border-color: #C01E2A; }
.field.invalid .err { display: block; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--ink-2); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--red-btn); flex: none; }
.consent.invalid { color: #C01E2A; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.form-actions .btn { flex: 1 1 210px; }
.btn-wa { background: #fff; color: #11703A; border-color: #1FA855; box-shadow: none; }
@media (hover: hover) and (pointer: fine) { .btn-wa:hover { background: #E8F7EE; border-color: #1FA855; color: #11703A; } }
.form-status { display: none; padding: 14px 16px; border-radius: var(--r-s); background: #fff; border: 1px solid var(--line); font-size: .95rem; }
.form-status.show { display: block; animation: fade-up 300ms var(--ease-out); }
.form-status.error { border-color: #F2B8BD; background: var(--red-wash); }

/* ---------- footer ---------- */
.footer { background: var(--navy-deep); color: var(--on-navy-2); padding-block: 72px 36px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.plate { display: inline-block; background: #fff; border-radius: var(--r-s); padding: 8px 12px; }
.plate img { height: 52px; width: auto; }
.footer p { margin-top: 16px; max-width: 34ch; font-family: var(--f-serif); font-size: .96rem; }
.footer h4 { color: #fff; font-size: 1rem; font-weight: 600; letter-spacing: 0; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .96rem; }
.footer a { color: var(--on-navy-2); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .footer a:hover { color: #fff; text-decoration: underline; } }
.legal { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--navy-line); display: grid; gap: 10px; font-size: .86rem; color: #8F9AB2; }
.legal div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

.wa { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(env(safe-area-inset-bottom, 0px) + 16px); z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: #1FA855; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 26px -10px rgba(0,0,0,.5); transition: transform 160ms var(--ease-out); }
.wa:active { transform: scale(0.94); }
.wa .ico { width: 30px; height: 30px; }

.hero-grid > *, .program > *, .exams > *, .test > *, .faq-grid > *, .contact > *, .footer-grid > *, .reviews > *, .price-grid > *, .offer-in > * { min-width: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1120px) {
  .tel span { display: none; }
  .nav a { padding: 10px 10px; }
}
@media (max-width: 960px) {
  .nav, .header .tel, .header .btn { display: none; }
  .menu-btn { display: inline-flex; }
  .hero-grid, .program, .exams, .test, .faq-grid, .contact { grid-template-columns: 1fr; }
  .hero-photo { aspect-ratio: 4 / 3.4; }
  .hero-media { margin-inline: 8px; }
  .program-photo { aspect-ratio: 16 / 10; order: -1; }
  .pillars ul { grid-template-columns: 1fr 1fr; }
  .pillars li:nth-child(3) { border-left: 0; }
  .pillars li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .offer-in { grid-template-columns: 1fr; }
  .span-7, .span-5, .span-4, .span-6 { grid-column: span 12; }
  .p-notes { grid-template-columns: 1fr; }
  .reviews { grid-template-columns: 1fr; }
  .rev.big { grid-row: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .header-in { height: 70px; }
  .logo img { height: 48px; }
  .pillars ul { grid-template-columns: 1fr; }
  .pillars li { padding: 18px 4px; }
  .pillars li + li { border-left: 0; border-top: 1px solid var(--line); }
  .hero-actions .btn, .program-cta .btn { flex: 1 1 100%; }
  .features { grid-template-columns: 1fr; }
  .seg { display: flex; width: 100%; }
  .seg button { flex: 1; padding: 12px 6px; font-size: .88rem; white-space: normal; line-height: 1.15; }
  .badge { left: -4px; bottom: 16px; }
  .ladder { padding-inline: 20px; }
  .ladder li { grid-template-columns: 52px 1fr; }
  .ladder small { grid-column: 2; }
  .cam-top { padding-inline: 20px; }
  .row-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .p-card { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
}

/* ---------- WordPress ---------- */
.head-flush { margin-bottom: 0; }
.lead-gap { margin-top: 18px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.footer .legal-note { margin: 0; max-width: none; font-family: var(--f-sans); font-size: .86rem; }
.legal-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.h3 { font-size: 1.5rem; }
.prose { max-width: 820px; }
.prose .entry { margin-top: 28px; font-family: var(--f-serif); font-size: 1.05rem; line-height: 1.75; color: var(--ink-2); }
.prose .entry h2, .prose .entry h3 { margin: 1.8em 0 .6em; color: var(--ink); }
.prose .entry p, .prose .entry ul, .prose .entry ol { margin: 0 0 1.1em; }
.prose .entry a { color: var(--red-btn); }
.entry-item + .entry-item { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--line); }
.actions-404 { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.admin-bar .header { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .header { top: 0; } }
.minor-note { font-size: .9rem; color: var(--ink-2); margin: 0; }
.gdpr { font-size: .8rem; line-height: 1.5; color: var(--muted); margin: 0; }
.gdpr b { color: var(--ink-2); font-weight: 600; }
.gdpr a { color: var(--ink-2); }

/* ---------- Páginas de curso ---------- */
.course-hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(40px, 6vw, 84px) clamp(48px, 7vw, 96px); }
.course-hero::before { content: ""; position: absolute; z-index: -1; width: 900px; height: 900px; right: -380px; top: -460px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.07), transparent); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: .92rem; color: var(--on-navy-2); margin-bottom: clamp(22px, 3vw, 34px); }
.crumbs a { color: var(--on-navy-2); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs .ico { width: 12px; height: 12px; opacity: .6; }
.crumbs [aria-current] { color: #fff; }
.course-title { color: #fff; font-size: clamp(2.2rem, 1.4rem + 3vw, 4rem); max-width: 18ch; }
.course-hero .lead { color: var(--on-navy-2); margin-top: 22px; max-width: 58ch; }
.course-hero .hero-actions { animation: none; }
.course-hero .btn-ghost-light .ico { width: 20px; height: 20px; }
.course-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(36px, 5vw, 80px); align-items: start; }
.course-grid .prose .entry { margin-top: 0; }
.course-grid .prose .entry > h2:first-child { margin-top: 0; }
.prose .entry h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.prose .entry ul { padding-left: 1.2em; }
.prose .entry li { margin-bottom: .45em; }
.prose .entry li::marker { color: var(--red); }
.prose .entry strong { color: var(--ink); font-weight: 600; }
.prose .entry details { border-top: 1px solid var(--line); padding: 16px 0; }
.prose .entry details:last-of-type { border-bottom: 1px solid var(--line); }
.prose .entry summary { cursor: pointer; font-family: var(--f-sans); font-weight: 600; font-size: 1.08rem; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.prose .entry summary::-webkit-details-marker { display: none; }
.prose .entry summary::after { content: "+"; font-weight: 400; font-size: 1.5rem; line-height: 1; color: var(--red); transition: transform 200ms var(--ease-out); }
.prose .entry details[open] summary::after { transform: rotate(45deg); }
.prose .entry details p { margin: 12px 0 0; }
.course-facts { position: sticky; top: 96px; }
.course-facts .card { gap: 0; padding: 28px; }
.facts-price { margin: 0 0 20px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; color: var(--muted); }
.facts-price span { font-size: 2.6rem; font-weight: 700; color: var(--ink); letter-spacing: -0.03em; line-height: 1; }
.facts { list-style: none; margin: 0 0 24px; padding: 20px 0 0; border-top: 1px solid var(--line); display: grid; gap: 16px; }
.facts li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: center; }
.facts .tile { width: 40px; height: 40px; }
.facts .tile .ico { width: 22px; height: 22px; }
.facts small { display: block; color: var(--muted); font-size: .84rem; }
.facts b { font-weight: 600; line-height: 1.35; }
.facts-note { margin: 12px 0 0; font-size: .84rem; color: var(--muted); text-align: center; }
.course-links { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.course-links a { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; padding: 22px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow-1); text-decoration: none; transition: border-color 200ms ease, transform 200ms var(--ease-out); }
.course-links b { font-size: 1.1rem; }
.course-links small { grid-row: 2; color: var(--muted); }
.course-links .ico { grid-row: 1 / 3; grid-column: 2; width: 22px; height: 22px; color: var(--red); transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .course-links a:hover { border-color: var(--ink); }
  .course-links a:hover .ico { transform: translateX(3px); }
}
.more-links { margin: 18px 0 0; font-size: .96rem; color: var(--ink-2); }
.more-links a { color: var(--red-btn); font-weight: 600; }
@media (max-width: 960px) {
  .course-grid { grid-template-columns: 1fr; }
  .course-facts { position: static; order: -1; }
}
@media (max-width: 640px) {
  .course-hero .hero-actions .btn { flex: 1 1 100%; }
}
