/* MEDLA · L4 Visa España desde México — v3 (oferta del mes + urgencia)
   Paleta: crema, navy, dorado. Tipografía única y sencilla: Plus Jakarta Sans. */

:root {
  color-scheme: light;
  --cream: #F5F3EF;
  --navy: #1A1A2E;
  --navy-hover: #14142A;
  --gold: #A6956B;
  --gold-hover: #B9AA82;
  --gold-deep: #7A6C4A;      /* íconos dorados sobre fondos claros */
  --gold-soft: #EEE9DD;
  --body: #3A3A4E;
  --muted-navy: #A9A9BE;      /* solo como texto sobre navy */
  --white: #FFFFFF;
  --alert: #B4231A;

  --line: rgba(26, 26, 46, 0.08);
  --line-strong: rgba(26, 26, 46, 0.12);
  --line-light: rgba(245, 243, 239, 0.15);
  --shadow-card: 0 1px 2px rgba(26, 26, 46, 0.06);
  --shadow-lift: 0 1px 2px rgba(26, 26, 46, 0.08), 0 28px 56px -28px rgba(26, 26, 46, 0.45);

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-card: 16px;
  --radius-lg: 24px;
  --radius-btn: 12px;
  --container: 1120px;
  --gutter: 20px;
  --section-y: 72px;
  --promo-h: 40px;
  --bar-h-header: 64px;
  --header-h: calc(var(--promo-h) + var(--bar-h-header));
  --bar-h: 0px;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px;
  --s8: 32px; --s10: 40px; --s12: 48px; --s16: 64px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-micro: 180ms;
  --t-reveal: 220ms;
}
:root.offer-ended { --promo-h: 0px; }
:root[data-theme="dark"] { --cream: #14142A; --white: #1E1E36; --body: #D9D7E4; }
@media (min-width: 1024px) { :root { --gutter: 32px; --section-y: 104px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--cream); color: var(--body);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip; padding-bottom: var(--bar-h);
}
@media (max-width: 1023.98px) { body { --bar-h: calc(72px + env(safe-area-inset-bottom)); } }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; color: var(--navy); font-family: var(--font); }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--navy); text-underline-offset: 3px; text-decoration-thickness: 1px; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
blockquote, figure { margin: 0; }

:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; border-radius: 6px; }
.band :focus-visible, .hero__copy :focus-visible, .offer-section .stack :focus-visible, .promo:focus-visible { outline-color: var(--gold); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--navy); color: var(--cream);
  padding: 12px 18px; border-radius: var(--radius-btn); font-weight: 600; text-decoration: none;
  transform: translateY(-200%); transition: transform var(--t-micro) var(--ease-out);
}
.skip-link:focus { transform: none; }
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Tipografía ---------- */
h1 { font-weight: 800; font-size: clamp(2.25rem, 6vw, 3.75rem); line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance; }
h2 { font-weight: 800; font-size: clamp(1.75rem, 4vw, 2.625rem); line-height: 1.15; letter-spacing: -0.025em; text-wrap: balance; }
h3 { font-weight: 700; font-size: 1.1875rem; line-height: 1.3; letter-spacing: -0.01em; }
.eyebrow {
  display: inline-block; font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--navy); background: var(--gold-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: var(--s4);
}
.eyebrow--light { background: rgba(166, 149, 107, 0.18); color: var(--gold); }
.micro { font-size: 0.875rem; }
.micro--center { text-align: center; }

.icon { width: 20px; height: 20px; flex: none; }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 1rem; line-height: 1; }
.stars--big { font-size: 1.75rem; letter-spacing: 4px; }
.stars--sm { font-size: 0.8125rem; letter-spacing: 1px; }

