:root {
  --bg: #0F0B09;
  --bg-2: #15110E;
  --ivory: #F4EFE6;
  --gold: #C9A86A;
  --gold-soft: rgba(201, 168, 106, .25);
  --muted: #A39A8C;
  --line: rgba(244, 239, 230, .1);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
  --pad: clamp(20px, 6vw, 96px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ivory); font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* ---------- Tipografía ---------- */
.eyebrow { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; }
h1 { font-size: clamp(34px, 4.2vw, 62px); line-height: 1.06; margin-bottom: 22px; }
h2 { font-size: clamp(30px, 3.6vw, 52px); line-height: 1.08; margin-bottom: 18px; }
h3 { font-size: 22px; line-height: 1.2; margin-bottom: 10px; }
.lead { font-size: clamp(15px, 1.15vw, 18px); line-height: 1.7; color: var(--muted); max-width: 480px; }
.lead + .lead { margin-top: 14px; }
em { font-style: italic; color: var(--gold); }

/* ---------- Botones ---------- */
.btn { display: inline-block; margin-top: 30px; padding: 15px 26px; border: 1px solid var(--gold); color: var(--gold);
       text-decoration: none; font-size: 14px; letter-spacing: .04em; border-radius: 2px; transition: background .3s, color .3s; }
.btn:hover, .btn:focus-visible { background: var(--gold); color: var(--bg); }
.btn-solid { background: var(--gold); color: var(--bg); }
.btn-solid:hover, .btn-solid:focus-visible { background: var(--ivory); border-color: var(--ivory); }
.btn-small { margin-top: 0; padding: 10px 18px; font-size: 13px; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

/* ---------- Navegación ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 24px;
       padding: 18px var(--pad); transition: background .4s, border-color .4s; border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(15, 11, 9, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-color: var(--line); }
.brand { display: flex; align-items: baseline; gap: 12px; text-decoration: none; }
.brand-mark { font-family: var(--serif); font-size: 24px; letter-spacing: .08em; color: var(--gold); }
.brand-sub { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-size: 13px; color: var(--muted); text-decoration: none; transition: color .3s; }
.nav-links a:hover { color: var(--ivory); }

/* ---------- Hero con la mancuerna ---------- */
.scrolly { height: 600vh; position: relative; }
.anchor { position: absolute; top: 150vh; }   /* "Método" salta a cuando la mancuerna ya está abierta */
.sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.stage { position: absolute; width: 1672px; height: 941px; left: 0; top: 0; transform-origin: 0 0; }
.floor { position: absolute; left: 380px; top: 600px; width: 1340px; height: 260px;
         background: radial-gradient(ellipse at 50% 35%, rgba(70, 52, 38, .35), rgba(15, 11, 9, 0) 65%); }
.shadow { position: absolute; left: 520px; top: 720px; width: 1070px; height: 60px; border-radius: 50%;
          background: radial-gradient(ellipse, rgba(0, 0, 0, .75), rgba(0, 0, 0, 0) 70%); filter: blur(6px); }
.piece { position: absolute; will-change: transform; transition: filter .45s, opacity .45s; }
#barra { z-index: 1; }
#disco-ext-izq, #disco-ext-der { z-index: 2; }
#disco-int-izq, #disco-int-der { z-index: 3; }
.piece.dim { opacity: .28; filter: saturate(.4); }

.copy { position: absolute; left: var(--pad); top: 50%; transform: translateY(-50%); width: min(40vw, 520px); height: 60vh; }
.panel { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
         opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .5s; pointer-events: none; }
.panel.on { opacity: 1; transform: none; pointer-events: auto; }
.num { font-family: var(--serif); color: var(--gold); font-size: 17px; margin-bottom: 16px; }
.progress { position: absolute; left: var(--pad); bottom: 36px; display: flex; gap: 8px; }
.progress i { width: 26px; height: 1px; background: var(--gold-soft); transition: background .4s; }
.progress i.on { background: var(--gold); }
.hint { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); font-size: 12px; letter-spacing: .2em;
        text-transform: uppercase; color: var(--muted); transition: opacity .4s; }

/* ---------- Secciones ---------- */
.section { padding: clamp(96px, 14vw, 180px) var(--pad); border-top: 1px solid var(--line); }
.wrap { max-width: 1180px; margin: 0 auto; }
.wrap.narrow { max-width: 760px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: clamp(48px, 6vw, 80px); max-width: 640px; }

/* Problema */
.pains { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); margin: 12px 0 clamp(64px, 8vw, 110px); }
.pains li { border-top: 1px solid var(--gold-soft); padding-top: 24px; }
.pain-n { font-family: var(--serif); color: var(--gold); font-size: 15px; display: block; margin-bottom: 14px; }
.pains p { font-family: var(--serif); font-size: clamp(21px, 2vw, 27px); line-height: 1.3; }
.statement { font-family: var(--serif); font-size: clamp(32px, 4.6vw, 68px); line-height: 1.08; max-width: 900px; }

/* Resultados */
.gallery { columns: 3; column-gap: 20px; }
.gallery figure { break-inside: avoid; margin-bottom: 20px; position: relative; background: var(--bg-2); border: 1px solid var(--line); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 18px 14px; font-family: var(--serif); font-size: 18px;
                      background: linear-gradient(transparent, rgba(15, 11, 9, .85)); }
.note { margin-top: 28px; font-size: 13px; color: var(--muted); }

/* Cómo funciona */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 40px); }
.steps li { border-top: 1px solid var(--gold-soft); padding-top: 28px; }
.step-n { font-family: var(--serif); color: var(--gold); font-size: 40px; display: block; margin-bottom: 22px; font-weight: 300; }
.steps p { color: var(--muted); line-height: 1.65; font-size: 15px; }

/* Preguntas */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 26px 40px 26px 0; position: relative; font-family: var(--serif); font-size: clamp(19px, 1.8vw, 23px); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--gold); font-family: var(--sans); font-weight: 300; font-size: 24px; transition: transform .3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); line-height: 1.7; padding: 0 40px 26px 0; max-width: 620px; }

/* Cierre y pie */
.final { background: radial-gradient(ellipse at 50% 100%, rgba(201, 168, 106, .08), transparent 60%); }
.footer { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: baseline; justify-content: space-between; padding: 40px var(--pad);
          border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* Botón flotante de WhatsApp (celular) */
.wa-float { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 60; width: 54px; height: 54px; border-radius: 50%;
            display: none; place-items: center; background: var(--gold); color: var(--bg); box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
            opacity: 0; transform: translateY(12px); transition: opacity .4s, transform .4s; }
.wa-float.show { opacity: 1; transform: none; }

/* Aparición al hacer scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Tablet ---------- */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .gallery { columns: 2; }
}

/* ---------- Celular / vertical ---------- */
@media (max-aspect-ratio: 1/1) {
  .copy { left: 24px; right: 24px; width: auto; top: 13vh; height: 44vh; transform: none; }
  .panel { justify-content: flex-start; }
  .progress { left: 24px; bottom: 24px; }
  .hint { display: none; }
}
@media (max-width: 640px) {
  .brand-sub { display: none; }
  .pains { grid-template-columns: 1fr; gap: 36px; }
  .steps { grid-template-columns: 1fr; row-gap: 40px; }
  .gallery { columns: 1; }
  .wa-float { display: grid; }
  .btn { padding: 15px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .panel, .piece { transition: none; }
}
