/* =============================================================
   ALME AUTÓNOMOS — styles.css
   1. Tokens  2. Reset  3. Utilities  4. Typography  5. Components
   6. Sections  7. Wizard  8. Effects  9. Responsive  10. Reduced-motion
   ============================================================= */

/* =============================================================
   0. FUENTES (alojadas en este mismo sitio: sin conexión con Google)
   Inter y Manrope — licencia SIL OFL 1.1 (ver assets/fonts/LICENSE-*.txt)
   ============================================================= */
@font-face{ font-family:"Inter"; font-style:normal; font-weight:400; font-display:swap; src:url("assets/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face{ font-family:"Inter"; font-style:normal; font-weight:500; font-display:swap; src:url("assets/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face{ font-family:"Inter"; font-style:normal; font-weight:600; font-display:swap; src:url("assets/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face{ font-family:"Inter"; font-style:normal; font-weight:700; font-display:swap; src:url("assets/fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face{ font-family:"Manrope"; font-style:normal; font-weight:700; font-display:swap; src:url("assets/fonts/manrope-latin-700-normal.woff2") format("woff2"); }
@font-face{ font-family:"Manrope"; font-style:normal; font-weight:800; font-display:swap; src:url("assets/fonts/manrope-latin-800-normal.woff2") format("woff2"); }

/* =============================================================
   1. TOKENS
   ============================================================= */
:root{
  --bg:            #f7faff;
  --bg-soft:       #eef4ff;
  --surface:       #ffffff;
  --surface-alt:   #f2f7ff;
  --ink:           #0b1c33;
  --ink-soft:      #33455c;
  --ink-mute:      #55657a;
  --blue-900:      #0a2f73;
  --blue-800:      #0d3f96;
  --blue-700:      #1454c9;
  --blue-600:      #1f63e0;
  --blue-500:      #2f74f2;
  --blue-100:      #dce9ff;
  --blue-50:       #eef4ff;
  --line:          rgba(11,28,51,.12);
  --line-soft:     rgba(11,28,51,.07);
  --success:       #15803d;
  --success-bg:    #eafbf1;
  --danger:        #c1121f;
  --danger-bg:     #fdeaea;
  --accent:        var(--blue-700);
  --accent-2:      var(--blue-900);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(11,28,51,.06), 0 1px 1px rgba(11,28,51,.04);
  --shadow-md: 0 8px 24px rgba(11,28,51,.08);
  --shadow-lg: 0 24px 60px rgba(11,28,51,.14);

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --font-display: "Manrope", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, sans-serif;

  --container: 1180px;
  --nav-h: 76px;
}

/* =============================================================
   2. RESET & BASE
   ============================================================= */
*, *::before, *::after{ box-sizing:border-box; margin:0; }
html{ -webkit-text-size-adjust:100%; tab-size:2; scroll-behavior:smooth; }
body{
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.6;
  color:var(--ink-soft);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:clip;
  overscroll-behavior-y:none;
}
img, svg, video{ display:block; max-width:100%; }
img{ height:auto; }
button{ font:inherit; color:inherit; cursor:pointer; border:0; background:none; }
a{ color:inherit; text-decoration:none; }
p{ text-wrap:pretty; }
h1,h2,h3,h4{ font-family:var(--font-display); color:var(--ink); text-wrap:balance; line-height:1.12; letter-spacing:-0.01em; font-weight:800; }
ul,ol{ list-style:none; padding:0; }
fieldset{ border:0; padding:0; }
legend{ padding:0; }
input,select,textarea{ font:inherit; color:inherit; }
::selection{ background:var(--blue-100); color:var(--blue-900); }

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

.skip-link{
  position:fixed; top:-100px; left:1rem;
  padding:.7rem 1.1rem; background:var(--ink); color:#fff;
  z-index:9999; border-radius:8px; font-weight:600;
  transition:top .2s var(--ease-out);
}
.skip-link:focus{ top:1rem; }

/* =============================================================
   3. UTILITIES
   ============================================================= */
.container{ width:100%; max-width:var(--container); margin-inline:auto; padding-inline:1.25rem; }
.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; }
.section{ padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section-head{ max-width:640px; margin-bottom:clamp(2rem,4vw,3rem); }
.eyebrow{
  display:inline-flex; align-items:center; gap:.5rem;
  font-size:.8rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase;
  color:var(--blue-700); margin-bottom:.75rem;
}
.eyebrow::before{ content:""; width:8px; height:8px; border-radius:50%; background:var(--blue-600); }
.reveal{ opacity:0; transform:translateY(24px); transition:opacity .7s var(--ease-soft), transform .7s var(--ease-soft); }
.reveal.is-visible{ opacity:1; transform:none; }
.is-hidden{ display:none !important; }
.text-center{ text-align:center; }
.stack{ display:flex; flex-direction:column; gap:1rem; }
.hr-line{ height:1px; background:var(--line); border:0; }

/* =============================================================
   4. TYPOGRAPHY
   ============================================================= */
h1{ font-size:clamp(2.2rem, 5.4vw, 3.6rem); }
h2{ font-size:clamp(1.7rem, 3.4vw, 2.5rem); }
h3{ font-size:clamp(1.15rem, 2vw, 1.4rem); }
.lede{ font-size:clamp(1.05rem, 1.6vw, 1.2rem); color:var(--ink-soft); max-width:56ch; }

/* =============================================================
   5. COMPONENTS
   ============================================================= */

/* --- Buttons --- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
  padding:.95rem 1.6rem; border-radius:var(--radius-pill);
  font-weight:700; font-size:1rem; white-space:nowrap;
  transition:transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background .25s var(--ease-out), color .25s var(--ease-out);
}
.btn-primary{ background:var(--blue-700); color:#fff; box-shadow:var(--shadow-md); }
.btn-primary:hover{ background:var(--blue-800); transform:translateY(-2px); box-shadow:var(--shadow-lg); }
.btn-ghost{ background:var(--surface); color:var(--blue-800); border:1.5px solid var(--line); }
.btn-ghost:hover{ border-color:var(--blue-500); background:var(--blue-50); transform:translateY(-2px); }
.btn-text{ color:var(--blue-700); font-weight:700; padding:.4rem 0; }
.btn-text:hover{ text-decoration:underline; }
.btn-block{ width:100%; }
.btn-lg{ padding:1.1rem 2rem; font-size:1.05rem; }
.btn[disabled]{ opacity:.55; pointer-events:none; }
.btn-whatsapp{ background:#128043; color:#fff; }
.btn-whatsapp:hover{ background:#0e6a37; }

/* --- Cards --- */
.card{
  background:var(--surface); border:1px solid var(--line-soft); border-radius:var(--radius-lg);
  padding:clamp(1.5rem,2.4vw,2.1rem); box-shadow:var(--shadow-sm);
  transition:transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s var(--ease-out);
}
.card:hover{ transform:translateY(-6px); box-shadow:var(--shadow-md); border-color:var(--blue-100); }

/* --- Nav --- */
.site-nav{
  position:sticky; top:0; z-index:200; height:var(--nav-h);
  display:flex; align-items:center;
  background:rgba(247,250,255,.85); backdrop-filter:blur(14px) saturate(160%);
  -webkit-backdrop-filter:blur(14px) saturate(160%);
  border-bottom:1px solid var(--line-soft);
}
.site-nav .container{ display:flex; align-items:center; justify-content:space-between; gap:1rem; }
.brand{ display:flex; align-items:center; gap:.55rem; font-family:var(--font-display); font-weight:800; font-size:1.15rem; color:var(--ink); }
.brand-logo{ height:34px; width:auto; display:block; }
.brand-suffix{ font-family:var(--font-body); font-weight:700; font-size:.92rem; color:var(--blue-800); padding-left:.6rem; border-left:1.5px solid var(--line); line-height:1; }
.nav-links{ display:none; align-items:center; gap:1.9rem; font-weight:600; font-size:.95rem; color:var(--ink-soft); }
.nav-links a:hover{ color:var(--blue-700); }
.nav-cta{ display:flex; align-items:center; gap:.7rem; }
.nav-cta .btn{ display:none; } /* en móvil muy estrecho, solo el botón hamburguesa: evita apretujar la marca */
.nav-toggle{ display:flex; width:42px; height:42px; align-items:center; justify-content:center; border-radius:10px; }
.nav-toggle:hover{ background:var(--blue-50); }
.nav-mobile{
  position:fixed; inset:var(--nav-h) 0 0 0; background:var(--surface); z-index:190;
  transform:translateY(-8px); opacity:0; pointer-events:none;
  transition:opacity .25s var(--ease-out), transform .25s var(--ease-out);
  overflow:auto;
}
.nav-mobile.is-open{ opacity:1; transform:none; pointer-events:auto; }
.nav-mobile .container{ display:flex; flex-direction:column; gap:.25rem; padding-block:1.5rem; }
.nav-mobile a{ padding:.95rem .25rem; font-weight:700; font-size:1.05rem; border-bottom:1px solid var(--line-soft); }
.nav-mobile .btn{ margin-top:1rem; }

/* --- Trust strip --- */
.trust-strip{ display:flex; flex-wrap:wrap; gap:.6rem 1.6rem; align-items:center; color:var(--ink-mute); font-size:.9rem; font-weight:600; }
.trust-strip li{ display:flex; align-items:center; gap:.5rem; }
.trust-strip svg{ width:18px; height:18px; color:var(--blue-600); flex-shrink:0; }

/* --- FAQ accordion --- */
.faq-item{ border-bottom:1px solid var(--line); }
.faq-q{
  width:100%; display:flex; align-items:center; justify-content:space-between; gap:1rem;
  padding:1.25rem 0; text-align:left; font-weight:700; font-size:1.02rem; color:var(--ink);
}
.faq-q .plus{ flex-shrink:0; width:26px; height:26px; border-radius:50%; border:1.5px solid var(--line); display:flex; align-items:center; justify-content:center; position:relative; transition:transform .3s var(--ease-out), background .3s var(--ease-out); }
.faq-q .plus::before, .faq-q .plus::after{ content:""; position:absolute; background:var(--blue-700); transition:transform .3s var(--ease-out); }
.faq-q .plus::before{ width:10px; height:2px; }
.faq-q .plus::after{ width:2px; height:10px; }
.faq-item.is-open .faq-q .plus{ transform:rotate(180deg); background:var(--blue-700); }
.faq-item.is-open .faq-q .plus::before, .faq-item.is-open .faq-q .plus::after{ background:#fff; }
.faq-item.is-open .faq-q .plus::after{ transform:scaleY(0); }
.faq-a{ display:grid; grid-template-rows:0fr; transition:grid-template-rows .35s var(--ease-out); }
.faq-a > div{ overflow:hidden; }
.faq-item.is-open .faq-a{ grid-template-rows:1fr; }
.faq-a p{ padding-bottom:1.25rem; color:var(--ink-soft); max-width:68ch; }

/* --- Cookie banner (AEPD: Aceptar / Rechazar / Configurar con el mismo peso visual) --- */
.cookie-banner{
  position:fixed; left:1rem; right:1rem; bottom:1rem; z-index:400;
  max-width:600px; margin-inline:auto; max-height:calc(100dvh - 2rem); overflow-y:auto;
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-lg);
  box-shadow:var(--shadow-lg); padding:1.4rem;
  transform:translateY(140%); transition:transform .5s var(--ease-out);
}
.cookie-banner[hidden]{ display:none; }
.cookie-banner.is-visible{ transform:none; }
.cookie-title{ font-size:1.05rem; margin-bottom:.5rem; }
.cookie-banner p{ font-size:.9rem; color:var(--ink-soft); margin-bottom:1rem; }
.cookie-banner p a{ color:var(--blue-700); font-weight:600; text-decoration:underline; }
.cookie-banner .actions{ display:flex; flex-wrap:wrap; gap:.6rem; }
.btn-cookie{ flex:1 1 0; min-width:7.5rem; padding:.75rem 1rem; font-size:.92rem; background:var(--surface); color:var(--blue-800); border:2px solid var(--blue-700); }
.btn-cookie:hover{ background:var(--blue-50); transform:none; }
.cookie-settings{ display:none; margin-top:1rem; padding-top:1rem; border-top:1px solid var(--line); gap:.85rem; }
.cookie-settings.is-open{ display:flex; flex-direction:column; }
.cookie-toggle-row{ display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; font-size:.9rem; }
.cookie-toggle-row b{ display:block; color:var(--ink); }
.cookie-toggle-row small{ display:block; color:var(--ink-mute); font-size:.8rem; line-height:1.45; margin-top:.15rem; }
.cookie-toggle-row input{ width:22px; height:22px; flex-shrink:0; accent-color:var(--blue-700); margin-top:.1rem; }
.footer-link-btn, .inline-link-btn{ color:var(--ink-soft); font-size:.92rem; text-align:left; text-decoration:underline; text-underline-offset:3px; padding:.35rem 0; }
.footer-link-btn:hover, .inline-link-btn:hover{ color:var(--blue-700); }
.inline-link-btn{ display:inline; padding:0; font-size:inherit; color:var(--blue-700); font-weight:600; }

/* =============================================================
   6. SECTIONS
   ============================================================= */

/* --- Hero --- */
.hero{ position:relative; padding-block:clamp(3rem,8vw,6rem) clamp(3.5rem,6vw,5rem); overflow:clip; }
.hero-blob{
  position:absolute; z-index:-1; inset:-10% -10% auto auto; width:60vw; height:60vw; max-width:820px; max-height:820px;
  background:radial-gradient(circle at 30% 30%, var(--blue-100), transparent 60%),
             radial-gradient(circle at 70% 70%, var(--blue-50), transparent 55%);
  filter:blur(10px); animation:blobDrift 22s ease-in-out infinite; aria-hidden:true;
}
@keyframes blobDrift{ 0%,100%{ transform:translate(0,0) scale(1);} 50%{ transform:translate(-3%,3%) scale(1.06);} }
.hero-grid{ display:grid; gap:clamp(2.5rem,5vw,4rem); align-items:center; }
.hero-copy p.lede{ margin-block:1.1rem 1.8rem; }
.hero-ctas{ display:flex; flex-wrap:wrap; gap:.9rem; margin-bottom:1.4rem; }
.hero-panel{
  background:var(--surface); border:1px solid var(--line-soft); border-radius:var(--radius-lg);
  box-shadow:var(--shadow-lg); padding:clamp(1.6rem,2.6vw,2.2rem);
}
.hero-panel h2{ font-size:1.25rem; margin-bottom:1rem; }
.hero-panel ul{ display:flex; flex-direction:column; gap:.85rem; }
.hero-panel li{ display:flex; gap:.7rem; align-items:flex-start; font-size:.95rem; color:var(--ink-soft); }
.hero-panel .num{
  flex-shrink:0; width:26px; height:26px; border-radius:50%; background:var(--blue-50); color:var(--blue-700);
  display:flex; align-items:center; justify-content:center; font-weight:800; font-size:.8rem;
}

/* --- Needs grid --- */
.needs-grid{ display:grid; gap:1.1rem; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); }
.need-card{ display:flex; flex-direction:column; height:100%; }
.need-icon{ width:52px; height:52px; border-radius:14px; background:var(--blue-50); color:var(--blue-700); display:flex; align-items:center; justify-content:center; margin-bottom:1.1rem; }
.need-icon svg{ width:26px; height:26px; }
.need-card h3{ margin-bottom:.5rem; }
.need-card p{ font-size:.94rem; color:var(--ink-soft); flex-grow:1; margin-bottom:1.2rem; }

/* --- Trust / human section --- */
.trust-block{ display:grid; grid-template-columns:minmax(0,1fr); gap:clamp(2rem,4vw,3.5rem); align-items:center; }
.trust-card{ background:var(--blue-900); color:#fff; border-radius:var(--radius-lg); padding:clamp(2rem,3vw,2.6rem); }
.trust-card h2{ color:#fff; }
.trust-card p{ color:rgba(255,255,255,.82); }
.trust-figures{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; margin-top:1.6rem; }
.trust-figure b{ display:block; font-family:var(--font-display); font-size:clamp(1.05rem,4.6vw,1.4rem); font-weight:800; overflow-wrap:anywhere; }
.trust-figure span{ font-size:.82rem; color:rgba(255,255,255,.7); }

/* --- Steps (proceso) --- */
.steps-grid{ display:grid; gap:1.4rem; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); counter-reset:step; }
.step{ position:relative; padding-top:2.6rem; }
.step::before{
  counter-increment:step; content:counter(step,decimal-leading-zero);
  font-family:var(--font-display); font-weight:800; font-size:1.6rem; color:var(--blue-200,#a8c8ff);
  -webkit-text-stroke:1.5px var(--blue-600); color:transparent; display:block; margin-bottom:.4rem;
}
.step h3{ font-size:1.05rem; margin-bottom:.4rem; }
.step p{ font-size:.9rem; color:var(--ink-mute); }

/* --- CTA band --- */
.cta-band{ background:linear-gradient(135deg,var(--blue-700),var(--blue-900)); border-radius:var(--radius-lg); padding:clamp(2.2rem,4vw,3.4rem); color:#fff; text-align:center; }
.cta-band h2{ color:#fff; }
.cta-band p{ color:rgba(255,255,255,.85); max-width:52ch; margin-inline:auto; margin-block:.8rem 1.6rem; }
.cta-band .hero-ctas{ justify-content:center; }
.cta-band .btn-ghost{ background:rgba(255,255,255,.08); color:#fff; border-color:rgba(255,255,255,.35); }
.cta-band .btn-ghost:hover{ background:rgba(255,255,255,.16); }
.cta-band .btn-primary{ background:#fff; color:var(--blue-800); }
.cta-band .btn-primary:hover{ background:#eef4ff; }

/* --- Footer --- */
.site-footer{ border-top:1px solid var(--line); padding-block:clamp(2.5rem,4vw,3.5rem) 2rem; background:var(--surface-alt); }
.footer-grid{ display:grid; gap:2rem; grid-template-columns:minmax(0,1fr); margin-bottom:2rem; }
.footer-col a, .footer-link-btn{ overflow-wrap:anywhere; }
.footer-col h4{ font-size:.85rem; text-transform:uppercase; letter-spacing:.04em; color:var(--ink-mute); margin-bottom:.9rem; }
.footer-col a{ display:block; padding:.35rem 0; font-size:.92rem; color:var(--ink-soft); }
.footer-col a:hover{ color:var(--blue-700); }
.footer-brand p{ font-size:.88rem; color:var(--ink-mute); margin-block:.8rem 1rem; max-width:34ch; }
.footer-bottom{ display:flex; flex-wrap:wrap; gap:.6rem 1.2rem; justify-content:space-between; align-items:center; padding-top:1.6rem; border-top:1px solid var(--line); font-size:.82rem; color:var(--ink-mute); }
.footer-legal-note{ font-size:.78rem; color:var(--ink-mute); max-width:78ch; margin-top:1rem; line-height:1.6; }

/* --- Legal pages --- */
.legal-page main{ padding-block:clamp(2.5rem,5vw,4rem); }
.legal-page .container{ max-width:820px; }
.legal-page h1{ margin-bottom:.6rem; }
.legal-page .updated{ color:var(--ink-mute); font-size:.88rem; margin-bottom:2rem; }
.legal-page h2{ font-size:1.25rem; margin-block:2rem .7rem; }
.legal-page h3{ font-size:1.05rem; margin-block:1.3rem .5rem; }
.legal-page p, .legal-page li{ color:var(--ink-soft); margin-bottom:.85rem; }
.legal-page ul{ list-style:disc; padding-left:1.3rem; }
.legal-page .pending{ background:var(--blue-50); color:var(--blue-800); padding:.15rem .5rem; border-radius:6px; font-weight:700; font-size:.85em; }

.legal-page a{ color:var(--blue-700); text-decoration:underline; text-underline-offset:2px; }
.legal-page code{ font-size:.85em; background:var(--blue-50); padding:.1rem .35rem; border-radius:5px; color:var(--blue-900); }
.legal-table-wrap{ overflow-x:auto; margin-bottom:1rem; }
.legal-table{ width:100%; border-collapse:collapse; font-size:.9rem; margin-bottom:1rem; background:var(--surface); }
.legal-table th, .legal-table td{ text-align:left; vertical-align:top; padding:.65rem .75rem; border:1px solid var(--line); color:var(--ink-soft); }
.legal-table th{ background:var(--surface-alt); color:var(--ink); font-size:.8rem; text-transform:uppercase; letter-spacing:.03em; }
.cta-contact{ font-size:.95rem; margin-top:1.4rem !important; }
.cta-band .cta-contact a{ color:#fff; text-decoration:underline; text-underline-offset:3px; font-weight:700; }
.wz-privacy-basic{ background:var(--surface-alt); border:1px solid var(--line-soft); border-radius:var(--radius-md); padding:.9rem 1.1rem; margin-bottom:1rem; font-size:.82rem; color:var(--ink-soft); }
.wz-privacy-basic p{ margin-bottom:.4rem; color:var(--ink); }
.wz-privacy-basic ul{ list-style:disc; padding-left:1.1rem; }
.wz-privacy-basic li{ margin-bottom:.2rem; line-height:1.5; }
.wz-privacy-basic a{ color:var(--blue-700); font-weight:600; text-decoration:underline; }
.footer-legal-note a{ text-decoration:underline; }

/* =============================================================
   7. WIZARD / FORM
   ============================================================= */
/* #wizard is a normal in-page <section> by default (visible, no JS needed).
   With JS, body.wizard-open promotes it to a full-viewport overlay. This
   keeps the form 100% reachable and usable with JavaScript disabled. */
#wizard{ scroll-margin-top:calc(var(--nav-h) + 12px); background:var(--surface-alt); border-top:1px solid var(--line); }
.wizard-backdrop{ position:fixed; inset:0; background:rgba(11,28,51,.55); backdrop-filter:blur(3px); z-index:490; opacity:0; visibility:hidden; transition:opacity .3s var(--ease-out); }
.wizard-inner{ background:transparent; }
body.wizard-open{ overflow:hidden; }
body.wizard-open .wizard-backdrop{ opacity:1; visibility:visible; }
body.wizard-open #wizard{ position:fixed; inset:0; z-index:500; display:block; }
body.wizard-open #wizard .wizard-inner{ position:relative; z-index:501; height:100%; background:var(--bg); }
.wizard-shell{ display:block; }
body.wizard-open #wizard .wizard-shell{ display:flex; flex-direction:column; height:100%; height:100svh; }
.wizard-top{ display:flex; align-items:center; gap:1rem; padding:1rem 1.25rem; border-bottom:1px solid var(--line-soft); background:var(--surface); }
.wizard-close{ width:40px; height:40px; border-radius:50%; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.wizard-close:hover{ background:var(--blue-50); }
.wizard-progress-wrap{ flex-grow:1; }
.wizard-progress-track{ height:6px; border-radius:99px; background:var(--line); overflow:hidden; }
.wizard-progress-bar{ height:100%; width:8%; background:linear-gradient(90deg,var(--blue-600),var(--blue-800)); border-radius:99px; transition:width .4s var(--ease-out); }
.wizard-progress-label{ font-size:.78rem; color:var(--ink-mute); margin-top:.4rem; font-weight:600; }
.wizard-body{ flex-grow:1; overflow-y:auto; display:flex; flex-direction:column; -webkit-overflow-scrolling:touch; }
.wizard-body-inner{ flex-grow:1; max-width:640px; width:100%; margin-inline:auto; padding:clamp(1.6rem,4vw,3rem) 1.25rem 1.5rem; }

.wz-step{ display:none; animation:fadeUp .45s var(--ease-soft); }
.wz-step.is-active{ display:block; }
@keyframes fadeUp{ from{ opacity:0; transform:translateY(14px);} to{ opacity:1; transform:none;} }
.wz-step legend{ font-family:var(--font-display); font-weight:800; font-size:clamp(1.3rem,2.6vw,1.7rem); color:var(--ink); margin-bottom:.5rem; }
.wz-hint{ color:var(--ink-mute); font-size:.92rem; margin-bottom:1.6rem; }

.wz-options{ display:flex; flex-direction:column; gap:.7rem; }
.wz-option{ position:relative; }
.wz-option input{ position:absolute; opacity:0; inset:0; width:100%; height:100%; cursor:pointer; margin:0; }
.wz-option-card{
  display:flex; align-items:center; gap:.9rem; padding:1rem 1.1rem; border:1.5px solid var(--line); border-radius:var(--radius-md);
  background:var(--surface); transition:border-color .2s var(--ease-out), background .2s var(--ease-out), transform .15s var(--ease-out);
}
.wz-option input:hover + .wz-option-card{ border-color:var(--blue-300,#9cc0ff); }
.wz-option input:focus-visible + .wz-option-card{ outline:2px solid var(--blue-600); outline-offset:2px; }
.wz-option input:checked + .wz-option-card{ border-color:var(--blue-600); background:var(--blue-50); }
.wz-option-check{ width:22px; height:22px; border-radius:7px; border:1.5px solid var(--line); flex-shrink:0; display:flex; align-items:center; justify-content:center; }
.wz-option input[type="radio"] + .wz-option-card .wz-option-check{ border-radius:50%; }
.wz-option input:checked + .wz-option-card .wz-option-check{ background:var(--blue-600); border-color:var(--blue-600); }
.wz-option-check svg{ width:13px; height:13px; color:#fff; opacity:0; transition:opacity .15s; }
.wz-option input:checked + .wz-option-card .wz-option-check svg{ opacity:1; }
.wz-option-text b{ display:block; font-size:.98rem; color:var(--ink); }
.wz-option-text span{ font-size:.84rem; color:var(--ink-mute); }

.wz-field{ margin-bottom:1.4rem; }
.wz-field label{ display:block; font-weight:700; font-size:.92rem; color:var(--ink); margin-bottom:.5rem; }
.wz-field .wz-optional{ font-weight:500; color:var(--ink-mute); }
.wz-input, .wz-select, .wz-textarea{
  width:100%; padding:.9rem 1rem; border:1.5px solid var(--line); border-radius:var(--radius-sm);
  background:var(--surface); font-size:1rem; transition:border-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.wz-input:focus, .wz-select:focus, .wz-textarea:focus{ outline:none; border-color:var(--blue-600); box-shadow:0 0 0 4px var(--blue-50); }
.wz-textarea{ resize:vertical; min-height:100px; }
.wz-error{ color:var(--danger); font-size:.84rem; margin-top:.4rem; display:none; }
.wz-field.has-error .wz-input, .wz-field.has-error .wz-select, .wz-field.has-error .wz-textarea{ border-color:var(--danger); }
.wz-field.has-error .wz-error{ display:block; }

.wz-consent{ display:flex; gap:.8rem; align-items:flex-start; padding:1rem; border:1.5px solid var(--line); border-radius:var(--radius-md); margin-bottom:.85rem; }
.wz-consent input{ margin-top:.2rem; width:19px; height:19px; accent-color:var(--blue-700); flex-shrink:0; }
.wz-consent p{ font-size:.88rem; color:var(--ink-soft); }
.wz-consent a{ color:var(--blue-700); font-weight:600; text-decoration:underline; }

.wz-summary{ background:var(--surface-alt); border:1px solid var(--line-soft); border-radius:var(--radius-md); padding:1.1rem 1.25rem; margin-bottom:1.6rem; font-size:.9rem; color:var(--ink-soft); }
.wz-summary b{ color:var(--ink); }

.wizard-foot{
  position:sticky; bottom:0; z-index:2;
  display:flex; align-items:center; justify-content:space-between; gap:1rem;
  padding:1rem 1.25rem; border-top:1px solid var(--line-soft); background:var(--surface);
  max-width:640px; width:100%; margin-inline:auto;
  /* sticky DENTRO del área con scroll (.wizard-body): así el teclado móvil
     nunca lo tapa, a diferencia de un pie fijo fuera del contenedor con scroll. */
  transform:translateZ(0); /* fuerza su propia capa de composición: evita que
     algunos navegadores tarden en pintar el sticky en su primer render
     (síntoma: el botón "Continuar" no se ve azul hasta interactuar/tabular) */
}
.wizard-foot .btn{ padding:.85rem 1.5rem; }
.wz-back{ visibility:hidden; }
.wz-back.is-visible{ visibility:visible; }

.wz-success{ text-align:center; padding-block:2rem; }
.wz-success-icon{ width:76px; height:76px; border-radius:50%; background:var(--success-bg); color:var(--success); display:flex; align-items:center; justify-content:center; margin:0 auto 1.4rem; }
.wz-success-icon svg{ width:36px; height:36px; }
.wz-success h2{ margin-bottom:.7rem; }
.wz-success p{ color:var(--ink-soft); max-width:44ch; margin-inline:auto; margin-bottom:1.8rem; }
.wz-success .hero-ctas{ justify-content:center; }
.wz-submit-error{ background:var(--danger-bg); color:var(--danger); border-radius:var(--radius-md); padding:1rem 1.1rem; font-size:.9rem; margin-bottom:1.4rem; display:none; }
.wz-submit-error.is-visible{ display:block; }

/* --- No-JS fallback: show every fieldset stacked, hide stepper chrome --- */
.no-js .wizard-top,
.no-js .wizard-foot,
.no-js .wizard-backdrop{ display:none !important; }
.no-js .wz-step{ display:block !important; padding-bottom:2.2rem; border-bottom:1px solid var(--line); margin-bottom:2.2rem; animation:none; }
.no-js .wz-step:last-of-type{ border-bottom:0; }
.no-js #wizard{ position:static !important; }
.no-js .wizard-body{ overflow:visible; }
.no-js [data-wz-success]{ display:none !important; }
.no-js-submit{ display:none; }
.no-js .no-js-submit{ display:block; margin-top:1rem; }
.static-form-note{ display:none; }
.no-js .static-form-note{ display:block; margin-bottom:1.8rem; padding:1rem 1.2rem; background:var(--blue-50); border-radius:var(--radius-md); font-size:.9rem; color:var(--blue-900); }

/* =============================================================
   8. EFFECTS (reduced-motion aware)
   ============================================================= */
@media (prefers-reduced-motion: reduce){
  .hero-blob{ animation:none; }
}

/* =============================================================
   9. RESPONSIVE
   ============================================================= */
@media (min-width:540px){
  .trust-figures{ grid-template-columns:repeat(3,minmax(0,1fr)); }
  .nav-cta .btn{ display:inline-flex; }
}
@media (max-width:639px){
  .legal-table.stack-sm thead{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
  .legal-table.stack-sm, .legal-table.stack-sm tbody, .legal-table.stack-sm tr, .legal-table.stack-sm td{ display:block; width:100%; }
  .legal-table.stack-sm tr{ border:1px solid var(--line); border-radius:var(--radius-sm); margin-bottom:.8rem; background:var(--surface); overflow:hidden; }
  .legal-table.stack-sm td{ border:0; border-bottom:1px solid var(--line-soft); padding:.55rem .8rem; overflow-wrap:anywhere; }
  .legal-table.stack-sm td:last-child{ border-bottom:0; }
  .legal-table.stack-sm td::before{ content:attr(data-label); display:block; font-size:.72rem; font-weight:700; text-transform:uppercase; letter-spacing:.03em; color:var(--ink-mute); margin-bottom:.15rem; }
}
@media (max-width:539px){
  .brand-suffix{ display:none; } /* en móvil muy estrecho, prioriza el logo y el botón de menú */
}
@media (min-width:540px){
  .footer-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (min-width:720px){
  .hero-grid{ grid-template-columns:1.15fr .85fr; }
  .footer-bottom{ flex-wrap:nowrap; }
}
@media (min-width:960px){
  .footer-grid{ grid-template-columns:1.4fr repeat(3,minmax(0,1fr)); }
  .nav-links{ display:flex; }
  .nav-toggle{ display:none; }
  .nav-mobile{ display:none !important; }
  .trust-block{ grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
  body.wizard-open #wizard{ display:flex; align-items:center; justify-content:center; padding:3vh 0; }
  body.wizard-open #wizard .wizard-inner{ width:min(680px, 92vw); height:min(88vh, 780px); border-radius:var(--radius-lg); box-shadow:var(--shadow-lg); overflow:hidden; }
}
@media (min-width:1280px){
  .needs-grid{ grid-template-columns:repeat(3,1fr); }
}

/* =============================================================
   10. PRINT (legal pages)
   ============================================================= */
@media print{
  .site-nav, .site-footer, .cookie-banner, .wizard-trigger{ display:none; }
}
