/* =========================================================
   styles.css — SpaceFiber
   Hoja única del sitio, escrita mobile-first: las reglas base
   son las del celular y los @media (min-width) agregan el
   diseño de tablet (desde 721 px) y de escritorio (desde 961 px).

   1. Tokens de diseño         6. Scrum: backlog y tablero
   2. Reset y tipografía       7. Estructura de página
   3. Utilidades y accesibil.  8. Responsive: tablet y escritorio
   4. Componentes              9. Movimiento reducido e impresión
   5. Formulario
   ========================================================= */

/* =========================================================
   1. TOKENS DE DISEÑO
   ========================================================= */
:root{
  /* color: tema oscuro (por defecto) */
  --bg:            #0a0e16;
  --bg-soft:       #0f1522;
  --surface:       #121a2a;
  --surface-2:     #18233a;
  --line:          #22304a;
  --line-soft:     #1a2436;
  --text:          #e9eefb;
  --muted:         #97a6c1;
  --muted-2:       #6d7c98;

  --brand:         #38bdf8;
  --brand-2:       #6366f1;
  --brand-ink:     #ffffff;
  --ok:            #34d399;
  --warn:          #fbbf24;
  --danger:        #f87171;

  --grad: linear-gradient(135deg, var(--brand), var(--brand-2));

  /* espaciado (escala de 4) */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;

  /* radios y sombras */
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 22px; --r-full: 999px;
  --shadow-sm: 0 2px 10px rgba(0,0,0,.25);
  --shadow-md: 0 12px 34px rgba(0,0,0,.38);

  /* tipografía */
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, "Courier New", monospace;

  /* movimiento */
  --t-fast: .16s ease;
  --t-med:  .28s cubic-bezier(.22,.7,.3,1);

  --nav-h: 66px;
}

:root[data-theme="light"]{
  --bg:        #f6f8fc;
  --bg-soft:   #eef2f9;
  --surface:   #ffffff;
  --surface-2: #f2f5fb;
  --line:      #dae3f0;
  --line-soft: #e8edf6;
  --text:      #0f1826;
  --muted:     #566885;
  --muted-2:   #8291aa;

  --brand:     #0284c7;
  --brand-2:   #4f46e5;
  --ok:        #059669;
  --warn:      #b45309;
  --danger:    #dc2626;

  --shadow-sm: 0 2px 10px rgba(22,44,80,.07);
  --shadow-md: 0 14px 34px rgba(22,44,80,.12);
}

/* =========================================================
   2. RESET Y TIPOGRAFÍA
   ========================================================= */
*, *::before, *::after{ box-sizing: border-box; }

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

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg{ max-width: 100%; display: block; }
a{ color: inherit; }
button, input, select, textarea{ font: inherit; color: inherit; }
ul, ol{ margin: 0; padding: 0; }

h1, h2, h3, h4{ margin: 0; line-height: 1.18; letter-spacing: -.02em; font-weight: 700; }
h1{ font-size: clamp(34px, 6vw, 58px); letter-spacing: -.035em; line-height: 1.06; }
h2{ font-size: clamp(26px, 3.8vw, 36px); }
h3{ font-size: 18px; }
h4{ font-size: 15px; }
p{ margin: 0; }

