:root {
  --bg: #09090a;
  --surface: #121214;
  --surface-2: #18181b;
  --line: rgba(201, 169, 97, 0.2);
  --line-soft: rgba(255, 255, 255, 0.08);
  --gold: #c9a961;
  --gold-bright: #e3c98a;
  --rose: #e6b9a6;
  --text: #ece8e1;
  --muted: #a39d93;
  --danger: #f0958a;
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; color-scheme: dark; }
main { overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-bright); }
strong { font-weight: 500; }
[hidden] { display: none !important; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: 1.5rem; }
h1 em, h2 em { color: var(--gold); font-style: italic; }
p { margin: 0 0 1.1em; }

.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: #111; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }

.eyebrow { font-size: 0.74rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin-bottom: 1.2em; }
.muted { color: var(--muted); }
.lead { font-size: 1.22rem; color: var(--text); }
.fineprint { font-size: 0.85rem; color: var(--muted); line-height: 1.55; }
.center { text-align: center; }
.narrow-text { max-width: 640px; margin-inline: auto; }

/* ---------- botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 30px;
  border: 1px solid transparent; border-radius: 2px;
  font: 500 0.8rem/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: linear-gradient(135deg, #d9bd7c, #b8944b); color: #14110a; }
.btn-gold:hover { background: linear-gradient(135deg, #ecd49a, #c9a55a); }
.btn-ghost { background: transparent; color: var(--text); border-color: rgba(236, 232, 225, 0.35); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); }
.btn-sm { min-height: 40px; padding: 0 20px; font-size: 0.72rem; }
.btn-lg { min-height: 60px; padding: 0 40px; font-size: 0.86rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: wait; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 1.8em 0 1.2em; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--gold-bright); text-decoration: underline; cursor: pointer; }

/* ---------- cabecera */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 28px;
  padding: 12px clamp(16px, 4vw, 44px);
  background: rgba(9, 9, 10, 0.82); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); margin-right: auto; }
.brand-mark { flex: none; width: auto; height: 44px; }
@media (max-width: 560px) { .brand-mark { height: 38px; } }
.brand-name { font-size: 0.82rem; letter-spacing: 0.32em; font-weight: 400; white-space: nowrap; }
.brand-name sup { font-size: 0.6em; letter-spacing: 0; }
.nav { display: flex; gap: 28px; }
/* Botón de menú (tres líneas), visible solo cuando la barra completa no cabe. */
.menu-btn { display: none; place-items: center; width: 42px; height: 42px; padding: 0; background: none; border: 1px solid var(--line); border-radius: 2px; cursor: pointer; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 2px; background: var(--text); content: ''; }
.menu-btn span { position: relative; }
.menu-btn span::before { position: absolute; top: -6px; }
.menu-btn span::after { position: absolute; top: 6px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap; }
.nav a:hover { color: var(--gold-bright); }
.nav .nav-admin { border: 1px solid var(--line); border-radius: 2px; padding: 6px 12px; margin-block: -7px; }

/* ---------- portada */
.hero {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(40px, 7vw, 96px) clamp(16px, 4vw, 44px) clamp(48px, 6vw, 80px);
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 6vw, 80px); align-items: center;
}
.hero-cover { position: relative; justify-self: center; max-width: 400px; }
.hero-cover::before {
  content: ''; position: absolute; inset: -12% -18%;
  background: radial-gradient(closest-side, rgba(201, 169, 97, 0.22), transparent 70%); z-index: -1;
}
.hero-cover img, .split-media img {
  border-radius: 3px;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(201, 169, 97, 0.25);
}
.adult-note { font-size: 0.86rem; color: var(--muted); display: flex; align-items: center; gap: 10px; margin: 0; }
.badge { flex: none; border: 1px solid var(--gold); color: var(--gold); font-size: 0.7rem; font-weight: 500; padding: 2px 7px; border-radius: 2px; letter-spacing: 0.05em; }

.topics-strip {
  list-style: none; margin: 0; padding: 22px 16px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 44px;
  border-block: 1px solid var(--line);
  font-size: 0.74rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--rose);
}

