/* Inglés con Marta, clases particulares online.
   Harmony: MONOCHROMATIC denim blue with ONE ACCENT. Every surface is a tint or shade of one blue (her jeans and the
   cool daylight in Look Studio's shoot); the single accent is a leaf green highlighter taken from the sage walls and
   the plants behind her. Blue says clarity and trust; the highlighter is the teacher's mark, used only for key marks.
   60-30-10: paper #F1F4F9 (backgrounds) / mist #D5DFEF + denim #1F3A78 (surfaces, sections, buttons) / leaf #B9D98C (highlights)
   --paper #F1F4F9  dominant
   --mist  #D5DFEF  soft surfaces
   --sky   #A9BCE0  lines and chart tints
   --denim #1F3A78  secondary, buttons
   --navy  #16264A  text and dark sections
   --slate #4A5878  secondary text
   --leaf  #B9D98C  accent (highlighter)
   Contrast (WCAG): navy on paper 13.51:1, slate on mist 5.28:1, paper on denim 9.85:1 (buttons), navy on leaf 9.48:1,
   leaf on navy 9.48:1, mist on denim 8.08:1. */
:root {
  --paper: #F1F4F9;
  --white: #FBFCFE;
  --mist: #D5DFEF;
  --sky: #A9BCE0;
  --denim: #1F3A78;
  --denim-2: #2A4A92;
  --navy: #16264A;
  --slate: #4A5878;
  --leaf: #B9D98C;

  --sans: "Epilogue", system-ui, sans-serif;
  --hand: "Caveat", cursive;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gutter: clamp(1.1rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--navy); font: 400 1.0625rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
h2 { font-size: clamp(2.3rem, 4.8vw, 3.9rem); }
h3 { font-size: 1.25rem; letter-spacing: -.02em; line-height: 1.2; }
p { margin: 0 0 1rem; }
.wrap { width: min(1200px, 100% - var(--gutter) * 2); margin-inline: auto; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .6rem 1rem; border-radius: 10px; background: var(--denim); color: var(--paper); }
.skip:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--denim); outline-offset: 3px; border-radius: 8px; }
.test :focus-visible, .about :focus-visible { outline-color: var(--leaf); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: .95rem 1.6rem; border: 0; border-radius: 14px; background: var(--denim); color: var(--paper); font: 700 1rem/1 var(--sans); text-decoration: none; cursor: pointer; transition: background-color .25s var(--ease), transform .25s var(--ease); }
.btn:hover { background: var(--denim-2); }
.btn:active { transform: scale(.98); }
.btn--soft { background: var(--mist); color: var(--navy); }
.btn--soft:hover { background: #C6D3EA; }
.btn--full { width: 100%; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem var(--gutter); background: rgba(241, 244, 249, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: box-shadow .3s; }
.nav.is-scrolled { box-shadow: 0 1px 0 var(--mist); }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.2rem; letter-spacing: -.03em; text-decoration: none; }
.brand__mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--denim); color: var(--paper); font-weight: 700; font-size: 1.05rem; box-shadow: inset 0 -10px 0 rgba(185, 217, 140, .9); }
.nav__links { display: flex; align-items: center; gap: 1.8rem; font-weight: 500; font-size: .98rem; }
.nav__links a { text-decoration: none; }
.nav__links a:not(.nav__cta):hover { background: linear-gradient(transparent 60%, var(--leaf) 60%); }
.nav__cta { padding: .7rem 1.1rem; border-radius: 12px; background: var(--denim); color: var(--paper); font-weight: 700; }
.nav__cta:hover { background: var(--denim-2); }
.nav__toggle { display: none; }

