/* ============================================================================
   CESAR ANTUNES · Design System "Synthetic Nexus"
   Fuente: brand/design_system_cesar_antunes/synthetic_nexus/DESIGN.md
   HTML/CSS/JS puro — sin frameworks, sin build. Listo para Hostinger.
   ============================================================================ */

/* ---------------------------------------------------------------- TOKENS -- */
:root {
  /* Superficies */
  --surface:              #0b1326;
  --surface-lowest:       #060e20;
  --surface-low:          #131b2e;
  --surface-container:    #171f33;
  --surface-high:         #222a3d;
  --surface-highest:      #2d3449;
  --surface-bright:       #31394d;

  /* Texto */
  --on-surface:           #dae2fd;
  --on-surface-variant:   #a9b2cc;
  --on-surface-muted:     #7c86a3;

  /* Acentos */
  --primary:              #fbabff;
  --primary-container:    #e14ef6;
  --on-primary:           #380042;
  --secondary:            #c0c1ff;
  --secondary-container:  #3131c0;
  --on-secondary:         #1000a9;
  --tertiary:             #4cd7f6;
  --tertiary-container:   #009eb9;
  --on-tertiary:          #003640;
  --error:                #ffb4ab;

  /* Bordes */
  --outline:              #9f8b9d;
  --outline-variant:      rgba(255,255,255,.09);
  --border:               1px solid var(--outline-variant);
  --border-strong:        1px solid rgba(255,255,255,.16);

  /* Tipografía */
  --font-display: "Space Grotesk", "Geist", system-ui, -apple-system, sans-serif;
  --font-body:    "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Radios */
  --r-sm: .25rem;
  --r:    .5rem;
  --r-md: .75rem;
  --r-lg: 1rem;
  --r-xl: 1.5rem;
  --r-full: 9999px;

  /* Espaciado */
  --s-xxs: .25rem;
  --s-xs:  .5rem;
  --s-sm:  .75rem;
  --s-md:  1rem;
  --s-lg:  1.5rem;
  --s-xl:  2rem;
  --s-2xl: 3rem;
  --s-3xl: 4rem;
  --s-4xl: 6rem;

  --container: 1200px;
  --gutter: 1.25rem;
  --header-h: 72px;
}

@media (min-width: 1024px) {
  :root { --gutter: 1.5rem; --header-h: 80px; }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--on-surface);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: var(--primary); color: var(--on-primary); }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0;
  color: var(--on-surface);
}