.kicker{
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
}
.lead{ font-size: clamp(16px, 2.2vw, 19px); color: var(--muted); }
.sub{ color: var(--muted); font-size: 15px; }
.small{ font-size: 13.5px; color: var(--muted-2); }
.grad-text{
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =========================================================
   3. UTILIDADES Y ACCESIBILIDAD
   ========================================================= */
.wrap{ width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 var(--sp-4); }
.center{ text-align: center; }
.mt-4{ margin-top: var(--sp-4); }
.mt-5{ margin-top: var(--sp-5); }
.mt-6{ margin-top: var(--sp-6); }

:focus-visible{
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.skip-link{
  position: absolute; left: var(--sp-4); top: -60px; z-index: 200;
  background: var(--brand); color: var(--brand-ink);
  padding: 10px 16px; border-radius: var(--r-md); text-decoration: none; font-weight: 600;
  transition: top var(--t-fast);
}
.skip-link:focus{ top: var(--sp-3); }

/* animación de entrada de las secciones */
.reveal{
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.is-visible{ opacity: 1; transform: none; }

/* =========================================================
   4. COMPONENTES
   ========================================================= */

/* ---------------- botones ---------------- */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  width: 100%;                       /* en el celular ocupan todo el ancho */
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font-size: 15px; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: transform var(--t-fast), filter var(--t-fast), background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.btn:hover{ transform: translateY(-1px); }
.btn:active{ transform: translateY(0); }
.btn--primary{ background: var(--grad); color: var(--brand-ink); box-shadow: var(--shadow-sm); }
.btn--primary:hover{ filter: brightness(1.08); }
.btn--ghost{ background: var(--surface); border-color: var(--line); color: var(--text); }
.btn--ghost:hover{ border-color: var(--brand); color: var(--brand); }
.btn--light{ background: #fff; color: #0f1826; }
.btn--light:hover{ filter: brightness(.95); }
.btn[disabled], .btn.is-loading{ opacity: .72; pointer-events: none; }

.btn.is-loading::before{
  content: ""; width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid currentColor; border-top-color: transparent;
  animation: spin .7s linear infinite;
}
@keyframes spin{ to{ transform: rotate(360deg); } }

.icon-btn{
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted);
  border-radius: var(--r-md); cursor: pointer; font-size: 15px;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.icon-btn:hover{ color: var(--text); border-color: var(--brand); }

/* ---------------- tarjetas ---------------- */
.card{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  transition: transform var(--t-med), border-color var(--t-med), box-shadow var(--t-med);
}
.card--hover:hover{
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  box-shadow: var(--shadow-md);
}
.card__icon{
  width: 42px; height: 42px; margin-bottom: var(--sp-4);
  display: grid; place-items: center; font-size: 19px;
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--brand) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 26%, transparent);
}
.card__title{ margin-bottom: var(--sp-2); }
.card__text{ color: var(--muted); font-size: 14.5px; }
.card__list{ list-style: none; margin-top: var(--sp-3); color: var(--muted); font-size: 14px; }
.card__list li{ position: relative; padding-left: 20px; margin-top: 6px; }
.card__list li::before{
  content: ""; position: absolute; left: 4px; top: 10px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand);
}

/* resalta el formulario al llegar desde un llamado a la acción */
.card.is-highlighted{
  outline: 2px solid var(--brand);
  outline-offset: 4px;
  animation: attention 1.6s ease-out;
}
@keyframes attention{
  0%  { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 55%, transparent); }
  100%{ box-shadow: 0 0 0 18px color-mix(in srgb, var(--brand) 0%, transparent); }
}

/* ---------------- insignias ---------------- */
.badge{
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border-radius: var(--r-full);
  font-size: 12.5px; font-weight: 600; letter-spacing: .02em;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
  color: var(--brand);
}
.badge--demo{
  background: color-mix(in srgb, var(--warn) 14%, transparent);
  border-color: color-mix(in srgb, var(--warn) 34%, transparent);
  color: var(--warn);
}
.tag{
  display: inline-block; padding: 3px 9px; border-radius: var(--r-sm);
  font-size: 11.5px; font-weight: 600;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--muted-2);
}
.tag--alta{ color: var(--danger); border-color: color-mix(in srgb, var(--danger) 36%, transparent); }
.tag--media{ color: var(--warn); border-color: color-mix(in srgb, var(--warn) 36%, transparent); }
.tag--id{
  font-family: var(--mono); font-weight: 700; color: var(--brand);
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  border-color: color-mix(in srgb, var(--brand) 28%, transparent);
}

/* ---------------- estadísticas ---------------- */
.stat{
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--sp-4) var(--sp-5);
}
.stat__num{ display: block; font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; }
.stat__label{ font-size: 13.5px; color: var(--muted); }

/* ---------------- testimonios ---------------- */
.quote{
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--sp-5);
  display: flex; flex-direction: column; gap: var(--sp-4);
}
.quote__stars{ color: var(--warn); font-size: 15px; letter-spacing: 2px; }
.quote__text{ font-size: 15px; }
.quote__who{ display: flex; align-items: center; gap: var(--sp-3); margin-top: auto; }
.quote__avatar{
  width: 40px; height: 40px; flex: none; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 14px;
  background: var(--grad); color: var(--brand-ink);
}
.quote__name{ font-weight: 600; font-size: 14.5px; }
.quote__role{ font-size: 12.5px; color: var(--muted-2); }