/* ---------- Botones ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 14px 24px; border-radius: var(--radius-btn); border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color var(--t-micro) var(--ease-out), color var(--t-micro) var(--ease-out),
              border-color var(--t-micro) var(--ease-out), transform var(--t-micro) var(--ease-out), box-shadow var(--t-micro) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(0.985); }
.btn .icon { transition: transform var(--t-micro) var(--ease-out); }
.btn--gold { background: var(--gold); color: var(--navy); border-color: var(--gold); box-shadow: 0 10px 24px -14px rgba(166, 149, 107, 0.9); }
.btn--gold:hover { background: var(--gold-hover); border-color: var(--gold-hover); box-shadow: 0 14px 28px -12px rgba(166, 149, 107, 0.9); }
.btn--gold:hover .icon { transform: scale(1.1) rotate(-8deg); }
.btn--navy { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.btn--navy:hover { background: var(--navy-hover); }
.btn--navy:hover .icon { transform: translateX(4px); }
.btn--ghost { background: rgba(245, 243, 239, 0.08); color: var(--cream); border-color: rgba(245, 243, 239, 0.45); }
.btn--ghost:hover { background: var(--cream); color: var(--navy); border-color: var(--cream); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--cream); }
.btn--block { width: 100%; }
.btn--lg { min-height: 56px; font-size: 1.0625rem; padding-inline: 28px; }
.btn:disabled { opacity: 0.7; cursor: progress; }
.link-btn { background: none; border: 0; padding: 4px 2px; cursor: pointer; color: inherit; text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }
@media (prefers-reduced-motion: no-preference) {
  .btn--gold.btn--lg { overflow: hidden; }
  .btn--gold.btn--lg::after {
    content: ""; position: absolute; inset: 0; transform: translateX(-120%);
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.45) 50%, transparent 65%);
    animation: shine 4.5s var(--ease-out) 2s infinite;
  }
}
@keyframes shine { 0% { transform: translateX(-120%); } 30%, 100% { transform: translateX(120%); } }

/* ---------- Cabecera + banner ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; }
.promo {
  height: var(--promo-h); display: flex; align-items: center; justify-content: center; gap: 12px; padding-inline: 12px;
  background: var(--gold); color: var(--navy); text-decoration: none; font-size: 0.875rem; font-weight: 600; white-space: nowrap; overflow: hidden;
}
.promo:hover .promo__text { text-decoration: underline; }
.promo__tag { background: var(--navy); color: var(--gold); padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.promo__timer { font-variant-numeric: tabular-nums; font-weight: 800; }
.promo .icon { width: 16px; height: 16px; }
@media (max-width: 767.98px) {
  .promo__tag, .promo .icon { display: none; }
  .promo { gap: 8px; font-size: 0.8125rem; }
  .promo__long { display: none; }
}
.header__bar { height: var(--bar-h-header); background: transparent; border-bottom: 1px solid transparent; transition: background-color 240ms var(--ease-out), border-color 240ms var(--ease-out); }
.site-header.is-scrolled .header__bar { background: var(--cream); border-bottom-color: var(--line); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.brand { position: relative; display: inline-flex; align-items: center; min-height: 44px; flex: none; border-radius: 4px; }
.brand img { height: 32px; width: auto; transition: opacity 240ms var(--ease-out); }
.brand__dark { position: absolute; left: 0; top: 50%; transform: translateY(-50%); opacity: 0; }
.site-header.is-scrolled .brand__light { opacity: 0; }
.site-header.is-scrolled .brand__dark { opacity: 1; }
.site-header:not(.is-scrolled) .header__bar :focus-visible { outline-color: var(--gold); }
.btn--header { min-height: 44px; padding: 8px 18px; font-size: 0.9375rem; gap: 8px; box-shadow: none; }

main { display: block; outline: none; }

/* ---------- Secciones ---------- */
.section { padding-block: var(--section-y); }
.section--white { background: var(--white); }
.section__head { margin-bottom: var(--s10); max-width: 720px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--split { max-width: none; display: flex; flex-direction: column; gap: var(--s6); }
@media (min-width: 1024px) {
  .section__head { margin-bottom: var(--s12); }
  .section__head--split { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .section__head--split > div:first-child { max-width: 640px; }
}
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.center-cta { margin-top: var(--s10); text-align: center; }

@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity var(--t-reveal) var(--ease-out) var(--d, 0ms), transform var(--t-reveal) var(--ease-out) var(--d, 0ms); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .js [data-in] { opacity: 0; transform: translateY(18px); }
  .js.is-loaded [data-in] { opacity: 1; transform: none; transition: opacity 650ms var(--ease-out) var(--d, 0ms), transform 650ms var(--ease-out) var(--d, 0ms); }
  .js .hero__bg img { transform: scale(1.08); }
  .js.is-loaded .hero__bg img { transform: scale(1); transition: transform 1600ms var(--ease-out); }
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); color: var(--cream); padding: calc(var(--header-h) + 32px) 0 64px; }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg picture, .hero__bg img { width: 100%; height: 100%; }
.hero__bg img { object-fit: cover; object-position: 50% 40%; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26, 26, 46, 0.7) 0%, rgba(26, 26, 46, 0.88) 50%, rgba(26, 26, 46, 0.98) 100%); }
@media (min-width: 1024px) {
  .hero__bg::after { background: linear-gradient(100deg, rgba(26, 26, 46, 0.95) 0%, rgba(26, 26, 46, 0.82) 48%, rgba(26, 26, 46, 0.5) 100%), linear-gradient(0deg, rgba(26, 26, 46, 0.6), transparent 40%); }
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s10); align-items: center; }
@media (min-width: 1024px) {
  .hero { min-height: min(100svh, 900px); display: flex; align-items: center; padding: calc(var(--header-h) + 40px) 0 80px; }
  .hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s16); }
}
.rating {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px;
  background: rgba(245, 243, 239, 0.1); border: 1px solid rgba(245, 243, 239, 0.18); color: var(--cream); text-decoration: none; font-size: 0.875rem;
  transition: background-color var(--t-micro) var(--ease-out);
}
.rating:hover { background: rgba(245, 243, 239, 0.18); }
.hero h1 { color: var(--cream); margin-top: var(--s5); }
.hl { color: var(--gold); }
.hero__sub { margin-top: var(--s5); max-width: 50ch; font-size: 1.1875rem; line-height: 1.55; color: rgba(245, 243, 239, 0.9); }
.hero__ctas { margin-top: var(--s8); display: flex; flex-direction: column; gap: var(--s3); }
@media (min-width: 640px) { .hero__ctas { flex-direction: row; flex-wrap: wrap; } }
.hero__chips { margin-top: var(--s8); display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); }
.hero__chips li { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9375rem; color: rgba(245, 243, 239, 0.92); }
.hero__chips .icon { color: var(--gold); }

