/* Layout: a single dark column like a private dossier; numbered only where order is real (the method, the form). Gold is the one accent. */
:root {
  --ink: #0c0b0a;         /* page ground, warm black */
  --panel: #161513;       /* raised surfaces */
  --panel-2: #1e1c19;
  --line: #2e2a24;        /* hairlines */
  --fg: #ece6db;          /* body text, bone */
  --muted: #a39a8b;       /* secondary text */
  --gold: #c9a45c;        /* accent */
  --gold-soft: rgba(201,164,92,.16);
  --wine: #8e2b35;        /* warnings / legal note */
  --wine-soft: rgba(142,43,53,.18);
  --ok: #7fa36b;
  --f-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --f-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --f-ui: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { background: var(--ink); color: var(--fg); font-family: var(--f-ui); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
.wrap { max-width: 1080px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.narrow { max-width: 720px; }
section { padding-block: clamp(56px, 9vw, 112px); border-top: 1px solid var(--line); }
h1, h2, h3 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; line-height: .98; letter-spacing: .005em; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h3 { font-size: clamp(1.4rem, 3.4vw, 1.9rem); }
p { margin: 0; }
.eyebrow { font-family: var(--f-ui); font-size: .76rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.prose { font-family: var(--f-serif); font-size: 1.12rem; line-height: 1.7; display: grid; gap: 1.1em; max-width: 65ch; }
.prose strong { color: #fff; font-weight: 600; }
.stack { display: grid; gap: 22px; }
a { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Highlighted phrases: a low gold underlay, like a pen stroke on a dossier */
.hl { color: #fff; background: linear-gradient(transparent 58%, var(--gold-soft) 58%, var(--gold-soft) 92%, transparent 92%); padding: 0 .08em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hl-gold { color: var(--gold); font-style: italic; }
.pull { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.6rem, 4.6vw, 2.5rem); line-height: 1.02; color: var(--fg); border-left: 3px solid var(--gold); padding-left: 18px; text-wrap: balance; max-width: 26ch; }
.pull em { color: var(--gold); font-style: normal; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--f-ui); font-weight: 700; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; padding: 16px 26px; border-radius: 2px; border: 1px solid var(--gold); background: var(--gold); color: #120f0a; cursor: pointer; transition: transform .15s ease, background .15s ease; min-height: 52px; }
.btn:hover { background: #d8b673; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--gold); }
.btn.ghost:hover { background: var(--gold-soft); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* Top bar */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(12,11,10,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--ink); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px; }
.logo { font-family: var(--f-display); font-weight: 900; font-size: 1.35rem; text-transform: uppercase; letter-spacing: .04em; color: var(--fg); text-decoration: none; }
.logo span { color: var(--gold); }
.top .btn { padding: 10px 16px; min-height: 42px; font-size: .78rem; }

/* Hero */
.hero { border-top: 0; padding-block: clamp(56px, 10vw, 120px) clamp(48px, 8vw, 96px); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -10%; top: -20%; width: 60%; aspect-ratio: 1; max-width: 100%; background: radial-gradient(closest-side, rgba(201,164,92,.10), transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; display: grid; gap: 28px; }
.hero h1 { font-size: clamp(3rem, 11vw, 7.2rem); font-weight: 900; line-height: .9; max-width: 13ch; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { font-family: var(--f-serif); font-size: clamp(1.15rem, 2.6vw, 1.4rem); line-height: 1.55; max-width: 52ch; color: var(--fg); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .fine { font-size: .85rem; color: var(--muted); max-width: 60ch; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 26px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--muted); }
.facts b { color: var(--fg); font-weight: 600; }

/* Pain list */
.pain-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 0; border-top: 1px solid var(--line); margin-top: 36px; }
.pain-grid div { padding: 20px 4px 20px 0; border-bottom: 1px solid var(--line); font-family: var(--f-serif); font-size: 1.08rem; display: flex; gap: 14px; min-width: 0; }
.pain-grid div::before { content: "×"; font-family: var(--f-display); font-weight: 800; color: var(--wine); font-size: 1.4rem; line-height: 1.1; flex: none; }
.pain-close { margin-top: 36px; }

/* Disciplines */
.disc { display: grid; gap: 28px; }
.disc + .disc { margin-top: 72px; }
.disc-head { display: grid; gap: 10px; }
.disc-tag { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.feature { background: var(--panel); border: 1px solid var(--line); padding: clamp(24px, 5vw, 56px); position: relative; }
.feature.primary { border-color: rgba(201,164,92,.45); }
.feature.primary::before { content: "Núcleo del método"; position: absolute; top: -12px; left: clamp(24px, 5vw, 56px); background: var(--gold); color: #120f0a; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 4px 10px; }
.feature h2 { font-size: clamp(2.4rem, 7vw, 4.4rem); }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 26px 40px; }
.cols > div { min-width: 0; display: grid; gap: 10px; align-content: start; }
.cols h4 { margin: 0; font-family: var(--f-ui); font-size: .9rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.cols p { font-family: var(--f-serif); font-size: 1.04rem; line-height: 1.65; color: var(--fg); }
.compare { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
.compare > div { padding: 18px; min-width: 0; }
.compare > div + div { border-left: 1px solid var(--line); }
.compare h5 { margin: 0 0 8px; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.compare .no h5 { color: var(--wine); }
.compare .yes h5 { color: var(--gold); }
.compare ul { margin: 0; padding-left: 18px; font-family: var(--f-serif); font-size: .98rem; display: grid; gap: 6px; }
@media (max-width: 520px) { .compare { grid-template-columns: 1fr; } .compare > div + div { border-left: 0; border-top: 1px solid var(--line); } }
.minor { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.minor article { border-top: 2px solid var(--line); padding-top: 20px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.minor article p { font-family: var(--f-serif); font-size: 1.04rem; }
.ethic { margin-top: 10px; font-size: .9rem; color: var(--muted); border-left: 2px solid var(--wine); padding-left: 12px; font-family: var(--f-ui); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 0; counter-reset: s; margin-top: 40px; }
.steps li { list-style: none; counter-increment: s; padding: 26px 24px 26px 0; border-top: 1px solid var(--line); display: grid; gap: 10px; align-content: start; min-width: 0; }
.steps li::before { content: "0" counter(s); font-family: var(--f-display); font-weight: 900; font-size: 3.4rem; line-height: 1; color: var(--gold); }
.steps p { font-family: var(--f-serif); font-size: 1.04rem; color: var(--fg); }
.steps { padding: 0; }

/* Scientific method */
.sci-strip { display: grid; gap: 6px; text-decoration: none; color: var(--fg); border: 1px solid rgba(201,164,92,.45); background: var(--gold-soft); padding: 14px 18px; max-width: 760px; }
.sci-strip:hover { background: rgba(201,164,92,.24); }
.sci-k { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.sci-chain { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.05rem, 3.2vw, 1.4rem); line-height: 1.2; }
.sci-chain i { font-style: normal; color: var(--gold); padding: 0 .15em; }
.sci { margin-top: 56px; background: var(--panel); border: 1px solid rgba(201,164,92,.45); padding: clamp(22px, 5vw, 48px); display: grid; gap: 28px; }
.sci h3 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
.sci-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 0; counter-reset: c; }
.sci-list li { counter-increment: c; border-top: 2px solid var(--gold); padding: 16px 16px 6px 0; display: grid; gap: 8px; align-content: start; min-width: 0; }
.sci-list li::before { content: counter(c); font-family: var(--f-display); font-weight: 900; font-size: 1.6rem; line-height: 1; color: var(--gold); }
.sci-list b { font-family: var(--f-ui); font-size: .86rem; letter-spacing: .06em; text-transform: uppercase; }
.sci-list span { font-family: var(--f-serif); font-size: .98rem; color: var(--fg); }

/* Testimonials (placeholders) */
.tgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; margin-top: 36px; }
.tcard { border: 1px dashed #5a5040; padding: 22px; display: grid; gap: 14px; align-content: start; background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(255,255,255,.012) 14px 28px); }
.tcard .badge { justify-self: start; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--gold); padding: 3px 8px; }
.tcard blockquote { margin: 0; font-family: var(--f-serif); font-style: italic; font-size: 1.04rem; color: var(--muted); }
.tcard .who { font-size: .82rem; color: var(--muted); }

/* FAQ */
.faq { margin-top: 32px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-family: var(--f-ui); font-weight: 600; font-size: 1.04rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-family: var(--f-display); font-size: 1.8rem; color: var(--gold); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; font-family: var(--f-serif); font-size: 1.04rem; max-width: 65ch; color: var(--fg); }

/* Form */
#diagnostico { background: linear-gradient(180deg, var(--ink), #12100d); }
.form-shell { margin-top: 36px; background: var(--panel); border: 1px solid var(--line); }
.progress { padding: 20px clamp(18px, 4vw, 36px) 0; display: grid; gap: 10px; }
.progress-meta { display: flex; justify-content: space-between; gap: 12px; font-size: .8rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; font-weight: 600; flex-wrap: wrap; }
.progress-meta b { color: var(--gold); }
.bar { height: 4px; background: var(--line); position: relative; overflow: hidden; }
.bar i { position: absolute; inset: 0 auto 0 0; width: 20%; background: var(--gold); transition: width .35s ease; }
.form-body { padding: clamp(20px, 4vw, 36px); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 22px; }
legend { padding: 0; margin-bottom: 4px; }
legend h3 { font-size: clamp(1.7rem, 5vw, 2.3rem); }
.step-intro { font-family: var(--f-serif); color: var(--muted); font-size: 1rem; max-width: 60ch; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px 20px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field label, .field .lbl { font-size: .86rem; font-weight: 600; color: var(--fg); }
.field .opt { color: var(--muted); font-weight: 400; }
.field .help { font-size: .8rem; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], input[type=number], select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--fg); background: var(--ink); border: 1px solid var(--line); border-radius: 2px; padding: 13px 14px; min-height: 50px; transition: border-color .15s;
}
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 38px; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px var(--gold-soft); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--wine); }
.err { font-size: .8rem; color: #e07b84; min-height: 0; }
.err:empty { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); padding: 10px 14px; min-height: 46px; cursor: pointer; font-size: .9rem; font-weight: 500; background: var(--ink); border-radius: 2px; }
.chips input { accent-color: var(--gold); width: 18px; height: 18px; margin: 0; }
.chips label:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); }
.chips.invalid label { border-color: var(--wine); }
.privacy-note { font-size: .82rem; color: var(--muted); border: 1px solid var(--line); padding: 12px 14px; background: var(--ink); }
.privacy-note b { color: var(--gold); }
.notice { border: 1px solid var(--wine); background: var(--wine-soft); padding: 16px 18px; font-family: var(--f-serif); font-size: 1rem; display: grid; gap: 6px; }
.notice strong { font-family: var(--f-ui); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: #f0b3b9; }
.consent { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); padding: 16px; background: var(--ink); cursor: pointer; }
.consent input { accent-color: var(--gold); width: 22px; height: 22px; flex: none; margin-top: 2px; }
.consent span { font-size: .88rem; line-height: 1.55; }
.consent.invalid { border-color: var(--wine); }
.legal { font-size: .8rem; color: var(--muted); display: grid; gap: 8px; max-height: 180px; overflow: auto; border: 1px solid var(--line); padding: 14px; }
.nav { display: flex; gap: 12px; justify-content: space-between; flex-wrap: wrap; padding-top: 26px; margin-top: 8px; border-top: 1px solid var(--line); }
.nav .btn { flex: 1 1 160px; }
.nav .ghost[hidden] + .btn { flex-basis: 100%; }
.success { display: grid; gap: 20px; text-align: left; }
.success h3 { font-size: clamp(2rem, 6vw, 3rem); color: var(--gold); }
.success p { font-family: var(--f-serif); font-size: 1.08rem; max-width: 60ch; }
.copyline { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: .9rem; color: var(--muted); }
.copyline code { font-family: var(--f-ui); color: var(--fg); background: var(--ink); border: 1px solid var(--line); padding: 6px 10px; user-select: all; }
.copybtn { font: inherit; font-size: .8rem; background: transparent; color: var(--gold); border: 1px solid var(--line); padding: 6px 10px; cursor: pointer; }
.status { font-size: .86rem; color: var(--muted); }
.status.bad { color: #e07b84; }

/* Owner panel */
#panel { background: var(--panel); }
.sub-list { display: grid; gap: 10px; margin-top: 22px; }
.sub-list details { border: 1px solid var(--line); background: var(--ink); }
.sub-list summary { cursor: pointer; padding: 14px 16px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .9rem; }
.sub-list summary b { color: var(--gold); }
.sub-list .flag { color: #f0b3b9; font-weight: 600; }
.sub-list dl { margin: 0; padding: 0 16px 16px; display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 6px 14px; font-size: .86rem; }
.sub-list dt { color: var(--muted); }
.sub-list dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.empty { color: var(--muted); font-size: .92rem; border: 1px dashed var(--line); padding: 18px; margin-top: 18px; }

/* Final CTA + footer */
.final { text-align: left; }
.final .wrap { display: grid; gap: 26px; }
.final h2 { font-size: clamp(2.6rem, 9vw, 5.4rem); max-width: 14ch; }
.final h2 em { color: var(--gold); font-style: normal; }
footer { border-top: 1px solid var(--line); padding-block: 40px 56px; color: var(--muted); font-size: .84rem; }
footer .wrap { display: grid; gap: 14px; }
footer .logo { font-size: 1.1rem; }