/* ---------------- acordeón (FAQ) ---------------- */
.accordion{ border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.accordion__item + .accordion__item{ border-top: 1px solid var(--line-soft); }
.accordion__btn{
  width: 100%; display: flex; align-items: center; gap: var(--sp-4);
  padding: 18px var(--sp-5);
  background: none; border: 0; cursor: pointer; text-align: left;
  font-size: 15.5px; font-weight: 600;
  transition: background var(--t-fast);
}
.accordion__btn:hover{ background: var(--surface-2); }
.accordion__sign{
  margin-left: auto; flex: none; width: 26px; height: 26px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--brand);
  font-size: 15px; line-height: 1;
  transition: transform var(--t-med);
}
.accordion__btn[aria-expanded="true"] .accordion__sign{ transform: rotate(45deg); }
.accordion__panel{
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows var(--t-med);
}
.accordion__panel[data-open="true"]{ grid-template-rows: 1fr; }
.accordion__inner{ overflow: hidden; }
.accordion__inner p{ padding: 0 var(--sp-5) 20px; color: var(--muted); font-size: 14.5px; }

/* ---------------- planes (tarjetas de precio) ---------------- */
.plan{
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: var(--sp-5);
  transition: transform var(--t-med), border-color var(--t-med), box-shadow var(--t-med);
}
.plan:hover{ transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.plan--featured{
  order: -1;                         /* en celular y tablet el plan destacado va primero */
  border-color: color-mix(in srgb, var(--brand) 60%, var(--line));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 35%, transparent), var(--shadow-md);
}
.plan__flag{
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: var(--brand-ink);
  font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 14px; border-radius: var(--r-full); white-space: nowrap;
}
.plan__name{ font-size: 15px; font-weight: 600; color: var(--muted); }
.plan__speed{ font-size: 40px; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; margin-top: 4px; }
.plan__speed span{ font-size: 16px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan__price{ margin-top: var(--sp-3); font-size: 15px; color: var(--muted); }
.plan__price b{ font-size: 24px; color: var(--text); letter-spacing: -.02em; }
.plan__divider{ height: 1px; background: var(--line-soft); margin: var(--sp-5) 0; }
.plan__features{ list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--muted); }
.plan__features li{ position: relative; padding-left: 26px; }
.plan__features li::before{
  content: "\2713"; position: absolute; left: 0; top: -1px;
  width: 18px; height: 18px; display: grid; place-items: center;
  font-size: 11px; font-weight: 700; border-radius: 50%;
  background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok);
}
.plan__cta{ margin-top: var(--sp-5); }

/* ---------------- pasos ---------------- */
.step{ display: flex; gap: var(--sp-4); }
.step__num{
  width: 40px; height: 40px; flex: none; border-radius: var(--r-md);
  display: grid; place-items: center; font-weight: 700; font-size: 16px;
  background: color-mix(in srgb, var(--brand) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 28%, transparent);
  color: var(--brand);
}
.step__title{ font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.step__text{ font-size: 14.5px; color: var(--muted); }

/* ---------------- ilustraciones ---------------- */
.art{ width: 100%; height: auto; overflow: visible; }
.art .art-pulse{ transform-origin: center; animation: art-pulse 3.4s ease-out infinite; }
.art .art-pulse:nth-of-type(2){ animation-delay: .5s; }
.art .art-pulse:nth-of-type(3){ animation-delay: 1s; }
@keyframes art-pulse{
  0%{ opacity: 0; transform: scale(.82); }
  35%{ opacity: .85; }
  100%{ opacity: 0; transform: scale(1.12); }
}

.panel{
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: var(--sp-5);
}
.panel--glass{ background: color-mix(in srgb, var(--surface) 80%, transparent); backdrop-filter: blur(8px); }

/* barra de velocidad comparativa */
.meter{ display: grid; gap: var(--sp-3); }
.meter__row{ display: grid; grid-template-columns: 76px 1fr auto; gap: var(--sp-3); align-items: center; font-size: 13.5px; }
.meter__label{ color: var(--muted); }
.meter__track{ display: block; height: 9px; border-radius: var(--r-full); background: var(--surface-2); overflow: hidden; }
.meter__fill{ display: block; height: 100%; border-radius: var(--r-full); background: var(--grad); }
.meter__fill--soft{ background: color-mix(in srgb, var(--muted-2) 55%, transparent); }
.meter__value{ font-weight: 600; font-size: 13px; }

/* ---------------- barra de garantías ---------------- */
.assurance{
  display: grid; grid-template-columns: 1fr; gap: var(--sp-4);
  padding: var(--sp-5); border: 1px solid var(--line); border-radius: var(--r-xl);
  background: var(--surface);
}
.assurance__item{ display: flex; gap: 12px; align-items: flex-start; }
.assurance__icon{ font-size: 18px; line-height: 1.2; }
.assurance__title{ font-size: 14.5px; font-weight: 600; }
.assurance__text{ font-size: 13px; color: var(--muted); }

/* =========================================================
   5. FORMULARIO
   ========================================================= */
.form{ display: grid; gap: var(--sp-4); }
/* minmax(0, 1fr): en celulares angostos el select no ensancha la fila con su opción más larga */
.form__row{ display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); }
.field{ display: flex; flex-direction: column; gap: 6px; }
.field__label{ font-size: 13.5px; font-weight: 600; }
.field__label .req{ color: var(--danger); }
.field__control{
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 11px 14px;
  font-size: 16px;                   /* 16 px evita el zoom automático de iOS al enfocar */
  transition: border-color var(--t-fast), background var(--t-fast);
}
.field__control::placeholder{ color: var(--muted-2); }
.field__control:focus{ outline: none; border-color: var(--brand); background: var(--surface); }
textarea.field__control{ resize: vertical; min-height: 96px; }
select.field__control{ cursor: pointer; }

