:root {
  --bg: #161719;
  --bg-2: #1e2023;
  --surface: #25282c;
  --surface-2: #2e3236;
  --line: rgba(255,255,255,.09);
  --text: #f4f1ea;
  --muted: #b2ada3;
  --red: #d62828;
  --red-2: #b51f1f;
  --gold: #f2b632;
  --green: #3ec27a;
  --err: #ff6b6b;
  --radius: 16px;
  --font-d: "Archivo", "Arial Black", system-ui, sans-serif;
  --font-b: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(214,40,40,.16), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(242,182,50,.07), transparent 60%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.55;
  padding-bottom: calc(76px + var(--safe-b));
}
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-d); line-height: 1.08; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
a { color: var(--gold); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 50px; padding: 12px 20px; border: 0; border-radius: 12px;
  font-family: var(--font-d); font-weight: 800; font-size: 16px; letter-spacing: .01em;
  text-decoration: none; transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: linear-gradient(180deg, #e83a3a, var(--red-2));
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(214,40,40,.7), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-primary:hover { box-shadow: 0 12px 30px -8px rgba(214,40,40,.9), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-block { width: 100%; }
.btn-ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px;
  background: rgba(22,23,25,.85);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); }
.logo-mark { width: 30px; height: 30px; flex: none; }
.logo-text { font-family: var(--font-d); font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.logo-text b { font-weight: 900; color: var(--gold); margin-left: 3px; }
.topbar-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--text);
  background: var(--surface); border: 1px solid var(--line);
  padding: 6px 10px; border-radius: 999px; white-space: nowrap;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(62,194,122,.2); }