/* Tarjeta de la oferta */
.deal { position: relative; padding: 28px 24px 24px; border-radius: var(--radius-lg); box-shadow: var(--shadow-lift); color: var(--body); border: 0; }
@media (min-width: 640px) { .deal { padding: 32px; } }
.deal::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; background: linear-gradient(140deg, var(--gold), rgba(166, 149, 107, 0) 45%, rgba(166, 149, 107, 0) 60%, var(--gold)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.deal__tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  background: var(--navy); color: var(--gold); font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em;
}
.deal__tag .icon { width: 15px; height: 15px; }
.deal__title { margin-top: var(--s4); font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.deal__meta { margin-top: var(--s1); font-size: 0.9375rem; }
.free { margin-top: var(--s4); display: flex; align-items: center; gap: var(--s4); padding: 14px 16px; border-radius: 14px; background: var(--gold-soft); }
.free__big { font-size: clamp(2.25rem, 7vw, 2.75rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--navy); text-transform: uppercase; }
.free__cond { font-size: 0.9375rem; line-height: 1.4; color: var(--navy); font-weight: 600; }

/* ---------- Contador de la promoción (v8) ---------- */
.countdown {
  position: relative; margin-top: var(--s5); padding: 14px 14px 12px; border-radius: 18px;
  background: radial-gradient(120% 140% at 0% 0%, #2B2B47 0%, var(--navy) 55%, #121224 100%);
  box-shadow: inset 0 0 0 1px rgba(166, 149, 107, 0.35), 0 18px 36px -22px rgba(26, 26, 46, 0.7);
  color: var(--cream); overflow: hidden;
}
.countdown::before { /* brillo diagonal que recorre el panel */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, rgba(166, 149, 107, 0.16) 50%, transparent 60%);
  transform: translateX(-100%);
}
@media (prefers-reduced-motion: no-preference) { .countdown::before { animation: sweep 6s var(--ease-out) 1.5s infinite; } }
@keyframes sweep { 0% { transform: translateX(-100%); } 35%, 100% { transform: translateX(100%); } }
.countdown__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: 10px; }
.countdown__label, .countdown__head .countdown__label { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--cream); }
.countdown__label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #E5484D; box-shadow: 0 0 0 0 rgba(229, 72, 77, 0.6); flex: none; }
@media (prefers-reduced-motion: no-preference) { .countdown__label::before { animation: ping 1.6s ease-out infinite; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0.6); } 80%, 100% { box-shadow: 0 0 0 8px rgba(229, 72, 77, 0); } }
.countdown__end { font-size: 0.75rem; font-weight: 600; color: var(--gold); white-space: nowrap; }
.countdown__boxes { display: flex; align-items: stretch; gap: 4px; }
.countdown__boxes > span:not(.countdown__sep) {
  position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center;
  padding: 10px 2px 8px; border-radius: 12px; perspective: 400px;
  background: linear-gradient(180deg, #34345A 0%, #2A2A48 49.5%, #212139 50.5%, #1C1C33 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 14px -8px rgba(0, 0, 0, 0.6);
}
.countdown__boxes > span:not(.countdown__sep)::after { /* bisagra del reloj de tablero */
  content: ""; position: absolute; left: 6px; right: 6px; top: calc(50% - 4px); height: 1px; background: rgba(0, 0, 0, 0.45);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}
.countdown__boxes b {
  display: block; font-size: clamp(1.625rem, 6.5vw, 2rem); font-weight: 800; line-height: 1; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums; color: #FFFFFF; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35); transform-origin: 50% 100%;
}
.countdown__boxes small { margin-top: 6px; font-size: 0.625rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); }
.countdown__sep { flex: none; align-self: center; margin-top: -14px; font-size: 1.375rem; font-weight: 800; color: var(--gold); }
@media (prefers-reduced-motion: no-preference) {
  .countdown__boxes b.tick { animation: flip 420ms cubic-bezier(0.2, 0.9, 0.3, 1.2); }
  .countdown__sep { animation: blink 1s steps(1) infinite; }
}
@keyframes flip { from { transform: rotateX(-80deg); opacity: 0.2; } to { transform: rotateX(0); opacity: 1; } }
@keyframes blink { 50% { opacity: 0.35; } }
.countdown__bar { margin-top: 12px; height: 6px; border-radius: 99px; background: rgba(245, 243, 239, 0.12); overflow: hidden; }
.countdown__bar i { display: block; height: 100%; width: var(--left, 100%); border-radius: inherit; background: linear-gradient(90deg, #E5484D, var(--gold) 60%, #D9CBA6); transition: width 600ms var(--ease-out); }
.countdown__foot { margin-top: 6px; display: flex; justify-content: space-between; font-size: 0.6875rem; color: var(--muted-navy); }
.countdown.is-urgent { box-shadow: inset 0 0 0 1px rgba(229, 72, 77, 0.6), 0 18px 36px -22px rgba(229, 72, 77, 0.6); }
.countdown.is-urgent .countdown__end { color: #FF8F92; }
.countdown--dark { width: 100%; max-width: 440px; margin-top: var(--s8); text-align: left; }

.scarcity { margin-top: var(--s4); display: flex; align-items: center; gap: 10px; font-size: 0.9375rem; color: var(--navy); font-weight: 500; }
.scarcity strong { font-weight: 800; }
.pulse { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--alert); flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--alert); animation: pulse 1.6s ease-out infinite; }
}
@keyframes pulse { from { transform: scale(1); opacity: 0.6; } to { transform: scale(2.6); opacity: 0; } }
.deal .btn--lg { margin-top: var(--s5); }
.deal__note { margin-top: var(--s4); font-size: 0.8125rem; line-height: 1.45; text-align: center; }

