/* ==========================================================
   MLS · Mercy Languages Studio
   Paleta tomada del logo: azul marino + celeste
   ========================================================== */

:root {
  --navy: #2b4a8c;
  --navy-deep: #1b3166;
  --navy-ink: #14234a;
  --blue: #4a8bd0;
  --sky: #7dc0ec;
  --sky-soft: #e6f2fc;
  --tint: #f3f8fe;
  --white: #ffffff;
  --text: #3b4764;
  --muted: #6b7794;
  --line: #e3eaf5;
  --gold: #f4b740;
  --green: #25d366;

  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Nunito Sans", system-ui, sans-serif;

  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --shadow-sm: 0 2px 8px rgba(27, 49, 102, 0.06);
  --shadow-md: 0 12px 32px rgba(27, 49, 102, 0.1);
  --shadow-lg: 0 24px 60px rgba(27, 49, 102, 0.16);
  --ease: cubic-bezier(0.22, 0.8, 0.28, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-head); color: var(--navy-ink); line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 8px; }

.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 15px; letter-spacing: 0;
  padding: 13px 24px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn--lg { padding: 16px 30px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--navy); color: #fff; box-shadow: 0 8px 20px rgba(43, 74, 140, 0.28); }
.btn--primary:hover { background: var(--navy-deep); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(43, 74, 140, 0.34); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--navy); background: var(--sky-soft); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--navy-deep); box-shadow: 0 10px 24px rgba(10, 20, 50, 0.25); }
.btn--light:hover { transform: translateY(-2px); background: var(--sky-soft); }
.btn svg { transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; }
.brand__logo { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; font-family: var(--font-head); font-weight: 500; font-size: 14.5px; color: var(--navy-ink); }
.nav a:not(.btn) { position: relative; padding: 6px 0; opacity: 0.82; transition: opacity 0.2s; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--sky);
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.nav a:not(.btn):hover { opacity: 1; }
.nav a:not(.btn):hover::after { transform: scaleX(1); }

.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform 0.3s var(--ease), top 0.3s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 96px; }
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 85% 20%, rgba(125, 192, 236, 0.35), transparent 70%),
    radial-gradient(50% 45% at 5% 90%, rgba(74, 139, 208, 0.14), transparent 70%),
    linear-gradient(180deg, #fff 0%, var(--tint) 100%);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head);
  font-size: 13px; font-weight: 600; color: var(--navy); background: #fff; border: 1px solid var(--line);
  padding: 8px 16px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 4px rgba(125, 192, 236, 0.3); animation: pulse 2.4s infinite; }
