/* ==========================================================================
   Nyra Creators — hoja de estilos única (mobile-first)
   1. Tipografías
   2. Tokens y reset
   3. Utilidades y layout
   4. Botones
   5. Header y navegación
   6. Hero
   7. Cómo funciona
   8. Tu primer mes
   9. Qué ofrecemos
   10. A quién buscamos
   11. Formulario multi-paso
   12. Footer y CTA fija en mobile
   13. Páginas legales
   14. Animaciones
   ========================================================================== */

/* 1. Tipografías -------------------------------------------------------- */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/instrument-serif-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/instrument-serif-latin-400-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 2. Tokens y reset ------------------------------------------------------ */
:root {
  --bg: #faf8f5;
  --bg-soft: #f3ede6;
  --surface: #ffffff;
  --ink: #191714;
  --ink-2: #3b3630;
  --muted: #6f6862;
  --line: #e7ded4;
  --line-strong: #d6c9ba;
  --accent: #5B8BD4;
  --accent-dark: #3F6EB4;
  --accent-soft: #eef3fb;
  --danger: #b3261e;
  --danger-soft: #fdecea;

  --font-display: 'Instrument Serif', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(25, 23, 20, 0.04), 0 6px 18px -12px rgba(25, 23, 20, 0.18);
  --shadow-md: 0 2px 4px rgba(25, 23, 20, 0.04), 0 18px 40px -24px rgba(25, 23, 20, 0.28);
  --shadow-lg: 0 30px 70px -40px rgba(25, 23, 20, 0.45);

  --section-y: clamp(3.5rem, 9vw, 7rem);
  --gutter: clamp(1.15rem, 5vw, 2rem);
  --maxw: 1140px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

/* El atributo hidden gana siempre: varios componentes lo usan para alternar estados. */
[hidden] { display: none !important; }

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-underline-offset: 3px;
}
a:hover { text-decoration-color: currentColor; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--accent-soft); color: var(--ink); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1.1rem;
  background: var(--ink);
  color: var(--bg);
  border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

