/* ==========================================================
   Borinanzas — estilos (tema luxury: negro, marfil y oro)
   ========================================================== */
:root {
  --ink: #0b1424;
  --ink-2: #0f1b2f;
  --ink-3: #15243b;
  --line: rgba(201, 169, 106, 0.22);
  --gold: #c9a96a;
  --gold-2: #e3c992;
  --gold-deep: #9c7d42;
  --ivory: #f6f1e7;
  --ivory-2: #ece4d3;
  --text: #e9e4da;
  --muted: #a39d92;
  --text-dark: #1b1a17;
  --muted-dark: #5d574c;
  --danger: #d98a7a;
  --ok: #8fc2a0;
  --radius: 14px;
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --sans: "Manrope", "Inter", system-ui, -apple-system, sans-serif;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, iframe { max-width: 100%; display: block; }
a { color: var(--gold-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0 0 .5em; letter-spacing: .2px; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
em.gold, .gold { color: var(--gold); font-style: italic; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .9rem;
  color: var(--gold); font-weight: 600; margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 640px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.center .eyebrow::after { content: ""; width: 28px; height: 1px; background: var(--gold); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--sans); font-weight: 700; font-size: .95rem; letter-spacing: .04em;
  cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none !important;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 50%, var(--gold-deep));
  color: #1a140a; box-shadow: 0 10px 30px -10px rgba(201,169,106,.55);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(201,169,106,.7); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,20,36,.97); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); font-family: var(--serif); font-size: 1.45rem; letter-spacing: .04em; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 36px; height: 36px; border: 1px solid var(--gold); border-radius: 50%;
  display: grid; place-items: center; color: var(--gold); font-size: 1.05rem; font-style: italic;
}
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--muted); font-size: .9rem; }
.nav a:hover { color: var(--text); text-decoration: none; }
.nav .btn { padding: 11px 22px; font-size: .85rem; color: #1a140a; }
@media (max-width: 820px) { .nav a:not(.btn) { display: none; } }

/* ---------- Hero + VSL ---------- */
.hero {
  position: relative; padding: 70px 0 90px; text-align: center;
  background:
    radial-gradient(900px 500px at 50% -10%, rgba(201,169,106,.16), transparent 60%),
    radial-gradient(600px 400px at 90% 30%, rgba(201,169,106,.06), transparent 60%),
    var(--ink);
}
.hero h1 { max-width: 900px; margin: 0 auto 20px; }
.hero .lead { margin: 0 auto 36px; }
.vsl {
  position: relative; max-width: 900px; margin: 0 auto 36px; aspect-ratio: 16 / 9;
  border-radius: 18px; overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(145deg, var(--ink-3), var(--ink-2));
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.8), 0 0 0 8px rgba(201,169,106,.04);
}
.vsl iframe, .vsl video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vsl-placeholder {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px;
  background:
    linear-gradient(180deg, rgba(11,20,36,.1), rgba(11,20,36,.7)),
    repeating-linear-gradient(45deg, rgba(201,169,106,.03) 0 2px, transparent 2px 14px);
}
.play {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold-deep));
  display: grid; place-items: center; box-shadow: 0 0 0 12px rgba(201,169,106,.12);
  animation: pulse 2.4s ease-in-out infinite;
}
.play::after { content: ""; border-left: 24px solid #1a140a; border-top: 15px solid transparent; border-bottom: 15px solid transparent; margin-left: 6px; }
@keyframes pulse { 50% { box-shadow: 0 0 0 22px rgba(201,169,106,.04); } }
.vsl-placeholder small { color: var(--muted); font-size: .9rem; }
.hero-trust { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px 30px; margin-top: 34px; color: var(--muted); font-size: .88rem; }
.hero-trust span::before { content: "✦"; color: var(--gold); margin-right: 8px; }

/* ---------- Secciones ---------- */
section { padding: 100px 0; }
.section-ivory { background: var(--ivory); color: var(--text-dark); }
.section-ivory .lead, .section-ivory p.muted { color: var(--muted-dark); }
.section-ivory .eyebrow { color: var(--gold-deep); }
.section-ivory .eyebrow::before, .section-ivory .eyebrow::after { background: var(--gold-deep); }
.section-dark2 { background: var(--ink-2); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 50px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
.card {
  padding: 34px 30px; border-radius: var(--radius); background: #fff;
  border: 1px solid var(--ivory-2); box-shadow: 0 20px 50px -30px rgba(40,30,10,.25);
}
.card .num { font-family: var(--serif); font-size: 2.6rem; color: var(--gold-deep); line-height: 1; margin-bottom: 14px; font-style: italic; }
.card p { color: var(--muted-dark); margin: 0; }

/* ---------- Calculadora ---------- */
.calc {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 0; margin-top: 50px;
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--ink-2);
}
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } }
.calc-inputs { padding: 40px 36px; border-right: 1px solid var(--line); }
@media (max-width: 900px) { .calc-inputs { border-right: 0; border-bottom: 1px solid var(--line); padding: 30px 22px; } }
.calc-results { padding: 40px 36px; background: linear-gradient(160deg, rgba(201,169,106,.07), transparent 50%); }
@media (max-width: 900px) { .calc-results { padding: 30px 22px; } }