/* Hero */
.hero { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; max-width: 1300px; margin: 0 auto; padding: clamp(2rem, 5vw, 4.5rem) var(--gutter) clamp(3.5rem, 7vw, 6rem); }
.hero h1 { font-size: clamp(3rem, 6.2vw, 5.6rem); line-height: .95; letter-spacing: -.055em; }
.hero__lede { max-width: 44ch; margin: 1.6rem 0 2rem; color: var(--slate); font-size: 1.15rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__proof { display: flex; align-items: center; gap: .8rem; margin: 2.2rem 0 0; color: var(--slate); font-size: .95rem; font-weight: 500; }
.hero__avatars { display: flex; }
.hero__avatars i { width: 30px; height: 30px; margin-left: -8px; border-radius: 50%; border: 2px solid var(--paper); background: var(--sky); }
.hero__avatars i:first-child { margin-left: 0; background: var(--leaf); }
.hero__avatars i:last-child { background: var(--denim); }
.call { position: relative; margin: 0; padding: 10px; border-radius: 26px; background: var(--navy); box-shadow: 0 40px 60px -40px rgba(22, 38, 74, .6); }
.call__bar { display: flex; align-items: center; gap: 6px; padding: 4px 8px 12px; color: var(--mist); font-size: .85rem; }
.call__bar span { width: 10px; height: 10px; border-radius: 50%; background: #3A4E7C; }
.call__bar b { margin-left: .8rem; display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; }
.call__bar b::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); animation: live 1.8s ease-in-out infinite; }
.call__bar em { margin-left: auto; font-style: normal; font-variant-numeric: tabular-nums; }
@keyframes live { 50% { opacity: .3; } }
.call__video { position: relative; overflow: hidden; border-radius: 18px; }
.call__video img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.call__sub { position: absolute; left: 50%; bottom: 1rem; display: grid; gap: .15rem; width: max-content; max-width: 88%; margin: 0; padding: .6rem 1rem; transform: translateX(-50%); border-radius: 12px; background: rgba(22, 38, 74, .82); color: var(--white); text-align: center; font-weight: 600; font-size: 1.02rem; line-height: 1.3; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.call__sub small { color: var(--mist); font-weight: 400; font-size: .88rem; }
.call__note { position: absolute; right: -1.4rem; top: -2.2rem; margin: 0; padding: .3rem .9rem; border-radius: 8px; background: var(--leaf); color: var(--navy); font: 700 1.55rem/1.1 var(--hand); transform: rotate(4deg); }

@media (prefers-reduced-motion: no-preference) {
  .hero__copy > * { animation: rise .8s var(--ease) both; }
  .hero__copy > *:nth-child(2) { animation-delay: .07s; }
  .hero__copy > *:nth-child(3) { animation-delay: .14s; }
  .hero__copy > *:nth-child(4) { animation-delay: .21s; }
  .call { animation: rise 1s .15s var(--ease) both; }
  .call__sub { animation: sub .7s 1s var(--ease) both; }
  .call__note { animation: pop .5s 1.3s cubic-bezier(.34, 1.56, .64, 1) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes sub { from { opacity: 0; transform: translate(-50%, 10px); } }
@keyframes pop { from { opacity: 0; transform: rotate(-8deg) scale(.6); } }

/* Test */
.test { padding: clamp(4.5rem, 9vw, 7.5rem) 0; background: var(--navy); color: var(--paper); }
.test__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.test__intro > p { max-width: 38ch; margin: 1.2rem 0 2.2rem; color: var(--mist); font-size: 1.1rem; }
.ladder { display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; gap: 6px; height: 240px; margin-top: 3rem !important; margin: 0; padding: 0; list-style: none; }
.ladder li { position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: calc(28% + var(--i) * 18%); padding: .7rem .5rem; border-radius: 12px 12px 4px 4px; background: #24386A; transition: background-color .5s var(--ease), color .5s; }
.ladder li:nth-child(1) { --i: 0; }
.ladder li:nth-child(2) { --i: 1; }
.ladder li:nth-child(3) { --i: 2; }
.ladder li:nth-child(4) { --i: 3; }
.ladder li:nth-child(5) { --i: 4; }
.ladder b { font-size: 1.5rem; letter-spacing: -.03em; }
.ladder span { font-size: .78rem; line-height: 1.2; color: var(--mist); }
.ladder li:nth-child(2) { background: #2A4A92; }
.ladder li:nth-child(3) { background: #3B5FAE; }
.ladder li:nth-child(4) { background: #7F98D2; color: var(--navy); }
.ladder li:nth-child(4) span { color: var(--navy); }
.ladder li:nth-child(5) { background: #A9BCE0; color: var(--navy); }
.ladder li:nth-child(5) span { color: var(--navy); }
.ladder li.is-you { background: var(--leaf); color: var(--navy); }
.ladder li.is-you span { color: var(--navy); }
.ladder li.is-you::after { content: "Tú estás aquí"; position: absolute; left: 50%; top: -2.3rem; transform: translateX(-50%) rotate(-4deg); white-space: nowrap; font: 700 1.4rem/1 var(--hand); color: var(--leaf); }
.quiz { padding: clamp(1.4rem, 3vw, 2.4rem); border-radius: 26px; background: var(--paper); color: var(--navy); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5); }
.quiz__top { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.6rem; }
.quiz__count { margin: 0; flex: none; font-weight: 600; font-size: .92rem; color: var(--slate); }
.quiz__bar { flex: 1; height: 8px; border-radius: 4px; background: var(--mist); overflow: hidden; }
.quiz__bar span { display: block; width: var(--p, 16%); height: 100%; border-radius: 4px; background: var(--denim); transition: width .5s var(--ease); }
.quiz__q { margin: 0 0 .4rem; font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.2; }
.quiz__q mark { padding: 0 .2em; border-radius: 4px; background: var(--leaf); color: inherit; }
.quiz__hint { margin-bottom: 1.4rem; color: var(--slate); font-size: .95rem; }
.quiz__options { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.opt { display: flex; align-items: center; gap: .8rem; min-height: 64px; padding: .8rem 1rem; border: 2px solid var(--mist); border-radius: 14px; background: var(--white); color: var(--navy); font: 600 1.05rem/1.25 var(--sans); text-align: left; cursor: pointer; transition: border-color .2s, background-color .2s, transform .2s var(--ease); }
.opt:hover { border-color: var(--denim); transform: translateY(-1px); }
.opt i { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--mist); font-style: normal; font-size: .85rem; font-weight: 700; }
.opt.is-right { border-color: #6E9A45; background: #EAF4DE; }
.opt.is-right i { background: var(--leaf); }
.opt.is-wrong { border-color: #B4BCCB; background: var(--paper); color: var(--slate); }
.quiz__result { text-align: left; }
.quiz__level { display: flex; align-items: baseline; gap: 1rem; margin: 0 0 .6rem; color: var(--navy) !important; }
.quiz__level b { font-size: clamp(4rem, 8vw, 6rem); letter-spacing: -.06em; line-height: .9; background: linear-gradient(transparent 55%, var(--leaf) 55%); }
.quiz__level span { font-size: 1.4rem; font-weight: 700; }
.quiz__result p { color: var(--slate); }
.quiz__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }
.quiz__again { border: 0; background: none; color: var(--denim); font: 600 1rem var(--sans); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; min-height: 44px; }

/* How */
.how { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.how__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.how__photo { position: relative; margin: 0; }
.how__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 26px; }
.how__note { position: absolute; left: -1rem; bottom: 1.6rem; max-width: 15rem; padding: .6rem 1rem; border-radius: 10px; background: var(--leaf); font: 700 1.45rem/1.1 var(--hand); transform: rotate(-3deg); }
.how__lead { max-width: 46ch; margin: 1.2rem 0 2rem; color: var(--slate); font-size: 1.1rem; }
.goals { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.goals li { padding: 1.4rem; border-radius: 20px; background: var(--white); border: 1px solid var(--mist); }
.goals li:nth-child(1) { background: var(--mist); border-color: var(--mist); }
.goals li:nth-child(4) { background: var(--denim); border-color: var(--denim); color: var(--paper); }
.goals li:nth-child(4) p { color: var(--mist); }
.goals h3 { margin-bottom: .4rem; }
.goals p { margin: 0; color: var(--slate); font-size: .98rem; }

/* Packs */
.packs { padding: clamp(4.5rem, 9vw, 7.5rem) 0; background: var(--mist); }
.packs__head { display: grid; grid-template-columns: auto 1fr; gap: 1rem 4rem; align-items: end; margin-bottom: 2.6rem; }
.packs__head p { max-width: 52ch; margin: 0; color: var(--slate); }
.packs__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; align-items: stretch; }
.pack { position: relative; display: flex; flex-direction: column; padding: 1.8rem 1.5rem 1.5rem; border-radius: 22px; background: var(--white); }
.pack h3 { font-size: 1.2rem; }
.pack__price { margin: .9rem 0 0; font-size: 3rem; font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.pack__per { margin: .3rem 0 1rem; font-weight: 600; font-size: .92rem; color: var(--denim); }
.pack > p:not([class]) { color: var(--slate); font-size: .98rem; }
.pack__pay { margin-top: auto; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7rem 1rem; border-radius: 12px; background: var(--mist); color: var(--navy); font-weight: 700; text-decoration: none; transition: background-color .2s; }
.pack__pay:hover { background: var(--sky); }
.pack--best { background: var(--denim); color: var(--paper); transform: translateY(-10px); }
.pack--best .pack__per { color: var(--leaf); }
.pack--best > p:not([class]) { color: var(--mist); }
.pack--best .pack__pay { background: var(--leaf); color: var(--navy); }
.pack--best .pack__pay:hover { background: #CBE6A6; }
.pack__flag { position: absolute; top: -.9rem; left: 1.5rem; margin: 0; padding: .25rem .75rem; border-radius: 8px; background: var(--leaf); color: var(--navy); font: 700 1.3rem/1.1 var(--hand); }

/* About */
.about { padding: clamp(4.5rem, 9vw, 7.5rem) 0; background: var(--denim); color: var(--paper); }
.about__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.about__big { margin: 1.4rem 0 1.4rem; font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.35; }
.about p:not(.about__big) { max-width: 56ch; color: var(--mist); }
.about__photo { margin: 0; }
.about__photo img { width: 100%; aspect-ratio: 4 / 5.2; object-fit: cover; border-radius: 26px 26px 26px 120px; }

/* Trial */
.trial { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.trial__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.trial__intro > p { max-width: 38ch; margin: 1.2rem 0 2rem; color: var(--slate); font-size: 1.1rem; }
.trial__photo { margin: 0; }
.trial__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 22px; }
.form { display: grid; gap: 1.1rem; padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: 26px; background: var(--white); border: 1px solid var(--mist); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { display: grid; gap: .4rem; font-weight: 600; font-size: .95rem; }
.form input:not([type="radio"]):not([type="hidden"]), .form select, .form textarea { width: 100%; min-height: 50px; padding: .75rem .9rem; border: 2px solid var(--mist); border-radius: 12px; background: var(--paper); color: var(--navy); font: 400 1rem/1.4 var(--sans); }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--denim); background: var(--white); }
.pick { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.pick legend { width: 100%; margin-bottom: .45rem; font-weight: 600; font-size: .95rem; }
.pick label { display: block; }
.pick input { position: absolute; opacity: 0; }
.pick span { display: block; padding: .6rem 1rem; border-radius: 10px; background: var(--paper); border: 2px solid var(--mist); font-weight: 600; cursor: pointer; }
.pick input:checked + span { background: var(--leaf); border-color: var(--leaf); }
.pick input:focus-visible + span { outline: 3px solid var(--denim); outline-offset: 2px; }
.form__status { margin: 0; color: var(--denim); font-weight: 700; }

/* Footer */
.foot { padding: 2.6rem 0; background: var(--navy); color: var(--mist); font-size: .92rem; }
.foot__row { display: grid; grid-template-columns: auto 1fr auto; gap: 2rem; align-items: center; }
.foot__row p { margin: 0; }
.foot__brand { font-size: 1.5rem; font-weight: 800; letter-spacing: -.04em; color: var(--paper); }

/* Responsive */
@media (max-width: 1000px) {
  .packs__row { grid-template-columns: 1fr 1fr; }
  .pack--best { transform: none; }
}
@media (max-width: 920px) {
  .nav__toggle { display: grid; gap: 5px; place-content: center; width: 46px; height: 46px; border: 0; border-radius: 12px; background: var(--denim); cursor: pointer; }
  .nav__toggle span:not(.sr) { width: 20px; height: 2px; background: var(--paper); transition: transform .3s var(--ease), opacity .3s; }
  .nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav__links { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--gutter) 1.5rem; background: var(--paper); box-shadow: 0 20px 30px -20px rgba(22, 38, 74, .35); transform: translateY(-130%); visibility: hidden; transition: transform .45s var(--ease), visibility .45s; }
  .nav__links.is-open { transform: none; visibility: visible; }
  .nav__links a { padding: 1rem 0; border-bottom: 1px solid var(--mist); font-size: 1.2rem; font-weight: 700; }
  .nav__links .nav__cta { margin-top: 1rem; text-align: center; border: 0; }
  .hero, .test__grid, .how__grid, .about__grid, .trial__grid, .packs__head { grid-template-columns: 1fr; }
  .call__note { right: .6rem; }
  .how__photo { max-width: 460px; }
  .about__photo { max-width: 420px; }
  .foot__row { grid-template-columns: 1fr; gap: .8rem; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .hero h1 { font-size: 2.9rem; }
  .call { padding: 7px; border-radius: 20px; }
  .call__sub { bottom: .6rem; font-size: .88rem; padding: .45rem .7rem; }
  .call__sub small { font-size: .78rem; }
  .call__note { font-size: 1.25rem; top: -1.8rem; }
  .ladder { height: 170px; gap: 4px; }
  .ladder li { padding: .5rem .35rem; }
  .ladder b { font-size: 1.15rem; }
  .ladder span { font-size: .68rem; }
  .quiz__options { grid-template-columns: 1fr; }
  .goals, .packs__row, .form__row { grid-template-columns: 1fr; }
  .how__note { left: .6rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
