/* =========================================================
   NEXA WEB — Sistema visual
   Mobile-first. Paleta lavanda / blanco / grises.
   ========================================================= */

:root {
  /* Paleta */
  --lav: #9b83d5;          /* lavanda principal (decorativo, fondos, íconos) */
  --lav-strong: #7a5fc0;   /* lavanda para botones y texto (contraste AA con blanco) */
  --lav-deep: #5e46a3;     /* hover / foco */
  --lav-200: #eae2f6;      /* lavanda claro */
  --lav-50: #f6f2fc;       /* lavanda muy suave */
  --white: #ffffff;
  --pearl: #f1f1f4;        /* gris perla */
  --mid: #88858f;          /* gris medio (decorativo) */
  --text-2: #5d5a64;       /* gris para textos secundarios (AA sobre blanco) */
  --ink: #29272e;          /* gris casi negro */
  --line: #e4e1ea;

  /* Tipografía */
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Escala */
  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.08rem);
  --step-1: clamp(1.15rem, 1.08rem + 0.35vw, 1.35rem);
  --step-2: clamp(1.45rem, 1.3rem + 0.75vw, 1.9rem);
  --step-3: clamp(1.9rem, 1.6rem + 1.5vw, 2.85rem);
  --step-4: clamp(2.6rem, 2rem + 3vw, 4.6rem);

  /* Espaciado, radios, sombras */
  --gutter: 20px;
  --maxw: 1160px;
  --section-y: clamp(64px, 9vw, 120px);
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(41, 39, 46, 0.05), 0 2px 8px rgba(41, 39, 46, 0.04);
  --shadow-md: 0 10px 30px -12px rgba(76, 54, 140, 0.18), 0 2px 6px rgba(41, 39, 46, 0.05);
  --shadow-lg: 0 30px 70px -28px rgba(76, 54, 140, 0.35), 0 8px 20px -10px rgba(41, 39, 46, 0.12);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.08; letter-spacing: -0.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--lav); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
  text-decoration: none; transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 32px; } }