p  { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

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

/* --------------------------------------------------------------- LAYOUT -- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 900px; }

.section       { padding-block: clamp(3rem, 7vw, 6rem); position: relative; }
.section--tight{ padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--lowest { background: var(--surface-lowest); }
.section--low    { background: var(--surface-low); }
.section--edge   { border-block: var(--border); }

.grid { display: grid; gap: var(--s-lg); }
@media (min-width: 700px)  { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 700px)  { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 700px)  { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.stack { display: flex; flex-direction: column; }
.gap-xs { gap: var(--s-xs); }  .gap-sm { gap: var(--s-sm); }
.gap-md { gap: var(--s-md); }  .gap-lg { gap: var(--s-lg); }
.gap-xl { gap: var(--s-xl); }

/* ------------------------------------------------------------ TIPOGRAFÍA -- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--primary);
}
.eyebrow--cyan   { color: var(--tertiary); }
.eyebrow--indigo { color: var(--secondary); }

.h-hero {
  font-size: clamp(2.15rem, 5.4vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -.03em;
}
.h-1 { font-size: clamp(1.85rem, 4vw, 2.5rem); }
.h-2 { font-size: clamp(1.5rem, 3vw, 1.95rem); font-weight: 600; }
.h-3 { font-size: 1.2rem; font-weight: 600; line-height: 1.35; }

.lead   { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--on-surface-variant); line-height: 1.65; }
.muted  { color: var(--on-surface-variant); }
.small  { font-size: .875rem; color: var(--on-surface-variant); line-height: 1.6; }
.xsmall { font-size: .8rem; color: var(--on-surface-muted); }
.mono   { font-family: var(--font-mono); }

.grad-text {
  background: linear-gradient(100deg, var(--primary), #ffd6fd 45%, var(--tertiary));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.section-head { max-width: 640px; margin-inline: auto; text-align: center; display: flex; flex-direction: column; gap: var(--s-xs); margin-bottom: var(--s-2xl); }
.section-head--left { margin-inline: 0; text-align: left; }

/* ---------------------------------------------------------------- GLOWS -- */
.glow { position: absolute; border-radius: 50%; filter: blur(110px); pointer-events: none; z-index: 0; }
.glow--magenta { background: rgba(225,78,246,.16); }
.glow--cyan    { background: rgba(76,215,246,.12); }
.glow--indigo  { background: rgba(49,49,192,.18); }

/* --------------------------------------------------------------- BOTONES -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: .95rem; font-weight: 600;
  cursor: pointer;
  transition: all .18s ease;
  text-align: center;
  line-height: 1.2;
}
.btn .ico { width: 18px; height: 18px; flex: none; }

.btn--primary {
  background: linear-gradient(100deg, var(--primary-container), #a72fd8 60%, var(--secondary-container));
  color: #fff;
  box-shadow: 0 8px 28px -10px rgba(225,78,246,.55);
}
.btn--primary:hover { filter: brightness(1.12); transform: translateY(-1px); box-shadow: 0 12px 32px -10px rgba(225,78,246,.7); }

.btn--ghost {
  background: var(--surface-high);
  border-color: var(--outline-variant);
  color: var(--on-surface);
}
.btn--ghost:hover { background: var(--surface-highest); border-color: rgba(225,78,246,.4); }

.btn--outline { background: transparent; border-color: rgba(255,255,255,.18); color: var(--on-surface); }
.btn--outline:hover { border-color: var(--tertiary); background: rgba(76,215,246,.07); }

.btn--wa { background: #25D366; color: #06301a; }
.btn--wa:hover { filter: brightness(1.08); }

.btn--lg { padding: 1.05rem 2rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-sm); }
@media (max-width: 520px) { .btn-row .btn { width: 100%; } }

/* ---------------------------------------------------------------- PILLS -- */
.pill {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .35rem .8rem;
  border-radius: var(--r-full);
  background: var(--surface-high);
  border: 1px solid var(--outline-variant);
  font-family: var(--font-mono);
  font-size: .74rem; font-weight: 500;
  color: var(--on-surface-variant);
  letter-spacing: .02em;
}
.pill--magenta { color: var(--primary);   border-color: rgba(251,171,255,.28); background: rgba(225,78,246,.09); }
.pill--cyan    { color: var(--tertiary);  border-color: rgba(76,215,246,.28);  background: rgba(76,215,246,.09); }
.pill--indigo  { color: var(--secondary); border-color: rgba(192,193,255,.28); background: rgba(49,49,192,.14); }

.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.dot--pulse { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.8); } }

/* ---------------------------------------------------------------- CARDS -- */
.card {
  background: var(--surface-low);
  border: var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-xl);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  position: relative;
}
.card--pad-lg { padding: clamp(1.5rem, 3vw, 2.5rem); }
.card:hover { border-color: rgba(225,78,246,.35); }
.card--cyan:hover { border-color: rgba(76,215,246,.4); }
.card--flat:hover { border-color: var(--outline-variant); }

.card-topline { position: absolute; top: 0; left: 1.75rem; right: 1.75rem; height: 2px; border-radius: var(--r-full); }
.card-topline--magenta { background: linear-gradient(90deg, var(--primary), var(--primary-container)); }
.card-topline--cyan    { background: linear-gradient(90deg, var(--tertiary), var(--secondary)); }

.icon-box {
  width: 48px; height: 48px; flex: none;
  border-radius: var(--r-md);
  display: grid; place-items: center;
  background: rgba(225,78,246,.12);
  color: var(--primary);
}
.icon-box svg { width: 24px; height: 24px; }
.icon-box--cyan   { background: rgba(76,215,246,.12); color: var(--tertiary); }
.icon-box--indigo { background: rgba(49,49,192,.2);   color: var(--secondary); }
.icon-box--sm { width: 40px; height: 40px; }
.icon-box--sm svg { width: 20px; height: 20px; }

/* -------------------------------------------------------------- CHECKS ---- */
.checklist { display: flex; flex-direction: column; gap: .7rem; }
.checklist li { display: flex; gap: .65rem; align-items: flex-start; font-size: .9rem; line-height: 1.5; }
.checklist svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--primary); }
.checklist--cyan svg { color: var(--tertiary); }
.checklist strong { color: var(--on-surface); font-weight: 600; }