/* 3. Utilidades y layout ------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 720px; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: 0 var(--section-y); }
.section--alt {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}
.section--form { padding-bottom: calc(var(--section-y) + 1rem); }

.section__head {
  max-width: 46rem;
  margin-inline: auto;
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
  text-align: center;
}
.section__head--left { text-align: left; margin-inline: 0; }

.section__title {
  font-size: clamp(2rem, 5.6vw, 3.1rem);
  margin-bottom: 0.75rem;
}
.section__lead {
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.1rem);
  max-width: 40rem;
  margin-inline: auto;
}
.section__head--left .section__lead { margin-inline: 0; }

.eyebrow {
  display: inline-block;
  margin-bottom: 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow--accent { color: var(--accent-dark); }

/* 4. Botones ------------------------------------------------------------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fdfbf9;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 50px;
  padding: 0.8rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn--primary { box-shadow: var(--shadow-sm); }
.btn--primary:hover { --btn-bg: #262119; }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { --btn-bg: rgba(255, 255, 255, 0.7); }
.btn--sm { min-height: 42px; padding: 0.5rem 1.1rem; font-size: 0.9rem; }
.btn--lg { min-height: 56px; padding: 0.95rem 1.9rem; font-size: 1.03rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-loading { pointer-events: none; opacity: 0.75; }

.btn__spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid color-mix(in srgb, currentColor 30%, transparent);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn.is-loading .btn__spinner { display: block; }

@keyframes spin { to { transform: rotate(360deg); } }

/* 5. Header y navegación ------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(140deg, var(--ink), #4a3b33);
  color: #fdfbf9;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1;
  padding-bottom: 2px;
}
.brand__name { font-size: 1.02rem; }
.brand__name-light { color: var(--muted); font-weight: 500; }

.site-nav { display: none; gap: 1.75rem; font-size: 0.94rem; }
.site-nav a { text-decoration: none; color: var(--ink-2); transition: color 0.15s ease; }
.site-nav a:hover { color: var(--accent-dark); }
.site-header__cta { display: none; }

@media (min-width: 900px) {
  .site-nav { display: flex; }
  .site-header__cta { display: inline-flex; }
}

/* 6. Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(2.5rem, 8vw, 5.5rem) clamp(3rem, 9vw, 6rem);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -30% 40% 45% -35%;
  background: radial-gradient(closest-side, rgba(91, 139, 212, 0.16), transparent 70%);
  pointer-events: none;
}
.hero__inner { position: relative; display: grid; gap: clamp(2.5rem, 7vw, 4rem); }

.hero__title {
  font-size: clamp(2.4rem, 9.5vw, 4.3rem);
  margin-bottom: 1.1rem;
  text-wrap: balance;
}
.hero__subtitle {
  font-size: clamp(1.05rem, 3.2vw, 1.25rem);
  color: var(--muted);
  max-width: 34rem;
  text-wrap: pretty;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.9rem;
}
.hero__actions .btn { flex: 1 1 auto; min-width: 200px; }

.hero__points {
  display: grid;
  gap: 0.6rem;
  margin-top: 2rem;
  font-size: 0.95rem;
  color: var(--ink-2);
}
.hero__points li { display: flex; align-items: flex-start; gap: 0.6rem; }
.tick {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--accent-soft);
  position: relative;
}
.tick::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 8px;
  height: 4px;
  border-left: 1.8px solid var(--accent-dark);
  border-bottom: 1.8px solid var(--accent-dark);
  transform: rotate(-45deg) translate(1px, -1px);
}

.hero__media { position: relative; }
.hero__media img {
  width: 100%;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
}
.hero__badge {
  position: absolute;
  left: 1rem;
  bottom: -1.1rem;
  display: grid;
  gap: 0.1rem;
  padding: 0.75rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
}
.hero__badge-value { font-family: var(--font-display); font-size: 1.4rem; line-height: 1; }
.hero__badge-label { font-size: 0.78rem; color: var(--muted); }

@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
  }
  .hero__badge { left: -1.75rem; bottom: 2rem; }
}

/* 7. Cómo funciona ------------------------------------------------------- */
.steps {
  display: grid;
  gap: 0;
  counter-reset: step;
  position: relative;
}
.step {
  position: relative;
  padding: 0 0 2rem 3.4rem;
}
.step:last-child { padding-bottom: 0; }
.step::before {
  content: '';
  position: absolute;
  left: 1.05rem;
  top: 2.4rem;
  bottom: 0.2rem;
  width: 1px;
  background: linear-gradient(var(--line-strong), var(--line));
}
.step:last-child::before { display: none; }
.step__num {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--accent-dark);
  font-family: var(--font-display);
  font-size: 1.05rem;
  box-shadow: var(--shadow-sm);
}
.step__title { font-size: 1.35rem; margin-bottom: 0.35rem; padding-top: 0.15rem; }
.step__text { color: var(--muted); font-size: 0.97rem; }

@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
  .step {
    padding: 1.75rem 1.4rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
  }
  .step::before { display: none; }
  .step__num { position: static; margin-bottom: 1.1rem; }
  .step__title { font-size: 1.28rem; }
}