.section { padding: var(--section-y) 0; position: relative; }
.section--pearl { background: var(--pearl); }
.section--lav { background: linear-gradient(180deg, var(--lav-50) 0%, #fff 100%); }

/* ---------- Tipografía ---------- */
.serif { font-family: var(--serif); font-optical-sizing: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-2); font-weight: 500;
}
.eyebrow::after { content: ""; width: 48px; height: 1px; background: var(--lav); }
.eyebrow--center { justify-content: center; }

.h-display {
  font-family: var(--serif); font-size: var(--step-4);
  font-weight: 380; line-height: 0.98; letter-spacing: -0.025em;
  font-variation-settings: "SOFT" 50, "WONK" 0;
}
.h-section {
  font-family: var(--serif); font-size: var(--step-3);
  font-weight: 380; letter-spacing: -0.02em; line-height: 1.06;
}
.h-card { font-family: var(--sans); font-size: var(--step-1); font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.accent { color: var(--lav-strong); font-style: italic; font-weight: 340; }
.lead { font-size: var(--step-1); color: var(--text-2); line-height: 1.55; max-width: 36ch; }
.muted { color: var(--text-2); }
.small { font-size: var(--step--1); }

.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .h-section { margin-top: 16px; }
.section-head p { margin-top: 18px; color: var(--text-2); font-size: var(--step-1); }
.section-head--center p { margin-left: auto; margin-right: auto; max-width: 52ch; }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--lav-strong); --fg: #fff; --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border-radius: var(--r-pill); border: 1.5px solid var(--bd);
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: 1rem; letter-spacing: 0.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), box-shadow 0.25s var(--ease), color 0.25s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { --bg: var(--lav-deep); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn--ghost { --bg: transparent; --fg: var(--ink); --bd: #cfc8dd; }
.btn--ghost:hover { --bg: var(--lav-50); --bd: var(--lav); box-shadow: none; }
.btn--dark { --bg: var(--ink); }
.btn--dark:hover { --bg: #000; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.7; cursor: progress; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600;
  color: var(--lav-strong); text-decoration: none; min-height: 44px;
}
.link-arrow:hover { color: var(--lav-deep); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Íconos ---------- */
.icon-circle {
  width: 56px; height: 56px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--lav-200); color: var(--ink);
}
.icon-circle svg { width: 26px; height: 26px; }
.ico { stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: linear-gradient(140deg, var(--lav) 0%, #c5b5ea 100%);
  display: grid; place-items: center; color: #fff;
  font-family: var(--serif); font-size: 1.15rem; font-weight: 500; font-style: italic;
}
.logo-text { font-weight: 600; letter-spacing: 0.16em; font-size: 0.82rem; text-transform: uppercase; }
.logo img { height: 36px; width: auto; display: block; }
.site-footer .logo img { height: 46px; }

.nav { display: none; }
.nav ul { display: flex; gap: 6px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  text-decoration: none; color: var(--text-2); font-size: 0.95rem; border-radius: var(--r-pill);
  transition: color 0.2s, background 0.2s;
}
.nav a:hover { color: var(--ink); background: var(--lav-50); }
.header-cta { display: none; }

.menu-toggle {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; display: grid; place-items: center; cursor: pointer;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 18px; height: 1.5px; background: var(--ink); border-radius: 2px;
  position: relative; transition: transform 0.3s var(--ease), opacity 0.2s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 68px 0 auto 0; z-index: 49;
  background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
  padding: 8px var(--gutter) 20px;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}
.mobile-nav.is-open { transform: none; opacity: 1; visibility: visible; }
.mobile-nav a:not(.btn) {
  display: flex; align-items: center; min-height: 52px; text-decoration: none;
  border-bottom: 1px solid var(--pearl); font-size: 1.05rem;
}
.mobile-nav .btn { margin-top: 16px; width: 100%; }

@media (min-width: 960px) {
  .nav, .header-cta { display: flex; }
  .menu-toggle, .mobile-nav { display: none; }
  .header-cta { min-height: 44px; padding: 0 20px; font-size: 0.95rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 28px 0 64px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; z-index: -1;
  width: 820px; height: 820px; border-radius: 50%;
  right: -420px; top: 120px;
  background: radial-gradient(closest-side, #dccff3 0%, #ebe3f8 55%, rgba(246, 242, 252, 0) 100%);
}
.hero::after {
  content: ""; position: absolute; z-index: -2; inset: 0;
  background: linear-gradient(180deg, #fff 0%, var(--lav-50) 100%);
}
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.hero h1 { margin-top: 20px; }
.hero h1 .line2 { display: block; color: var(--lav-strong); font-style: italic; font-weight: 340; }
.hero .lead { margin-top: 22px; }
.hero .btn-row { margin-top: 30px; }
.hero .btn-row .btn { flex: 1 1 auto; }
.hero-note {
  margin-top: 22px; display: block; max-width: 44ch;
  font-size: var(--step--1); color: var(--text-2);
}
.hero-note strong { color: var(--ink); font-weight: 600; }
.hero-note .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--lav); margin-right: 8px; vertical-align: middle; }

@media (min-width: 560px) { .hero .btn-row .btn { flex: 0 0 auto; } }
/* Celular y tablet: portada centrada */
@media (max-width: 959px) {
  .hero-copy { text-align: center; }
  .hero .eyebrow { justify-content: center; gap: 10px; letter-spacing: 0.16em; white-space: nowrap; font-size: 0.74rem; }
  .hero .eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--lav); flex: none; }
  .hero .eyebrow::after { width: 22px; flex: none; }
  .hero-note .dot { display: none; }
  .hero .lead, .hero-note { margin-left: auto; margin-right: auto; }
  .hero .btn-row { justify-content: center; }
}
@media (min-width: 960px) {
  .hero { padding: 56px 0 110px; }
  .hero::before { right: -260px; top: -40px; width: 980px; height: 980px; }
  .hero-grid { grid-template-columns: 1fr 1.08fr; gap: 24px; }
}

/* ---------- Mockups (notebook + celular) ---------- */
.device-stage { position: relative; padding-bottom: 6%; padding-right: 6%; }
.laptop { position: relative; width: 100%; filter: drop-shadow(0 34px 40px rgba(76, 54, 140, 0.22)); }
.laptop-screen {
  position: relative; border-radius: 14px 14px 0 0; padding: 2.4% 2.4% 2.2%;
  background: linear-gradient(180deg, #2b2a30 0%, #1d1c21 100%);
}
.laptop-screen::before {
  content: ""; position: absolute; top: 0.9%; left: 50%; width: 5px; height: 5px;
  border-radius: 50%; background: #3e3d45; transform: translateX(-50%);
}
.laptop-screen .viewport { border-radius: 3px; overflow: hidden; aspect-ratio: 16 / 10; background: #fff; }
.laptop-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.laptop-base {
  position: relative; height: 0; padding-bottom: 3.6%; margin: 0 -6.5%;
  background: linear-gradient(180deg, #e6e5ea 0%, #c9c8cf 55%, #a9a8b0 100%);
  border-radius: 0 0 18px 18px / 0 0 60px 60px;
}
.laptop-base::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 15%; height: 38%; border-radius: 0 0 10px 10px; background: #b8b7bf;
}
.phone {
  position: absolute; right: 0; bottom: 0; width: 25%; min-width: 92px;
  padding: 2.2% 1.8%; border-radius: 22px;
  background: linear-gradient(160deg, #34333a 0%, #1b1a1f 100%);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.phone .viewport { border-radius: 15px; overflow: hidden; aspect-ratio: 9 / 19.5; background: #fff; position: relative; }
.phone .viewport::before {
  content: ""; position: absolute; top: 2.5%; left: 50%; transform: translateX(-50%);
  width: 30%; height: 3.2%; border-radius: 10px; background: #1b1a1f; z-index: 2;
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.device-stage .float-chip {
  position: absolute; left: -2%; bottom: 14%; z-index: 3;
  display: flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 10px 14px; box-shadow: var(--shadow-md); font-size: 0.82rem; line-height: 1.3;
}
.device-stage .float-chip .icon-circle { width: 34px; height: 34px; }
.device-stage .float-chip .icon-circle svg { width: 18px; height: 18px; }
.device-stage .float-chip strong { display: block; font-weight: 600; }
@media (max-width: 420px) { .device-stage .float-chip { display: none; } }

/* ---------- Problema ---------- */
.problem-grid { display: grid; gap: 32px; }
.problem-list { display: grid; gap: 12px; }
.problem-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
}
.problem-item .num {
  font-family: var(--serif); font-style: italic; color: var(--lav-strong);
  font-size: 1.35rem; line-height: 1; min-width: 28px; padding-top: 2px;
}
.problem-item p { color: var(--ink); }
.problem-item p span { display: block; color: var(--text-2); font-size: var(--step--1); margin-top: 2px; }
.problem-aside { color: var(--text-2); font-size: var(--step-1); max-width: 40ch; }
.problem-aside strong { color: var(--ink); font-weight: 600; }
@media (min-width: 960px) {
  .problem-grid { grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: start; }
  .problem-grid .section-head { position: sticky; top: 110px; margin-bottom: 0; }
}

/* ---------- Beneficios ---------- */
.benefits { display: grid; gap: 16px; }
.benefit {
  position: relative; padding: 28px 24px; border-radius: var(--r-lg);
  background: #fff; border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.benefit:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #ddd3f0; }
.benefit .h-card { margin-top: 22px; }
.benefit p { margin-top: 8px; color: var(--text-2); }
@media (min-width: 640px) { .benefits { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .benefits { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Ejemplos ---------- */
.examples { display: grid; gap: 28px; }
.example {
  display: flex; flex-direction: column; border-radius: var(--r-lg);
  background: #fff; border: 1px solid var(--line); overflow: hidden;
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}
.example:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.example-visual {
  position: relative; padding: 28px 24px 22px;
  background: linear-gradient(160deg, var(--lav-50) 0%, var(--pearl) 100%);
}
.example-visual .device-stage { padding-right: 9%; }
.example-visual .phone { width: 27%; min-width: 70px; border-radius: 16px; padding: 2.4% 2%; }
.example-visual .phone .viewport { border-radius: 11px; }
.example-visual .laptop-screen { border-radius: 10px 10px 0 0; }
.example-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.example-body .tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-flex; align-items: center; height: 28px; padding: 0 12px;
  border-radius: var(--r-pill); font-size: 0.78rem; font-weight: 500;
  background: var(--lav-50); color: var(--lav-deep); border: 1px solid var(--lav-200);
}
.tag--neutral { background: var(--pearl); color: var(--text-2); border-color: var(--line); }
.example-body p { color: var(--text-2); }
.example-body .link-arrow { margin-top: auto; }
.examples-note { margin-top: 28px; text-align: center; color: var(--text-2); font-size: var(--step--1); }
@media (min-width: 900px) { .examples { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

/* ---------- Precio ---------- */
.pricing-wrap {
  display: grid; gap: 0; border-radius: 28px; overflow: hidden;
  background: #fff; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.pricing-main { padding: clamp(28px, 5vw, 56px); }
.pricing-main .tag { margin-bottom: 18px; }
.pricing-main .h-section { max-width: 16ch; }
.pricing-main .sub { margin-top: 12px; color: var(--text-2); font-size: var(--step-1); }
.includes { margin-top: 28px; display: grid; gap: 14px; }
.includes li { display: flex; gap: 12px; align-items: flex-start; }
.check {
  width: 24px; height: 24px; border-radius: 50%; flex: none; margin-top: 1px;
  background: var(--lav-200); color: var(--lav-deep); display: grid; place-items: center;
}
.check svg { width: 14px; height: 14px; }
.pricing-side {
  padding: clamp(28px, 5vw, 56px);
  background: linear-gradient(160deg, #f3edfb 0%, var(--lav-200) 100%);
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
  position: relative; overflow: hidden;
}
.pricing-side::before {
  content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%;
  right: -160px; top: -160px; background: radial-gradient(closest-side, rgba(255,255,255,0.7), rgba(255,255,255,0));
}
.price-label { font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-2); }
.price {
  font-family: var(--serif); font-weight: 360; color: var(--lav-deep);
  font-size: clamp(3.2rem, 2.4rem + 4vw, 5.4rem); line-height: 0.95; letter-spacing: -0.03em;
  display: flex; align-items: flex-start; gap: 4px;
}
.price .cur { font-size: 0.5em; margin-top: 0.18em; }
.price-meta { font-size: 0.9rem; color: var(--text-2); }
.price-fine { font-size: 0.9rem; color: var(--text-2); line-height: 1.5; border-top: 1px solid rgba(94, 70, 163, 0.18); padding-top: 16px; }
.pricing-side .btn { position: relative; }
@media (min-width: 900px) { .pricing-wrap { grid-template-columns: 1.25fr 1fr; } }

/* ---------- Contratación (pago) ---------- */
.pay-grid { display: grid; gap: 18px; }
.pay-card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 28px 24px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.pay-card:hover { border-color: #d6cbee; box-shadow: var(--shadow-md); }
.pay-card--featured { border-color: var(--lav); box-shadow: var(--shadow-md); }
.pay-card .badge {
  position: absolute; top: -13px; left: 24px; height: 26px; padding: 0 12px; border-radius: var(--r-pill);
  background: var(--lav-strong); color: #fff; font-size: 0.75rem; font-weight: 600; display: inline-flex; align-items: center;
}
.pay-card .amount { font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--ink); letter-spacing: -0.02em; }
.pay-card .amount small { font-family: var(--sans); font-size: 0.85rem; color: var(--text-2); letter-spacing: 0; margin-left: 6px; }
.pay-breakdown { display: grid; gap: 8px; padding: 14px 16px; border-radius: var(--r-md); background: var(--lav-50); font-size: 0.93rem; }
.pay-breakdown div { display: flex; justify-content: space-between; gap: 12px; }
.pay-breakdown dt { color: var(--text-2); }
.pay-breakdown dd { margin: 0; font-weight: 600; }
.pay-card .btn { margin-top: auto; }
.pay-legal { margin-top: 22px; text-align: center; font-size: var(--step--1); color: var(--text-2); }
.pay-legal a { color: var(--lav-deep); }
.mp-secure { display: inline-flex; align-items: center; gap: 8px; justify-content: center; width: 100%; margin-top: 14px; font-size: var(--step--1); color: var(--text-2); }
.mp-secure svg { width: 16px; height: 16px; }
@media (min-width: 760px) { .pay-grid { grid-template-columns: 1fr 1fr; max-width: 900px; margin: 0 auto; } }

/* ---------- Proceso ---------- */
.steps { display: grid; gap: 14px; counter-reset: step; }
.step {
  position: relative; padding: 24px 22px 24px 76px; border-radius: var(--r-md);
  background: #fff; border: 1px solid var(--line);
}
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; left: 22px; top: 22px;
  font-family: var(--serif); font-style: italic; font-size: 1.6rem; line-height: 1; color: var(--lav-strong);
}
.step .h-card { font-size: 1.08rem; }
.step p { margin-top: 6px; color: var(--text-2); font-size: 0.97rem; }
.steps-note {
  margin-top: 26px; display: flex; gap: 12px; align-items: flex-start;
  padding: 16px 18px; border-radius: var(--r-md); background: var(--lav-50); color: var(--text-2); font-size: 0.95rem;
}
.steps-note svg { width: 20px; height: 20px; flex: none; color: var(--lav-strong); margin-top: 2px; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .step { padding: 70px 22px 26px; }
  .step::before { top: 24px; }
}

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 64px; padding: 16px 4px; font-weight: 600; font-size: 1.04rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus {
  width: 32px; height: 32px; border-radius: 50%; flex: none; position: relative;
  background: var(--lav-50); border: 1px solid var(--lav-200); transition: transform 0.3s var(--ease), background 0.3s;
}
.faq summary .plus::before, .faq summary .plus::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.6px; background: var(--lav-deep);
  transform: translate(-50%, -50%); border-radius: 2px;
}
.faq summary .plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.3s var(--ease); }
.faq details[open] summary .plus { background: var(--lav-200); }
.faq details[open] summary .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq summary:hover { color: var(--lav-deep); }
.faq .answer { padding: 0 4px 22px; color: var(--text-2); max-width: 68ch; }
.faq .answer p + p { margin-top: 10px; }

/* ---------- CTA final ---------- */
.final-cta {
  position: relative; overflow: hidden; text-align: center;
  border-radius: 32px; padding: clamp(48px, 8vw, 96px) clamp(22px, 5vw, 64px);
  background:
    radial-gradient(600px 300px at 15% 0%, rgba(255, 255, 255, 0.7), transparent 70%),
    linear-gradient(150deg, #efe7fa 0%, #e2d6f5 60%, #d9cbf1 100%);
}
.final-cta .h-section { max-width: 18ch; margin: 18px auto 0; }
.final-cta p.text { margin: 18px auto 0; max-width: 50ch; color: var(--text-2); font-size: var(--step-1); }
.final-cta .btn-row { justify-content: center; margin-top: 32px; }
.final-cta .alt { margin-top: 18px; font-size: 0.95rem; color: var(--text-2); }
.final-cta .alt button {
  background: none; border: 0; padding: 0 4px; min-height: 44px; cursor: pointer;
  color: var(--lav-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 4px;
}

/* ---------- Formularios ---------- */
.form-panel {
  max-width: 680px; margin: 28px auto 0; text-align: left;
  background: #fff; border-radius: var(--r-lg); padding: clamp(22px, 4vw, 36px);
  box-shadow: var(--shadow-md);
}
.form-panel[hidden] { display: none; }
.form-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 600; font-size: 0.93rem; }
.field .hint { font-size: 0.85rem; color: var(--text-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  border: 1.5px solid #d9d5e2; border-radius: var(--r-sm); background: #fff;
  font-size: 16px; /* evita zoom en iOS */
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--lav-strong); box-shadow: 0 0 0 4px rgba(155, 131, 213, 0.22);
}
.field [aria-invalid="true"] { border-color: #b3261e; }
.field .error { color: #b3261e; font-size: 0.86rem; min-height: 0; }
.field .error:empty { display: none; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 16px; border: 1.5px solid #d9d5e2; border-radius: var(--r-pill); cursor: pointer;
  font-weight: 500; transition: border-color 0.2s, background 0.2s;
}
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:has(input:checked) { border-color: var(--lav-strong); background: var(--lav-50); color: var(--lav-deep); }
.choice:has(input:focus-visible) { outline: 3px solid var(--lav); outline-offset: 2px; }
.check-field { display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; }
.check-field input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--lav-strong); flex: none; }
.check-field a { color: var(--lav-deep); font-weight: 600; }
.form-status { margin-top: 4px; padding: 14px 16px; border-radius: var(--r-sm); font-size: 0.95rem; }
.form-status:empty { display: none; }
.form-status.is-error { background: #fdecea; color: #8a1c14; }
.form-status.is-ok { background: #eaf6ee; color: #1d5b33; }
.form-status.is-info { background: var(--lav-50); color: var(--lav-deep); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.spinner {
  width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.4); border-top-color: #fff;
  animation: spin 0.8s linear infinite; display: none;
}
[aria-busy="true"] .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Diálogo de contratación ---------- */
dialog.checkout {
  width: 100%; max-width: 560px; max-height: 100dvh; margin: auto; padding: 0;
  border: 0; border-radius: 0; background: #fff; color: var(--ink);
}
dialog.checkout::backdrop { background: rgba(41, 39, 46, 0.45); backdrop-filter: blur(4px); }
@media (min-width: 600px) { dialog.checkout { border-radius: var(--r-lg); max-height: calc(100dvh - 48px); box-shadow: var(--shadow-lg); } }
@media (max-width: 599px) { dialog.checkout { height: 100dvh; max-width: none; } }
.checkout-head {
  position: sticky; top: 0; z-index: 2; background: #fff; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line);
}
.checkout-head h2 { font-family: var(--serif); font-size: 1.5rem; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  display: grid; place-items: center; cursor: pointer; flex: none;
}
.icon-btn svg { width: 18px; height: 18px; }
.checkout-body { padding: 20px 22px 28px; display: grid; gap: 18px; }
.summary {
  border-radius: var(--r-md); padding: 16px 18px; background: var(--lav-50); border: 1px solid var(--lav-200);
  display: grid; gap: 10px;
}
.summary .service { font-weight: 600; }
.summary dl { margin: 0; display: grid; gap: 6px; font-size: 0.95rem; }
.summary dl div { display: flex; justify-content: space-between; gap: 12px; }
.summary dt { color: var(--text-2); }
.summary dd { margin: 0; font-weight: 600; }
.summary .now dd { color: var(--lav-deep); font-size: 1.1rem; }
.summary .fine { font-size: 0.85rem; color: var(--text-2); line-height: 1.45; }

/* ---------- Footer ---------- */
.site-footer { padding: 64px 0 120px; background: var(--pearl); margin-top: var(--section-y); font-size: 0.95rem; }
.footer-grid { display: grid; gap: 32px; }
.footer-brand p { margin-top: 14px; color: var(--text-2); max-width: 36ch; }
.footer-col h3 { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-2); font-weight: 600; margin-bottom: 10px; }
.footer-col a { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; text-decoration: none; color: var(--ink); }
.footer-col a:hover { color: var(--lav-deep); }
.footer-col a svg { width: 18px; height: 18px; }
.footer-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid #e0dde6;
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; color: var(--text-2); font-size: 0.85rem;
}
.footer-bottom a { color: var(--text-2); }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } .site-footer { padding-bottom: 64px; } }

/* ---------- WhatsApp flotante + barra móvil ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  width: 58px; height: 58px; border-radius: 50%; display: none; place-items: center;
  background: var(--ink); color: #fff; box-shadow: var(--shadow-lg);
  transition: transform 0.3s var(--ease), opacity 0.3s, background 0.2s;
}
.wa-float:hover { transform: scale(1.06); background: var(--lav-deep); }
.wa-float svg { width: 28px; height: 28px; }
@media (min-width: 960px) { .wa-float { display: grid; } }

.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  display: flex; gap: 10px; align-items: center;
  transform: translateY(110%); transition: transform 0.35s var(--ease);
}
.mobile-cta.is-visible { transform: none; }
.mobile-cta .btn { flex: 1; min-height: 50px; }
.mobile-cta .price-mini { font-size: 0.78rem; line-height: 1.2; color: var(--text-2); }
.mobile-cta .price-mini strong { display: block; font-size: 1.02rem; color: var(--ink); }
@media (min-width: 960px) { .mobile-cta { display: none; } }

/* ---------- Banner de consentimiento ---------- */
.consent {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  max-width: 520px; margin-left: auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  padding: 18px; font-size: 0.92rem;
}
.consent[hidden] { display: none; }
.consent .btn-row { margin-top: 14px; }
.consent .btn { min-height: 44px; padding: 0 18px; font-size: 0.92rem; }

/* ---------- Animaciones de entrada ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Páginas internas (condiciones, privacidad, pago) ---------- */
.page-simple { padding: 48px 0 40px; }
.page-simple .container { max-width: 820px; }
.prose h1 { font-family: var(--serif); font-size: var(--step-3); margin: 16px 0 12px; }
.prose h2 { font-family: var(--serif); font-size: var(--step-2); margin: 40px 0 12px; }
.prose p, .prose li { color: #3e3b44; }
.prose p + p { margin-top: 12px; }
.prose ul { list-style: disc; padding-left: 22px; display: grid; gap: 6px; margin-top: 10px; }
.todo {
  display: block; margin: 14px 0; padding: 12px 14px; border-radius: var(--r-sm);
  background: #fff6db; border: 1px dashed #c9a227; color: #5b4500; font-size: 0.93rem;
}
.todo::before { content: "A DEFINIR · "; font-weight: 700; letter-spacing: 0.04em; }

.result-card {
  max-width: 600px; margin: 0 auto; text-align: center; padding: clamp(28px, 6vw, 56px);
  border-radius: 28px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.result-icon { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 22px; display: grid; place-items: center; background: var(--lav-200); color: var(--lav-deep); }
.result-icon svg { width: 36px; height: 36px; }
.result-icon.is-bad { background: #fde8e6; color: #8a1c14; }
.result-card h1 { font-family: var(--serif); font-size: var(--step-2); }
.result-card p { margin-top: 14px; color: var(--text-2); }
.result-card .summary { text-align: left; margin-top: 24px; }
.result-card .btn-row { justify-content: center; margin-top: 26px; }
.order-id { margin-top: 18px; font-size: 0.82rem; color: var(--text-2); word-break: break-all; }