.dotlist { display: flex; flex-direction: column; gap: .5rem; font-size: .85rem; color: var(--on-surface-variant); }
.dotlist li::before { content: "▪"; color: var(--tertiary); margin-right: .5rem; }

/* --------------------------------------------------------------- HEADER -- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: rgba(11,19,38,.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: var(--border);
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-md); }

.logo { display: flex; align-items: center; gap: .6rem; flex: none; }
.logo__mark { width: 34px; height: 34px; flex: none; }
.logo__txt  { display: flex; flex-direction: column; line-height: 1.1; }
.logo__name { font-family: var(--font-display); font-weight: 700; font-size: .98rem; letter-spacing: -.02em; }
.logo__tag  { font-family: var(--font-mono); font-size: .62rem; color: var(--tertiary); letter-spacing: .08em; text-transform: uppercase; }

.nav { display: none; align-items: center; gap: .2rem; }
@media (min-width: 980px) { .nav { display: flex; } }
.nav a {
  padding: .5rem .85rem; border-radius: var(--r);
  font-size: .9rem; color: var(--on-surface-variant);
  transition: all .15s ease;
}
.nav a:hover { color: var(--on-surface); background: var(--surface-container); }
.nav a.is-active { color: var(--on-surface); background: var(--surface-high); }

.header__cta { display: none; }
@media (min-width: 720px) { .header__cta { display: inline-flex; } }
.header__cta.btn { padding: .6rem 1.05rem; font-size: .82rem; }

.burger {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  background: var(--surface-container); border: var(--border); border-radius: var(--r);
  color: var(--on-surface); cursor: pointer; flex: none;
}
@media (min-width: 980px) { .burger { display: none; } }
.burger svg { width: 20px; height: 20px; }

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 auto 0; z-index: 99;
  background: rgba(6,14,32,.98);
  backdrop-filter: blur(20px);
  border-bottom: var(--border);
  padding: var(--s-md) var(--gutter) var(--s-xl);
  display: flex; flex-direction: column; gap: .25rem;
  transform: translateY(-12px); opacity: 0; visibility: hidden;
  transition: all .2s ease;
  max-height: calc(100vh - var(--header-h)); overflow-y: auto;
}
.mobile-nav.is-open { transform: none; opacity: 1; visibility: visible; }
.mobile-nav a {
  padding: .85rem .5rem; border-bottom: var(--border);
  font-size: 1rem; color: var(--on-surface-variant);
}
.mobile-nav a:last-of-type { border-bottom: 0; }
.mobile-nav a.is-active { color: var(--primary); }
.mobile-nav .btn { margin-top: var(--s-md); }

/* ---------------------------------------------------------------- HERO --- */
.hero { position: relative; overflow: hidden; padding-top: calc(var(--header-h) + clamp(2rem, 5vw, 3.5rem)); padding-bottom: clamp(3rem, 6vw, 5rem); }
.hero__grid { display: grid; gap: var(--s-2xl); align-items: center; position: relative; z-index: 1; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1.15fr .85fr; gap: var(--s-3xl); } }
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-lg); }

.hero__figure { position: relative; }
.hero__figure img { width: 100%; }
.hero__figure--cutout { display: grid; place-items: center; }
.hero__figure--cutout::before {
  content: ""; position: absolute; inset: 8% 6% 4%;
  background: radial-gradient(ellipse at 50% 45%, rgba(225,78,246,.32), rgba(49,49,192,.18) 45%, transparent 70%);
  filter: blur(38px);
}
.hero__figure--cutout img { position: relative; filter: drop-shadow(0 24px 48px rgba(0,0,0,.55)); }

/* El PNG viene recortado al contorno de la figura, sin margen transparente. A ancho
   completo quedaría desproporcionado, así que se acota al 66% de la columna — la
   proporción que ocupaba la figura dentro del archivo viejo. */
.hero__figure--cutout img { width: 66%; }