.field__error{ font-size: 12.5px; color: var(--danger); min-height: 0; display: none; }
.field.has-error .field__control{ border-color: var(--danger); }
.field.has-error .field__error{ display: block; }
.field.is-valid .field__control{ border-color: color-mix(in srgb, var(--ok) 55%, var(--line)); }

.check{
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13.5px; color: var(--muted); cursor: pointer;
}
.check input{ width: 17px; height: 17px; margin-top: 3px; accent-color: var(--brand); flex: none; cursor: pointer; }
.check a{ color: var(--brand); }

.form__msg{
  display: none; gap: 10px; align-items: flex-start;
  padding: 13px 16px; border-radius: var(--r-md); font-size: 14px;
}
.form__msg.is-visible{ display: flex; }
.form__msg--ok{
  background: color-mix(in srgb, var(--ok) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--ok) 38%, transparent);
  color: var(--ok);
}
.form__msg--error{
  background: color-mix(in srgb, var(--danger) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--danger) 38%, transparent);
  color: var(--danger);
}

/* =========================================================
   6. SCRUM: BACKLOG Y TABLERO (proyecto.html)
   ========================================================= */
.flow{
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2);
  padding: var(--sp-4); border: 1px dashed var(--line);
  border-radius: var(--r-lg); background: var(--surface);
}
.flow__step{
  padding: 8px 15px; border-radius: var(--r-full); font-size: 13.5px; font-weight: 600;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--muted);
}
.flow__step--on{ background: var(--grad); border-color: transparent; color: var(--brand-ink); }
.flow__arrow{ color: var(--muted-2); font-size: 15px; }

.board{ display: grid; grid-template-columns: 1fr; gap: var(--sp-4); }
.column{
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--sp-4); min-height: 200px;
}
.column__head{ display: flex; align-items: center; gap: 9px; margin-bottom: var(--sp-4); }
.column__dot{ width: 9px; height: 9px; border-radius: 50%; }
.column--todo  .column__dot{ background: var(--muted-2); }
.column--doing .column__dot{ background: var(--warn); }
.column--done  .column__dot{ background: var(--ok); }
.column__title{ font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.column__count{
  margin-left: auto; font-size: 12px; font-weight: 700; color: var(--muted-2);
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-full); padding: 2px 10px;
}
.column__list{ list-style: none; display: flex; flex-direction: column; gap: var(--sp-3); }
.column__empty{ font-size: 13px; color: var(--muted-2); font-style: italic; padding: var(--sp-3) 0; }

.ticket{
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--r-md); padding: var(--sp-4);
}
.ticket__top{ display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.ticket__title{ font-size: 14.5px; font-weight: 600; }
.ticket__meta{ font-size: 12.5px; color: var(--muted-2); margin-top: 6px; }
.ticket__actions{ display: flex; gap: 6px; margin-top: var(--sp-3); }
.ticket__move{
  background: var(--surface-2); border: 1px solid var(--line); color: var(--muted);
  border-radius: var(--r-sm); padding: 4px 10px; font-size: 12px; cursor: pointer;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.ticket__move:hover:not([disabled]){ color: var(--brand); border-color: var(--brand); }
.ticket__move[disabled]{ opacity: .35; cursor: not-allowed; }

.story{
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--sp-5);
  display: flex; flex-direction: column;
}
.story__top{ display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: var(--sp-3); }
.story__text{ font-size: 15px; margin-bottom: var(--sp-4); }
.story__text em{ font-style: normal; font-weight: 600; color: var(--brand); }
.story__label{
  font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted-2); margin-bottom: 6px;
}
.story__criteria{ list-style: none; color: var(--muted); font-size: 14px; }
.story__criteria li{ position: relative; padding-left: 22px; margin-top: 6px; }
.story__criteria li::before{
  content: "\2713"; position: absolute; left: 2px; top: 0; color: var(--ok); font-size: 13px;
}