.field { margin-bottom: 26px; }
.field label, .field .label { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: .92rem; color: var(--muted); margin-bottom: 10px; font-weight: 500; }
.field .val { font-family: var(--serif); font-size: 1.5rem; color: var(--gold-2); letter-spacing: 0; text-transform: none; font-weight: 500; }
.money-input { position: relative; }
.money-input span { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--gold); font-family: var(--serif); font-size: 1.4rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%; padding: 15px 18px; border-radius: 12px; border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03); color: var(--text); font-family: var(--sans); font-size: 1rem;
  transition: border-color .2s, background .2s;
}
.money-input input { padding-left: 40px; font-family: var(--serif); font-size: 1.5rem; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); background: rgba(201,169,106,.05); }
select option { background: var(--ink-2); }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; background: rgba(255,255,255,.12); outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); border: 4px solid var(--ink); box-shadow: 0 0 0 1px var(--gold); cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--gold); border: 4px solid var(--ink); cursor: pointer; }
.range-hint { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); margin-top: 6px; }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 26px; }
.compare .box { padding: 20px; border-radius: 14px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.02); }
.compare .box.win { border-color: var(--gold); background: rgba(201,169,106,.08); }
.compare .k { font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.compare .v { font-family: var(--serif); font-size: clamp(1.5rem, 3.2vw, 2.1rem); line-height: 1.1; }
.compare .box.win .v { color: var(--gold-2); }
.compare .s { font-size: .8rem; color: var(--muted); margin-top: 4px; }

.loss {
  text-align: center; padding: 22px; border-radius: 14px; margin-bottom: 26px;
  border: 1px dashed rgba(217,138,122,.45); background: rgba(217,138,122,.06);
}
.loss .k { font-size: .95rem; color: var(--danger); }
.loss .v { font-family: var(--serif); font-size: clamp(3rem, 8vw, 4.4rem); font-variant-numeric: lining-nums; color: #f0b4a6; line-height: 1.15; }
.loss .s { font-size: .85rem; color: var(--muted); }

.chart { width: 100%; height: auto; }
.chart-legend { display: flex; gap: 20px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); margin-top: 8px; }
.chart-legend i { display: inline-block; width: 12px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 8px; }
.fine { font-size: .76rem; color: var(--muted); line-height: 1.55; margin-top: 18px; }
.section-ivory .fine { color: var(--muted-dark); }

/* ---------- Formulario multipaso ---------- */
.form-shell {
  max-width: 760px; margin: 50px auto 0; padding: 44px 40px; border-radius: 22px;
  background: var(--ink-2); border: 1px solid var(--line);
  box-shadow: 0 40px 100px -40px rgba(0,0,0,.8);
}
@media (max-width: 640px) { .form-shell { padding: 30px 20px; border-radius: 16px; } }
.progress { height: 3px; background: rgba(255,255,255,.08); border-radius: 3px; overflow: hidden; margin-bottom: 12px; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-deep), var(--gold-2)); transition: width .4s ease; }
.progress-label { font-size: .85rem; color: var(--muted); margin-bottom: 30px; }