.portrait { position: relative; border-radius: var(--r-xl); overflow: hidden; border: var(--border); background: var(--surface-low); }
.portrait img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.portrait--tall img { aspect-ratio: 3/4; object-position: center top; }
.portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11,19,38,.9), transparent 55%); }
/* Foto con fondo celeste: el velo baja sólo lo justo para que se lea la chapa. */
.portrait--tall::after { background: linear-gradient(to top, rgba(11,19,38,.82), rgba(11,19,38,.35) 18%, transparent 34%); }
.portrait__badge {
  position: absolute; z-index: 2; left: 1rem; right: 1rem; bottom: 1rem;
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem; border-radius: var(--r-md);
  background: rgba(34,42,61,.92); backdrop-filter: blur(10px);
  border: var(--border-strong);
}

/* ------------------------------------------------------------- MÉTRICAS -- */
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-md); width: 100%; }
.metric { padding: var(--s-md); border-radius: var(--r-md); background: var(--surface-container); border: var(--border); }
.metric__n { font-family: var(--font-display); font-size: clamp(1.35rem,3.2vw,1.75rem); font-weight: 700; color: var(--primary); line-height: 1.1; }
.metric--cyan   .metric__n { color: var(--tertiary); }
.metric--indigo .metric__n { color: var(--secondary); }
.metric__l { font-size: .78rem; color: var(--on-surface); font-weight: 600; margin-top: .2rem; }
.metric__d { font-size: .72rem; color: var(--on-surface-muted); }

/* ------------------------------------------------------------- TIMELINE -- */
.timeline { display: grid; gap: var(--s-lg); }
@media (min-width: 700px)  { .timeline { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .timeline { grid-template-columns: repeat(4, 1fr); } }
.tl-step { position: relative; padding-top: var(--s-lg); }
.tl-step__bar { height: 3px; border-radius: var(--r-full); background: var(--surface-highest); margin-bottom: var(--s-md); overflow: hidden; }
.tl-step__bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--primary-container), var(--tertiary)); }
.tl-step__n {
  width: 34px; height: 34px; border-radius: var(--r-full);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: .85rem; font-weight: 600;
  background: var(--surface-high); color: var(--primary); border: 1px solid rgba(251,171,255,.3);
  margin-bottom: var(--s-sm);
}
.tl-step__when { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--tertiary); margin-bottom: .35rem; }
.tl-step__out { margin-top: var(--s-md); padding-top: var(--s-sm); border-top: var(--border); display: flex; align-items: center; gap: .45rem; font-size: .82rem; color: var(--on-surface); }
.tl-step__out svg { width: 16px; height: 16px; color: var(--tertiary); flex: none; }

/* ---------------------------------------------------------------- PASOS -- */
.step { text-align: center; display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: var(--s-xl) var(--s-lg); }
.step__n {
  width: 42px; height: 42px; border-radius: var(--r-full); display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  background: var(--primary); color: var(--on-primary);
}
.step--2 .step__n { background: var(--tertiary); color: var(--on-tertiary); }
.step--3 .step__n { background: var(--secondary); color: var(--on-secondary); }

/* ------------------------------------------------------------------ FAQ -- */
.faq { display: flex; flex-direction: column; gap: var(--s-sm); }
.faq details {
  background: var(--surface-low); border: var(--border); border-radius: var(--r-md);
  overflow: hidden; transition: border-color .2s ease;
}
.faq details[open] { border-color: rgba(225,78,246,.3); }
.faq summary {
  display: flex; align-items: center; gap: .75rem;
  padding: 1.1rem 1.25rem; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--on-surface);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; margin-left: auto; flex: none;
  width: 10px; height: 10px; border-right: 2px solid var(--on-surface-muted); border-bottom: 2px solid var(--on-surface-muted);
  transform: rotate(45deg); transition: transform .2s ease; margin-top: -4px;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 2px; }
.faq summary svg { width: 20px; height: 20px; color: var(--tertiary); flex: none; }
.faq__body { padding: 0 1.25rem 1.25rem 3.5rem; color: var(--on-surface-variant); font-size: .92rem; line-height: 1.65; }
.faq__body a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 560px) { .faq__body { padding-left: 1.25rem; } }

/* ------------------------------------------------------------- CTA FINAL -- */
.cta-box {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl);
  background: linear-gradient(160deg, var(--surface-container), var(--surface-low));
  border: var(--border);
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: var(--s-md);
  box-shadow: 0 24px 60px -30px rgba(0,0,0,.9);
}
.cta-box > *:not(.glow) { position: relative; z-index: 1; }

