:root {
  color-scheme: dark;
  --bg: #080a0f;
  --panel: #111722;
  --line: #2a3848;
  --text: #f4f7fa;
  --muted: #b6c4d2;
  --blue: #00c8ff;
  --pink: #ff65ba;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: var(--bg); font: 1rem/1.6 system-ui, sans-serif; }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--pink); outline-offset: 4px; }
.frame { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem 1.5rem; min-height: 78px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.brand { font-size: 1.18rem; font-weight: 900; letter-spacing: .05em; }
.brand span, nav a:hover, .site-footer a:hover { color: var(--blue); }
.brand, nav a, .button { text-decoration: none; }
nav { display: flex; flex-wrap: wrap; column-gap: clamp(.85rem, 3vw, 2rem); color: var(--muted); font-weight: 650; }
nav a { padding-block: .35rem; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .7fr); gap: clamp(24px, 6vw, 88px); align-items: center; padding-block: clamp(42px, 8vw, 105px); }
.eyebrow { color: var(--pink); font-weight: 750; margin: 0 0 .75rem; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(3rem, 8vw, 7rem); font-weight: 950; letter-spacing: -.075em; line-height: .91; }
h1 em { color: var(--blue); display: block; }
h2 { font-size: clamp(2.15rem, 5vw, 4rem); line-height: 1; letter-spacing: -.055em; }
h3 { line-height: 1.2; }
p { color: var(--muted); }
.intro { margin-top: 1.5rem; max-width: 33rem; font-size: 1.08rem; }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.5rem; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: .68rem 1.05rem; min-height: 44px; color: var(--bg); background: var(--blue); border: 1px solid var(--blue); border-radius: 6px; font-weight: 800; }
.button:hover { background: #68e1ff; border-color: #68e1ff; }
.secondary { color: var(--text); background: transparent; border-color: var(--line); }
.secondary:hover { color: var(--blue); background: transparent; border-color: var(--blue); }
.portrait { margin: 0; border: 1px solid var(--line); border-bottom: 3px solid #ff008c; border-radius: 12px; overflow: hidden; background: var(--panel); }
.portrait img { display: block; width: 100%; height: auto; }
.portrait figcaption { padding: .55rem 1rem; color: var(--blue); font-weight: 750; }
.section { border-top: 1px solid var(--line); padding-block: clamp(40px, 7vw, 80px); }
.section-intro { max-width: 72ch; margin-top: 1rem; margin-bottom: 1.65rem; }
.books, .plans { display: grid; gap: clamp(12px, 2vw, 22px); }
.books { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.book, .plan { min-width: 0; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.cover { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: contain; background: #000; }
.book-info { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: .6rem; padding: clamp(.65rem, 2vw, 1.2rem); }
.book-info h3 { font-size: clamp(.95rem, 2vw, 1.35rem); }
.book-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem .6rem; }
.book-price { color: var(--blue); font-size: 1.15rem; font-weight: 850; white-space: nowrap; }
.book-status { color: var(--muted); font-size: .82rem; }
.steps { margin: 0 0 1.65rem; padding-left: 1.4rem; max-width: 72ch; color: var(--muted); }
.steps li + li { margin-top: .35rem; }
.steps li::marker { color: var(--pink); font-weight: 750; }
.steps strong { color: var(--text); }
.plan { padding: clamp(1.05rem, 3vw, 2rem); border-top: 2px solid var(--blue); }
.plan + .plan { border-top-color: #ff008c; }
.plan h3 { font-size: 1.35rem; }
.plan-price { font-size: 2.8rem; color: var(--blue); font-weight: 850; letter-spacing: -.04em; }
.plan ul { margin: 1rem 0 1.5rem; padding-left: 1.2rem; color: var(--muted); }
.plan li + li { margin-top: .35rem; }
.plan .button { margin-top: auto; align-self: flex-start; }
.faq h2 { margin-bottom: 1.15rem; }
details { border-bottom: 1px solid var(--line); padding-block: .8rem; }
summary { cursor: pointer; font-weight: 700; }
details p { margin-top: .65rem; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.6rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
@media (max-width: 700px) {
  .hero { grid-template-columns: 1fr; }
  .portrait { max-width: 350px; }
  .books { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 510px) {
  .frame { width: calc(100% - 32px); }
  .plans { grid-template-columns: 1fr; }
}

button { font: inherit; cursor: pointer; }
button:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }
button:disabled { cursor: not-allowed; opacity: .48; }
button.button:disabled:hover { background: var(--blue); border-color: var(--blue); }
button.secondary:disabled:hover { background: transparent; border-color: var(--line); color: var(--text); }
.book-actions { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%, 125px),1fr)); gap: .45rem; }
.book-actions .button { font-size: .88rem; padding: .5rem .35rem; text-align:center; }
.purchase-note { font-size: .76rem; }
body.preview-open { overflow: hidden; }
#ebook-preview { width: min(760px, calc(100% - 24px)); max-height: 94dvh; padding: 0; border: 1px solid var(--blue); border-radius: 12px; color: var(--text); background: var(--panel); }
#ebook-preview[open] { display: flex; flex-direction: column; }
#ebook-preview::backdrop { background: rgba(0,0,0,.82); }
.preview-head { display:flex; gap: .75rem; align-items:flex-start; justify-content:space-between; padding: 1rem; border-bottom: 1px solid var(--line); }
.preview-head h2 { font-size: clamp(1.2rem,4vw,1.8rem); letter-spacing: -.025em; }
.preview-head p { font-size: .83rem; }
.preview-head .eyebrow { margin-bottom:.35rem; }
.preview-scroll { min-height:0; overflow:auto; background:#080a0f; padding: .65rem; }
.preview-scroll img { display:block; width:100%; height:auto; margin:0 auto; }
.preview-controls { display:flex; align-items:center; justify-content:space-between; gap:.4rem; padding:.75rem; border-top: 1px solid var(--line); }
.preview-controls span { font-size:.8rem; text-align:center; color:var(--muted); }
@media (max-width:510px) { .preview-head {padding:.7rem;} .preview-head .button,.preview-controls .button {font-size:.8rem;padding:.45rem;} }

/* Mensajes de identificación y beneficio, sin alterar las imágenes */
.hero h1 { font-size:clamp(2.6rem,6.1vw,5.6rem); line-height:.97; }
.hero .bio { margin-top:.85rem; }
.slogan { color:var(--blue); font-weight:900; margin-top:1rem; letter-spacing:.03em; }
.book-benefit { font-size:.88rem; line-height:1.45; }
.coaching-result { margin-top:-.6rem; }
.coaching-promise { color:var(--blue); font-weight:800; margin:0 0 1.1rem; }

/* FAQ: respuestas plegadas, organizadas por producto */
.faq-groups { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(16px,3vw,32px); align-items:start; }
.faq-group { min-width:0; background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:clamp(12px,2vw,24px); }
.faq-group h3 { color:var(--blue); margin-bottom:.55rem; }
.faq-group details:last-child { border-bottom:0; }
.faq-group summary { font-size:.95rem; line-height:1.45; }
.faq-group summary::marker { color:var(--blue); }
.faq-group details p { font-size:.9rem; line-height:1.6; }
.faq-contact { margin-top:1.2rem; }
.faq-contact a { color:var(--blue); text-decoration:underline; }
@media(max-width:700px){ .faq-groups { grid-template-columns:1fr; } }

.footer-slogan { color:var(--muted); font-size:.78rem; font-weight:600; }