/* ---------- secciones */
.section { max-width: var(--wrap); margin: 0 auto; padding: clamp(64px, 9vw, 120px) clamp(16px, 4vw, 44px); }
.section.narrow { max-width: 780px; }
.question {
  margin: 1.2em 0 1.4em; padding: 0;
  font: italic 500 clamp(1.6rem, 3.4vw, 2.3rem) / 1.25 var(--serif); color: var(--gold-bright); text-wrap: balance;
}

.video { padding: 0 clamp(16px, 4vw, 44px); }
.video-frame {
  position: relative; max-width: var(--wrap); margin: 0 auto; overflow: hidden;
  border: 1px solid var(--line); border-radius: 3px;
  background: linear-gradient(90deg, rgba(9, 9, 10, 0.96) 35%, rgba(9, 9, 10, 0.5)), url(/img/portada.jpg) center 22% / cover;
}
.video-copy { max-width: 600px; padding: clamp(40px, 7vw, 90px) clamp(24px, 5vw, 70px); }
.video-frame.playing { aspect-ratio: 16 / 9; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split-media { max-width: 380px; justify-self: center; }
.list-title { font: 500 0.74rem var(--sans); letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin: 1.8em 0 1em; }
.checklist { list-style: none; margin: 0 0 1.6em; padding: 0; }
.checklist li { position: relative; padding: 11px 0 11px 30px; border-bottom: 1px solid var(--line-soft); }
.checklist li::before { content: ''; position: absolute; left: 4px; top: 1.25em; width: 8px; height: 8px; transform: rotate(45deg); background: var(--gold); }

.author-card {
  display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: clamp(24px, 5vw, 56px); align-items: center;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: 3px;
  padding: clamp(28px, 5vw, 64px);
}
.author-photo { width: 100%; border-radius: 3px; box-shadow: 0 24px 50px -18px #000, 0 0 0 1px var(--line); }
@media (max-width: 760px) {
  .author-card { grid-template-columns: 1fr; }
  .author-photo { max-width: 240px; margin: 0 auto; }
}
.role { color: var(--rose); font-size: 1.02rem; }
.pullquote { margin: clamp(40px, 6vw, 72px) auto 0; max-width: 760px; text-align: center; }
.pullquote blockquote { margin: 0; font: italic 500 clamp(1.8rem, 4vw, 2.8rem) / 1.2 var(--serif); color: var(--gold-bright); text-wrap: balance; }
.pullquote figcaption { margin-top: 1em; font-size: 0.74rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }

.testimonials-sub { font-size: 0.78rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }
/* Tarjetas en filas centradas de tres: con seis testimonios quedan dos hileras completas. */
.testimonials { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin: 40px 0; text-align: left; }
.testimonial {
  position: relative; flex: 0 1 calc((100% - 36px) / 3); min-width: 230px; margin: 0; overflow: hidden;
  display: flex; flex-direction: column; background: #0c0c0e; border: 1px solid var(--line); border-radius: 3px;
}
.testimonial-photo { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; object-position: center 22%; }
.testimonial-body { position: relative; flex: 1; display: flex; flex-direction: column; padding: 22px 22px 20px; }
/* El texto sube sobre la foto, que se funde hacia el fondo oscuro. */
.testimonial.has-photo .testimonial-body { margin-top: -84px; padding-top: 70px; background: linear-gradient(rgba(12, 12, 14, 0), #0c0c0e 78px); }
.testimonial-mark { font: 600 3rem/0.5 var(--serif); color: var(--gold); height: 22px; }
.testimonial blockquote { margin: 0 0 18px; font: 400 1.14rem/1.45 var(--serif); color: var(--text); }
.testimonial figcaption { margin-top: auto; padding-top: 14px; position: relative; font-size: 0.9rem; }
.testimonial figcaption::before { content: ''; position: absolute; top: 0; left: 0; width: 48px; height: 1px; background: var(--gold); }
.testimonial-who { display: block; color: var(--gold-bright); }
.testimonial-who strong { font-weight: 500; }
.testimonial-who span::before { content: '|'; margin: 0 8px; color: var(--muted); }
.testimonial-city { display: block; color: var(--muted); font-size: 0.86rem; }
.testimonials-empty { flex: 1 1 100%; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 3px; padding: 32px 20px; margin: 0; }
.share-box { max-width: 560px; margin: 0 auto 28px; }
.share-box p { color: var(--muted); }

.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 48px 0 40px; }
.pillar { background: var(--bg); padding: 32px 26px; }
.pillar-n { font: 500 1.9rem var(--serif); color: var(--gold); display: block; margin-bottom: 14px; }
.pillar h3 { font-size: 1.35rem; }
.pillar p { color: var(--muted); font-size: 0.97rem; margin: 0; }

/* ---------- compra */
.buy-box {
  display: grid; grid-template-columns: 280px 1fr; gap: clamp(24px, 5vw, 56px); align-items: start;
  margin-top: 48px; padding: clamp(24px, 4vw, 52px);
  background: linear-gradient(160deg, #17161a, #0e0e10); border: 1px solid var(--line); border-radius: 3px;
}
.buy-cover { border-radius: 3px; box-shadow: 0 30px 60px -20px #000; }
.editions { display: grid; gap: 12px; margin: 22px 0 8px; }
.edition {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 16px 20px; border: 1px solid var(--line-soft); border-radius: 3px; background: rgba(255, 255, 255, 0.02);
}
.edition-name { font: 500 1.3rem var(--serif); display: block; }
.edition-delivery { font-size: 0.86rem; color: var(--muted); }
.edition-price { font: 500 1.5rem var(--serif); color: var(--gold-bright); white-space: nowrap; }
.edition-price small { display: block; font: 300 0.76rem var(--sans); color: var(--muted); text-align: right; }

/* ---------- preguntas */
.faq { margin-top: 36px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative;
  font: 500 1.35rem/1.3 var(--serif);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 16px; font: 300 1.7rem var(--sans); color: var(--gold); }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--muted); padding-right: 40px; }

/* ---------- cierre */
.closing {
  text-align: center; padding: clamp(72px, 10vw, 130px) 16px;
  background: radial-gradient(ellipse at 50% 0%, rgba(230, 185, 166, 0.13), transparent 62%); border-top: 1px solid var(--line);
}
.closing-title { font: 500 1.7rem var(--serif); color: var(--gold-bright); margin-bottom: 0.2em; }
.closing-author { font-size: 0.76rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--muted); margin-bottom: 2.2em; }

.footer { text-align: center; padding: 44px 16px 110px; border-top: 1px solid var(--line-soft); font-size: 0.86rem; }
.footer-tag { color: var(--rose); letter-spacing: 0.04em; }
.footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; margin: 14px 0 18px; }
.footer nav a, .footer nav .linklike { color: var(--muted); text-decoration: none; }
.footer nav a:hover, .footer nav .linklike:hover { color: var(--gold-bright); }

.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  display: none; align-items: center; justify-content: space-between; gap: 14px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(14, 14, 16, 0.95); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
  font: 500 1.1rem var(--serif); transform: translateY(100%); transition: transform 0.3s;
}
.mobile-cta.show { transform: none; }