/* ------------------------------------------------------------- PRECIOS --- */
.pricing-toggle {
  display: inline-flex; padding: .3rem; gap: .25rem;
  background: var(--surface-container); border: var(--border); border-radius: var(--r-full);
  margin-inline: auto;
}
.pricing-toggle button {
  padding: .55rem 1.15rem; border: 0; border-radius: var(--r-full);
  background: transparent; color: var(--on-surface-variant);
  font-family: var(--font-body); font-size: .85rem; font-weight: 600; cursor: pointer;
  transition: all .18s ease;
}
.pricing-toggle button.is-active { background: var(--surface-highest); color: var(--on-surface); }

.price-card {
  position: relative; overflow: hidden;
  max-width: 560px; margin-inline: auto;
  background: linear-gradient(165deg, var(--surface-container), var(--surface-lowest));
  border: 1px solid rgba(225,78,246,.28);
  border-radius: var(--r-xl);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: 0 0 60px -25px rgba(225,78,246,.5);
}
.price-card__glow { position: absolute; top: -60px; right: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(225,78,246,.22); filter: blur(70px); pointer-events: none; }
.price-card > *:not(.price-card__glow) { position: relative; z-index: 1; }

.price-old { font-size: 1.05rem; color: var(--on-surface-muted); text-decoration: line-through; text-decoration-color: rgba(255,180,171,.7); }
.price-now { font-family: var(--font-display); font-size: clamp(2.4rem, 7vw, 3.4rem); font-weight: 700; line-height: 1; letter-spacing: -.03em; }
.price-now small { font-size: .42em; font-weight: 600; color: var(--on-surface-variant); letter-spacing: 0; }
.price-cuotas {
  display: flex; align-items: center; gap: .6rem;
  padding: .85rem 1rem; border-radius: var(--r-md);
  background: rgba(76,215,246,.08); border: 1px solid rgba(76,215,246,.25);
  font-size: .95rem;
}
.price-cuotas b { color: var(--tertiary); font-family: var(--font-display); }

.countdown { display: flex; gap: .5rem; justify-content: center; }
.countdown div {
  min-width: 62px; padding: .5rem .35rem; border-radius: var(--r);
  background: var(--surface-high); border: var(--border); text-align: center;
}
.countdown b { display: block; font-family: var(--font-display); font-size: 1.3rem; color: var(--primary); line-height: 1.1; }
.countdown span { font-family: var(--font-mono); font-size: .62rem; text-transform: uppercase; letter-spacing: .1em; color: var(--on-surface-muted); }

/* --------------------------------------------------------------- FORMS --- */
.form-grid { display: grid; gap: var(--s-lg); }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }

.field { display: flex; flex-direction: column; gap: .45rem; }
.field > label, .fieldset__legend {
  font-size: .9rem; font-weight: 600; color: var(--on-surface);
  display: flex; align-items: baseline; gap: .35rem;
}
.req { color: var(--primary); }
.hint { font-size: .78rem; color: var(--on-surface-muted); line-height: 1.45; }

.input, .select, .textarea {
  width: 100%;
  padding: .8rem .95rem;
  background: var(--surface-lowest);
  border: 1px solid rgba(255,255,255,.11);
  border-radius: var(--r);
  color: var(--on-surface);
  font-family: var(--font-body); font-size: .95rem;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
.input::placeholder, .textarea::placeholder { color: #4d5875; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--primary-container);
  box-shadow: 0 0 0 3px rgba(225,78,246,.15);
}
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c86a3' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .7rem center; background-size: 16px;
  padding-right: 2.2rem;
  cursor: pointer;
}
.select option { background: var(--surface-container); color: var(--on-surface); }

.phone-row { display: grid; grid-template-columns: minmax(118px, 150px) 1fr; gap: .5rem; }

.fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.opt {
  display: flex; align-items: flex-start; gap: .7rem;
  padding: .85rem 1rem;
  background: var(--surface-lowest);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--r);
  cursor: pointer;
  transition: all .16s ease;
  font-size: .92rem; line-height: 1.45;
}
.opt:hover { border-color: rgba(255,255,255,.22); background: var(--surface-container); }
.opt input { accent-color: var(--primary-container); margin-top: .18rem; flex: none; width: 17px; height: 17px; cursor: pointer; }
.opt:has(input:checked) { border-color: var(--primary-container); background: rgba(225,78,246,.09); }
.opt__title { font-weight: 600; color: var(--on-surface); }
.opt__sub { display: block; font-size: .82rem; color: var(--on-surface-muted); margin-top: .1rem; }

.field.has-error .input, .field.has-error .textarea, .field.has-error .select { border-color: var(--error); }
.err { display: none; font-size: .8rem; color: var(--error); }
.field.has-error .err, .fieldset-wrap.has-error .err { display: block; }

/* Código de descuento (/pago/) */
.cupon-row { display: flex; gap: .5rem; }
.cupon-row .input { flex: 1; min-width: 0; font-family: var(--font-mono); letter-spacing: .04em; text-transform: uppercase; }
.cupon-row .input::placeholder { font-family: var(--font-body); letter-spacing: 0; text-transform: none; }
.cupon-row .btn { flex: none; white-space: nowrap; }
@media (max-width: 340px) { .cupon-row { flex-direction: column; } }
.field.cupon-ok .input { border-color: rgba(76,215,246,.55); }
.cupon-msg { display: flex; gap: .45rem; align-items: flex-start; font-size: .84rem; line-height: 1.45; }
.cupon-msg svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.cupon-msg--ok    { color: var(--tertiary); }
.cupon-msg--error { color: var(--error); }
.cupon-msg__extra { display: block; margin-top: .2rem; color: var(--on-surface-variant); }
.cupon-msg__extra:empty { display: none; }
.cupon-linea { display: flex; align-items: center; gap: .5rem; margin-top: .7rem; font-size: .88rem; color: var(--tertiary); }
.cupon-linea svg { width: 16px; height: 16px; flex: none; }
.cupon-linea b { font-family: var(--font-mono); font-weight: 500; letter-spacing: .04em; }
.cupon-monto { white-space: nowrap; }

/* ------------------------------------------------ PAGO EN DÓLARES (Hotmart) */
/* <dialog> nativo: queda por encima de todo (encabezado, botón de WhatsApp)
   sin pelear con z-index. En el celular ocupa la pantalla entera. */
html.modal-abierto { overflow: hidden; }
.hm-modal {
  padding: 0; margin: auto;
  width: min(760px, calc(100% - 2rem)); height: min(92vh, 1100px);
  max-width: none; max-height: none;
  border: var(--border-strong); border-radius: var(--r-lg);
  background: var(--surface-low); color: var(--on-surface);
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.7);
}
.hm-modal[open] { display: flex; flex-direction: column; }
.hm-modal::backdrop { background: rgba(3,6,14,.78); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }

.hm-modal__head {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .85rem .85rem .85rem 1.25rem; border-bottom: var(--border);
}
.hm-modal__titulo { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; line-height: 1.2; }
.hm-modal__sub { display: flex; align-items: center; gap: .4rem; margin-top: .2rem; font-size: .8rem; color: var(--on-surface-variant); }
.hm-modal__sub svg { width: 14px; height: 14px; flex: none; color: var(--tertiary); }
.hm-modal__cerrar {
  flex: none; width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: var(--r-md); border: var(--border); background: var(--surface-container);
  color: var(--on-surface); cursor: pointer; transition: background .2s ease, border-color .2s ease;
}
.hm-modal__cerrar:hover { background: var(--surface-highest); border-color: rgba(225,78,246,.4); }
.hm-modal__cerrar:focus-visible { outline: 2px solid var(--tertiary); outline-offset: 2px; }
.hm-modal__cerrar svg { width: 20px; height: 20px; }

/* El checkout de Hotmart es blanco: el fondo pasa a blanco recién cuando cargó. */
.hm-modal__cuerpo {
  flex: 1; min-height: 0; position: relative;
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  background: var(--surface-low); transition: background .25s ease;
}
.hm-modal__cuerpo.is-listo { background: #fff; }
.hm-modal__checkout iframe { display: block; width: 100% !important; min-width: 0 !important; }

/* "Cargando" y "no cargó" tapan el checkout, que mientras tanto carga debajo. */
.hm-modal__estado {
  position: absolute; inset: 0; z-index: 1; padding: 2.5rem 1.5rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem;
  text-align: center; background: var(--surface-low);
}
.hm-spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.12); border-top-color: var(--primary);
  animation: hm-gira .8s linear infinite;
}
@keyframes hm-gira { to { transform: rotate(360deg); } }

