:root {
  --blue-900: #12245a;
  --blue-800: #1e3a8a;
  --blue-50: #eef2fb;
  --amber: #f59e0b;
  --amber-600: #d97706;
  --wa: #25d366;
  --wa-dark: #128c4b;
  --ink: #0f172a;
  --ink-2: #475569;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bad: #b91c1c;
  --radius: 18px;
  --shadow: 0 18px 50px -20px rgb(18 36 90 / 0.35);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--blue-800); }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.center { text-align: center; }
.muted { color: var(--ink-2); font-size: 0.95rem; }
.sub { color: var(--ink-2); font-size: 1.1rem; max-width: 640px; margin-inline: auto; }
.hl { color: var(--amber-600); }
.micro { font-size: 0.85rem; color: var(--ink-2); margin: 0.75rem 0 0; }

.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

/* --- Botones: verde WhatsApp, el color que el cerebro ya asocia a «escribir» --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.85em 1.4em;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn--wa { background: var(--wa); color: #06331a; box-shadow: 0 10px 24px -10px rgb(37 211 102 / 0.8); }
.btn--wa:hover { background: #1fbe5b; transform: translateY(-2px); }
.btn--lg { font-size: 1.1rem; padding: 1em 1.7em; }
.btn--sm { font-size: 0.9rem; padding: 0.55em 1em; }
.btn--block { width: 100%; }
.wa-icon { width: 1.3em; height: 1.3em; flex: none; }

.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* --- Encabezado --- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--blue-800);
  color: var(--amber);
  font-weight: 800;
  font-size: 0.95rem;
}
.brand__name { font-size: 1.05rem; white-space: nowrap; }
.brand__name strong { color: var(--blue-800); }

/* --- Hero --- */
.hero {
  padding: 56px 0 32px;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgb(245 158 11 / 0.14), transparent 60%),
    linear-gradient(180deg, var(--blue-50), #fff 75%);
}
.hero__grid { display: grid; gap: 36px; align-items: center; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-800);
  margin-bottom: 1rem;
}
.eyebrow--light { color: var(--amber); }
.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 560px; }
.lead strong { color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 1.5rem; }

.hero__img { position: relative; margin: 0; }
.hero__img img { border-radius: var(--radius); box-shadow: var(--shadow); }
.tag {
  position: absolute;
  top: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
}
.tag--bad { left: 12px; background: var(--bad); }
.tag--good { left: calc(50% + 12px); background: var(--wa-dark); }