/* 8. Tu primer mes ------------------------------------------------------- */
.highlight {
  position: relative;
  display: grid;
  gap: 1.75rem;
  padding: clamp(1.6rem, 5vw, 3rem);
  background: linear-gradient(165deg, var(--accent-soft), #fdfbf8 62%);
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.highlight__glow {
  position: absolute;
  width: 22rem;
  height: 22rem;
  right: -8rem;
  top: -10rem;
  background: radial-gradient(closest-side, rgba(91, 139, 212, 0.20), transparent 70%);
  pointer-events: none;
}
.highlight__body { position: relative; }
.highlight__title {
  font-size: clamp(1.75rem, 5.2vw, 2.65rem);
  margin-bottom: 0.9rem;
  max-width: 22ch;
}
.highlight__text {
  color: var(--ink-2);
  font-size: clamp(1rem, 2.6vw, 1.1rem);
  max-width: 46rem;
}
.highlight__text strong {
  font-weight: 600;
  color: var(--ink);
  background: linear-gradient(transparent 62%, rgba(91, 139, 212, 0.28) 0);
}
.highlight__note {
  margin: 0.9rem 0 1.6rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.highlight__figure {
  position: relative;
  display: grid;
  gap: 0.75rem;
  align-content: start;
}
.amount {
  display: grid;
  padding: 1.4rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.amount__currency {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.amount__value {
  font-family: var(--font-display);
  font-size: clamp(3rem, 12vw, 4.25rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.amount__label { font-size: 0.88rem; color: var(--muted); margin-top: 0.35rem; }
.amount__split {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.5rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
  font-size: 0.9rem;
  color: var(--muted);
}
.amount__split strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ink);
}

@media (min-width: 880px) {
  .highlight {
    grid-template-columns: 1.35fr 0.65fr;
    align-items: center;
    gap: 2.5rem;
  }
  .highlight__note { margin-bottom: 1.8rem; }
}

/* 9. Qué ofrecemos ------------------------------------------------------- */
.cards {
  display: grid;
  gap: 1rem;
}
.card {
  padding: 1.6rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 1.1rem;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent-dark);
}
.card__icon svg { width: 24px; height: 24px; }
.card__title { font-size: 1.28rem; margin-bottom: 0.4rem; }
.card__text { color: var(--muted); font-size: 0.95rem; }

@media (min-width: 620px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; } }

/* 10. A quién buscamos --------------------------------------------------- */
.profile { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
.profile .section__head { margin-bottom: 0; }
.profile .section__head .btn { margin-top: 1.6rem; }
.profile__list { display: grid; gap: 0.85rem; }
.profile__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.profile__badge {
  flex: none;
  display: inline-grid;
  place-items: center;
  min-width: 4.6rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--r-pill);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.profile__title { font-size: 1.18rem; margin-bottom: 0.25rem; }
.profile__text { color: var(--muted); font-size: 0.94rem; }

@media (min-width: 900px) {
  .profile { grid-template-columns: 0.85fr 1.15fr; align-items: center; }
}

/* 11. Formulario multi-paso ---------------------------------------------- */
.form-shell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  padding: clamp(1.25rem, 4.5vw, 2.25rem);
}

.progress { margin-bottom: 1.75rem; }
.progress__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
}
.progress__step {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.progress__label { font-size: 0.92rem; color: var(--accent-dark); font-weight: 600; }
.progress__track {
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--bg-soft);
  overflow: hidden;
}
.progress__fill {
  height: 100%;
  width: 33.33%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.progress__dots {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.65rem;
}
.progress__dots li {
  flex: 1;
  height: 3px;
  border-radius: var(--r-pill);
  background: var(--bg-soft);
  transition: background-color 0.3s ease;
}
.progress__dots li.is-active { background: color-mix(in srgb, var(--accent) 55%, transparent); }

.form { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.step-panel {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.step-panel__legend {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 1.75rem);
  line-height: 1.15;
  padding: 0;
}
.step-panel__hint {
  margin: 0.4rem 0 1.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.step-panel.is-active { animation: panel-in 0.32s ease both; }

.field { margin-bottom: 1.15rem; }
.field > label,
.field__label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-2);
}
.field__optional { font-weight: 400; color: var(--muted); }
.field__hint { margin: 0.35rem 0 0; font-size: 0.83rem; color: var(--muted); }

.field input[type='text'],
.field input[type='email'],
.field input[type='tel'],
.field input[type='number'],
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.85rem 1rem;
  background: #fdfcfa;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  font-size: 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  appearance: none;
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.55; }
.field input::placeholder,
.field textarea::placeholder { color: #a89c92; }
.field input:hover,
.field textarea:hover { border-color: var(--muted); }
.field input:focus,
.field textarea:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(91, 139, 212, 0.16);
}
.field input[type='number'] { -moz-appearance: textfield; }
.field input[type='number']::-webkit-outer-spin-button,
.field input[type='number']::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.field.has-error input,
.field.has-error textarea {
  border-color: var(--danger);
  background: var(--danger-soft);
}
.field.has-error input:focus,
.field.has-error textarea:focus { box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.14); }

.field__error {
  display: none;
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: var(--danger);
}
.field.has-error .field__error { display: flex; gap: 0.35rem; align-items: flex-start; }
.field.has-error .field__error::before { content: '!'; font-weight: 700; }

.field-row { display: grid; gap: 0 1rem; }
@media (min-width: 520px) { .field-row { grid-template-columns: 0.55fr 1fr; } }

/* Checkbox */
.check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  background: #fdfcfa;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  cursor: pointer;
  font-weight: 500;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.check:hover { border-color: var(--muted); }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  position: relative;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.check__box::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 10px;
  height: 5px;
  border-left: 2px solid var(--surface);
  border-bottom: 2px solid var(--surface);
  transform: rotate(-45deg) scale(0.4);
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.check input:checked + .check__box { background: var(--accent); border-color: var(--accent); }
.check input:checked + .check__box::after { opacity: 1; transform: rotate(-45deg) scale(1) translate(1px, -1px); }
.check input:focus-visible + .check__box { outline: 2px solid var(--accent); outline-offset: 3px; }
.check__text { font-size: 0.96rem; color: var(--ink-2); }
.has-error .check { border-color: var(--danger); background: var(--danger-soft); }

/* Radios tipo botón */
.choice-row { display: flex; gap: 0.65rem; }
.choice-stack { display: grid; gap: 0.65rem; }
.choice { flex: 1; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice__box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.75rem 1rem;
  background: #fdfcfa;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  font-size: 0.98rem;
  font-weight: 500;
  text-align: center;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.choice--wide .choice__box { justify-content: flex-start; }
.choice:hover .choice__box { border-color: var(--muted); }
.choice input:checked + .choice__box {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent);
  font-weight: 600;
}
.choice input:focus-visible + .choice__box { outline: 2px solid var(--accent); outline-offset: 3px; }
.has-error .choice__box { border-color: var(--danger); }

/* Upload */
.upload { position: relative; margin-top: 0.6rem; }
.upload__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.upload__label {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.05rem 1.1rem;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--r-md);
  background: #fdfcfa;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.9rem;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.upload__label:hover,
.upload.is-dragover .upload__label { border-color: var(--accent); background: var(--accent-soft); }
.upload__input:focus-visible + .upload__label { outline: 2px solid var(--accent); outline-offset: 3px; }
.upload__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent-dark);
}
.upload__icon svg { width: 20px; height: 20px; }
.upload__text strong { color: var(--ink-2); }
.upload__file {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.6rem 0 0;
  padding: 0.6rem 0.85rem;
  background: var(--bg-soft);
  border-radius: var(--r-sm);
  font-size: 0.88rem;
  word-break: break-all;
}
.upload__remove {
  margin-top: 0.5rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--danger);
  font-size: 0.85rem;
  text-decoration: underline;
  cursor: pointer;
}