/* ---------- Hero ---------- */
.hero {
  min-height: calc(100svh - 55px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 12px 16px 18px; gap: 14px;
  max-width: 1120px; margin: 0 auto;
}
.hero-media {
  position: relative; flex: 0 0 auto;
  display: flex; justify-content: center;
}
.hero-media::after {
  content: ""; position: absolute; inset: auto 10% -6px; height: 30px;
  background: radial-gradient(closest-side, rgba(0,0,0,.6), transparent);
  z-index: -1;
}
.hero-media img {
  width: min(100%, 36svh); height: auto; aspect-ratio: 1; object-fit: cover;
  border-radius: 18px; border: 1px solid var(--line);
  box-shadow: 0 24px 50px -20px rgba(0,0,0,.8);
  animation: heroIn .9s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes heroIn { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
.hero-copy { display: flex; flex-direction: column; gap: 10px; animation: heroIn .9s .12s cubic-bezier(.2,.8,.2,1) both; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.hero h1 { font-size: clamp(30px, 8.6vw, 60px); font-weight: 900; }
.hl { color: var(--gold); position: relative; white-space: nowrap; }
.hero-sub { color: var(--muted); font-size: 15.5px; }
.hero-price { display: flex; align-items: stretch; gap: 8px; }
.hero-price > div {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  padding: 8px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line);
}
.hero-price .price-alt { border-color: rgba(242,182,50,.5); background: linear-gradient(180deg, rgba(242,182,50,.12), rgba(242,182,50,.03)); }
.price-label { font-size: 12px; color: var(--muted); font-weight: 600; }
.hero-price strong { font-family: var(--font-d); font-size: 24px; font-weight: 900; line-height: 1.1; }
.hero-price .price-alt strong { color: var(--gold); }
.hero-tags { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.hero-tags li {
  font-size: 13.5px; font-weight: 600; padding: 6px 10px; border-radius: 999px;
  background: rgba(62,194,122,.12); border: 1px solid rgba(62,194,122,.35);
}
.hero-tags b { color: var(--green); }

/* ---------- Secciones ---------- */
.section { padding: 44px 16px; max-width: 1120px; margin: 0 auto; }
.section-title { font-size: clamp(26px, 7vw, 40px); font-weight: 900; margin-bottom: 20px; }

/* Problema/Solución */
.ps { display: flex; flex-direction: column; gap: 10px; }
.ps-card { padding: 22px 18px; border-radius: var(--radius); border: 1px solid var(--line); }
.ps-card h2 { font-size: clamp(22px, 6vw, 32px); font-weight: 800; margin: 8px 0 8px; }
.ps-card p { color: var(--muted); font-size: 15.5px; }
.ps-problem { background: linear-gradient(160deg, #2a1d1d, var(--bg-2)); }
.ps-solution { background: linear-gradient(160deg, #1d2a24, var(--bg-2)); }
.ps-tag { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ps-problem .ps-tag { color: #ff8a8a; }
.ps-solution .ps-tag { color: var(--green); }
.ps-arrow { text-align: center; font-size: 22px; color: var(--gold); line-height: 1; }

/* Beneficios */
.benefits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.benefits li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 14px; }
.b-ic {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; margin-bottom: 10px;
  background: linear-gradient(160deg, rgba(214,40,40,.3), rgba(214,40,40,.08)); border: 1px solid rgba(214,40,40,.4);
}
.b-ic svg { width: 22px; height: 22px; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.benefits h3 { font-size: 16.5px; font-weight: 800; margin-bottom: 4px; }
.benefits p { font-size: 14px; color: var(--muted); line-height: 1.4; }
.surfaces { margin-top: 18px; }
.surfaces-title { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.surfaces ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.surfaces li { font-size: 14.5px; font-weight: 600; padding: 8px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }

/* Galería */
.gallery { padding-right: 0; padding-left: 0; }
.gallery-head { display: flex; align-items: center; justify-content: space-between; padding: 0 16px; margin-bottom: 16px; }
.gallery-head .section-title { margin: 0; }
.car-arrows { display: flex; gap: 8px; }
.car-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); font-size: 26px; line-height: 1; display: grid; place-items: center; padding-bottom: 3px;
}
.car-btn:active { background: var(--surface-2); }
.car-btn[disabled] { opacity: .35; }
.car-track {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 16px 4px; scroll-padding: 0 16px; scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.car-track::-webkit-scrollbar { display: none; }
.car-item { margin: 0; flex: 0 0 82%; scroll-snap-align: start; }
.car-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.car-dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.car-dots span { width: 7px; height: 7px; border-radius: 99px; background: var(--surface-2); transition: width .25s, background .25s; }
.car-dots span.on { width: 22px; background: var(--gold); }

/* Pasos */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; counter-reset: s; }
.steps li { display: flex; gap: 14px; align-items: flex-start; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.step-n {
  flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-d); font-weight: 900; font-size: 18px; color: #1a1a1a; background: var(--gold);
}
.steps h3 { font-size: 18px; font-weight: 800; margin-bottom: 2px; }
.steps p { color: var(--muted); font-size: 15px; }

/* Oferta */
.offer-grid { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.offer-card {
  position: relative; display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 18px 16px; border-radius: var(--radius); background: var(--surface);
  border: 2px solid var(--line); transition: border-color .2s, background .2s, transform .15s;
}
.offer-card:active { transform: scale(.99); }
.offer-card[aria-checked="true"] { border-color: var(--gold); background: linear-gradient(160deg, rgba(242,182,50,.14), var(--surface)); }
.offer-radio { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--muted); display: grid; place-items: center; }
.offer-card[aria-checked="true"] .offer-radio { border-color: var(--gold); }
.offer-card[aria-checked="true"] .offer-radio::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); }
.offer-info { flex: 1; display: flex; flex-direction: column; }
.offer-name { font-family: var(--font-d); font-weight: 800; font-size: 19px; }
.offer-sub { color: var(--muted); font-size: 14px; }
.offer-save { color: var(--green); font-weight: 700; font-size: 14.5px; }
.offer-price { font-family: var(--font-d); font-weight: 900; font-size: 26px; }
.offer-badge {
  position: absolute; top: -11px; right: 14px; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; background: var(--red); color: #fff;
}
.offer-perks { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.offer-perks b { color: var(--green); }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 8px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 48px 16px 16px; min-height: 52px;
  font-weight: 700; font-size: 16px; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-size: 24px; font-weight: 400; color: var(--gold); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 16px 16px; color: var(--muted); font-size: 15px; }

/* Confianza */
.trust-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.trust-grid li { display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; padding: 16px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.t-ic { grid-row: span 2; font-size: 26px; line-height: 44px; text-align: center; background: var(--surface); border-radius: 12px; height: 44px; }
.trust-grid h3 { font-size: 17px; font-weight: 800; align-self: end; }
.trust-grid p { color: var(--muted); font-size: 14.5px; }

/* CTA final */
.final-box {
  padding: 28px 20px; border-radius: 20px; text-align: center;
  background: linear-gradient(160deg, #3a1515, #1f1314 60%, var(--bg-2));
  border: 1px solid rgba(214,40,40,.4);
}
.final-box h2 { font-size: clamp(26px, 7vw, 40px); font-weight: 900; margin-bottom: 10px; }
.final-box p { color: var(--muted); margin-bottom: 18px; font-size: 15.5px; }
.final-box b { color: var(--text); }

/* Contacto */
.contact { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 10px; }
.contact-title { font-family: var(--font-d); font-weight: 800; font-size: 20px; }
.wa-link {
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 10px 26px -10px rgba(37,211,102,.8);
  transition: transform .15s;
}
.wa-link:active { transform: scale(.93); }
.wa-link svg { width: 34px; height: 34px; }

/* Footer */
.footer {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 1120px; margin: 0 auto; padding: 22px 16px; border-top: 1px solid var(--line);
}
.logo-sm .logo-mark { width: 24px; height: 24px; }
.logo-sm .logo-text { font-size: 16px; }
.footer-year { color: var(--muted); font-size: 14px; }

/* Barra fija inferior (móvil) */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px calc(10px + var(--safe-b));
  background: rgba(22,23,25,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .3s ease;
}
.sticky-bar.show { transform: none; }
.sticky-info { display: flex; flex-direction: column; line-height: 1.2; }
.sticky-info b { font-family: var(--font-d); font-size: 20px; font-weight: 900; }
.sticky-info span { font-size: 12.5px; color: var(--green); font-weight: 600; }
.sticky-bar .btn { flex: none; min-height: 48px; padding: 10px 22px; }

/* ---------- Carrito ---------- */
.cart {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column;
  background: var(--bg);
  height: 100%; height: 100dvh;
  animation: cartIn .28s cubic-bezier(.2,.8,.2,1);
}
.cart[hidden] { display: none; }
@keyframes cartIn { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.cart-head {
  flex: none; display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
}
.cart-head h2 { font-size: 20px; font-weight: 900; }
.cart-x { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); font-size: 18px; }
.cart-scroll {
  flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 16px 16px 24px;
}
.cart-scroll > div { max-width: 560px; margin: 0 auto; }
.cart-foot {
  flex: none; padding: 10px 16px calc(10px + var(--safe-b));
  border-top: 1px solid var(--line); background: var(--bg-2);
  display: flex; justify-content: center;
}
.cart-foot .btn { width: 100%; max-width: 560px; min-height: 46px; font-size: 15px; }

.cart-product { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.cart-product img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; }
.cart-product div { display: flex; flex-direction: column; }
.cart-product span { color: var(--muted); font-size: 14px; }

.field-label, .form-title { font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.form-title { font-family: var(--font-d); font-size: 18px; font-weight: 800; margin: 22px 0 12px; }
.qty-pick { display: flex; flex-direction: column; gap: 8px; }
.qty-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left;
  min-height: 52px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 2px solid var(--line);
}
.qty-opt[aria-checked="true"] { border-color: var(--gold); background: linear-gradient(160deg, rgba(242,182,50,.14), var(--surface)); }
.qty-opt > span { font-weight: 700; display: flex; flex-direction: column; }
.qty-opt em { font-style: normal; font-size: 13px; color: var(--green); font-weight: 700; }
.qty-opt b { font-family: var(--font-d); font-size: 20px; font-weight: 900; }

.summary { margin-top: 14px; padding: 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.summary > div { display: flex; justify-content: space-between; font-size: 15px; padding: 3px 0; }
.summary .ok { color: var(--green); font-weight: 700; }
.sum-total { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 8px !important; font-family: var(--font-d); font-weight: 900; font-size: 20px !important; }
.cod { margin-top: 10px; font-size: 14.5px; padding: 10px 12px; border-radius: 10px; background: rgba(62,194,122,.12); border: 1px solid rgba(62,194,122,.35); }

.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field { display: flex; flex-direction: column; margin-bottom: 12px; min-width: 0; }
.field label { font-size: 14.5px; font-weight: 600; margin-bottom: 5px; }
.field input, .field select {
  width: 100%; min-height: 48px; padding: 10px 12px; border-radius: 10px;
  font: inherit; font-size: 16px; color: var(--text);
  background: var(--surface); border: 1.5px solid var(--line); outline: none;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23f2b632' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
.field select option { background: var(--surface); color: var(--text); }
.field input::placeholder { color: #7d786f; }
.field input:focus, .field select:focus { border-color: var(--gold); }
.field.invalid input, .field.invalid select { border-color: var(--err); background: rgba(255,107,107,.07); }
.err { color: var(--err); font-size: 14px; font-weight: 600; min-height: 0; margin-top: 4px; }
.err:empty { display: none; }

.btn-loc { width: 100%; min-height: 48px; background: var(--surface-2); border: 1.5px dashed rgba(242,182,50,.55); color: var(--text); font-family: var(--font-b); font-weight: 700; }
.btn-loc.done { border-style: solid; border-color: var(--green); background: rgba(62,194,122,.12); }
.loc-msg { font-size: 14.5px; font-weight: 600; margin: 8px 0 4px; min-height: 0; }
.loc-msg.ok { color: var(--green); }
.loc-msg.warn { color: var(--gold); }
.btn-confirm { margin-top: 14px; min-height: 52px; }
.form-note { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 8px; }
.form-alert { margin-top: 10px; padding: 12px; border-radius: 10px; background: rgba(255,107,107,.12); border: 1px solid var(--err); color: #ffd0d0; font-weight: 600; font-size: 15px; }

.thanks { text-align: center; padding-top: 6vh; }
.thanks-ic {
  width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center;
  font-size: 44px; font-weight: 900; color: #fff; background: var(--green);
  box-shadow: 0 0 0 10px rgba(62,194,122,.18); animation: pop .5s cubic-bezier(.2,1.6,.4,1);
}
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.thanks h2 { font-size: 34px; font-weight: 900; margin-bottom: 10px; }
.thanks p { font-size: 18px; }
.thanks-sum { color: var(--muted); font-size: 15.5px !important; margin-top: 14px; }
.thanks-help { color: var(--muted); font-size: 14.5px !important; margin-top: 22px; }

/* ---------- Animación de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* ---------- Escritorio ---------- */
@media (min-width: 860px) {
  body { padding-bottom: 0; }
  .sticky-bar { display: none; }
  .hero { min-height: auto; flex-direction: row; align-items: center; gap: 48px; padding: 48px 24px 56px; }
  .hero-media { flex: 1 1 50%; }
  .hero-media img { max-height: none; width: 100%; height: auto; }
  .hero-copy { flex: 1 1 50%; gap: 16px; }
  .hero-sub { font-size: 18px; }
  .section { padding: 64px 24px; }
  .ps { flex-direction: row; align-items: stretch; }
  .ps-card { flex: 1; padding: 28px; }
  .ps-arrow { align-self: center; transform: rotate(-90deg); }
  .benefits { grid-template-columns: repeat(3, 1fr); }
  .gallery-head { padding: 0 24px; }
  .car-track { padding: 0 24px 4px; scroll-padding: 0 24px; }
  .car-item { flex-basis: 31%; }
  .steps { flex-direction: row; }
  .steps li { flex: 1; }
  .offer-grid { flex-direction: row; }
  .offer-card { flex: 1; }
  .offer, #faq { max-width: 760px; }
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
  .final-box { padding: 48px; }
  .final-box .btn { max-width: 420px; }
}