.step { display: none; animation: fade .35s ease; border: 0; padding: 0; margin: 0; min-width: 0; }
.step.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.step legend, .step h3 { font-family: var(--serif); font-size: clamp(1.5rem, 3.4vw, 2rem); margin-bottom: 8px; padding: 0; line-height: 1.2; }
.step .help { color: var(--muted); font-size: .92rem; margin-bottom: 24px; }

.options { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.options.one { grid-template-columns: 1fr; }
@media (max-width: 560px) { .options { grid-template-columns: 1fr; } }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt label {
  display: flex; align-items: center; gap: 14px; padding: 17px 18px; border-radius: 12px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.02); transition: all .18s ease; font-weight: 500;
}
.opt label::before {
  content: ""; flex: 0 0 18px; height: 18px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.3); transition: all .18s;
}
.opt input[type="checkbox"] + label::before { border-radius: 5px; }
.opt label:hover { border-color: rgba(201,169,106,.5); }
.opt input:checked + label { border-color: var(--gold); background: rgba(201,169,106,.09); }
.opt input:checked + label::before { border-color: var(--gold); background: var(--gold); box-shadow: inset 0 0 0 3px var(--ink-2); }
.opt input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; }

.sub-q { margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.07); }
.sub-q > .label { display: block; font-weight: 600; margin-bottom: 12px; font-size: 1rem; }
.hidden { display: none !important; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }
.input-group { margin-bottom: 16px; }
.input-group label { display: block; font-size: .82rem; color: var(--muted); margin-bottom: 7px; font-weight: 600; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .82rem; color: var(--muted); margin: 10px 0 4px; line-height: 1.5; }
.consent input { margin-top: 3px; accent-color: var(--gold); width: 18px; height: 18px; flex: 0 0 18px; }

.form-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 34px; }
.form-nav .btn-gold { margin-left: auto; }
.error-msg { color: var(--danger); font-size: .88rem; margin-top: 14px; min-height: 1.2em; }

.result { text-align: center; padding: 10px 0; }
.result .icon { width: 70px; height: 70px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold); font-size: 1.8rem; }
.notice { margin-top: 24px; padding: 18px 20px; border-left: 2px solid var(--gold); background: rgba(201,169,106,.06); border-radius: 0 10px 10px 0; font-size: .9rem; color: var(--muted); }