.form-legal {
  margin: 1.4rem 0 0;
  font-size: 0.84rem;
  color: var(--muted);
}
.form-error-global {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: var(--danger-soft);
  border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent);
  border-radius: var(--r-md);
  color: var(--danger);
  font-size: 0.9rem;
}

.form-actions { margin-top: 1.6rem; display: grid; gap: 0.75rem; }
.form-actions--split { grid-template-columns: auto 1fr; }
.form-actions--split .btn:last-child { width: 100%; }

/* Confirmación */
.success { text-align: center; padding: 1rem 0 0.5rem; animation: panel-in 0.4s ease both; }
.success__icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.success__icon svg { width: 30px; height: 30px; }
.success__title { font-size: clamp(1.7rem, 5vw, 2.2rem); margin-bottom: 0.6rem; }
.success__text { color: var(--muted); max-width: 32rem; margin-inline: auto; }
.success__next {
  display: grid;
  gap: 0.55rem;
  margin: 1.6rem auto 0;
  max-width: 26rem;
  text-align: left;
  font-size: 0.92rem;
  color: var(--ink-2);
}
.success__next li {
  position: relative;
  padding-left: 1.5rem;
}
.success__next li::before {
  content: '';
  position: absolute;
  left: 0.35rem;
  top: 0.6rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.success__contact { margin-top: 1.6rem; font-size: 0.88rem; color: var(--muted); }

/* 12. Footer y CTA fija en mobile ---------------------------------------- */
.site-footer {
  background: var(--ink);
  color: #e8e2db;
  padding-top: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: env(safe-area-inset-bottom);
}
.site-footer__inner { display: grid; gap: 2.25rem; padding-bottom: 2.5rem; }
.site-footer .brand__mark { background: #fdfbf9; color: var(--ink); }
.site-footer .brand__name { color: #fdfbf9; }
.site-footer .brand__name-light { color: #a89d92; }
.site-footer__tagline { margin-top: 0.85rem; color: #a89d92; font-size: 0.92rem; max-width: 22rem; }
.site-footer__nav { display: grid; gap: 1.75rem; }
.site-footer__nav > div { display: grid; gap: 0.55rem; align-content: start; }
.site-footer__heading {
  margin: 0 0 0.2rem;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8d8279;
}
.site-footer__nav a {
  color: #e8e2db;
  text-decoration: none;
  font-size: 0.94rem;
  width: fit-content;
}
.site-footer__nav a:hover { text-decoration: underline; }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  padding-block: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  color: #8d8279;
}

@media (min-width: 760px) {
  .site-footer__inner { grid-template-columns: 1fr 1.2fr; }
  .site-footer__nav { grid-template-columns: repeat(3, 1fr); }
}

.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem var(--gutter);
  padding-bottom: calc(0.7rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 0.28s ease;
}
.mobile-cta.is-visible { transform: translateY(0); }
.mobile-cta__text { display: grid; line-height: 1.25; }
.mobile-cta__text strong { font-size: 0.92rem; }
.mobile-cta__text span { font-size: 0.78rem; color: var(--muted); }
.mobile-cta .btn { flex: none; }

@media (min-width: 900px) { .mobile-cta { display: none; } }

/* 13. Páginas legales ---------------------------------------------------- */
.legal { padding-block: clamp(2.5rem, 7vw, 4.5rem); }
.legal__head { margin-bottom: 2.5rem; }
.legal__title { font-size: clamp(2.1rem, 6vw, 3rem); margin-bottom: 0.6rem; }
.legal__updated { color: var(--muted); font-size: 0.88rem; }
.legal__notice {
  margin-bottom: 2.5rem;
  padding: 1rem 1.15rem;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: var(--r-md);
  font-size: 0.9rem;
  color: var(--ink-2);
}
.legal__body { display: grid; gap: 2rem; max-width: 46rem; }
.legal__body h2 { font-size: 1.5rem; margin-bottom: 0.6rem; }
.legal__body p { color: var(--ink-2); }
.legal__body p + p { margin-top: 0.85rem; }
.legal__body ul { display: grid; gap: 0.5rem; margin-top: 0.85rem; }
.legal__body li { position: relative; padding-left: 1.35rem; color: var(--ink-2); }
.legal__body li::before {
  content: '';
  position: absolute;
  left: 0.3rem;
  top: 0.65rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.legal__back { display: inline-flex; margin-top: 2.5rem; }

/* 14. Animaciones -------------------------------------------------------- */
@keyframes panel-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* Solo se ocultan si hay JS disponible para volver a mostrarlas. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

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

/* 15. Motivo farfalle (texture decorativa) ------------------------------- */
.butterflies {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  color: var(--accent);
}
.butterflies span {
  position: absolute;
  display: block;
  width: var(--bf-size, 72px);
  height: var(--bf-size, 72px);
  opacity: var(--bf-opacity, 0.09);
  transform: rotate(var(--bf-rot, 0deg));
  -webkit-mask: url('../img/butterfly.svg') no-repeat center / contain;
  mask: url('../img/butterfly.svg') no-repeat center / contain;
  background: currentColor;
}

/* Hero: 5 istanze, ridotte a 2 su mobile */
.hero .butterflies span:nth-child(1) { --bf-size: 120px; --bf-rot: -12deg; --bf-opacity: 0.10; top: 6%;  right: 4%; }
.hero .butterflies span:nth-child(2) { --bf-size: 78px;  --bf-rot: 18deg;  --bf-opacity: 0.07; top: 42%; left: 2%; }
.hero .butterflies span:nth-child(3) { --bf-size: 54px;  --bf-rot: -28deg; --bf-opacity: 0.08; bottom: 14%; right: 22%; }
.hero .butterflies span:nth-child(4) { --bf-size: 96px;  --bf-rot: 8deg;   --bf-opacity: 0.06; bottom: -4%; left: 28%; }
.hero .butterflies span:nth-child(5) { --bf-size: 64px;  --bf-rot: -6deg;  --bf-opacity: 0.07; top: 20%; left: 44%; }

/* Box "Tu primer mes": 3 istanze */
.highlight .butterflies span:nth-child(1) { --bf-size: 104px; --bf-rot: 14deg;  --bf-opacity: 0.11; top: -8%; right: 6%; }
.highlight .butterflies span:nth-child(2) { --bf-size: 62px;  --bf-rot: -20deg; --bf-opacity: 0.08; bottom: 8%; right: 30%; }
.highlight .butterflies span:nth-child(3) { --bf-size: 46px;  --bf-rot: 30deg;  --bf-opacity: 0.09; top: 34%; left: 4%; }

@media (max-width: 767px) {
  .hero .butterflies span:nth-child(n + 3),
  .highlight .butterflies span:nth-child(n + 3) { display: none; }
}

/* Il contenuto resta sempre sopra la texture */
.hero__inner,
.highlight__body,
.highlight__figure { position: relative; z-index: 1; }

/* 16. Alternativa WhatsApp ---------------------------------------------- */
.alt-cta {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.alt-cta__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: #1f7a4d;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.alt-cta__link:hover { color: #15603b; }

.mobile-cta__wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  margin-left: 0.5rem;
  border-radius: var(--r-pill);
  background: #25d366;
  color: #fff;
}
.mobile-cta__wa svg { width: 24px; height: 24px; }

/* 17. Hero con video di sfondo -------------------------------------------- */
.hero--video { position: relative; background: #060a12; }
.hero__bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.hero__bg-video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 900ms ease;
}
.hero__bg-video.is-ready { opacity: 1; }
/* velatura: tiene il testo leggibile e lega il video alla palette */
.hero__bg-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(6,10,18,0.55) 0%, rgba(6,10,18,0.70) 55%, rgba(6,10,18,0.92) 100%),
    radial-gradient(90% 60% at 70% 30%, rgba(91,139,212,0.22), transparent 70%);
}
/* il contenuto dell'hero passa in chiaro sopra al video */
.hero--video .hero__title,
.hero--video .hero__subtitle,
.hero--video .hero__points li { color: #f4f7fc; }
.hero--video .eyebrow { color: var(--accent); }
.hero--video .hero__subtitle,
.hero--video .hero__points li { color: #cdd8ea; }
.hero--video .hero__badge {
  background: rgba(10,16,28,0.72);
  border-color: rgba(156,192,245,0.35);
  color: #f4f7fc;
  backdrop-filter: blur(6px);
}
.hero--video .hero__badge-label { color: #a9b8d0; }
.hero--video .butterflies { color: #9CC0F5; }
.hero--video .butterflies span { opacity: 0.07; }
.hero--video::after {     /* raccordo verso la sezione chiara successiva */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px;
  background: linear-gradient(180deg, transparent, var(--bg)); z-index: 2;
  pointer-events: none;
}
/* contenuto e farfalle sempre sopra al video */
.hero--video .hero__inner { position: relative; z-index: 3; }
.hero--video .butterflies { z-index: 2; }
.hero--video::before { z-index: 2; }
@media (prefers-reduced-motion: reduce) { .hero__bg-video { display: none; } }

/* 18. Correzioni hero scuro ---------------------------------------------- */
/* il pulsante secondario era testo scuro su fondo scuro */
.hero--video .btn--ghost {
  --btn-bg: rgba(255, 255, 255, 0.06);
  --btn-fg: #f4f7fc;
  border-color: rgba(244, 247, 252, 0.45);
  backdrop-filter: blur(4px);
}
.hero--video .btn--ghost:hover {
  --btn-bg: rgba(255, 255, 255, 0.16);
  border-color: rgba(244, 247, 252, 0.75);
}
/* su schermi larghi il video verticale viene ingrandito molto:
   una sfocatura lieve trasforma la perdita di nitidezza in profondità voluta */
@media (min-width: 1100px) {
  .hero__bg-video { transform: scale(1.06); filter: blur(2px) saturate(1.05); }
  .hero__bg-overlay {
    background:
      linear-gradient(180deg, rgba(6,10,18,0.62) 0%, rgba(6,10,18,0.74) 55%, rgba(6,10,18,0.94) 100%),
      radial-gradient(90% 60% at 70% 30%, rgba(91,139,212,0.26), transparent 70%);
  }
}

/* 19. Correzione casella 18 anni ------------------------------------------
   `.field > label` impone display:block ed è più specifica di `.check`:
   il contenitore perdeva il flex e il quadratino si riduceva a una riga. */
.field > label.check {
  display: flex;
  margin-bottom: 0;
  font-size: 1rem;
  align-items: center;
  min-height: 56px;          /* area di tocco comoda su mobile */
}
.field > label.check .check__box {
  display: block;
  width: 24px;
  height: 24px;
  margin-top: 0;
}
