/* Paleta */
:root {
  --night-1: #070F1F;
  --night-2: #0B1B33;
  --night-3: #0F2347;
  --gold: #E2A23B;
  --cream: #F4EDE0;
  --paper: #FBF7F0;
  --body: #3A4660;
  --label: #8F4E12;
  --slate: #8FA3C0;
  --muted: #C9C2B3;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.125rem; /* 18px */
  line-height: 1.65;
  color: var(--body);
  background: var(--night-2);
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, figure, blockquote { margin: 0; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.sec--cream :focus-visible { outline-color: var(--night-2); }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.wrap--read { max-width: 720px; }
.wrap--form { max-width: 640px; }

/* Barra superior */
.topbar { background: var(--night-1); }
.topbar__in { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.topbar__name { color: var(--cream); font-size: .8125rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.topbar__buy {
  color: var(--gold); font-weight: 700; text-decoration: none;
  min-height: 44px; display: inline-flex; align-items: center; padding: 0 4px;
}
.topbar__buy:hover { text-decoration: underline; }

/* Etiquetas */
.eyebrow { font-family: var(--sans); font-size: .8125rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; line-height: 1.4; margin-bottom: 20px; }
.eyebrow--gold { color: var(--gold); }
.eyebrow--brown { color: var(--label); }

/* Botones */
.btns { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 12px 24px;
  font: 700 1rem/1.2 var(--sans); text-align: center; text-decoration: none;
  border: 2px solid transparent; border-radius: 6px; cursor: pointer;
}
.btn--gold { background: var(--gold); color: var(--night-2); }
.btn--gold:hover { background: #ECB154; }
.btn--line { border-color: var(--cream); color: var(--cream); background: transparent; }
.btn--line:hover { background: rgba(243, 235, 221, .1); }
.btn--navy { background: var(--night-2); color: var(--cream); }
.btn--navy:hover { background: var(--night-1); }
.btn--outline-dark { border-color: var(--night-2); color: var(--night-2); background: transparent; }
.btn--outline-dark:hover { background: rgba(11, 27, 51, .08); }

/* Cabecera */
.hero { background: var(--night-1); color: var(--cream); padding: 12px 0 48px; }
.hero__in { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.hero__cover { width: 148px; border-radius: 4px; overflow: hidden; box-shadow: 0 16px 40px rgba(0, 0, 0, .45); }
.hero__cover img { width: 100%; height: auto; aspect-ratio: 640 / 1024; }
h1 {
  font-family: var(--serif); font-weight: 700; color: var(--cream);
  font-size: clamp(2.125rem, 9.5vw, 3rem); line-height: 1.1; letter-spacing: -.01em;
}
.si { color: var(--gold); }
.no { color: var(--slate); }
.hero__text .eyebrow { margin-bottom: 14px; }
.hero__sub { color: var(--muted); margin-top: 18px; max-width: 34ch; margin-inline: auto; }
.hero__text .btns { align-items: stretch; }
.hero__sign { margin-top: 28px; color: var(--cream); font-size: .8125rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }

/* Secciones */
.sec { padding: 56px 0; }
.sec--cream { background: var(--cream); }
.sec--navy { background: var(--night-2); color: var(--cream); }
.sec--band { background: var(--night-3); color: var(--cream); }
.sec--center, .center { text-align: center; }

.sec--cream p + p, .sec--navy p + p { margin-top: 1.1em; }
.lead { font-family: var(--serif); font-weight: 700; color: var(--night-2); font-size: 1.5rem; line-height: 1.35; margin-bottom: 1.2em; }
.lead--author { font-weight: 400; font-size: 1.3125rem; line-height: 1.6; margin-bottom: 0; }
.remate { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 1.5rem; line-height: 1.4; margin-top: 1.4em !important; }
.title { font-family: var(--serif); font-weight: 700; color: var(--night-2); font-size: 1.75rem; line-height: 1.25; margin-bottom: 24px; }
.title--center { text-align: center; margin-bottom: 12px; }
.title--light { color: var(--cream); font-size: 2rem; }
.muted { color: var(--muted); }

/* Lista con símbolo */
.learn { list-style: none; padding: 0; margin-bottom: 40px; }
.learn li {
  padding: 18px 0 18px 40px; border-bottom: 1px solid rgba(11, 27, 51, .15); position: relative;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 32'%3E%3Cpath d='M12 8a8 8 0 0 0 0 16z' fill='%23E2A23B'/%3E%3Ccircle cx='12' cy='16' r='7.5' fill='none' stroke='%23E2A23B' stroke-width='1.5'/%3E%3Cpath d='M12 2v28' stroke='%23E2A23B' stroke-width='1.2'/%3E%3C/svg%3E") no-repeat 0 20px / 22px 30px;
}
.learn li:first-child { border-top: 1px solid rgba(11, 27, 51, .15); }
.learn strong { color: var(--night-2); }
.cierre { font-family: var(--serif); font-weight: 700; color: var(--night-2); text-align: center; font-size: 1.5rem; line-height: 1.35; margin: 0 auto 32px; max-width: 24em; }
.btns--center { align-items: stretch; margin-top: 32px; }

/* Fragmentos */
.cards { display: grid; gap: 16px; }
.card { border: 1.5px dashed rgba(143, 160, 186, .6); border-radius: 6px; padding: 28px 22px; min-height: 160px; }
.card blockquote { font-family: var(--serif); font-size: 1.25rem; line-height: 1.45; color: var(--cream); }
.card figcaption { margin-top: 14px; font-size: .9375rem; color: var(--muted); }

/* Preguntas */
.faq h3 { font-family: var(--serif); font-weight: 700; color: var(--night-2); font-size: 1.25rem; line-height: 1.3; padding-top: 24px; margin-top: 24px; border-top: 1px solid rgba(11, 27, 51, .15); }
.faq h3:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.faq p { margin-top: 8px; }

/* Pie */
.foot { background: var(--night-1); color: var(--muted); font-size: .9375rem; padding: 28px 0; }
.foot__in { display: flex; flex-direction: column; gap: 8px; }
.foot a { color: var(--cream); display: inline-flex; align-items: center; min-height: 44px; }

/* Tablet y escritorio */
@media (min-width: 600px) {
  .wrap { padding: 0 32px; }
  .btns { flex-direction: row; justify-content: center; }
  .btns--center { justify-content: center; }
  .cards { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 860px) {
  .sec { padding: 88px 0; }
  .hero { padding: 40px 0 80px; }
  .hero__in { flex-direction: row-reverse; justify-content: space-between; text-align: left; gap: 56px; }
  .hero__cover { width: 340px; flex: none; }
  .hero__sub { margin-inline: 0; }
  .hero__text .btns { justify-content: flex-start; }
  h1 { font-size: 3.75rem; }
  .lead { font-size: 1.875rem; }
  .lead--author { font-size: 1.5rem; }
  .title { font-size: 2.125rem; }
  .title--light { font-size: 2.5rem; }
  .cierre { font-size: 1.875rem; }
  .remate { font-size: 1.75rem; }
  .foot__in { flex-direction: row; justify-content: space-between; align-items: center; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.faq p a { color: var(--label); font-weight: 600; overflow-wrap: anywhere; }

/* Botones sin compra activa */
.btn--off { cursor: default; border-style: dashed; background: transparent; }
.btn--gold.btn--off { color: var(--gold); border-color: var(--gold); }
.btn--line.btn--off { color: var(--cream); border-color: var(--muted); }
.btn--navy.btn--off, .btn--outline-dark.btn--off { color: var(--night-2); border-color: var(--night-2); }
.topbar__buy--off { color: var(--muted); font-weight: 600; font-size: .9375rem; }

/* Introducción (lectura) */
.intro { max-width: 65ch; margin: 0 auto; color: var(--night-2); }
.intro__title { font-family: var(--serif); font-weight: 700; font-size: 2rem; line-height: 1.2; margin-bottom: 32px; }
.intro p { font-family: var(--serif); font-weight: 400; font-size: 1.1875rem; line-height: 1.8; color: var(--night-2); }
.intro p + p { margin-top: 1.1em; }
.intro .eyebrow { font-family: var(--sans); font-size: .8125rem; line-height: 1.4; margin-bottom: 16px; }
.intro .intro__first { letter-spacing: .01em; }
.intro .intro__sep { text-align: center; letter-spacing: .5em; margin: 2em 0; color: var(--label); }
.intro__end { margin-top: 56px; padding-top: 32px; border-top: 1px solid rgba(11, 27, 51, .2); text-align: center; }
.intro .intro__cta { font-family: var(--serif); font-weight: 700; font-size: 1.375rem; }
.faq a { color: var(--label); font-weight: 700; }

/* Privacidad */
.page { background: var(--cream); padding: 48px 0; }
.page h1 { color: var(--night-2); font-size: 2rem; }
.page h2 { font-family: var(--serif); color: var(--night-2); font-size: 1.375rem; margin: 32px 0 8px; }
.page a { color: var(--label); font-weight: 700; }
.note { background: #fff; border-left: 4px solid var(--gold); padding: 12px 16px; margin: 20px 0 0; font-size: 1rem; }

@media (min-width: 860px) {
  .intro__title { font-size: 2.5rem; }
  .intro p { font-size: 1.25rem; }
  .page h1 { font-size: 2.5rem; }
}
a.topbar__name { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }

/* Precio */
.price { margin-top: 18px; color: var(--muted); font-size: 1rem; }
.price strong { color: var(--cream); font-family: var(--serif); font-size: 1.5rem; margin-right: .35em; }
.muted--small { font-size: 1rem; margin-top: 4px; }
.hero__text .price + .btns { margin-top: 18px; }


/* Portada sobre fondo claro */
.hero__stage {
  display: flex; justify-content: center; width: 100%; max-width: 360px;
  padding: 16px 0; border-radius: 12px;
  background: radial-gradient(ellipse at 50% 45%, #FFFAF1 0%, var(--cream) 70%);
}
.hero__cover { box-shadow: 0 18px 36px rgba(7, 15, 31, .45), 0 2px 6px rgba(7, 15, 31, .3); }

/* Aviso de compra segura */
.secure { margin-top: 14px; font-size: .875rem; line-height: 1.5; color: var(--muted); }
.secure svg { display: inline-block; vertical-align: -2px; margin-right: 4px; }
.secure[hidden] { display: none; }
.sec--cream .secure { color: var(--body); }

/* Introducción plegable */
.intro__body.is-collapsed { max-height: 30em; overflow: hidden; position: relative; }
.intro__body.is-collapsed::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 9em;
  background: linear-gradient(to bottom, rgba(251, 247, 240, 0), var(--paper));
}
.intro__more-wrap { text-align: center; margin-top: 8px; }
.intro__more-wrap[hidden] { display: none; }
.intro__more { margin-top: 0; }

/* La mano cerrada */
.mano p { font-family: var(--serif); font-size: 1.1875rem; line-height: 1.75; color: var(--night-2); }
.mano p + p { margin-top: 1.1em; }
.mano .mano__big { font-size: 1.375rem; line-height: 1.6; font-weight: 700; padding-left: 18px; border-left: 3px solid var(--night-2); }
.mano .mano__end { font-weight: 700; }


/* Redes */
.social { background: var(--night-2); padding: 40px 0 36px; text-align: center; border-top: 1px solid rgba(143, 163, 192, .2); }
.social .eyebrow { margin-bottom: 16px; }
.social__list { list-style: none; padding: 0; margin: 0; display: flex; justify-content: center; gap: 16px; }
.social__list a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  border: 2px solid var(--gold); color: var(--gold);
}
.social__list a:hover { background: var(--gold); color: var(--night-2); }
.social__list svg { width: 26px; height: 26px; }

@media (min-width: 860px) {
  .hero__stage { width: 440px; max-width: none; flex: none; padding: 48px 0; }
  .hero__cover { width: 300px; }
  .mano p { font-size: 1.25rem; }
  .mano .mano__big { font-size: 1.5rem; }
}
.intro__body.is-collapsed ~ .intro__end { display: none; }

/* Secciones nuevas */
.sec--gold { background: var(--gold); color: var(--night-2); }
.sec--gold :focus-visible { outline-color: var(--night-2); }
.eyebrow--navy { color: var(--night-2); }
.sec--paper { background: var(--paper); }
.sec--paper :focus-visible { outline-color: var(--night-2); }
.card--wide { margin-top: 16px; }
.card--wide blockquote p + p { margin-top: .8em; }

/* Barra de compra fija (celular) */
.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--night-1); border-top: 1px solid rgba(226, 162, 59, .5);
  box-shadow: 0 -8px 24px rgba(7, 15, 31, .35);
}
.buybar[hidden] { display: none; }
.buybar__price { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; color: var(--cream); white-space: nowrap; }
.buybar .btn { min-height: 48px; padding: 10px 20px; flex: 0 1 auto; }
body.con-barra { padding-bottom: 76px; }
@media (min-width: 860px) {
  .buybar { display: none !important; }
  body.con-barra { padding-bottom: 0; }
}