.trust {
  list-style: none;
  padding: 0;
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.trust li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.trust li::before { content: "✓"; color: var(--wa-dark); font-weight: 800; }

/* --- Secciones --- */
.section { padding: 72px 0; }
.section--tint { background: var(--blue-50); }
.section--dark { background: var(--blue-900); color: #e2e8f0; }
.section--dark h2 { color: #fff; }
.section--dark .muted { color: #a5b4cf; }
.section--dark .hl { color: var(--amber); }
.section--cta { background: linear-gradient(135deg, var(--blue-800), var(--blue-900)); color: #fff; }
.section--cta .sub { color: #c7d2fe; }

.cards3 { display: grid; gap: 18px; margin-top: 32px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.card p { color: var(--ink-2); margin: 0; }
.card__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: #fee2e2;
  color: var(--bad);
}
.card__icon svg { width: 22px; height: 22px; }
.punch {
  margin: 36px auto 0;
  max-width: 680px;
  text-align: center;
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  font-weight: 800;
  color: var(--bad);
}

.split { display: grid; gap: 36px; align-items: center; }
.split__img { margin: 0; }
.split__img img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.split__img--tall img { max-height: 620px; object-fit: cover; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 1.6rem; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 18px 56px;
  color: var(--ink-2);
}
.steps li strong { color: var(--ink); }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue-800);
  color: #fff;
  font-weight: 800;
}

.checks { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.checks li { position: relative; padding: 0 0 14px 34px; color: var(--ink-2); }
.checks li strong { color: var(--ink); }
.checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #dcfce7;
  color: var(--wa-dark);
  font-size: 0.8rem;
  font-weight: 800;
}
.checks--sm li { padding-bottom: 10px; font-size: 0.95rem; }

/* --- Precio: el anclaje va a la izquierda, gris; la oferta a la derecha, destacada --- */
.pricing { display: grid; gap: 20px; margin-top: 36px; align-items: center; }
.vs {
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius);
  padding: 26px;
  background: #f8fafc;
  color: var(--ink-2);
}
.vs h3 { color: var(--ink-2); }
.vs ul { list-style: none; padding: 0; margin: 0; }
.vs li { padding: 6px 0 6px 28px; position: relative; }
.vs li::before { content: "✕"; position: absolute; left: 0; color: var(--bad); font-weight: 800; }

.price-card {
  border-radius: 22px;
  padding: 32px 28px;
  background: #fff;
  border: 2px solid var(--blue-800);
  box-shadow: var(--shadow);
}
.price-card__label { font-weight: 700; color: var(--blue-800); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; margin: 0; }
.price { font-size: clamp(2.4rem, 6vw, 3.2rem); font-weight: 800; margin: 4px 0 0; letter-spacing: -0.03em; line-height: 1.1; }
.price__cur { font-size: 0.6em; vertical-align: 0.35em; margin-right: 2px; }
.price__unit { font-size: 0.4em; color: var(--ink-2); font-weight: 700; white-space: nowrap; }
/* La tarjeta de precio es un turno impreso: línea perforada con muescas a los lados */
.perf { position: relative; margin: 0 -28px 22px; border: 0; border-top: 2px dashed #cbd5e1; overflow: visible; }
.perf::before,
.perf::after {
  content: "";
  position: absolute;
  top: -13px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--blue-800);
}
.perf::before { left: -14px; clip-path: inset(0 0 0 50%); }
.perf::after { right: -14px; clip-path: inset(0 50% 0 0); }
.price-card__once {
  display: inline-block;
  margin: 8px 0 20px;
  padding: 3px 12px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-weight: 700;
  font-size: 0.85rem;
}

/* --- Diagnóstico: botones grandes, una sola decisión por pregunta --- */
.diag fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.diag legend { font-weight: 700; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span {
  display: inline-block;
  padding: 10px 16px;
  border: 1.5px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.15s ease;
}
.chips input:checked + span { background: var(--blue-800); border-color: var(--blue-800); color: #fff; }
.chips input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }
.chips label:hover span { border-color: var(--blue-800); }

/* --- FAQ --- */
.faq { margin-top: 28px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 20px;
  margin-bottom: 10px;
  background: #fff;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 28px 18px 0;
  font-weight: 700;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 14px;
  font-size: 1.4rem;
  color: var(--blue-800);
}
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--ink-2); padding-bottom: 6px; }

/* --- Pie --- */
.footer { padding: 32px 0 96px; border-top: 1px solid var(--line); font-size: 0.92rem; }
.footer__in p { margin: 0 0 6px; }

/* --- Botón flotante: siempre a un toque de distancia --- */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  box-shadow: 0 12px 30px -8px rgb(0 0 0 / 0.45);
  animation: pulse 2.6s ease-out 3s 3;
}
.wa-float .wa-icon { width: 34px; height: 34px; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgb(37 211 102 / 0.6), 0 12px 30px -8px rgb(0 0 0 / 0.45); }
  100% { box-shadow: 0 0 0 22px rgb(37 211 102 / 0), 0 12px 30px -8px rgb(0 0 0 / 0.45); }
}

@media (min-width: 720px) {
  .trust { grid-template-columns: repeat(4, 1fr); }
  .cards3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 960px) {
  .hero { padding: 80px 0 40px; }
  .hero__grid { grid-template-columns: 1.05fr 1fr; gap: 56px; }
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split--rev .split__img { order: 2; }
  .split:has(.split__img--tall) { grid-template-columns: 420px 1fr; }
  .split--rev:has(.split__img--tall) { grid-template-columns: 1fr 420px; }
  .pricing { grid-template-columns: 1fr 1.2fr; max-width: 900px; margin-inline: auto; }
  .section { padding: 96px 0; }
}

@media (max-width: 400px) {
  .brand__name { font-size: 0.92rem; }
  .btn--sm { padding: 0.5em 0.8em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .chips span { transition: none; }
  .wa-float { animation: none; }
}