.hero h1 { font-size: clamp(38px, 5.4vw, 66px); font-weight: 800; margin: 24px 0 20px; }
.hero h1 em {
  font-style: normal; color: var(--navy);
  background: linear-gradient(transparent 62%, rgba(125, 192, 236, 0.55) 62%, rgba(125, 192, 236, 0.55) 92%, transparent 92%);
  padding: 0 4px; margin: 0 -4px;
}
.lead { font-size: clamp(17px, 1.6vw, 20px); max-width: 52ch; color: var(--text); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 14px 32px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.stats li { display: flex; align-items: center; gap: 12px; }
.stats span { max-width: 11ch; }
.stats strong { font-family: var(--font-head); font-size: 40px; font-weight: 800; color: var(--navy); line-height: 1; }
.stats span { font-size: 14px; line-height: 1.35; color: var(--muted); }

/* Visual del hero: burbujas de diálogo (el símbolo de la marca) */
.hero__visual { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 520px; margin-inline: auto; container-type: inline-size; }
.bubble { position: absolute; width: 58%; height: 38%; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; color: #fff; }
.bubble p { font-size: 5.2cqw; line-height: 1.25; text-align: center; }
.bubble p span { display: inline-block; animation: wave 3s ease-in-out infinite; transform-origin: 70% 70%; }
.bubble::after { content: ""; position: absolute; bottom: -9%; width: 15%; height: 18%; background: inherit; }
.bubble--navy {
  left: 0; top: 4%; background: var(--navy); padding: 0 19% 0 8%;
  animation: float 7s ease-in-out infinite; z-index: 1;
}
.bubble--navy::after { left: 14%; clip-path: polygon(0 0, 100% 0, 18% 100%); }
.bubble--sky {
  right: 0; top: 28%; background: rgba(99, 180, 232, 0.82); padding: 0 8% 0 24%; color: var(--navy-ink);
  animation: float 8s ease-in-out -2s infinite; z-index: 2;
  box-shadow: 0 20px 50px rgba(74, 139, 208, 0.25);
}
.bubble--sky::after { right: 16%; clip-path: polygon(0 0, 100% 0, 82% 100%); }

.card {
  position: absolute; z-index: 3; background: #fff; border-radius: var(--r-md);
  box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: 16px 18px;
  font-family: var(--font-head);
}
.card b { display: block; font-size: 14px; color: var(--navy-ink); font-weight: 700; line-height: 1.2; }
.card small { font-family: var(--font-body); font-size: 13px; color: var(--muted); }
.card__row { display: flex; align-items: center; gap: 12px; }
.card__icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--sky-soft); color: var(--navy); flex: none; }
.card__icon--gold { background: #fff4d9; color: #d99a12; }
.card--progress { left: 2%; bottom: 8%; width: 52%; animation: float 7s ease-in-out -1s infinite; }
.card--progress .bar { margin-top: 14px; }
.card--exam { right: 0; bottom: 2%; display: flex; align-items: center; gap: 12px; animation: float 6s ease-in-out -3s infinite; }
.bar { height: 8px; border-radius: 99px; background: var(--sky-soft); overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--sky)); transform-origin: left; animation: grow 1.6s 0.8s var(--ease) both; }