/* ---------- Dudas ---------- */
.pains { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
@media (min-width: 900px) { .pains { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); } }
.pain { padding: 28px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-card); transition: transform var(--t-micro) var(--ease-out), box-shadow var(--t-micro) var(--ease-out); }
.pain:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.pain__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--gold-soft); color: var(--gold-deep); margin-bottom: var(--s5); }
.pain__icon .icon { width: 26px; height: 26px; }
.pain h3 { margin-bottom: var(--s2); }

/* ---------- Oferta ---------- */
.offer-section { background: var(--navy); color: var(--cream); position: relative; overflow: hidden; }
.offer-section::before { content: ""; position: absolute; width: 640px; height: 640px; left: -260px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(166, 149, 107, 0.16), transparent 65%); pointer-events: none; }
.offer-section h2 { color: var(--cream); }
.offer-section .section__lede { margin-top: var(--s4); color: rgba(245, 243, 239, 0.88); font-size: 1.125rem; }
.offer-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s8); align-items: start; }
@media (min-width: 1024px) { .offer-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--s12); } }
.stack__list { display: grid; gap: var(--s3); }
.stack__list li { display: flex; gap: var(--s4); align-items: flex-start; padding: 18px; border-radius: var(--radius-card); background: rgba(245, 243, 239, 0.05); border: 1px solid var(--line-light); }
.stack__list div { display: flex; flex-direction: column; gap: 2px; }
.stack__list strong { color: var(--cream); font-weight: 700; font-size: 1.0625rem; }
.stack__list div > span { color: var(--muted-navy); font-size: 0.9375rem; line-height: 1.5; }
.stack__check { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(166, 149, 107, 0.15); color: var(--gold); flex: none; }
.stack__bonus { background: rgba(166, 149, 107, 0.14) !important; border-color: rgba(166, 149, 107, 0.5) !important; }
.stack__bonus .stack__check { background: var(--gold); color: var(--navy); }

.checkout { padding: 24px; border-radius: var(--radius-lg); box-shadow: var(--shadow-lift); color: var(--body); }
@media (min-width: 640px) { .checkout { padding: 32px; } }
@media (min-width: 1024px) { .checkout { position: sticky; top: calc(var(--header-h) + 16px); } }
.checkout__head { margin-bottom: var(--s5); }
.checkout__title { margin-top: var(--s3); font-size: 1.375rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; }
.checkout .btn--lg { margin-top: var(--s2); }
.divider { display: flex; align-items: center; gap: var(--s3); margin: var(--s5) 0; font-size: 0.875rem; text-align: center; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }

.form { display: grid; gap: var(--s4); }
.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field__label { font-weight: 700; font-size: 0.9375rem; color: var(--navy); }
.opt { font-weight: 500; color: var(--body); font-size: 0.8125rem; }
.field__help { font-size: 0.8125rem; }
.input {
  width: 100%; min-height: 50px; padding: 12px 14px; background: var(--white); color: var(--navy);
  border: 1.5px solid rgba(26, 26, 46, 0.2); border-radius: var(--radius-btn); font-size: 1rem;
  transition: border-color var(--t-micro) var(--ease-out), box-shadow var(--t-micro) var(--ease-out); appearance: none; -webkit-appearance: none;
}
.input:hover { border-color: rgba(26, 26, 46, 0.45); }
.input:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; border-color: var(--navy); }
select.input {
  padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%231A1A2E' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.phone { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: var(--s2); }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: grid; place-items: center; min-height: 48px; padding: 8px; border-radius: var(--radius-btn); border: 1.5px solid rgba(26, 26, 46, 0.2); font-weight: 600; font-size: 0.9375rem; color: var(--navy); text-align: center; transition: background-color var(--t-micro) var(--ease-out), border-color var(--t-micro) var(--ease-out), color var(--t-micro) var(--ease-out); }
.seg label:hover span { border-color: var(--navy); }
.seg input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--cream); }
.seg input:focus-visible + span { outline: 3px solid var(--navy); outline-offset: 2px; }
.seg[aria-invalid="true"] span { border-color: var(--alert); }
.input[aria-invalid="true"] { border-color: var(--alert); border-width: 2px; }
.field__error { font-size: 0.875rem; color: var(--alert); font-weight: 600; }
.field__error:empty { display: none; }
.field__error::before { content: "⚠ "; }
.check { display: flex; gap: var(--s3); align-items: flex-start; cursor: pointer; font-size: 0.875rem; line-height: 1.5; }
.check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--navy); cursor: pointer; }
.btn--submit { margin-top: var(--s1); }
.form__error { padding: 14px 16px; border-radius: var(--radius-btn); background: #FBEDEA; color: #7E1D17; font-size: 0.9375rem; border: 1px solid rgba(163, 39, 31, 0.25); }
.form__error a { color: inherit; font-weight: 700; }
.form-success { padding: 22px; border-radius: var(--radius-card); background: var(--gold-soft); color: var(--navy); }

/* ---------- Opiniones ---------- */
.score { display: flex; flex-direction: column; gap: 6px; }
.reviews { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
@media (min-width: 768px) { .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .reviews { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); } .review--feature { grid-column: span 2; grid-row: span 2; } }
.review { display: flex; flex-direction: column; gap: var(--s5); padding: 26px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.review blockquote p { font-size: 1rem; line-height: 1.6; color: var(--navy); }
.review figcaption { margin-top: auto; display: flex; align-items: center; gap: var(--s3); }
.review figcaption > span:last-child { display: flex; flex-direction: column; line-height: 1.35; }
.review strong { color: var(--navy); font-weight: 700; font-size: 0.9375rem; }
.review small { font-size: 0.8125rem; display: inline-flex; gap: 6px; align-items: center; }
.avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--gold-soft); color: var(--navy); font-weight: 800; font-size: 0.875rem; flex: none; }
.review--feature { background: var(--navy); border-color: var(--navy); justify-content: space-between; }
.review--feature blockquote p { color: var(--cream); font-size: clamp(1.1875rem, 2.2vw, 1.5rem); line-height: 1.5; font-weight: 500; letter-spacing: -0.01em; }
.review--feature strong { color: var(--cream); }
.review--feature small { color: var(--muted-navy); }
.review--feature .avatar { background: var(--gold); }
.review__mark { width: 40px; height: 40px; color: var(--gold); }

/* ---------- Pasos ---------- */
.steps { position: relative; display: grid; gap: var(--s6); --p: 0; }
.steps::before, .steps::after { content: ""; position: absolute; left: 25px; top: 26px; bottom: 26px; width: 2px; background: rgba(166, 149, 107, 0.25); border-radius: 2px; }
.steps::after { background: var(--gold); transform-origin: top; transform: scaleY(var(--p)); }
.step { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: var(--s5); }
.step h3 { grid-column: 2; margin-top: 12px; }
.step p { grid-column: 2; margin-top: 4px; font-size: 1rem; }
.step__num { grid-row: 1 / span 2; position: relative; z-index: 1; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--white); border: 2px solid var(--gold); font-weight: 800; font-size: 1.25rem; color: var(--navy); transition: background-color 300ms var(--ease-out); }
.step.is-active .step__num { background: var(--gold); }
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s8); }
  .steps::before, .steps::after { left: 26px; right: 26px; top: 25px; bottom: auto; width: auto; height: 2px; }
  .steps::after { transform-origin: left; transform: scaleX(var(--p)); }
  .step { grid-template-columns: minmax(0, 1fr); }
  .step h3, .step p { grid-column: 1; }
  .step__num { grid-row: auto; }
  .step h3 { margin-top: var(--s5); }
}