.hm-modal__pie {
  flex: none; padding: .7rem 1.25rem; border-top: var(--border);
  font-size: .82rem; color: var(--on-surface-variant); text-align: center;
}
.hm-modal__pie a, .hm-modal__estado a:not(.btn) { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 640px) {
  .hm-modal {
    width: 100%; height: 100%; height: 100dvh;
    border: 0; border-radius: 0;
  }
}

/* Honeypot antispam */
.hp { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; width: 0; }

/* --------------------------------------------------------------- STEPS ---- */
.step-head { display: flex; align-items: center; gap: .85rem; margin-bottom: var(--s-lg); }
.step-head__n {
  width: 40px; height: 40px; flex: none; border-radius: var(--r-md);
  display: grid; place-items: center;
  background: rgba(225,78,246,.14); color: var(--primary);
  font-family: var(--font-display); font-weight: 700;
}
.step-head--cyan .step-head__n { background: rgba(76,215,246,.14); color: var(--tertiary); }

.locked { opacity: .45; filter: grayscale(.35); pointer-events: none; transition: all .3s ease; }
.locked-note {
  display: flex; align-items: center; gap: .6rem;
  padding: .9rem 1.1rem; border-radius: var(--r);
  background: var(--surface-lowest); border: 1px dashed rgba(255,255,255,.16);
  font-size: .88rem; color: var(--on-surface-muted);
}
.locked-note svg { width: 18px; height: 18px; flex: none; }

/* Iframe del calendario de Google (fondo claro para que se lea) */
.calendar-wrap {
  background: #ffffff;
  border-radius: var(--r-md);
  overflow: hidden;
  border: var(--border);
}
.calendar-wrap iframe { width: 100%; height: 640px; border: 0; display: block; }
@media (max-width: 640px) { .calendar-wrap iframe { height: 760px; } }

.alert {
  display: flex; gap: .7rem; align-items: flex-start;
  padding: 1rem 1.15rem; border-radius: var(--r-md);
  font-size: .9rem; line-height: 1.55;
}
.alert svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.alert--ok   { background: rgba(76,215,246,.09); border: 1px solid rgba(76,215,246,.3); color: var(--on-surface); }
.alert--warn { background: rgba(255,180,171,.08); border: 1px solid rgba(255,180,171,.3); color: var(--on-surface); }

/* --------------------------------------------------------- WHATSAPP FAB -- */
.wa-fab {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 90;
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .8rem 1.1rem;
  background: #25D366; color: #06301a;
  border-radius: var(--r-full);
  font-weight: 700; font-size: .88rem;
  box-shadow: 0 12px 30px -8px rgba(0,0,0,.6);
  transition: transform .18s ease, filter .18s ease;
  max-width: calc(100vw - 2rem);
}
.wa-fab:hover { transform: translateY(-2px); filter: brightness(1.06); }
.wa-fab svg { width: 22px; height: 22px; flex: none; }
.wa-fab span { display: none; }
@media (min-width: 560px) { .wa-fab span { display: inline; } .wa-fab { right: 1.5rem; bottom: 1.5rem; } }