/* ---------- Es para ti / No es para ti ---------- */
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 50px; }
@media (max-width: 820px) { .fit { grid-template-columns: 1fr; } }
.fit-col { padding: 36px 32px; border-radius: var(--radius); min-width: 0; }
@media (max-width: 560px) { .fit-col { padding: 28px 22px; } }
.fit-yes { background: var(--ink); color: var(--text); box-shadow: 0 30px 60px -30px rgba(20,15,5,.5); }
.fit-no { background: #fff; border: 1px solid var(--ivory-2); color: var(--text-dark); }
.fit-col h3 { font-size: 1.8rem; margin-bottom: 22px; }
.fit-yes h3 { color: var(--gold-2); }
.fit-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.fit-col li { display: flex; gap: 14px; align-items: flex-start; line-height: 1.5; }
.fit-col li::before { flex: 0 0 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 700; margin-top: 1px; }
.fit-yes li::before { content: "✓"; background: var(--gold); color: #1a140a; }
.fit-no li { color: var(--muted-dark); }
.fit-no li::before { content: "✕"; border: 1px solid #c9bfae; color: #a0968a; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 50px auto 0; }
.faq details { border-bottom: 1px solid rgba(27,26,23,.12); padding: 22px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; font-family: var(--serif); font-size: 1.35rem; color: var(--text-dark); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold-deep); font-size: 1.6rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted-dark); margin: 14px 0 0; }

/* ---------- CTA final ---------- */
.final-cta { text-align: center; background: radial-gradient(700px 400px at 50% 100%, rgba(201,169,106,.14), transparent 60%), var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: #081020; padding: 60px 0 40px; border-top: 1px solid rgba(255,255,255,.05); font-size: .85rem; color: var(--muted); }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; margin-bottom: 36px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 26px; }
.footer-links a, .footer-links button { color: var(--muted); background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.footer-links a:hover, .footer-links button:hover { color: var(--gold-2); text-decoration: none; }
.disclaimer { font-size: .75rem; line-height: 1.7; color: #7b766d; border-top: 1px solid rgba(255,255,255,.05); padding-top: 28px; }
.disclaimer p { margin-bottom: .9em; }

/* ---------- Banner de cookies ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100; max-width: 560px;
  padding: 24px; border-radius: 16px; background: rgba(15,27,47,.97); border: 1px solid var(--line);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.8); backdrop-filter: blur(10px);
  transform: translateY(140%); transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.cookie-banner.show { transform: none; }
.cookie-banner h4 { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; margin: 0 0 8px; }
.cookie-banner p { font-size: .85rem; color: var(--muted); margin-bottom: 16px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn { padding: 11px 18px; font-size: .82rem; flex: 1 1 auto; }
.cookie-prefs { margin: 4px 0 16px; display: none; }
.cookie-prefs.open { display: block; }
.toggle-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.toggle-row strong { display: block; font-size: .9rem; }
.toggle-row small { color: var(--muted); font-size: .78rem; }
.switch { position: relative; flex: 0 0 44px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 24px; background: rgba(255,255,255,.15); cursor: pointer; transition: .2s; }
.switch span::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: .2s; }
.switch input:checked + span { background: var(--gold); }
.switch input:checked + span::before { transform: translateX(20px); }
.switch input:disabled + span { opacity: .6; cursor: not-allowed; }

/* ---------- Páginas legales ---------- */
.legal { padding: 70px 0 100px; background: var(--ivory); color: var(--text-dark); }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.legal h2 { font-size: 1.6rem; margin-top: 2em; }
.legal p, .legal li { color: #3c382f; }
.legal .updated { color: var(--muted-dark); font-size: .9rem; margin-bottom: 2em; }
.legal a { color: var(--gold-deep); }

/* ---------- Revelado al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .play { animation: none; } html { scroll-behavior: auto; } }
.step legend + .row-2 { margin-top: 24px; }

/* ---------- Ajustes de diseño (revisión) ---------- */
.kicker { color: var(--gold); font-size: 1rem; margin: 0 0 18px; }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.8rem); text-wrap: balance; }
h2 { text-wrap: balance; }
.hero-trust span::before { content: none; }
.hero-trust span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); vertical-align: middle; margin: 0 14px 0 -16px; }
.money-input input, .compare .v, .field .val { font-variant-numeric: lining-nums tabular-nums; }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }
.mobile-cta { display: none; }
@media (max-width: 700px) {
  .mobile-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    background: rgba(11,20,36,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .3s ease;
  }
  .mobile-cta.show { transform: none; }
  .mobile-cta .btn { width: 100%; }
}

/* ---------- Fondo animado ---------- */
#fondo { position: fixed; inset: 0; z-index: 0; pointer-events: none; display: block; }
main, .site-footer { position: relative; z-index: 1; }
.hero { background: radial-gradient(900px 500px at 50% -10%, rgba(201,169,106,.14), transparent 60%); }
.section-dark2 { background: transparent; }
.final-cta { background: radial-gradient(700px 400px at 50% 100%, rgba(201,169,106,.12), transparent 60%); }
.hero .lead, .hero h1, .hero .kicker, .hero-trust { position: relative; text-shadow: 0 2px 24px rgba(11,20,36,.9); }

.section-ivory { position: relative; overflow: hidden; }
.section-ivory > .container { position: relative; z-index: 1; }
.fondo-local { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; display: block; }