/* ---------- Vías ---------- */
.paths { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
@media (min-width: 768px) { .paths { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s6); } }
.path { display: flex; flex-direction: column; padding: 32px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.path__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--gold-soft); color: var(--gold-deep); }
.path__icon .icon { width: 28px; height: 28px; }
.path h3 { margin-top: var(--s5); font-size: 1.5rem; font-weight: 800; }
.path__sub { margin-top: 4px; margin-bottom: var(--s5); }
.path .ticks { margin-bottom: var(--s8); }
.path .btn { margin-top: auto; }
.path--dark { background: var(--navy); border-color: var(--navy); color: var(--muted-navy); }
.path--dark h3 { color: var(--cream); }
.path--dark .path__icon { background: rgba(166, 149, 107, 0.15); color: var(--gold); }
.path--dark .ticks li { color: var(--cream); }
.ticks { display: grid; gap: var(--s3); }
.ticks li { display: flex; gap: var(--s3); align-items: flex-start; font-size: 1rem; line-height: 1.5; color: var(--navy); }
.ticks .icon { color: var(--gold); margin-top: 2px; }

/* ---------- FAQ ---------- */
@media (min-width: 1024px) {
  .faq-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s16); align-items: start; }
  .faq-layout .section__head { position: sticky; top: calc(var(--header-h) + 32px); }
}
.faq__cta { display: inline-flex; align-items: center; gap: var(--s2); margin-top: var(--s5); padding-block: 10px; font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--gold); }
.faq__cta .icon { transition: transform var(--t-micro) var(--ease-out); }
.faq__cta:hover .icon { transform: translateX(4px); }
.faq { display: grid; gap: var(--s3); }
.faq__item { border-radius: var(--radius-card); background: var(--cream); border: 1px solid var(--line); transition: background-color var(--t-micro) var(--ease-out); }
.faq__item[open] { background: var(--white); box-shadow: var(--shadow-lift); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 56px; padding: 18px 20px; font-weight: 700; color: var(--navy); font-size: 1.0625rem; line-height: 1.4; border-radius: var(--radius-card); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--gold-soft); transition: background-color var(--t-micro) var(--ease-out); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--navy); border-radius: 1px; transform: translate(-50%, -50%); transition: transform var(--t-micro) var(--ease-out); }
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__icon { background: var(--gold); }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__a { padding: 0 20px 20px; max-width: 65ch; }

/* ---------- Bandas navy ---------- */
.band { background: var(--navy); color: var(--cream); }
.band h2 { color: var(--cream); }
.band a:not(.btn) { color: var(--cream); }
.final { position: relative; isolation: isolate; overflow: hidden; padding-block: calc(var(--section-y) + 8px); }
.final__bg { position: absolute; inset: 0; z-index: -1; }
.final__bg picture, .final__bg img { width: 100%; height: 100%; }
.final__bg img { object-fit: cover; }
.final__bg::after { content: ""; position: absolute; inset: 0; background: rgba(26, 26, 46, 0.86); }
.final__inner { max-width: calc(760px + 2 * var(--gutter)); text-align: center; display: flex; flex-direction: column; align-items: center; }
.final__inner > p { margin-top: var(--s4); font-size: 1.125rem; color: rgba(245, 243, 239, 0.92); }
.final__inner > p strong { color: var(--gold); }
.final__ctas { margin-top: var(--s8); display: flex; flex-direction: column; align-items: center; gap: var(--s3); width: 100%; }
.final__ctas .btn { width: 100%; }
@media (min-width: 640px) { .final__ctas { flex-direction: row; justify-content: center; width: auto; gap: var(--s8); } .final__ctas .btn { width: auto; } }
.final__link { color: var(--gold) !important; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; padding: 10px 4px; }

.site-footer { padding-bottom: var(--s12); }
.site-footer > .container::before { content: ""; display: block; height: 1px; background: var(--line-light); }
.footer__notice { padding-top: var(--s8); font-size: 0.875rem; color: rgba(245, 243, 239, 0.85); max-width: 88ch; }
.footer__meta { margin-top: var(--s8); display: grid; gap: var(--s3); font-size: 0.8125rem; color: var(--muted-navy); }
.footer__meta a { color: var(--cream); text-decoration: none; }
.footer__meta a:hover { text-decoration: underline; }
.footer__links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s5); }
.footer__links a, .footer__links .link-btn { display: inline-flex; align-items: center; min-height: 44px; color: var(--cream); text-decoration: none; }
.footer__links .link-btn:hover { text-decoration: underline; }