/* Banda de WhatsApp dentro del contenido */
.wa-band {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-md);
  padding: var(--s-lg);
  border-radius: var(--r-lg);
  background: linear-gradient(100deg, rgba(37,211,102,.1), rgba(76,215,246,.06));
  border: 1px solid rgba(37,211,102,.28);
}
.wa-band__icon { width: 46px; height: 46px; border-radius: var(--r-md); display: grid; place-items: center; background: rgba(37,211,102,.16); color: #25D366; flex: none; }
.wa-band__icon svg { width: 24px; height: 24px; }
.wa-band__txt { flex: 1 1 240px; }
.wa-band .btn { flex: none; }

/* --------------------------------------------------------------- FOOTER -- */
.footer { background: var(--surface-lowest); border-top: var(--border); padding-block: var(--s-2xl) var(--s-xl); }
.footer__top { display: grid; gap: var(--s-xl); }
@media (min-width: 860px) { .footer__top { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer__col { display: flex; flex-direction: column; gap: .6rem; }
.footer__title { font-family: var(--font-mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .13em; color: var(--on-surface); margin-bottom: .2rem; }
.footer__col a { font-size: .89rem; color: var(--on-surface-variant); transition: color .15s ease; }
.footer__col a:hover { color: var(--primary); }
.footer__bottom {
  margin-top: var(--s-xl); padding-top: var(--s-md); border-top: var(--border);
  display: flex; flex-wrap: wrap; gap: .5rem var(--s-md); justify-content: space-between; align-items: center;
}

/* ------------------------------------------------------------ UTILIDADES -- */
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .dot--pulse { animation: none; }
}

/* ------------------------------------------------------------- CURRÍCULA -- */
.curr { display: flex; flex-direction: column; gap: var(--s-sm); }

.curr details {
  background: var(--surface-low);
  border: var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color .2s ease, background-color .2s ease;
}
.curr details:hover { border-color: rgba(192,193,255,.3); }
.curr details[open] { border-color: rgba(225,78,246,.32); background: var(--surface-container); }

.curr summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: var(--s-md);
  padding: 1.15rem 1.35rem;
  cursor: pointer;
  list-style: none;
}
.curr summary::-webkit-details-marker { display: none; }
.curr summary:focus-visible { outline: 2px solid var(--tertiary); outline-offset: -2px; border-radius: var(--r-lg); }

.curr summary::after {
  content: ""; flex: none;
  width: 10px; height: 10px;
  border-right: 2px solid var(--on-surface-muted);
  border-bottom: 2px solid var(--on-surface-muted);
  transform: rotate(45deg); align-self: center; margin-top: -4px;
  transition: transform .2s ease, border-color .2s ease;
}
.curr details[open] summary::after { transform: rotate(-135deg); margin-top: 3px; border-color: var(--primary); }

.curr__n {
  font-family: var(--font-mono);
  font-size: 1.6rem; font-weight: 600; line-height: 1;
  color: var(--secondary);
  letter-spacing: -.02em;
  text-align: center;
  width: 2.8rem;
}
.curr__n span {
  display: block;
  font-size: .55rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--on-surface-muted);
  margin-bottom: .35rem;
}
.curr details[open] .curr__n { color: var(--primary); }

.curr__ttl { display: block; font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; line-height: 1.3; color: var(--on-surface); }
.curr__obj { display: block; max-width: 78ch; font-size: .845rem; line-height: 1.55; color: var(--on-surface-muted); margin-top: .3rem; }

.curr__body { padding: 0 1.35rem 1.35rem; }
.curr__body > div { border-top: var(--border); padding-top: var(--s-md); }
@media (min-width: 700px) { .curr__body { padding-left: calc(1.35rem + 2.8rem + var(--s-md)); } }

.curr__label {
  display: block;
  font-family: var(--font-mono); font-size: .68rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--tertiary);
  margin-bottom: .7rem;
}

.curr__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.curr__list li { position: relative; padding-left: 1.15rem; font-size: .9rem; line-height: 1.6; color: var(--on-surface-variant); }
.curr__list li::before {
  content: ""; position: absolute; left: 0; top: .6em;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--primary-container);
}
.curr__list strong { color: var(--on-surface); font-weight: 600; }

.curr__tools { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: var(--s-md); }
.curr__tools .pill { font-size: .68rem; padding: .28rem .65rem; }

.curr__out {
  display: flex; align-items: flex-start; gap: .6rem;
  margin-top: var(--s-md);
  padding: .85rem 1rem;
  border-radius: var(--r);
  background: rgba(76,215,246,.06);
  border: 1px solid rgba(76,215,246,.2);
  font-size: .875rem; line-height: 1.55; color: var(--on-surface);
}
.curr__out svg { width: 17px; height: 17px; color: var(--tertiary); flex: none; margin-top: .18rem; }
.curr__out b { color: var(--tertiary); font-weight: 600; }

@media (max-width: 560px) {
  .curr summary { padding: 1rem 1.05rem; gap: .75rem; }
  .curr__body { padding: 0 1.05rem 1.05rem; }
  .curr__n { font-size: 1.35rem; }
  .curr__ttl { font-size: .98rem; }
}