.whatsapp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 26;
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s;
}
.whatsapp-float:hover { transform: scale(1.07); }
@media (max-width: 900px) { .whatsapp-float { right: 14px; bottom: 78px; width: 52px; height: 52px; } }

/* ---------- ventanas */
.modal {
  width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
  padding: 0; border: 1px solid var(--line); border-radius: 4px;
  background: var(--surface); color: var(--text); overflow-y: auto;
}
.modal::backdrop { background: rgba(0, 0, 0, 0.78); backdrop-filter: blur(4px); }
.modal-body { position: relative; padding: clamp(22px, 5vw, 40px); margin: 0; }
.modal h2 { font-size: 2rem; }
.modal-close { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; background: none; border: 0; color: var(--muted); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.modal-close:hover { color: var(--text); }
.modal-actions { display: flex; gap: 12px; }
.modal-actions .btn { flex: 1; padding: 0 12px; }

.steps { list-style: none; display: flex; gap: 8px; margin: 0 44px 26px 0; padding: 0; font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.steps li { flex: 1; padding-top: 10px; border-top: 2px solid var(--line-soft); }
.steps li.on { border-color: var(--gold); color: var(--gold-bright); }

.field { display: block; margin: 0 0 16px; padding: 0; border: 0; font-size: 0.82rem; letter-spacing: 0.06em; color: var(--muted); min-width: 0; }
.field legend { padding: 0; margin-bottom: 8px; }
.field input, .field textarea {
  display: block; width: 100%; margin-top: 7px; padding: 13px 14px;
  background: #0c0c0e; color: var(--text); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 2px;
  font: 300 1rem var(--sans);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field textarea { resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-qty { max-width: 130px; }
.edition-options { display: grid; gap: 10px; }
.edition-option { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 2px; cursor: pointer; color: var(--text); font-size: 1rem; letter-spacing: 0; }
.edition-option:has(input:checked) { border-color: var(--gold); background: rgba(201, 169, 97, 0.08); }
.edition-option input { accent-color: var(--gold); width: 18px; height: 18px; flex: none; margin: 0; }
.edition-option span { flex: 1; }
.edition-option small { display: block; color: var(--muted); font-size: 0.82rem; }
.edition-option b { font: 500 1.2rem var(--serif); color: var(--gold-bright); white-space: nowrap; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; margin-bottom: 12px; line-height: 1.45; }
.check input { accent-color: var(--gold); width: 18px; height: 18px; flex: none; margin: 2px 0 0; }
.form-error { color: var(--danger); font-size: 0.92rem; margin: 4px 0 14px; }
.summary { margin: 0 0 20px; border: 1px solid var(--line-soft); border-radius: 2px; }
.summary div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 14px; border-bottom: 1px solid var(--line-soft); }
.summary div:last-child { border-bottom: 0; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; text-align: right; }
.summary .total dd { font: 500 1.35rem var(--serif); color: var(--gold-bright); }
.folio { font: 500 1.8rem var(--serif); color: var(--gold-bright); letter-spacing: 0.06em; }
#order-next { margin-bottom: 16px; }
#order-next .btn { margin-bottom: 12px; }
.pre { white-space: pre-line; }

.pay-notice { max-width: 640px; margin: 28px auto 0; padding: 14px 18px; text-align: center; border: 1px solid var(--line); border-radius: 3px; color: var(--rose); }

/* ---------- mis descargas */
.downloads { max-width: 640px; margin: 0 auto; padding: 56px 16px 96px; }
.downloads h1 { font-size: clamp(2.2rem, 5vw, 3rem); }
.downloads .panel { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 3px; padding: clamp(22px, 5vw, 36px); margin-top: 24px; }
.download-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.download-item:last-of-type { border-bottom: 0; }
.download-item strong { font: 500 1.35rem var(--serif); display: block; }
.download-item small { color: var(--muted); }
.downloads-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 20px; font-size: 0.9rem; color: var(--muted); }

/* ---------- redes sociales */
.socials { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 18px 0 6px; }
.socials a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--rose); transition: color 0.2s, border-color 0.2s;
}
.socials a:hover { color: var(--gold-bright); border-color: var(--gold); }