/* ---------- Barra fija en celular ---------- */
.mobile-bar {
  position: fixed; inset: auto 0 0 0; z-index: 40; display: flex; align-items: center; gap: var(--s3);
  background: var(--navy); color: var(--cream); padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  transform: translateY(110%); visibility: hidden; transition: transform 260ms var(--ease-out), visibility 0s linear 260ms;
  box-shadow: 0 -12px 32px -16px rgba(26, 26, 46, 0.5);
}
.mobile-bar.is-visible { transform: none; visibility: visible; transition: transform 260ms var(--ease-out), visibility 0s; }
.mobile-bar__info { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.mobile-bar__info strong { color: var(--gold); font-size: 0.9375rem; font-weight: 800; }
.mobile-bar__info span { font-size: 0.8125rem; color: var(--muted-navy); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mobile-bar .btn { flex: 1; min-height: 50px; box-shadow: none; }
@media (min-width: 1024px) { .mobile-bar { display: none; } }

/* ---------- Cookies ---------- */
.cookies {
  position: fixed; z-index: 60; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  max-width: 520px; margin-inline: auto; background: var(--cream); color: var(--navy);
  border: 1px solid var(--line-strong); border-radius: var(--radius-card); box-shadow: 0 16px 40px -12px rgba(26, 26, 46, 0.35); padding: 18px;
}
@media (min-width: 1024px) { .cookies { left: auto; right: 32px; bottom: 32px; margin: 0; } }
.cookies__text { font-size: 0.9375rem; color: var(--navy); }
.cookies__actions { margin-top: var(--s4); display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); align-items: center; }
.cookies__actions .btn { min-height: 44px; padding: 10px 16px; box-shadow: none; }
.cookies__actions .link-btn { grid-column: 1 / -1; justify-self: start; min-height: 44px; color: var(--navy); font-size: 0.9375rem; }
@media (min-width: 640px) { .cookies__actions { grid-template-columns: 1fr 1fr auto; } .cookies__actions .link-btn { grid-column: auto; } }
.cookies__config { margin-top: var(--s3); padding-top: var(--s4); border-top: 1px solid var(--line-strong); display: grid; gap: var(--s3); }
.cookies__config .btn { justify-self: start; min-height: 44px; padding: 10px 16px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
@media (max-width: 419.98px) {
  .free { flex-direction: column; align-items: flex-start; gap: var(--s2); }
}

/* ---------- v4: pasos del checkout en la landing ---------- */
.checkout__steps { display: grid; gap: var(--s3); margin-bottom: var(--s6); }
.checkout__steps li { display: flex; align-items: center; gap: var(--s3); font-weight: 600; color: var(--navy); font-size: 0.9375rem; }
.checkout__steps span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--gold-soft); font-weight: 800; font-size: 0.875rem; flex: none; }
.checkout__alt { margin-top: var(--s4); text-align: center; font-size: 0.9375rem; }
.checkout__alt a { display: inline-block; padding-block: 10px; font-weight: 700; }

/* ---------- v4: páginas del embudo (/reservar/ y /gracias/) ---------- */
.promo--static { margin: 0; }
.header__wa { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 4px; font-weight: 700; font-size: 0.9375rem; color: var(--navy); text-decoration: none; }
.header__wa .icon { color: #1F8F4E; }
.header__wa:hover span { text-decoration: underline; }
.funnel { padding: calc(var(--header-h) + 32px) 0 var(--section-y); }
.funnel__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s8); align-items: start; }
@media (min-width: 1024px) { .funnel__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--s16); } .funnel { padding-top: calc(var(--header-h) + 56px); } }
.funnel__title { font-weight: 800; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; letter-spacing: -0.03em; }
.funnel__sub { margin-top: var(--s4); font-size: 1.125rem; max-width: 52ch; }
.funnel__offer { margin-top: var(--s6); padding: 20px; border-radius: var(--radius-lg); }
.funnel__offer .free { margin-top: 0; }
.funnel__ticks { margin-top: var(--s6); }
.mini-review { margin-top: var(--s8); padding: 20px; border-left: 3px solid var(--gold); background: var(--white); border-radius: 0 var(--radius-card) var(--radius-card) 0; }
.mini-review blockquote p { margin-top: var(--s2); color: var(--navy); font-weight: 500; }
.mini-review figcaption { margin-top: var(--s3); font-size: 0.875rem; }
.funnel__form { padding: 24px; border-radius: var(--radius-lg); box-shadow: var(--shadow-lift); }
@media (min-width: 640px) { .funnel__form { padding: 32px; } }
@media (min-width: 1024px) { .funnel__form { position: sticky; top: calc(var(--header-h) + 24px); } }
.funnel__form-title { font-size: 1.375rem; font-weight: 800; margin-bottom: var(--s5); }
@media (max-width: 1023.98px) {
  /* En celular el formulario va justo después del título */
  .funnel__grid { display: flex; flex-direction: column; }
  .funnel__intro { display: contents; }
  .funnel__intro > .eyebrow, .funnel__title, .funnel__sub { order: 0; }
  .funnel__form { order: 1; }
  .funnel__offer { order: 2; margin-top: 0; }
  .funnel__ticks { order: 3; margin-top: 0; }
  .mini-review { order: 4; margin-top: 0; }
  .funnel__intro > .eyebrow { align-self: flex-start; margin-bottom: 0; }
}
.icon--inline { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; margin-right: 6px; color: var(--gold-deep); }
.jotform iframe { display: block; width: 100%; }
.footer__notice--sm { font-size: 0.8125rem; }
body[data-page] { --bar-h: 0px; }