/* ---------- Secciones ---------- */
.section { padding: 112px 0; }
.section--tint { background: var(--tint); }
.section__head { max-width: 640px; }
.section__head--center { text-align: center; margin-inline: auto; }
.section__head h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; margin-bottom: 16px; }
.section__head > p { color: var(--muted); font-size: 18px; }
.kicker {
  font-family: var(--font-head); font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px; display: inline-flex; align-items: center; gap: 10px;
}
.kicker::before { content: ""; width: 24px; height: 2px; background: currentColor; border-radius: 2px; }
.section__head--center .kicker::after { content: ""; width: 24px; height: 2px; background: currentColor; border-radius: 2px; }
.kicker--light { color: var(--sky); }
.sample-note { display: inline-block; margin-top: 10px; font-size: 13px !important; color: #a26b00 !important; background: #fff4d9; padding: 4px 12px; border-radius: 99px; }

/* ---------- Bento (servicios) ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.tile {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.tile__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--sky-soft); color: var(--navy); margin-bottom: 22px; transition: background 0.3s, color 0.3s; }
.tile:hover .tile__icon { background: var(--navy); color: #fff; }
.tile h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.tile p { color: var(--muted); font-size: 16px; }
.tile--feature {
  grid-row: span 2; background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); color: #dbe7fb; border-color: transparent;
  display: flex; flex-direction: column; position: relative; overflow: hidden;
}
.tile--feature::before { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(125, 192, 236, 0.18); }
.tile--feature h3 { color: #fff; font-size: 26px; }
.tile--feature p { color: #c3d5f3; }
.tile--feature .tile__icon { background: rgba(255, 255, 255, 0.14); color: #fff; }
.tile--feature:hover .tile__icon { background: #fff; color: var(--navy); }
.tile__big { margin-top: auto; padding-top: 36px; font-family: var(--font-head); font-weight: 600; color: var(--sky); font-size: 16px; }
.tile__big span { display: block; font-size: 84px; font-weight: 800; line-height: 1; color: #fff; margin-bottom: 4px; }
.tile--wide { grid-column: 1 / -1; display: flex; gap: 22px; align-items: center; background: var(--tint); }
.tile--wide p { max-width: 70ch; }
.tile--wide .tile__icon { margin-bottom: 0; flex: none; }

/* ---------- Pasos ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 64px; position: relative; counter-reset: s; }
.steps::before { content: ""; position: absolute; top: 28px; left: 8%; right: 8%; height: 2px; background: repeating-linear-gradient(90deg, var(--sky) 0 8px, transparent 8px 16px); z-index: 0; }
.step { position: relative; z-index: 1; text-align: center; padding: 0 8px; }
.step__num {
  width: 56px; height: 56px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: 17px; color: var(--navy);
  background: #fff; border: 2px solid var(--sky); box-shadow: 0 0 0 8px var(--tint); transition: background 0.3s, color 0.3s, transform 0.3s var(--ease);
}
.step:hover .step__num { background: var(--navy); color: #fff; border-color: var(--navy); transform: scale(1.08); }
.step--end .step__num { background: var(--navy); color: #fff; border-color: var(--navy); }
.step h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 15.5px; color: var(--muted); }

/* ---------- Beneficios ---------- */
.benefits { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: start; }
.benefits__head { position: sticky; top: 120px; }
.benefits__head .btn { margin-top: 28px; }
.benefit-list { display: grid; gap: 16px; }
.benefit { display: flex; gap: 20px; padding: 26px 28px; border-radius: var(--r-md); background: var(--tint); border: 1px solid transparent; transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease); }
.benefit:hover { background: #fff; border-color: var(--line); box-shadow: var(--shadow-md); transform: translateX(6px); }
.check { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; margin-top: 2px; }
.benefit h3 { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.benefit p { color: var(--muted); font-size: 16px; }

/* ---------- Precio ---------- */
.section--dark { background: var(--navy-ink); color: #c9d6f0; position: relative; overflow: hidden; }
.section--dark::before, .section--dark::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.section--dark::before { width: 520px; height: 440px; left: -180px; top: -120px; background: radial-gradient(closest-side, rgba(43, 74, 140, 0.9), transparent); }
.section--dark::after { width: 560px; height: 480px; right: -160px; bottom: -160px; background: radial-gradient(closest-side, rgba(125, 192, 236, 0.28), transparent); }
.section--dark h2 { color: #fff; }
.section--dark .section__head > p { color: #aebde0; }
.pricing { position: relative; z-index: 1; }
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 920px; margin: 64px auto 0; }
.price-card--de .price__num, .price-card--de .price__cur { color: var(--navy-ink); }
.price-card .price-card__tag--gold { background: var(--gold); }
.enroll { max-width: 920px; margin: 28px auto 0; display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; padding: 22px 28px; border-radius: var(--r-md); background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14); backdrop-filter: blur(6px); }
.enroll__main { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; font-family: var(--font-head); }
.enroll__label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--sky); }
.enroll__price { font-size: 34px; font-weight: 800; color: #fff; line-height: 1; }
.enroll__note { font-family: var(--font-body); font-size: 14.5px; color: #aebde0; }
.enroll__promo { display: flex; align-items: center; gap: 12px; background: rgba(244, 183, 64, 0.16); border: 1px solid rgba(244, 183, 64, 0.5); padding: 12px 18px; border-radius: 14px; color: #fff; font-size: 15.5px; }
.enroll__promo b { color: var(--gold); }
.enroll__star { color: var(--gold); font-size: 20px; }
.pay-note { text-align: center; margin-top: 22px; color: #aebde0; font-size: 15px; }
.pay-note b { color: #fff; }
.price-card { background: #fff; color: var(--text); border-radius: var(--r-lg); padding: 40px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); text-align: center; position: relative; }
.price-card__tag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--sky); color: var(--navy-ink); font-family: var(--font-head); font-size: 13px; font-weight: 700; padding: 6px 18px; border-radius: 99px; white-space: nowrap; }
.price { display: flex; justify-content: center; align-items: flex-start; gap: 4px; color: var(--navy); font-family: var(--font-head); margin-top: 8px; }
.price__cur { font-size: 28px; font-weight: 700; margin-top: 12px; }
.price__num { font-size: 88px; font-weight: 800; line-height: 1; letter-spacing: -0.04em; }
.price__per { align-self: flex-end; font-size: 16px; color: var(--muted); font-weight: 600; margin-bottom: 12px; }
.price-card__sub { margin-top: 6px; color: var(--muted); }
.price-card__sub b { color: var(--navy); }
.price-card ul { text-align: left; margin: 28px 0; padding: 24px 0; border-block: 1px solid var(--line); display: grid; gap: 14px; }
.price-card li { display: flex; gap: 12px; align-items: center; font-size: 16px; }
.price-card li svg { flex: none; color: #fff; background: var(--navy); border-radius: 50%; padding: 4px; width: 24px; height: 24px; }
.price-card .btn--light { background: var(--navy); color: #fff; box-shadow: 0 10px 24px rgba(43, 74, 140, 0.35); }
.price-card .btn--light:hover { background: var(--navy-deep); }
.price-card small { display: block; margin-top: 14px; color: var(--muted); font-size: 13.5px; }

/* ---------- Testimonios ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; }
.quote { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; display: flex; flex-direction: column; gap: 18px; box-shadow: var(--shadow-sm); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.quote:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.stars { color: var(--gold); letter-spacing: 3px; font-size: 18px; }
.quote blockquote { margin: 0; font-size: 17.5px; color: var(--navy-ink); line-height: 1.6; flex: 1; }
.quote figcaption { display: flex; gap: 14px; align-items: center; padding-top: 18px; border-top: 1px solid var(--line); font-family: var(--font-head); }
.quote figcaption b { display: block; font-size: 14.5px; color: var(--navy-ink); }
.quote figcaption small { font-family: var(--font-body); font-size: 13.5px; color: var(--muted); }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; display: grid; place-items: center; font-weight: 700; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 72px; align-items: start; }
.faq .section__head { position: sticky; top: 120px; }
.faq__list { display: grid; gap: 12px; }
details { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); transition: box-shadow 0.3s, border-color 0.3s; }
details[open] { box-shadow: var(--shadow-md); border-color: transparent; }
summary {
  list-style: none; cursor: pointer; padding: 22px 26px; font-family: var(--font-head); font-weight: 600; font-size: 17px; color: var(--navy-ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--sky-soft);
  background-image: linear-gradient(var(--navy), var(--navy)), linear-gradient(var(--navy), var(--navy));
  background-size: 12px 2px, 2px 12px; background-position: center; background-repeat: no-repeat; transition: transform 0.35s var(--ease), background-color 0.3s;
}
details[open] summary::after { transform: rotate(45deg); background-color: var(--sky); }
details p { padding: 0 26px 24px; color: var(--muted); max-width: 60ch; }

/* ---------- CTA ---------- */
.cta { padding: 24px 0 112px; }
.cta__box {
  position: relative; overflow: hidden; text-align: center; color: #fff; border-radius: 36px; padding: 80px 28px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
}
.cta__box h2 { color: #fff; font-size: clamp(28px, 3.8vw, 46px); font-weight: 800; max-width: 22ch; margin: 0 auto 16px; }
.cta__box p { color: #c3d5f3; font-size: 18px; max-width: 46ch; margin: 0 auto 32px; }
.cta__box > *:not(.cta__deco) { position: relative; z-index: 1; }
.cta__deco i { position: absolute; border-radius: 50%; }
.cta__deco i:first-child { width: 320px; height: 270px; left: -100px; top: -90px; background: rgba(125, 192, 236, 0.18); }
.cta__deco i:last-child { width: 360px; height: 300px; right: -110px; bottom: -120px; background: rgba(125, 192, 236, 0.3); }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.wa-direct { margin-top: 32px; display: inline-flex; align-items: center; gap: 16px; padding: 16px 24px 16px 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--tint); transition: transform 0.3s var(--ease), box-shadow 0.3s, background 0.3s; font-family: var(--font-head); }
.wa-direct:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); background: #fff; }
.wa-direct b { display: block; font-size: 16px; color: var(--navy-ink); }
.wa-direct small { font-family: var(--font-body); color: var(--muted); font-size: 14px; }
.wa-direct__icon { width: 48px; height: 48px; border-radius: 14px; background: var(--green); color: #fff; display: grid; place-items: center; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 36px; box-shadow: var(--shadow-md); display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--navy-ink); }
.field label span { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--navy-ink); background: var(--tint); border: 1.5px solid transparent; border-radius: 14px; padding: 14px 16px; transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(125, 192, 236, 0.3); }
.field.is-invalid input, .field.is-invalid select { border-color: #d9534f; background: #fff6f5; }
.form__note { font-size: 13.5px; color: var(--muted); text-align: center; }
.form__note.is-error { color: #c0392b; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-ink); color: #aebde0; padding: 64px 0 28px; }
.footer__inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer__brand img { height: 32px; width: auto; margin-bottom: 18px; }
.footer__brand p { font-size: 15px; max-width: 34ch; }
.footer__nav { display: flex; gap: 28px; flex-wrap: wrap; font-family: var(--font-head); font-weight: 500; font-size: 14.5px; align-self: flex-start; }
.footer__nav a { transition: color 0.2s; }
.footer__nav a:hover { color: #fff; }
.footer__legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 14px; color: #8497c4; display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.footer__links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__links a { transition: color 0.2s; }
.footer__links a:hover { color: #fff; }

/* ---------- WhatsApp flotante ---------- */
.wa-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: var(--green); color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45); transition: transform 0.3s var(--ease);
}
.wa-fab:hover { transform: scale(1.08) translateY(-2px); }
.wa-fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--green); animation: ring 2.6s infinite; }

/* ---------- Programas ---------- */
.programs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 56px; }
.program { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 36px; display: flex; flex-direction: column; gap: 14px; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); position: relative; overflow: hidden; }
.program:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.program::before { content: ""; position: absolute; right: -50px; top: -50px; width: 170px; height: 170px; border-radius: 50%; background: var(--sky-soft); }
.program > * { position: relative; }
.program__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.program__badge { font-family: var(--font-head); font-weight: 700; font-size: 13px; background: var(--navy); color: #fff; padding: 7px 16px; border-radius: 99px; }
.program__age { font-family: var(--font-head); font-weight: 600; font-size: 13.5px; color: var(--navy); background: var(--sky-soft); padding: 7px 14px; border-radius: 99px; }
.program h3 { font-size: 26px; font-weight: 800; margin-top: 6px; }
.program > p { color: var(--muted); }
.program__facts { margin: 8px 0 14px; padding: 18px 0; border-block: 1px solid var(--line); display: grid; gap: 12px; }
.program__facts li { display: flex; gap: 14px; font-size: 16px; color: var(--navy-ink); }
.program__facts b { font-family: var(--font-head); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--blue); min-width: 78px; padding-top: 3px; }
.program .btn { margin-top: auto; }
.program--de { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); border-color: transparent; color: #dbe7fb; }
.program--de::before { background: rgba(244, 183, 64, 0.16); }
.program--de h3 { color: #fff; }
.program--de > p { color: #c3d5f3; }
.program--de .program__badge { background: var(--gold); color: var(--navy-ink); }
.program--de .program__age { background: rgba(255, 255, 255, 0.14); color: #fff; }
.program--de .program__facts { border-color: rgba(255, 255, 255, 0.16); }
.program--de .program__facts li { color: #fff; }
.program--de .program__facts b { color: var(--sky); }
.program--de .btn--light { color: var(--navy-deep); }

.timeline { margin-top: 48px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 32px; box-shadow: var(--shadow-sm); }
.timeline__title { font-family: var(--font-head); font-weight: 700; color: var(--navy-ink); font-size: 17px; margin-bottom: 18px; }
.timeline__bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slot { padding: 16px 18px; border-radius: 14px; display: grid; gap: 2px; font-family: var(--font-head); }
.slot b { font-size: 15.5px; }
.slot span { font-family: var(--font-body); font-size: 14px; font-weight: 600; opacity: 0.85; }
.slot--en { background: var(--sky-soft); color: var(--navy); }
.slot--de { background: #fff1d1; color: #7a5300; }
.timeline__note { margin-top: 16px; font-size: 14.5px; color: var(--muted); }

/* ---------- Profesora ---------- */
.teacher { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 72px; align-items: center; }
.teacher__visual { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 380px; margin-inline: auto; }
.teacher__avatar { position: absolute; inset: 8%; border-radius: 50%; background: linear-gradient(145deg, var(--navy), var(--blue)); display: grid; place-items: center; box-shadow: var(--shadow-lg); overflow: hidden; }
.teacher__avatar img { width: 100%; height: 100%; object-fit: cover; }
.teacher__avatar span { font-family: var(--font-head); font-weight: 800; font-size: clamp(56px, 9vw, 92px); color: #fff; letter-spacing: -0.04em; }
.teacher__visual i { position: absolute; border-radius: 50%; }
.teacher__b1 { width: 30%; height: 26%; right: -2%; top: 2%; background: var(--sky); opacity: 0.85; animation: float 6s ease-in-out infinite; }
.teacher__b2 { width: 20%; height: 17%; left: 0; bottom: 6%; background: var(--gold); opacity: 0.9; animation: float 7s ease-in-out -2s infinite; }
.teacher__copy h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; margin-bottom: 16px; }
.teacher__copy > p { color: var(--muted); font-size: 18px; max-width: 56ch; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chips li { background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 10px 18px; font-family: var(--font-head); font-size: 14px; font-weight: 600; color: var(--navy-ink); box-shadow: var(--shadow-sm); }

/* ---------- CTA / contacto extras ---------- */
.cta__pill { display: inline-block; font-family: var(--font-head); font-size: 13px; font-weight: 700; color: var(--navy-ink); background: var(--gold); padding: 7px 18px; border-radius: 99px; margin-bottom: 22px; }
.trial-date { color: #fff; border-bottom: 2px solid var(--gold); }
details .trial-date { color: var(--navy); }
.contact__info { margin-top: 26px; display: grid; gap: 8px; font-size: 15.5px; color: var(--text); }
.socials { display: flex; gap: 12px; margin-top: 22px; }
.socials a { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--sky-soft); color: var(--navy); transition: background 0.25s, color 0.25s, transform 0.25s var(--ease); }
.socials a:hover { background: var(--navy); color: #fff; transform: translateY(-3px); }
.field-row { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); line-height: 1.5; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--navy); flex: none; }
.consent a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.consent.is-invalid { color: #c0392b; }
.field.is-invalid select { border-color: #d9534f; background: #fff6f5; }

/* ---------- Páginas legales ---------- */
.legal-page { background: var(--tint); }
.legal-header { background: #fff; border-bottom: 1px solid var(--line); }
.legal-header .container { display: flex; justify-content: space-between; align-items: center; height: 72px; }
.legal-back { font-family: var(--font-head); font-weight: 600; font-size: 14.5px; color: var(--navy); display: inline-flex; gap: 8px; align-items: center; }
.legal-back:hover { text-decoration: underline; text-underline-offset: 4px; }
.legal { width: min(820px, 100% - 40px); margin: 48px auto 80px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 48px; box-shadow: var(--shadow-sm); }
.legal h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; margin-bottom: 8px; }
.legal .updated { color: var(--muted); font-size: 14.5px; margin-bottom: 18px; }
.legal .draft { background: #fff4d9; color: #7a5300; border-radius: 12px; padding: 14px 18px; font-size: 14.5px; margin-bottom: 28px; }
.legal h2 { font-size: 20px; font-weight: 700; margin: 34px 0 10px; }
.legal p, .legal li { color: var(--text); }
.legal ul { list-style: disc; padding-left: 22px; display: grid; gap: 6px; margin: 10px 0; }
.legal a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.todo { background: #fff0b8; padding: 1px 6px; border-radius: 6px; font-weight: 600; color: #6b4a00; }

/* ---------- Botón de edición (solo administradores en WordPress) ---------- */
.edit-fab { position: fixed; left: 20px; bottom: 20px; z-index: 70; background: var(--navy-ink); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 13.5px; padding: 11px 18px; border-radius: 99px; box-shadow: var(--shadow-lg); transition: transform 0.25s var(--ease), background 0.25s; }
.edit-fab:hover { background: var(--navy); transform: translateY(-2px); }

/* ---------- Animaciones ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease) var(--d, 0s), transform 0.8s var(--ease) var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(16deg); } 80% { transform: rotate(-10deg); } 90% { transform: rotate(12deg); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(125, 192, 236, 0.3); } 50% { box-shadow: 0 0 0 8px rgba(125, 192, 236, 0.1); } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ring { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.6); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero__grid { grid-template-columns: 1fr; gap: 56px; }
  .hero__visual { max-width: 460px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile--feature { grid-column: span 2; grid-row: auto; }
  .tile--wide { grid-column: span 2; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 44px; }
  .steps::before { display: none; }
  .benefits, .faq, .contact { grid-template-columns: 1fr; gap: 44px; }
  .benefits__head, .faq .section__head { position: static; }
  .nav { gap: 20px; }
  .price-grid { grid-template-columns: 1fr; max-width: 480px; gap: 36px; }
  .programs { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .teacher { grid-template-columns: 1fr; gap: 40px; }
  .teacher__visual { max-width: 280px; margin-inline: auto; }
  .quotes { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
}

@media (max-width: 820px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 24px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: transform 0.3s var(--ease), opacity 0.3s, visibility 0.3s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: 16px 4px; border-bottom: 1px solid var(--line); opacity: 1; font-size: 16px; }
  .nav a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: 18px; padding: 14px 20px; }
}

@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .container { width: min(1160px, 100% - 32px); }
  .hero { padding: 40px 0 72px; }
  .section { padding: 76px 0; }
  .hero__actions .btn { width: 100%; }
  .hero__visual { aspect-ratio: 1 / 1.14; }
  .bubble { height: 33%; }
  .bubble--sky { top: 26%; }
  .card--progress { bottom: 31%; width: 56%; }
  .card--exam { bottom: 0; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .stats li { flex-direction: column; align-items: flex-start; gap: 6px; }
  .stats strong { font-size: 36px; }
  .stats span { max-width: none; font-size: 13.5px; }
  .bento { grid-template-columns: 1fr; margin-top: 40px; }
  .tile--feature, .tile--wide { grid-column: auto; }
  .tile--wide { flex-direction: column; align-items: flex-start; gap: 18px; }
  .program { padding: 28px 22px; }
  .program h3 { font-size: 23px; }
  .program__facts li { flex-direction: column; gap: 2px; }
  .program__facts b { min-width: 0; padding-top: 0; }
  .timeline { padding: 24px 20px; }
  .timeline__bar { grid-template-columns: 1fr; }
  .enroll { padding: 20px; }
  .legal { padding: 30px 22px; margin-top: 28px; }
  .field-row { grid-template-columns: 1fr; }
  .footer__legal { flex-direction: column; }
  .tile { padding: 26px; }
  .steps { grid-template-columns: 1fr; margin-top: 44px; }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; text-align: left; align-items: start; padding: 0; }
  .step__num { grid-row: span 2; margin: 0; }
  .benefit { padding: 22px; gap: 16px; }
  .price-card { padding: 34px 24px; }
  .price__num { font-size: 76px; }
  .cta { padding-bottom: 76px; }
  .cta__box { padding: 60px 22px; border-radius: 28px; }
  .form { padding: 26px 20px; }
  summary { padding: 18px 20px; font-size: 16px; }
  details p { padding: 0 20px 20px; }
  .footer__legal { margin-top: 36px; }
}