/* ---------- blog */
.nav.nav-always { display: flex; }
.nav a[aria-current="page"] { color: var(--gold-bright); }
.blog { max-width: 880px; margin: 0 auto; padding: clamp(40px, 7vw, 80px) clamp(16px, 4vw, 44px) 40px; }
.blog-head { text-align: center; margin-bottom: 44px; }
.blog-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.blog.blog-wide { max-width: var(--wrap); }
/* Hoja de entradas: tarjetas con la foto arriba, el título y el arranque del texto. */
.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.post-list-home { grid-template-columns: repeat(auto-fit, minmax(260px, 360px)); justify-content: center; margin: 44px 0 36px; }
.post-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 3px; overflow: hidden; transition: border-color 0.2s; }
.post-card:hover { border-color: var(--line); }
.post-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #0c0c0e; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.post-card:hover .post-thumb img { transform: scale(1.03); }
/* Sin foto de portada se muestra el emblema sobre fondo oscuro. */
.post-thumb-empty { display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, rgba(230, 185, 166, 0.14), #0c0c0e 70%); }
.post-thumb-empty img, .post-card:hover .post-thumb-empty img { width: auto; height: 46%; object-fit: contain; transform: none; opacity: 0.85; }
.post-card > div { flex: 1; display: flex; flex-direction: column; padding: 22px 24px 24px; }
.post-card .post-more { margin-top: auto; }
.post-card h2, .post-card h3 { font-size: 1.5rem; margin-bottom: 0.4em; }
.post-card h2 a, .post-card h3 a { color: var(--text); text-decoration: none; }
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--gold-bright); }
.post-card p { color: var(--muted); margin-bottom: 0.8em; }
.post-date { font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold) !important; }
.post-more { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; }
.post h1 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); }
.post .eyebrow a { color: inherit; text-decoration: none; }
.post-cover { width: 100%; max-height: 460px; object-fit: cover; border-radius: 3px; margin: 18px 0 8px; }
.post-body { font-size: 1.1rem; max-width: 68ch; margin-top: 28px; }
.post-body h2 { font-size: 1.9rem; margin-top: 1.6em; }
.post-body h3 { font-size: 1.45rem; margin-top: 1.4em; }
.post-body ul { padding-left: 1.2em; margin: 0 0 1.1em; }
.post-body li { margin-bottom: 0.4em; }
.post-body blockquote { margin: 1.4em 0; padding-left: 20px; border-left: 2px solid var(--gold); font: italic 500 1.4rem/1.4 var(--serif); color: var(--gold-bright); }
.post-cta { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 28px; align-items: center; margin-top: 64px; padding: 28px; background: linear-gradient(160deg, #17161a, #0e0e10); border: 1px solid var(--line); border-radius: 3px; }
.post-cta img { border-radius: 3px; }
.post-cta h2 { font-size: 1.9rem; }
.footer-plain { padding-bottom: 44px; }
@media (max-width: 640px) {
  .post-cta { grid-template-columns: minmax(0, 1fr); }
  .post-cta img { max-width: 130px; }
  /* En teléfono se quita el nombre junto al logotipo para que quepan las pestañas. */
  .topbar:has(.nav-always) .brand-name { display: none; }
  .nav.nav-always { gap: 18px; }
}

/* ---------- página legal */
.legal { max-width: 760px; margin: 0 auto; padding: 48px 16px 96px; }
.legal h1 { font-size: 2.6rem; }
.legal h2 { font-size: 1.8rem; margin-top: 2em; }
.legal .notice { border: 1px dashed var(--line); padding: 16px 20px; color: var(--muted); border-radius: 3px; }

/* ---------- adaptable */
/* El menú completo necesita unos 1240 px; por debajo se oculta antes de que sus enlaces se partan. */
@media (max-width: 1240px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
  /* Al abrirlo, el menú cuelga de la cabecera como una lista. */
  .nav.open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    padding: 6px clamp(16px, 4vw, 44px) 14px;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px rgba(0, 0, 0, 0.6);
  }
  .nav.open a { padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-size: 0.86rem; }
  .nav.open a:last-child { border-bottom: 0; }
  .nav.open .nav-admin { border: 0; border-radius: 0; padding: 14px 0; margin: 0; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-cover { order: -1; max-width: 250px; }
  .hero .actions, .adult-note { justify-content: center; }
  .split { grid-template-columns: 1fr; }
  .split-media { max-width: 240px; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .buy-box { grid-template-columns: 1fr; }
  .buy-cover { max-width: 200px; margin: 0 auto; }
  .mobile-cta { display: flex; }
  .video-frame { background: linear-gradient(rgba(9, 9, 10, 0.86), rgba(9, 9, 10, 0.94)), url(/img/portada.jpg) center 20% / cover; }
}
@media (max-width: 900px) { .testimonial { flex-basis: calc((100% - 18px) / 2); } }
@media (max-width: 560px) {
  .testimonial { flex-basis: 100%; }
  body { font-size: 16px; }
  .hero { padding-top: 24px; gap: 24px; }
  .hero-cover { max-width: 170px; }
  .actions .btn { width: 100%; }
  .pillars { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .topics-strip { gap: 8px 22px; font-size: 0.75rem; letter-spacing: 0.14em; }
  /* Cabecera compacta: logotipo, nombre, botón de menú y «Adquirir» en una línea. */
  .topbar { gap: 10px; }
  .brand { gap: 9px; }
  .brand-name { font-size: 0.7rem; letter-spacing: 0.2em; }
  .menu-btn { width: 40px; height: 40px; }
  .topbar .btn-sm { padding: 0 14px; letter-spacing: 0.14em; }
  .btn-lg { padding: 0 18px; letter-spacing: 0.14em; }
  /* Deja libre la esquina donde flota el botón de WhatsApp. */
  .footer { padding-bottom: 150px; }
  .whatsapp-float { width: 48px; height: 48px; }
  .whatsapp-float svg { width: 26px; height: 26px; }
}
/* En los teléfonos más angostos queda solo el logotipo. */
@media (max-width: 370px) { .brand-name { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