/* =========================================================
   7. ESTRUCTURA DE PÁGINA (base: celular)
   ========================================================= */

/* ---------------- cabecera ---------------- */
.site-header{
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header__in{
  position: relative;
  display: flex; align-items: center; gap: var(--sp-4);
  height: var(--nav-h);
}
.logo{ display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; }
.logo__mark{
  width: 32px; height: 32px; flex: none; border-radius: 10px;
  display: grid; place-items: center; font-size: 16px;
  background: var(--grad); color: var(--brand-ink);
}
.logo__name{ font-size: 16.5px; letter-spacing: -.01em; }

/* menú: en celular y tablet es un desplegable bajo la cabecera */
.nav{
  display: none;
  position: absolute; top: var(--nav-h); left: 0; right: 0;
  flex-direction: column; align-items: stretch; gap: 2px;
  background: var(--bg); border-bottom: 1px solid var(--line);
  padding: var(--sp-3) var(--sp-4) var(--sp-4);
  box-shadow: var(--shadow-md);
}
.nav.is-open{ display: flex; }
.nav__link{
  padding: 12px; border-radius: var(--r-sm);
  font-size: 14px; color: var(--muted); text-decoration: none;
  transition: color var(--t-fast), background var(--t-fast);
}
.nav__link:hover{ color: var(--text); background: var(--surface); }
.nav__link.is-active{ color: var(--text); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.header__actions{ display: flex; align-items: center; gap: var(--sp-2); margin-left: auto; }
.header__cta{ display: none; padding: 9px 18px; font-size: 14px; }

/* ---------------- hero ---------------- */
.hero{ position: relative; overflow: hidden; padding: var(--sp-8) 0 var(--sp-7); }
.hero::before{
  content: ""; position: absolute; left: 50%; top: -280px; transform: translateX(-50%);
  width: 1100px; height: 700px; pointer-events: none;
  background: radial-gradient(circle at center, color-mix(in srgb, var(--brand) 20%, transparent), transparent 62%);
}
.hero__in{ position: relative; }
.hero__grid{ display: grid; grid-template-columns: 1fr; gap: var(--sp-6); align-items: center; }
.hero__art{ position: relative; max-width: 520px; margin: 0 auto; }
.hero__title{ margin: var(--sp-5) 0 0; }
.hero__lead{ margin-top: var(--sp-5); max-width: 580px; }
.hero__actions{ display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }
.hero__note{ margin-top: var(--sp-4); font-size: 13px; color: var(--muted-2); }
.hero__stats{
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3);
  margin-top: var(--sp-7);
}

/* ---------------- secciones ---------------- */
.section{ padding: var(--sp-7) 0; border-top: 1px solid var(--line-soft); }
.section--tight{ padding: var(--sp-7) 0; }
.section__head{ max-width: 720px; margin-bottom: var(--sp-6); }
.section__head--center{ margin-left: auto; margin-right: auto; text-align: center; }
.section__title{ margin: var(--sp-2) 0 var(--sp-3); }

/* ---------------- rejillas: una columna en celular ---------------- */
.grid{ display: grid; gap: var(--sp-4); grid-template-columns: 1fr; }
.grid--stretch{ align-items: stretch; }
.split{ display: grid; grid-template-columns: 1fr; gap: var(--sp-6); align-items: start; }
.plans{ align-items: stretch; }
.steps{ display: grid; grid-template-columns: 1fr; gap: var(--sp-4); }

/* ---------------- banda CTA ---------------- */
.cta-band{
  position: relative; overflow: hidden;
  background: var(--grad); color: var(--brand-ink);
  border-radius: var(--r-xl);
  padding: var(--sp-7) var(--sp-4);
  text-align: center;
}
.cta-band::after{
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(255,255,255,.22), transparent 55%);
  pointer-events: none;
}
.cta-band > *{ position: relative; }
.cta-band h2{ color: #fff; }
.cta-band p{ color: rgba(255,255,255,.9); max-width: 620px; margin: var(--sp-3) auto 0; }
.cta-band__actions{ display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: center; margin-top: var(--sp-6); }
.cta-band__note{ margin-top: var(--sp-4); font-size: 13px; color: rgba(255,255,255,.82); }

/* ---------------- pie ---------------- */
.site-footer{ border-top: 1px solid var(--line-soft); background: var(--bg-soft); padding: var(--sp-8) 0 var(--sp-5); }
.footer__grid{ display: grid; grid-template-columns: 1fr; gap: var(--sp-5); }
.footer__about{ max-width: 320px; }
.footer__desc{ color: var(--muted); font-size: 14px; margin-top: var(--sp-3); }
.footer__title{
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted-2); margin-bottom: var(--sp-3);
}
.footer__list{ list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer__list a{ color: var(--muted); text-decoration: none; font-size: 14px; transition: color var(--t-fast); }
.footer__list a:hover{ color: var(--brand); }
.social{ display: flex; gap: var(--sp-2); margin-top: var(--sp-4); }
.social a{
  width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 50%; background: var(--surface); border: 1px solid var(--line);
  color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 700;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.social a:hover{ color: var(--brand); border-color: var(--brand); }
.footer__bottom{
  margin-top: var(--sp-7); padding-top: var(--sp-4);
  border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: space-between;
  font-size: 13px; color: var(--muted-2);
}
.footer__legal{ display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.footer__legal a{ color: var(--muted-2); text-decoration: none; }
.footer__legal a:hover{ color: var(--brand); }
.footer__credits{ margin-top: var(--sp-3); font-size: 12.5px; color: var(--muted-2); }

/* ---------------- página legal ---------------- */
.legal{ padding: var(--sp-8) 0; }
.legal__content{ max-width: 760px; }
.legal__content h2{ margin-top: var(--sp-6); font-size: 21px; }
.legal__content p, .legal__content li{ color: var(--muted); font-size: 15px; margin-top: var(--sp-3); }
.legal__content ul{ padding-left: 20px; }

/* =========================================================
   8. RESPONSIVE: TABLET Y ESCRITORIO
   ========================================================= */

/* --- tablet: desde 721 px --- */
@media (min-width: 721px){
  .btn{ width: auto; }
  .btn--block{ width: 100%; }

  .grid--2, .grid--3, .grid--4{ grid-template-columns: repeat(2, 1fr); }
  .hero__stats{ grid-template-columns: repeat(4, 1fr); }
  .assurance{ grid-template-columns: 1fr 1fr; }
  .meter__row{ grid-template-columns: 96px 1fr auto; }
  .form__row{ grid-template-columns: 1fr 1fr; }
  .field__control{ font-size: 15px; }
  .footer__grid{ grid-template-columns: 1fr 1fr; }
  .cta-band{ padding: var(--sp-8) var(--sp-7); }
  .section{ padding: var(--sp-8) 0; }
  .section--tight{ padding: var(--sp-7) 0; }
}

/* --- escritorio: desde 961 px, el menú se muestra en línea --- */
@media (min-width: 961px){
  #menu-toggle{ display: none; }
  .header__cta{ display: inline-flex; }
  .header__actions{ margin-left: 0; }
  .nav{
    display: flex; position: static; margin-left: auto;
    flex-direction: row; align-items: center; gap: 2px;
    background: none; border: 0; padding: 0; box-shadow: none;
  }
  .nav__link{ padding: 8px 12px; }

  .grid--3{ grid-template-columns: repeat(3, 1fr); }
  .grid--4{ grid-template-columns: repeat(4, 1fr); }
  .split{ grid-template-columns: 1.05fr .95fr; }
  .hero{ padding: var(--sp-9) 0 var(--sp-8); }
  .hero__grid{ grid-template-columns: 1.05fr .95fr; gap: var(--sp-7); }
  .hero__copy{ max-width: 620px; }
  .hero__art{ max-width: none; margin: 0; }
  .steps{ grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
  .assurance{ grid-template-columns: repeat(4, 1fr); }
  .plan--featured{ order: 0; }
  .footer__grid{ grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--sp-6); }
  .board{ grid-template-columns: repeat(3, 1fr); }
}

/* =========================================================
   9. MOVIMIENTO REDUCIDO E IMPRESIÓN
   ========================================================= */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .reveal{ opacity: 1; transform: none; transition: none; }
  *{ animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media print{
  .site-header, .hero__actions, .cta-band__actions,
  .ticket__actions, .social{ display: none !important; }
  body{ background: #fff; color: #000; }
  .card, .story, .plan, .quote, .column{ break-inside: avoid; border-color: #ccc; }
  .reveal{ opacity: 1; transform: none; }
}