.thanks { max-width: calc(760px + 2 * var(--gutter)); text-align: center; display: flex; flex-direction: column; align-items: center; }
.thanks__check { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--gold); color: var(--navy); margin-bottom: var(--s6); box-shadow: 0 0 0 10px var(--gold-soft); }
.thanks__check .icon { width: 36px; height: 36px; }
@media (prefers-reduced-motion: no-preference) { .js .thanks__check { transform: scale(0.6); opacity: 0; } .js.is-loaded .thanks__check { transform: none; opacity: 1; transition: transform 500ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 300ms; } }
.thanks .funnel__sub { margin-inline: auto; }
.thanks__steps { margin-top: var(--s10); display: grid; gap: var(--s3); text-align: left; width: 100%; }
.thanks__steps li { display: flex; gap: var(--s4); align-items: flex-start; padding: 18px 20px; border-radius: var(--radius-card); background: var(--white); border: 1px solid var(--line); }
.thanks__steps li > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--gold-soft); font-weight: 800; flex: none; color: var(--navy); }
.thanks__steps strong { color: var(--navy); }
.thanks__steps p { font-size: 0.9375rem; }
.thanks__fast { margin-top: var(--s6); width: 100%; padding: 24px; border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: var(--s4); text-align: left; border: 2px solid var(--gold); }
.thanks__fast strong { color: var(--navy); font-size: 1.125rem; }
@media (min-width: 768px) { .thanks__fast { flex-direction: row; align-items: center; justify-content: space-between; } }
.thanks__actions { margin-top: var(--s8); display: flex; flex-direction: column; align-items: center; gap: var(--s3); width: 100%; }
.thanks__actions .btn { width: 100%; }
@media (min-width: 640px) { .thanks__actions .btn { width: auto; } }
.thanks__back { padding: 10px; font-weight: 600; }
@media (max-width: 419.98px) { .seg span { font-size: 0.875rem; padding: 6px; } .funnel__grid { gap: var(--s6); } }

/* ---------- v5: calendario de HighLevel en /reservar/ ---------- */
.funnel__cal { padding: 20px 12px; }
@media (min-width: 640px) { .funnel__cal { padding: 28px 20px; } }
.funnel__cal .funnel__form-title { padding-inline: 8px; }
.cal { position: relative; min-height: 640px; }
.cal iframe { display: block; width: 100%; min-height: 640px; border: 0; overflow: hidden; }
.cal__skeleton { position: absolute; inset: 0; display: grid; align-content: start; gap: 12px; padding: 8px; transition: opacity 300ms var(--ease-out); }
.cal__skeleton span { display: block; height: 120px; border-radius: 12px; background: linear-gradient(90deg, #EFECE6 0%, #F7F5F1 50%, #EFECE6 100%); background-size: 200% 100%; }
.cal__skeleton span:nth-child(2) { height: 260px; }
.cal__skeleton span:nth-child(3) { height: 80px; }
@media (prefers-reduced-motion: no-preference) { .cal__skeleton span { animation: shimmer 1.4s ease-in-out infinite; } }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.cal__skeleton.is-gone { opacity: 0; pointer-events: none; }
.cal__help { margin-top: var(--s4); }
.cal__help a { font-weight: 700; display: inline-block; padding-block: 8px; }
@media (max-width: 767.98px) { .promo__text::after { content: " ·"; } }
.free__big { white-space: nowrap; }
