/* Fuentes alojadas en el sitio (Google Fonts, licencia SIL OFL 1.1), solo
   caracteres latinos: incluye tildes, ñ, ¿¡ y €. Manrope y DM Sans son
   variables: un archivo cubre todos los pesos. */
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 500 800; font-display: swap; src: url('assets/fonts/manrope-variable.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('assets/fonts/dm-sans-variable.woff2') format('woff2'); }
@font-face { font-family: 'DM Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/dm-mono-400.woff2') format('woff2'); }
@font-face { font-family: 'DM Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('assets/fonts/dm-mono-500.woff2') format('woff2'); }

:root {
  color-scheme: dark;
  --dark: #08150e;
  --surface: #101e15;
  --lime: #d7fa8b;
  --text: #f3f4e9;
  --muted: #b5c1ad;
  --line: #334232;
  --gutter: clamp(1.25rem, 5vw, 5.5rem);
  --mono: 'DM Mono', ui-monospace, monospace;
  --display: 'Manrope', 'DM Sans', system-ui, sans-serif;
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--dark);
  color: var(--text);
  scroll-behavior: smooth;
}
*, *::before, *::after { box-sizing: border-box; }
/* `hidden` siempre oculta, aunque la clase tenga display (p. ej. .button) */
[hidden] { display: none !important; }
body { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--lime); outline-offset: 5px; }
.skip { position: fixed; top: .5rem; left: .5rem; padding: .7rem; z-index: 20; background: var(--dark); transform: translateY(-150%); }
.skip:focus { transform: none; }
section[id] { scroll-margin-top: 6rem; }
.site-header { position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; height: 76px; padding-inline: var(--gutter); background: #09150ef5; border-bottom: 1px solid #b8d89522; }
/* Logo oficial (assets/logo/, versión clara para fondos oscuros) */
.brand { display: flex; align-items: center; width: fit-content; }
.brand img { display: block; width: auto; height: 46px; }
.brand-dot { color: var(--lime); }
nav { display: flex; align-items: center; gap: clamp(1.1rem, 3.25vw, 3.5rem); }
nav a { font-size: .95rem; color: #c1cbb9; transition: color .2s; }
nav a:hover, .site-footer a:hover { color: var(--lime); }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 49px; width: fit-content; padding: .68rem 1.3rem; border: 1px solid transparent; border-radius: 5px; font-weight: 700; line-height: 1.25; cursor: pointer; transition: background .22s, color .22s, border-color .22s; }
.button-primary { background: var(--lime); color: #142508; }
.button-primary:hover { background: #edffbc; }
.button-outline { color: var(--lime); border-color: #8baa697f; background: #09150e80; }
.button-outline:hover { color: #142508; background: var(--lime); border-color: var(--lime); }
.header-buy { justify-self: end; font-size: .94rem; min-height: 43px; }
.button-quiet { color: var(--text); border-color: #aabf9654; background: #101e1577; }
.button-quiet:hover { border-color: var(--lime); color: var(--lime); }
.hero { position: relative; display: grid; align-items: center; isolation: isolate; overflow: clip; min-height: clamp(630px, calc(100svh - 145px), 980px); }
.hero-scene, .hero-photo, .hero-shade, .particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-scene { z-index: -1; overflow: hidden; background: radial-gradient(ellipse at 72% 42%, #263e18, #0a190f 66%); }
.hero-photo { background: url('assets/hero-pak-choi.webp') center 54% / cover no-repeat; transform: translate3d(var(--shift-x,0),var(--shift-y,0),0) scale(var(--zoom,1.04)); }
.hero-shade { background: linear-gradient(90deg,#07130de8 0%,#07130dbb 24%,#07130d35 49%,transparent 72%), linear-gradient(0deg,#07130dea 0%,transparent 25%,transparent 84%,#07130d60 100%); }
.hero-frame { position: absolute; inset: 1.5rem var(--gutter); pointer-events: none; }
.hero-frame i { position: absolute; width: 14px; height: 14px; border-color: #aecf8e70; border-style: solid; border-width: 0; }
.hero-frame i:nth-child(1) { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.hero-frame i:nth-child(2) { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.hero-frame i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.hero-frame i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
.hero-copy { margin-inline: var(--gutter); padding: 4rem 0 5rem; }
.eyebrow { display: flex; gap: .75rem; align-items: center; margin: 0 0 1.3rem; color: var(--lime); font: 500 .875rem/1.4 var(--mono); letter-spacing: .12em; }
.eyebrow-line { display: inline-block; width: 27px; height: 1px; background: currentColor; flex: none; }
h1, h2 { margin: 0; font: 800 clamp(2.65rem, 5.5vw, 5rem)/.99 var(--display); letter-spacing: -.077em; text-wrap: balance; }
h1 { font-size: clamp(5rem, 9.3vw, 10.5rem); line-height: .93; }
em { color: var(--lime); font-style: normal; }
.hero-intro { max-width: 26rem; margin: 1.85rem 0 1.55rem; color: #e0e5d9; font-size: clamp(1rem, 1.4vw, 1.25rem); line-height: 1.55; }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.hero-foot { position: absolute; bottom: 2.35rem; left: calc(var(--gutter) + 1rem); right: calc(var(--gutter) + 1rem); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.scroll-link { display: inline-flex; align-items: center; gap: .65rem; color: var(--text); font-size: .93rem; }
.scroll-link:hover { color: var(--lime); }
.scroll-mark { display: inline-grid; place-items: start center; width: 15px; height: 23px; border: 1px solid #b3c5a5; border-radius: 9px; padding-top: 5px; }
.scroll-mark::before { content: ''; width: 2px; height: 5px; background: var(--lime); border-radius: 3px; }
.scene-caption { font: 400 .8rem var(--mono); color: #cad7c2; }
.facts { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .8rem clamp(1rem,4vw,4rem); padding: 1.45rem var(--gutter); border-block: 1px solid var(--line); background: #122217; color: #d9e4cd; font: 400 .875rem/1.4 var(--mono); letter-spacing: .07em; }
.facts span + span::before { content: '·'; display: inline-block; margin-right: clamp(1rem,4vw,4rem); color: var(--lime); }
.section-wrap { width: min(100%, 1510px); margin-inline: auto; padding-inline: var(--gutter); }
.method, .offer, .contents-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2.75rem, 8vw, 8rem); padding-block: clamp(4rem, 10vw, 9rem); }
.method-image { position: relative; min-height: 350px; height: clamp(350px, 42vw, 540px); overflow: hidden; border: 1px solid var(--line); }
.method-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 47%; }
.method-image span { position: absolute; left: 1rem; bottom: 1rem; padding: .55rem .7rem; background: #08150ee0; color: #d7e5ce; font: .8rem var(--mono); }
.method-copy > p:not(.eyebrow), .offer-copy > p:not(.eyebrow), .section-intro { color: var(--muted); font-size: 1.125rem; line-height: 1.6; }
.method-copy > p:not(.eyebrow) { max-width: 33rem; }
.method-copy .button { margin-top: 1rem; }
.contents { border-block: 1px solid var(--line); background: #101e15; }
.contents-grid { align-items: start; }
.chapters { border-top: 1px solid #435240; }
.chapters details { border-bottom: 1px solid #435240; }
.chapters summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.15rem 0; font-size: clamp(1.05rem, 1.8vw, 1.33rem); font-weight: 700; list-style: none; cursor: pointer; }
.chapters summary::-webkit-details-marker { display: none; }
.chapters summary::after { content: '+'; color: var(--lime); font: 400 1.4rem/1 var(--mono); }
.chapters details[open] summary::after { content: '−'; }
.chapters p { color: var(--muted); line-height: 1.6; margin: -.1rem 1.5rem 1.15rem 0; }
.chapters p a { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }
.book-stage { display: grid; place-items: center; min-height: 425px; background: radial-gradient(ellipse at 50% 48%,#40532d 0%,#182918 42%,#0b170f 75%); perspective: 1100px; }
.book { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 1.25rem; width: min(68%, 270px); aspect-ratio: .70; padding: 1.35rem; border: 1px solid #a0b180; background: linear-gradient(180deg,#07150de8,#07150d70 34%,#07150d36 64%,#07150df0),url('assets/raices-manos.webp') center / cover; box-shadow: 16px 12px 0 -1px #a4ad96, 25px 30px 48px #000a, inset 5px 0 8px #0009; transform: rotateY(-16deg) rotateZ(-6deg); }
.book span, .book small { font: 400 .75rem var(--mono); letter-spacing: .06em; }
.book strong { font: 800 clamp(2.6rem, 4.6vw, 4.1rem)/.89 var(--display); letter-spacing: -.085em; }
.offer { padding-bottom: clamp(3rem, 7vw, 6rem); }
.offer-status { padding: 1rem 0; margin: 1.35rem 0; border-block: 1px solid var(--line); }
.offer-status strong { color: var(--lime); font-size: 1.125rem; }
.offer-status p { color: var(--muted); line-height: 1.5; margin: .3rem 0 0; }
.offer-status .offer-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem .8rem; margin: 0 0 .5rem; }
.offer-price strong { color: var(--text); font: 800 clamp(2rem, 3.4vw, 2.75rem)/1 var(--display); letter-spacing: -.04em; }
.offer-price span { color: var(--lime); font: 400 .8rem var(--mono); letter-spacing: .1em; text-transform: uppercase; }
/* Con el botón de compra visible, "Leer una muestra" pasa a secundario */
.offer-copy:has(.offer-buy:not([hidden])) [data-sample] { color: var(--lime); border-color: #8baa697f; background: #09150e80; }
.offer-copy:has(.offer-buy:not([hidden])) [data-sample]:hover { color: #142508; background: var(--lime); border-color: var(--lime); }
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,8vw,8rem); padding-block: 3.5rem 6rem; }
.faq h2 { font-size: clamp(2.4rem,4.6vw,4.25rem); }
.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-block: 1.65rem; color: var(--muted); border-top: 1px solid var(--line); }
.footer-links { flex-wrap: wrap; gap: .5rem 1.5rem; }
.footer-links a { font-size: .9rem; }
.footer-mail { color: var(--lime); font: 400 .88rem var(--mono); }
.footer-cookies { padding: 0; border: 0; background: none; color: inherit; font-size: .9rem; cursor: pointer; }
.footer-cookies:hover { color: var(--lime); }

/* Cartel del modo demo (config.js + config-ui.js), solo en localhost */
.demo-badge { position: fixed; z-index: 40; top: .6rem; left: 50%; transform: translateX(-50%); padding: .35rem .7rem; border-radius: 4px; background: #ffb8a8; color: #2a0d06; font: 500 .75rem var(--mono); letter-spacing: .08em; }

/* Aviso de cookies (cookies.js) */
.cookie-banner { position: fixed; z-index: 30; left: var(--gutter); bottom: 1rem; display: flex; align-items: center; gap: 1rem 1.5rem; width: min(calc(100% - 2 * var(--gutter)), 46rem); padding: 1rem 1.2rem; border: 1px solid #79935d; border-radius: 7px; background: #132219; box-shadow: 0 14px 40px #000a; }
.cookie-banner p { margin: 0; color: #d1decb; font-size: .94rem; line-height: 1.5; }
.cookie-banner a { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions { display: flex; flex: none; gap: .6rem; }
.cookie-actions .button { min-height: 44px; padding-inline: 1.1rem; }
.footer-note { flex-basis: 100%; margin: 0; color: #9aa792; font-size: .85rem; line-height: 1.5; }
.footer-note a { text-decoration: underline; text-underline-offset: 3px; }
.footer-brand { font: 800 .94rem var(--display); letter-spacing: .06em; color: var(--text); }
.sample { width: min(calc(100% - 2rem), 620px); max-height: calc(100svh - 2rem); overflow: auto; padding: clamp(1.3rem, 5vw, 2.8rem); border: 1px solid #79935d; background: #132219; color: var(--text); border-radius: 7px; }
.sample::backdrop { background: #030905bf; backdrop-filter: blur(6px); }
.sample-head { display: flex; justify-content: space-between; gap: .75rem; align-items: start; }
.sample h2 { font-size: clamp(2.4rem, 6vw, 3.65rem); }
.sample > p { color: #d1decb; line-height: 1.65; }
.sample > form { margin-top: 1.45rem; }
.close { font-size: 1.6rem; line-height: 1; width: 36px; height: 36px; color: var(--text); background: transparent; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; }

/* Páginas legales (privacidad.html, terminos.html, reembolsos.html, seguridad-electrica.html) */
.site-header.is-simple { grid-template-columns: 1fr auto; }
.legal { width: min(100%, 50rem); margin-inline: auto; padding: clamp(3rem, 7vw, 5.5rem) var(--gutter) clamp(4rem, 8vw, 7rem); }
.legal h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: .98; letter-spacing: -.06em; }
.legal-meta { margin: 1.2rem 0 2.2rem; color: var(--muted); font: 400 .82rem/1.5 var(--mono); letter-spacing: .04em; }
.legal-draft { margin: 0 0 2.2rem; padding: .8rem 1rem; border: 1px dashed #d7fa8b80; color: var(--lime); font: 400 .82rem/1.55 var(--mono); }
.legal h2 { margin: 2.6rem 0 .8rem; font-size: clamp(1.35rem, 2.4vw, 1.7rem); line-height: 1.2; letter-spacing: -.03em; }
.legal p, .legal li { color: #d3dccb; font-size: 1.03rem; line-height: 1.7; }
.legal ul { padding-left: 1.2rem; }
.legal li + li { margin-top: .45rem; }
.legal a { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }
.legal strong { color: var(--text); }
.legal-callout { margin: 1.8rem 0; padding: .3rem 0 .3rem 1.1rem; border-left: 2px solid var(--lime); }

/* Página de gracias (gracias.html) */
.legal .thanks-intro { margin: 1.4rem 0 0; color: #e0e5d9; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; }
.thanks-steps { counter-reset: step; list-style: none; margin: 0; padding: 0; border-top: 1px solid #435240; }
.legal .thanks-steps li { counter-increment: step; display: grid; grid-template-columns: 2.6rem 1fr; column-gap: .6rem; margin: 0; padding: 1.15rem 0; border-bottom: 1px solid #435240; }
.thanks-steps li::before { content: counter(step, decimal-leading-zero); grid-row: span 2; color: var(--lime); font: 500 .9rem/1.9 var(--mono); }
.thanks-steps strong { font-size: 1.1rem; }
.legal .thanks-steps p { margin: .35rem 0 0; color: var(--muted); }
.social-links { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.legal .social-links li { margin: 0; }
.legal .social-links a { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 1rem; border: 1px solid #8baa697f; border-radius: 5px; text-decoration: none; font-weight: 700; }
.legal .social-links a:hover { background: var(--lime); color: #142508; }
.thanks-back { margin-top: 3rem; }
.legal .thanks-back .button { color: var(--lime); text-decoration: none; }
.legal .thanks-back .button:hover { color: #142508; }

/* Formulario del checklist (lead-form.js) */
.lead { padding-block: clamp(3rem, 7vw, 6rem); }
.lead-card { display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: clamp(2rem, 6vw, 6rem); padding: clamp(1.5rem, 4.5vw, 4rem); border: 1px solid var(--line); background: var(--surface); }
.lead h2 { font-size: clamp(2.3rem, 4.2vw, 3.8rem); }
.lead-copy > p:not(.eyebrow) { max-width: 30rem; margin: 1.2rem 0 0; color: var(--muted); font-size: 1.125rem; line-height: 1.6; }
.lead-fields { display: grid; grid-template-columns: 1fr 1.4fr; gap: .8rem; }
.field { display: grid; gap: .45rem; color: #d3dccb; font: 500 .8rem/1.2 var(--mono); letter-spacing: .06em; }
.field small { font-size: inherit; color: var(--muted); }
.field input { width: 100%; min-height: 49px; padding: .7rem .9rem; border: 1px solid #5f735a; border-radius: 5px; background: var(--dark); color: var(--text); font: 400 1rem/1.3 'DM Sans', system-ui, sans-serif; letter-spacing: 0; }
.field input:hover { border-color: #7d9566; }
input:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
[aria-invalid="true"] { border-color: #ffab9a !important; outline-color: #ffab9a; }
.lead-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.lead-consent { display: flex; gap: .75rem; align-items: flex-start; margin: 1.1rem 0 1.25rem; color: var(--muted); font-size: .94rem; line-height: 1.5; cursor: pointer; }
.lead-consent input { flex: none; width: 20px; height: 20px; margin: .1rem 0 0; accent-color: var(--lime); cursor: pointer; }
.lead-consent a { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }
.lead-form .button:disabled { opacity: .65; cursor: progress; }
.lead-status { min-height: 1.5em; margin: .9rem 0 0; color: var(--muted); line-height: 1.5; }
.lead-status[data-kind="error"] { color: #ffb8a8; }
.lead-status[data-kind="ok"] { color: var(--lime); font-size: 1.1rem; font-weight: 700; }
.lead-form.is-done :is(.lead-fields, .lead-consent, .button) { display: none; }
.lead-preview { margin: 0 0 1rem; padding: .5rem .7rem; border: 1px dashed #d7fa8b80; color: var(--lime); font: 400 .78rem var(--mono); }

@media (max-width: 850px) {
  .lead-card { grid-template-columns: 1fr; }
  .hero-photo { background-position: 57% 50%; }
  .method, .offer, .contents-grid, .faq { gap: 2.4rem; }
}
@media (max-width: 650px) {
  .site-header { height: 65px; grid-template-columns: 1fr 1fr; }
  .brand img { height: 40px; }
  .site-header nav { display: none; }
  .hero { min-height: max(660px, calc(100svh - 65px)); align-items: end; }
  .hero-photo { background-size: auto 79%; background-position: 78% top; }
  .hero-shade { background: linear-gradient(0deg,#08150e 2%,#08150e 15%,#08150eee 31%,#08150d35 64%,#08150d14 100%); }
  .hero-copy { padding: 16.7rem 0 5.55rem; }
  h1 { font-size: clamp(3.7rem, 13vw, 5.65rem); }
  .hero-intro { margin: 1rem 0 1.2rem; max-width: 23rem; }
  .hero-frame { inset-block: .95rem; }
  .hero-foot { bottom: 1.65rem; }
  .scene-caption { font-size: .68rem; }
  .facts { justify-content: flex-start; gap: .65rem 1.25rem; padding-block: 1.1rem; }
  .facts span + span::before { display: none; }
  .method, .offer, .contents-grid, .faq { grid-template-columns: 1fr; }
  .method-image { height: 340px; min-height: 0; }
  .book-stage { min-height: 390px; }
  .faq { padding-block: 2.8rem 4rem; }
  .lead-fields { grid-template-columns: 1fr; }
  .cookie-banner { left: .75rem; bottom: .75rem; width: calc(100% - 1.5rem); flex-direction: column; align-items: stretch; }
  .cookie-actions .button { flex: 1; }
  .lead-form .button { width: 100%; }
}
@media (max-width: 350px) {
  .actions .button { padding-inline: .7rem; font-size: .92rem; }
  .hero-copy { padding-top: 16rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .hero-photo { transform: none; }
}

