/* ═══════════════════════════════════════════════════════════════════
   styles2.css — Sara Pino · "Taller de obra"
   Estética editorial de imprenta: costura, regla de patrón y folios.
   Fraunces (display) · Source Serif 4 (lectura) · Archivo (etiquetas)
   ═══════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; background: none; border: none; }

/* ── Tokens ──────────────────────────────────────────────────────── */
:root {
  --paper: #edeae1;
  --paper-2: #e2dfd3;
  --ink: #1b1c19;
  --muted: #66675d;
  --faint: #9a9b8e;
  --line: #cfcbbd;
  --accent: #8a2432;
  --brass: #8f8064;
  --white: #ffffff;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Source Serif 4', Georgia, serif;
  --font-label: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: var(--ink); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ── Tipografía común ────────────────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -.01em;
}
em { font-style: italic; color: var(--accent); }

.eyebrow {
  font-family: var(--font-label);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 1rem;
}
.eyebrow-n {
  font-family: var(--font-label);
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--brass);
}

/* Regla de patrón: firma de la página */
.rule {
  position: relative;
  height: 1px;
  background: var(--ink);
  margin-bottom: clamp(60px, 9vw, 110px);
}
.rule::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 96px; height: 10px;
  background:
    linear-gradient(var(--ink), var(--ink)) 0 0 / 1px 10px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 14px 0 / 1px 7px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 28px 0 / 1px 4px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 42px 0 / 1px 7px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 56px 0 / 1px 10px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 70px 0 / 1px 7px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 84px 0 / 1px 4px no-repeat;
}

/* ── Botones ─────────────────────────────────────────────────────── */
.btn, .btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-label);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: background .25s, color .25s, border-color .25s;
}
.btn:hover, .btn-outline:hover { background: var(--accent); }
.btn-arr { display: inline-block; transition: transform .25s; }
.btn:hover .btn-arr { transform: translateX(4px); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--paper); }

.btn-block { width: 100%; justify-content: center; }

/* ── Cabecera ────────────────────────────────────────────────────── */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(18px, 4vw, 56px);
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ink);
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -.02em;
  white-space: nowrap;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}
.wordmark-sub {
  font-family: var(--font-label);
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

.topnav { display: flex; gap: clamp(14px, 2.4vw, 30px); }
.topnav a {
  font-family: var(--font-label);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 4px 0;
  position: relative;
  transition: color .2s;
}
.topnav a:hover { color: var(--ink); }
.topnav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width .3s;
}
.topnav a:hover::after { width: 100%; }

.topbar-actions { display: flex; align-items: center; gap: 18px; }

.topmail {
  font-family: var(--font-label);
  font-size: .68rem;
  letter-spacing: .06em;
  color: var(--ink);
  padding-bottom: 2px;
  border-bottom: 1px solid var(--ink);
  transition: border-color .2s, color .2s;
}
.topmail:hover { color: var(--accent); border-color: var(--accent); }

.menu-btn {
  display: none;
  width: 34px; height: 34px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--ink);
}
.menu-btn span {
  display: block;
  width: 14px; height: 1.5px;
  background: var(--ink);
  transition: transform .3s, opacity .3s;
}
.menu-btn.active span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.menu-btn.active span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }

.mobile-drawer {
  position: fixed;
  inset: 0;
  height: 100vh;
  width: 100vw;
  background: var(--paper);
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.mobile-drawer.active { opacity: 1; visibility: visible; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  text-align: center;
}
.mobile-nav-link {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink);
}
.mobile-nav-link:hover { color: var(--accent); }

/* ── Portada ─────────────────────────────────────────────────────── */
.portada {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
  min-height: 100vh;
  padding: calc(58px + clamp(50px, 9vw, 120px)) clamp(20px, 5vw, 56px) clamp(60px, 9vw, 110px);
  max-width: 1200px;
  margin: 0 auto;
}

.masthead {
  font-size: clamp(4.2rem, 12vw, 9.5rem);
  line-height: .88;
  letter-spacing: -.03em;
  margin-bottom: 2rem;
}
.masthead em {
  display: block;
  font-style: italic;
}

.portada-lead {
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 2.5rem;
}

.tallas {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  margin-bottom: 2.5rem;
}
.talla {
  padding: 1rem 1.6rem 1.1rem;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.talla:first-child { padding-left: 0; }
.talla:last-child { border-right: none; }
.talla-val {
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1;
  color: var(--ink);
}
.talla-label {
  font-family: var(--font-label);
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.portada-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.btn-note {
  font-family: var(--font-label);
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.placa { max-width: 460px; margin-left: auto; }
.placa-marco {
  border: 1px solid var(--ink);
  padding: 10px;
  position: relative;
}
.placa-marco::after {
  content: '';
  position: absolute;
  top: -4px; left: -4px;
  width: 14px; height: 14px;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}
.placa-marco img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  filter: grayscale(30%) contrast(1.02);
}
.placa-pie {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  font-family: var(--font-label);
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Variantes de portada (maquetas) ─────────────────────────────── */
.variantes, .hero-a, .hero-b, .hero-c, .hero-d, .hero-e {
  padding: clamp(20px, 2vw, 40px) clamp(20px, 5vw, 56px);
}
.variantes-titulo { font-size: clamp(2rem, 4.5vw, 3.4rem); margin-bottom: .75rem; }
.variantes-sub { color: var(--muted); max-width: 46ch; margin-bottom: 1rem; }

.hero-a, .hero-b, .hero-c, .hero-d, .hero-e {
  border: 1px dashed var(--brass);
  margin-bottom: clamp(40px, 6vw, 70px);
}
.var-cab {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  border-bottom: 1px dashed var(--brass);
  padding-bottom: .75rem;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.var-tag {
  font-family: var(--font-label);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
}
.var-nota {
  font-family: var(--font-label);
  font-size: .6rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Variante A: friso editorial */
.hero-a {
  max-width: 98%;
  margin: 0 auto;
  padding: clamp(40px, 5vh, 80px) clamp(20px, 5vw, 56px) !important;
}
@media (min-width: 961px) {
  .hero-a {
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .hero-a > .var-cab {
    margin-top: auto;
  }
  .hero-a-inner {
    align-items: center;
    margin-bottom: auto;
  }
}
.hero-a-inner {
  display: grid;
  grid-template-columns: 44px 1fr minmax(220px, 300px);
  gap: clamp(24px, 4vw, 56px);
  align-items: stretch;
}
.hero-a-spine {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-label);
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--brass);
  border-left: 1px solid var(--line);
  padding-left: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.hero-a-cuerpo { display: flex; flex-direction: column; justify-content: center; }
.hero-a-titulo {
  font-size: clamp(4rem, 9vw, 7.5rem);
  line-height: .86;
  letter-spacing: -.03em;
  margin: .25rem 0 1rem;
}
.hero-a-titulo em { display: block; font-style: italic; }
.hero-a-lead {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 1.25rem;
}
.hero-a-datos {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  margin-bottom: 1.25rem;
}
.hero-a-datos span {
  padding: .85rem 1.25rem .95rem 0;
  margin-right: 1.25rem;
  font-family: var(--font-label);
  font-size: .66rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  border-right: 1px solid var(--line);
}
.hero-a-datos span:last-child { border-right: none; }
.hero-a-datos strong {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink);
  display: block;
  line-height: 1;
  text-transform: none;
}
.hero-a-foto {
  position: relative;
  min-height: 280px;
  max-height: 65vh;
}
.hero-a-foto img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  filter: grayscale(20%);
}
.hero-a-foto figcaption {
  position: absolute;
  bottom: 12px; left: 12px;
  background: var(--paper);
  padding: 4px 10px;
  font-family: var(--font-label);
  font-size: .6rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--ink);
}

/* Variante B: página de título centrada */
.hero-b {
  text-align: center;
  padding-block: clamp(100px, 12vw, 160px);
  max-width: none;
  border: none !important;
}
.hero-b-marca {
  font-family: var(--font-label);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.5rem;
}
.hero-b-titulo {
  font-size: clamp(3.6rem, 9vw, 7rem);
  line-height: .9;
  letter-spacing: -.02em;
}
.hero-b-raya {
  width: 120px;
  height: 1px;
  background: var(--ink);
  margin: 1.75rem auto;
  position: relative;
}
.hero-b-raya::after {
  content: '';
  position: absolute;
  top: -3px; left: 50%;
  transform: translateX(-50%);
  width: 7px; height: 7px;
  background: var(--paper);
  border: 1px solid var(--ink);
}
.hero-b-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 300;
  color: var(--ink);
  max-width: 40ch;
  margin: 0 auto 1.5rem;
}
.hero-b-stats {
  display: flex;
  justify-content: center;
  gap: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  max-width: 560px;
  margin: 0 auto 2.5rem;
}
.hero-b-stats span {
  flex: 1;
  padding: .8rem 1rem;
  font-family: var(--font-label);
  font-size: .66rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  border-right: 1px solid var(--line);
}
.hero-b-stats span:last-child { border-right: none; }
.hero-b-portadas {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 3vw, 32px);
  margin-bottom: 2.5rem;
}
.hero-b-portadas a {
  width: clamp(96px, 12vw, 132px);
  aspect-ratio: 2/3;
  border: 1px solid var(--ink);
  transition: transform .3s;
}
.hero-b-portadas a:hover { transform: translateY(-6px); }
.hero-b-portadas img { width: 100%; height: 100%; object-fit: cover; }
.hero-b-cta { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; }

/* Variante C: la marea */
.hero-c { position: relative; overflow: hidden; }
.hero-c-escena { text-align: center; }
.hero-c-titulo {
  font-size: clamp(4rem, 12vw, 10rem);
  line-height: .8;
  letter-spacing: -.03em;
  margin: 0;
}
.hero-c-ola { display: block; width: 100%; height: clamp(18px, 3vw, 34px); margin-top: .15em; }
.hero-c-ola path { fill: var(--paper-2); }
.hero-c-reflejo {
  display: block;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(4rem, 12vw, 10rem);
  line-height: .8;
  letter-spacing: -.03em;
  color: var(--ink);
  opacity: .14;
  transform: scaleY(-1);
  transform-origin: top;
  -webkit-mask-image: linear-gradient(to bottom, transparent 18%, #000 82%);
  mask-image: linear-gradient(to bottom, transparent 18%, #000 82%);
}
.hero-c-pie {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 2.25rem;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}
.hero-c-lead { font-size: 1.02rem; color: var(--muted); max-width: 52ch; line-height: 1.7; }

/* Variante D: patrón de costura */
.hero-d-papel {
  position: relative;
  border: 1px solid var(--ink);
  outline: 1px dashed var(--brass);
  outline-offset: 7px;
  padding: clamp(56px, 8vw, 96px) clamp(24px, 5vw, 64px);
  background:
    repeating-linear-gradient(90deg, rgba(143,128,100,.06) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(0deg, rgba(143,128,100,.06) 0 1px, transparent 1px 28px);
}
.hero-d-pliegue {
  position: absolute;
  top: 16px; bottom: 16px; left: 50%;
  border-left: 1px dashed var(--line);
}
.hero-d-cota {
  position: relative;
  display: block;
  width: min(430px, 92%);
  margin: 0 auto 2.5rem;
  border-top: 1px solid var(--ink);
}
.hero-d-cota::before, .hero-d-cota::after {
  content: '';
  position: absolute;
  top: -5px;
  width: 1px; height: 10px;
  background: var(--ink);
}
.hero-d-cota::before { left: 0; }
.hero-d-cota::after { right: 0; }
.hero-d-cota span {
  position: absolute;
  top: -1.6rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--paper);
  padding: 0 10px;
  font-family: var(--font-label);
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brass);
  white-space: nowrap;
}
.hero-d-titulo {
  position: relative;
  text-align: center;
  font-size: clamp(3.4rem, 9vw, 7.5rem);
  line-height: .9;
  letter-spacing: -.02em;
  margin: 0;
}
.hero-d-notas {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 18px;
  max-width: 460px;
  margin: 2.5rem auto 0;
  border-top: 1px dashed var(--line);
  padding-top: .75rem;
}
.hero-d-notas span {
  font-family: var(--font-label);
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-d-pie {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 2.75rem;
}
.hero-d-lead { font-size: 1.02rem; color: var(--muted); max-width: 52ch; line-height: 1.7; }

/* Variante E: carta náutica */
.hero-e-carta {
  position: relative;
  border: 1px solid var(--ink);
  overflow: hidden;
  min-height: clamp(340px, 46vw, 560px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-e-curvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-e-curvas path { fill: none; stroke: var(--brass); stroke-width: 1.1; opacity: .55; }
.hero-e-sonda {
  position: absolute;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(.8rem, 1.6vw, 1.1rem);
  color: var(--muted);
}
.hero-e-sonda::before {
  content: '';
  position: absolute;
  top: 50%;
  right: calc(100% + 6px);
  width: 6px;
  height: 1px;
  background: var(--muted);
}
.hero-e-sonda--1 { top: 16%; left: 13%; }
.hero-e-sonda--2 { top: 28%; left: 72%; }
.hero-e-sonda--3 { top: 54%; left: 82%; }
.hero-e-sonda--4 { top: 70%; left: 24%; }
.hero-e-brujula {
  position: absolute;
  top: 5%; right: 4%;
  width: clamp(60px, 8vw, 96px);
  height: auto;
}
.hero-e-titulo-wrap { position: relative; z-index: 1; text-align: center; }
.hero-e-rotulo {
  font-family: var(--font-label);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.1rem;
}
.hero-e-titulo {
  font-size: clamp(3.2rem, 8vw, 6.5rem);
  line-height: .92;
  letter-spacing: -.02em;
  background: var(--paper);
  padding: 0 .3em;
}
.hero-e-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--muted);
  margin-top: 1.1rem;
  background: var(--paper);
  padding: 0 .4em;
}
.hero-e-pie {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 2.25rem;
}
.hero-e-lead { font-size: 1.02rem; color: var(--muted); max-width: 52ch; line-height: 1.7; }

/* Hero de apertura: videoclip con fondo de YouTube a pantalla completa */
.hero-f {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: none; /* anula el ancho de 1200px de main > section */
  min-height: 100vh;
  min-height: 100svh; /* fallback moderno: evita saltos por barras móviles */
  padding: 0;
  border: none;
  margin: 0;
}
.hero-f-escena {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  border: none;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
}
.hero-f-video { position: absolute; inset: 0; }
.hero-f-video iframe {
  position: absolute;
  top: 50%; left: 50%;
  width: 100vw;
  height: 56.25vw; /* 16:9 aspect ratio (9/16 = 0.5625) */
  min-height: 100vh;
  min-height: 100svh;
  min-width: 177.77vh; /* 16:9 aspect ratio (16/9 = 1.7777) */
  transform: translate(-50%, -50%);
  pointer-events: none;
  border: 0;
}
.hero-f-velo {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(16,17,14,.82) 0%, rgba(16,17,14,.42) 38%, rgba(16,17,14,.58) 100%),
    linear-gradient(90deg, rgba(16,17,14,.5) 0%, rgba(16,17,14,.12) 45%, rgba(16,17,14,.42) 100%);
}
.hero-f-contenido {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--paper);
  padding: clamp(40px, 7vw, 96px) clamp(20px, 6vw, 80px);
}
.hero-f-rotulo {
  font-family: var(--font-label);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.15rem;
}
.hero-f-titulo {
  font-size: clamp(3.6rem, 10vw, 8rem);
  line-height: .88;
  letter-spacing: -.03em;
  color: var(--paper);
  margin: 0 0 1.4rem;
}
.hero-f-titulo em {
  display: block;
  font-style: italic;
  color: #d8a4ac; /* acento vino aclarado sobre fondo oscuro */
}
.hero-f-lead {
  font-size: 1.08rem;
  line-height: 1.7;
  color: rgba(237,234,225,.9);
  max-width: 48ch;
  margin: 0 auto 1.9rem;
}
.hero-f-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  border-top: 1px solid rgba(237,234,225,.38);
  border-bottom: 1px solid rgba(237,234,225,.38);
  max-width: 560px;
  margin: 0 auto 2rem;
}
.hero-f-meta span {
  flex: 1;
  min-width: 120px;
  padding: .85rem 1rem;
  font-family: var(--font-label);
  font-size: .66rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(237,234,225,.78);
  border-right: 1px solid rgba(237,234,225,.22);
}
.hero-f-meta span:last-child { border-right: none; }
.hero-f-meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--paper);
  line-height: 1;
  text-transform: none;
}
.hero-f-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.hero-f-note {
  font-family: var(--font-label);
  font-size: .6rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(237,234,225,.62);
}

/* ── Contenido: ancho máximo ─────────────────────────────────────── */
main > section,
.colofon {
  width: 100%;
  max-width: 96%;
  margin-inline: auto;
}

/* ── Trayectoria ─────────────────────────────────────────────────── */
.trayectoria, .obra, .fechas, .voces, .redes, .notas, .preguntas, .contacto, .video-trailer, .colofon {
  padding: clamp(20px, 2vw, 40px) clamp(20px, 5vw, 56px);
}
.trayectoria, .obra, .fechas, .voces, .redes, .notas, .preguntas, .contacto, .video-trailer {
  max-width: 1200px;
}

.tray-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}
.tray-grid h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.tray-texto p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: 1.25rem;
  max-width: 62ch;
}
.tray-puntos {
  list-style: none;
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}
.tray-puntos li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .98rem;
  line-height: 1.6;
  color: var(--muted);
}
.tray-puntos strong { font-family: var(--font-label); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); display: block; margin-bottom: 4px; }

/* ── Obra ────────────────────────────────────────────────────────── */
.obra-cabecera {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 3rem;
}
.obra-cabecera h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.obra-sub { max-width: 420px; font-size: 1rem; color: var(--muted); line-height: 1.65; }

.destacada {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
  padding: clamp(28px, 4vw, 48px) 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  margin-bottom: 3.5rem;
}
.destacada-portada {
  position: relative;
  display: block;
  aspect-ratio: 2/3;
  border: 1px solid var(--ink);
  box-shadow: 14px 14px 0 rgba(27,28,25,.08);
}
.destacada-portada img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.destacada-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1rem; }
.tag {
  font-family: var(--font-label);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 4px 10px;
}
.tag-marca { color: var(--paper); background: var(--accent); border-color: var(--accent); }

.destacada-titulo { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 1.1rem; }
.destacada-sinopsis {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 52ch;
  margin-bottom: 1.25rem;
}

.ficha {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--line);
  margin-bottom: 1.25rem;
}
.ficha div { padding: .9rem 1.4rem .9rem 0; margin-right: 1.4rem; border-top: 1px solid var(--ink); margin-top: -1px; min-width: 150px; }
.ficha dt {
  font-family: var(--font-label);
  font-size: .6rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 4px;
}
.ficha dd { font-size: .92rem; color: var(--ink); }

/* Obras secundarias (tarjetas) */
.obra-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(36px, 6vw, 80px);
  border-top: 1px solid var(--ink);
  padding-top: 2rem;
}
.obra-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}
.obra-card-portada {
  position: relative;
  display: block;
  aspect-ratio: 2/3;
  border: 1px solid var(--ink);
  box-shadow: 10px 10px 0 rgba(27,28,25,.08);
}
.obra-card-portada img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.obra-card-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: .9rem; }
.obra-card-titulo { font-size: clamp(1.5rem, 2.6vw, 2.2rem); margin-bottom: .9rem; }
.obra-card-sinopsis {
  font-size: .98rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 1.4rem;
}
.obra-card-acciones { display: flex; }

/* ── Fechas ──────────────────────────────────────────────────────── */
.fechas-cabecera {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 2.75rem;
}
.fechas-cabecera h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
.fechas-sub { max-width: 400px; font-size: 1rem; color: var(--muted); line-height: 1.65; }

.events-list { display: flex; flex-direction: column; }

.event-card {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}
.event-card.event-past { opacity: .45; filter: grayscale(1); }

.event-date {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-left: 2px solid var(--accent);
  padding-left: 14px;
}
.event-date .day { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; color: var(--ink); }
.event-date .month { font-family: var(--font-label); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.event-details { display: flex; flex-direction: column; gap: 6px; }
.event-meta { display: flex; align-items: center; gap: 12px; font-size: .86rem; }
.badge-type {
  font-family: var(--font-label);
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 3px 9px;
}
.event-meta .location { color: var(--muted); font-size: .86rem; }
.event-title { font-size: 1.4rem; font-weight: 400; line-height: 1.25; }
.event-title em { color: var(--accent); }
.event-desc { font-size: .92rem; color: var(--muted); line-height: 1.55; }

.event-action { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.event-time { font-family: var(--font-label); font-size: .78rem; letter-spacing: .04em; color: var(--ink); }
.free-entry {
  font-family: var(--font-label);
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brass);
}

/* ── Voces ───────────────────────────────────────────────────────── */
.voces-cabecera {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.voces-cabecera h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
.voces-nota { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.voces-score { font-family: var(--font-display); font-size: 1.6rem; line-height: 1; }
.voces-detalle { font-family: var(--font-label); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.voces-rail-wrap { position: relative; display: flex; align-items: center; gap: 12px; }
.voces-rail {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 0;
  padding: 4px 0 12px;
  -ms-overflow-style: none;
  scrollbar-width: none;
  flex: 1;
}
.voces-rail::-webkit-scrollbar { display: none; }

.rail-nav {
  width: 42px; height: 42px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-family: var(--font-label);
  font-size: 1.1rem;
  transition: background .2s, color .2s;
}
.rail-nav:hover { background: var(--ink); color: var(--paper); }

.review-card {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(20px, 4vw, 48px);
  align-items: start;
  padding-right: clamp(24px, 4vw, 56px);
}
.review-top { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.review-stars { font-size: .9rem; letter-spacing: 3px; color: var(--brass); }
.review-source {
  font-family: var(--font-label);
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 3px 8px;
  white-space: nowrap;
}
.review-text {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  line-height: 1.35;
  color: var(--ink);
  font-style: italic;
  border-left: 2px solid var(--accent);
  padding-left: clamp(16px, 3vw, 28px);
}
.review-author {
  grid-column: 2;
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: .92rem;
}
.review-author strong { font-family: var(--font-label); font-weight: 600; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; }
.review-author span { color: var(--muted); font-size: .88rem; }
.review-author span em { color: var(--accent); font-style: italic; }

.voces-pies {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 1.75rem;
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}
.reviews-dots { display: flex; gap: 8px; }
.reviews-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--line);
  cursor: pointer;
  transition: background .3s, transform .3s;
}
.reviews-dot:hover { transform: scale(1.2); }
.reviews-dot.active { background: var(--accent); }
.reviews-counter {
  font-family: var(--font-label);
  font-size: .68rem;
  letter-spacing: .18em;
  color: var(--muted);
}

/* ── Redes ───────────────────────────────────────────────────────── */
.redes { border-top: 1px solid var(--line); }
.redes-cabecera {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: clamp(36px, 6vw, 90px);
  align-items: start;
}
.redes-cabecera h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 1rem; }
.redes-sub { color: var(--muted); margin-bottom: 1.25rem; max-width: 44ch; }

.redes-embed {
  container-type: inline-size;
}
.social-embed-frame {
  width: 100%;
  height: calc(100cqw * 0.666 + 230px);
  border: 1px solid var(--ink);
  background: var(--white);
}

.redes-x { padding-top: 0; }
.redes-x-inner { max-width: 920px; margin: 0 auto; }
.redes-x .redes-cabecera { display: block; margin-bottom: 2.5rem; }

.x-cartel {
  border: 1px solid var(--ink);
  padding: clamp(20px, 3vw, 32px);
}
.x-cartel-cab {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.1rem;
  margin-bottom: 1.25rem;
}
.x-perfil { display: flex; align-items: center; gap: 12px; }
.x-avatar {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-label);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .05em;
}
.x-perfil-texto { display: flex; flex-direction: column; }
.x-perfil-texto strong { font-family: var(--font-label); font-size: .88rem; letter-spacing: .02em; }
.x-perfil-texto span { font-size: .82rem; color: var(--muted); }
.x-abrir {
  font-family: var(--font-label);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  white-space: nowrap;
  transition: color .2s, border-color .2s;
}
.x-abrir:hover { color: var(--accent); border-color: var(--accent); }

.x-lista { display: flex; flex-direction: column; }
.twitter-tweet-item { padding: 1.1rem 0; border-bottom: 1px dashed var(--line); }
.twitter-tweet-item:last-child { border-bottom: none; }
.twitter-tweet-header-meta { margin-bottom: .5rem; }
.twitter-tweet-time {
  font-family: var(--font-label);
  font-size: .68rem;
  letter-spacing: .08em;
  color: var(--brass);
  text-transform: uppercase;
}
.twitter-time-link { color: var(--accent); }
.twitter-time-link:hover { text-decoration: underline; }
.twitter-tweet-text {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: .7rem;
  white-space: pre-line;
}
.tweet-inner-link { color: var(--accent); }
.tweet-inner-link:hover { text-decoration: underline; }
.tweet-highlight { color: var(--accent); }
.twitter-tweet-meta { display: flex; justify-content: space-between; align-items: center; }
.twitter-tweet-stats { display: flex; gap: 18px; font-family: var(--font-label); font-size: .78rem; color: var(--muted); }

.x-pie {
  display: block;
  text-align: center;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-label);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: color .2s;
}
.x-pie:hover { color: var(--accent); }

/* ── Notas ───────────────────────────────────────────────────────── */
.notas-cabecera { margin-bottom: 2.5rem; }
.notas-cabecera h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
.notas-sub { color: var(--muted); margin-top: .75rem; }

.posts { display: flex; flex-direction: column; }

.post-card {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
}

.post-thumb {
  width: 84px; height: 84px;
  border: 1px solid var(--ink);
  overflow: hidden;
  background: var(--paper-2);
}
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-thumb-placeholder { display: flex; align-items: center; justify-content: center; }
.post-thumb-placeholder span { font-family: var(--font-display); font-size: 2rem; color: var(--accent); }

.post-details { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.post-meta { display: flex; align-items: center; gap: 12px; }
.post-category {
  font-family: var(--font-label);
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brass);
}
.post-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.post-excerpt { font-size: .9rem; color: var(--muted); line-height: 1.5; }

.post-footer { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.post-footer .read-label {
  font-family: var(--font-label);
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.post-footer .arrow { font-family: var(--font-label); font-size: 1.05rem; color: var(--ink); transition: transform .25s; }

.load-more-wrap { margin-top: 2rem; text-align: center; }

/* ── Preguntas ───────────────────────────────────────────────────── */
.preguntas-cabecera { margin-bottom: 2.5rem; }
.preguntas-cabecera h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
.preguntas-sub { color: var(--muted); margin-top: .75rem; max-width: 46ch; }

.faq-lista { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--ink); }
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 1.35rem 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-icon {
  font-family: var(--font-label);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform .3s;
  flex-shrink: 0;
}
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-answer {
  padding: 0 0 1.4rem;
  font-size: .98rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 64ch;
}
.faq-answer em { color: var(--accent); }

/* ── Contacto ────────────────────────────────────────────────────── */
.contacto-cabecera { margin-bottom: 2.5rem; }
.contacto-cabecera h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
.contacto-sub { color: var(--muted); margin-top: .75rem; max-width: 46ch; }

.contacto-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(32px, 6vw, 90px);
  align-items: start;
}

.contacto-canales { display: flex; flex-direction: column; }
.canal {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}
.canal-rotulo {
  font-family: var(--font-label);
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brass);
}
.canal strong { font-size: 1.05rem; font-weight: 600; }
.canal-nota { font-size: .86rem; color: var(--muted); line-height: 1.5; }
a.canal { transition: padding-left .3s; }
a.canal:hover { padding-left: 8px; color: var(--accent); }
a.canal:hover strong { color: var(--accent); }

.contacto-form-wrap { border: 1px solid var(--ink); padding: clamp(24px, 4vw, 40px); background: var(--paper-2); }
.contacto-titulo { font-family: var(--font-display); font-size: 1.6rem; font-weight: 400; margin-bottom: 1.5rem; }

.contact-form { display: flex; flex-direction: column; gap: 1.15rem; }
.form-fila { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.form-campo { display: flex; flex-direction: column; gap: 6px; }
.form-campo label {
  font-family: var(--font-label);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-campo input, .form-campo textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 12px 14px;
  border-radius: 0;
  transition: border-color .2s;
}
.form-campo input:focus, .form-campo textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.form-campo input::placeholder, .form-campo textarea::placeholder { color: var(--faint); }
.form-campo textarea { resize: vertical; min-height: 120px; }

.form-acepto {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .88rem;
  color: var(--muted);
  cursor: pointer;
}
.form-acepto input { margin-top: 3px; accent-color: var(--accent); }
.form-acepto a { color: var(--accent); text-decoration: underline; }

.success-msg {
  display: none;
  margin-top: 1.25rem;
  padding: 1.25rem;
  border: 1px solid var(--ink);
  background: var(--paper);
  font-size: 1rem;
  line-height: 1.6;
}
.success-msg.visible { display: block; }

/* ── Colofón ─────────────────────────────────────────────────────── */
.colofon { padding-bottom: clamp(40px, 6vw, 80px); text-align: center; }
.colofon-marca {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: .75rem;
}
.colofon-texto { font-family: var(--font-label); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.25rem; }
.colofon-links { display: flex; justify-content: center; gap: 24px; }
.colofon-links a {
  font-family: var(--font-label);
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .2s;
}
.colofon-links a:hover { color: var(--accent); }

/* ── Modal de previsualización (inyectado por script.js) ────────── */
.book-fragment-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(27, 28, 25, .62);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.book-fragment-modal.active { opacity: 1; pointer-events: auto; }

.book-fragment-dialog {
  background: #ffffff;
  width: 100%;
  max-width: 860px;
  max-height: 85vh;
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: row;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s var(--ease);
}

.book-fragment-modal.active .book-fragment-dialog {
  transform: translateY(0) scale(1);
}

.book-fragment-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.06);
  border: none;
  font-size: 20px;
  line-height: 1;
  color: #374151;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}

.book-fragment-close:hover {
  background: rgba(17, 24, 39, 0.12);
  transform: scale(1.08);
}

.book-fragment-sidebar {
  width: 290px;
  background: var(--bg);
  padding: 36px 24px;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  overflow-y: auto;
}

.book-fragment-cover-img {
  width: 160px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  margin-bottom: 24px;
}

.book-fragment-meta-title {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  align-self: flex-start;
  width: 100%;
}

.book-fragment-meta-list {
  list-style: none;
  font-size: 0.85rem;
  color: #4b5563;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  margin: 0;
}

.book-fragment-meta-list li strong {
  color: #111827;
}

.book-fragment-content {
  flex: 1;
  padding: 44px 48px;
  overflow-y: auto;
  background: #ffffff;
}

.book-fragment-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  color: #111827;
  text-align: center;
  margin-bottom: 6px;
}

.book-fragment-author {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: #6b7280;
  text-align: center;
  margin-bottom: 28px;
}

.book-fragment-body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.85;
  color: #2b2b2b;
  text-align: justify;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
  -webkit-hyphenate-limit-lines: 2;
  hyphenate-limit-lines: 2;
  hyphenate-limit-chars: 6 3 3;
}

.book-fragment-body p {
  margin-bottom: 0.85em;
  text-indent: 1.75em;
  text-align: justify;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
  -webkit-hyphenate-limit-lines: 2;
  hyphenate-limit-lines: 2;
}

.book-fragment-body p:first-of-type,
.book-fragment-body p:first-child {
  text-indent: 0 !important;
}

.book-fragment-cta {
  margin-top: 32px;
  padding: 20px;
  background: #fff8f8;
  border: 1px solid #fee2e2;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.book-fragment-cta-text p:first-child {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0;
}

.book-fragment-cta-text p:last-child {
  font-size: 0.78rem;
  color: #6b7280;
  margin: 0;
}

.book-fragment-btn {
  background: var(--accent);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background 0.2s;
  white-space: nowrap;
}

.book-fragment-btn:hover {
  background: #6c1a26;
  color: #ffffff;
}


/* ── Aparición sutil al hacer scroll ─────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  html.animar section,
  html.animar footer {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .7s ease, transform .7s ease;
  }
  html.animar section.revelado,
  html.animar footer.revelado { opacity: 1; transform: none; }
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .topnav { display: none; }
  .menu-btn { display: flex; }
  .topmail { display: none; }

  .portada { grid-template-columns: 1fr; }
  .placa { margin: 0 auto; max-width: 380px; }

  .hero-a-inner { grid-template-columns: 1fr; }
  .hero-a-spine { display: none; }
  .hero-a-foto { max-width: 300px; margin-top: 1.5rem; }

  .tray-grid { grid-template-columns: 1fr; gap: 2rem; }
  .destacada { grid-template-columns: 1fr; }
  .destacada-portada { max-width: 280px; }

  .obra-grid { grid-template-columns: 1fr; }
  .obra-card { grid-template-columns: 150px 1fr; }

  .event-card { grid-template-columns: 64px 1fr; }
  .event-action { grid-column: 2; align-items: flex-start; }

  .redes-cabecera { grid-template-columns: 1fr; }

  .review-card { grid-template-columns: 1fr; gap: 14px; }
  .review-top { flex-direction: row; align-items: center; }
  .review-author { grid-column: 1; }

  .contacto-grid { grid-template-columns: 1fr; }
  .post-card { grid-template-columns: 64px 1fr; }
  .post-footer { display: none; }
  .voces-pies { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero-a { width: 95%; margin: 0 auto; }
  .wordmark-sub { display: none; }
  .form-fila { grid-template-columns: 1fr; }
  .hero-a-datos { flex-direction: column; }
  .hero-a-datos span { border-right: none; border-bottom: 1px solid var(--line); margin-right: 0; }
  .hero-a-datos span:last-child { border-bottom: none; }
  .hero-b-stats { flex-direction: column; }
  .hero-b-stats span { border-right: none; border-bottom: 1px solid var(--line); }
  .hero-b-stats span:last-child { border-bottom: none; }
  .var-cab { flex-direction: column; align-items: flex-start; }
  .tallas { grid-template-columns: 1fr; }
  .talla { border-right: none; border-bottom: 1px solid var(--line); padding-left: 0; }
  .talla:last-child { border-bottom: none; }
  .destacada-meta { gap: 6px; }
  .obra-card { grid-template-columns: 1fr; }
  .obra-card-portada { max-width: 220px; }
  .obra-card-sinopsis { max-width: none; }
  .hero-c-pie, .hero-d-pie, .hero-e-pie { align-items: flex-start; }
  .hero-e-brujula { width: 52px; }
  .hero-e-carta { min-height: 280px;
  max-height: 65vh; }
  .hero-f-meta { flex-direction: column; }
  .hero-f-meta span { border-right: none; border-bottom: 1px solid rgba(237,234,225,.22); }
  .hero-f-meta span:last-child { border-bottom: none; }
  .hero-f-cta { flex-direction: column; }
  .ficha div { min-width: 100%; margin-right: 0; }
  .voces-rail-wrap { display: block; }
  .rail-nav { display: none; }
}

/* ── Formatos y Ediciones ───────────────────────────────────────── */
.editions-section {
  padding-top: 3rem;
  margin-bottom: 5rem;
  border-top: 1px solid var(--border);
  top: -12px;
  right: 24px;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 14px;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

.edition-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(43, 108, 176, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.edition-title {
  font-family: var(--font-body);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.edition-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.edition-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  font-size: 0.85rem;
  color: var(--ink);
  border-top: 1px dashed var(--border);
  padding-top: 18px;
}

.edition-features li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.edition-features li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
}

.edition-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: auto;
}

.edition-price {
  font-family: var(--font-mono);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ink);
}

/* Custom Instagram Grid */
.custom-ig-container {
    background: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin: 0 auto;
    position: relative;
    z-index: 2;
    transform: translate(20px, 20px);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.custom-ig-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 10px 15px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #262626;
}

.custom-ig-profile-pic {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #dbdbdb;
}

.custom-ig-info {
    flex: 1;
}

.custom-ig-top {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 12px;
}

.custom-ig-username {
    font-size: 1.25rem;
    font-weight: 500;
    margin: 0;
    color: #1c5b8e;
}

.custom-ig-follow-btn {
    background-color: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 7px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.custom-ig-follow-btn:hover {
    background-color: #333;
    color: #fff;
}

.custom-ig-stats-text {
    display: flex;
    gap: 24px;
    font-size: 1rem;
    margin-bottom: 12px;
}

.custom-ig-stats-text span strong {
    font-weight: 600;
}

.custom-ig-bio {
    font-size: 0.95rem;
    margin: 0;
}

.custom-ig-bio strong {
    font-weight: 600;
}

.custom-ig-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
    gap: 2px;
}

@media (max-width: 768px) {
    .custom-ig-container {
        width: 100%;
        transform: translate(0, 15px);
        padding: 10px;
    }
    .custom-ig-grid {
        grid-template-columns: repeat(3, 1fr);
        width: 100%;
    }
    .custom-ig-header {
        gap: 15px;
        padding: 5px 5px 15px;
    }
    .custom-ig-profile-pic {
        width: 70px;
        height: 70px;
    }
    .custom-ig-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .custom-ig-stats-text {
        font-size: 0.9rem;
        gap: 15px;
    }
}

.custom-ig-post {
    position: relative;
    display: block;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #f8f9fa;
}

.custom-ig-post img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    object-position: center center;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    transition: transform 0.4s ease;
}

.custom-ig-post:hover img {
    transform: scale(1.05);
}

.custom-ig-reel {
    position: absolute;
    top: 6px;
    right: 6px;
    color: #fff;
    font-size: 14px;
    z-index: 5;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.custom-ig-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.custom-ig-post:hover .custom-ig-overlay {
    opacity: 1;
}

.custom-ig-stats {
    display: flex;
    gap: 24px;
    align-items: center;
    color: white;
    font-size: 16px;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.custom-ig-stats .stat {
    display: flex;
    align-items: center;
    gap: 8px;
}

.custom-ig-stats i {
    color: white;
    font-size: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}


/* ── Trailer / Video ───────────────────────────────────────── */
.video-trailer { margin-bottom: 5rem; }
.trailer-layout {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: clamp(36px, 6vw, 90px);
  align-items: start;
}

@media (max-width: 900px) {
  .trailer-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.trailer-cabecera { margin-bottom: 2.5rem; }
.trailer-cabecera h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); margin-bottom: 0.5rem; }
.trailer-sub { color: var(--muted); margin-top: .75rem; }

.trailer-video-wrapper {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  background: var(--paper-2);
  border: 1px solid var(--line);
}

.elegant-video {
  width: auto;
  height: 80vh;
  display: block;
  border-radius: 12px;
  outline: none;
  margin: 0 auto;
}

/* ── Video Overlay Custom (Estilo YouTube) ── */
.video-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  cursor: pointer;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
}
.video-poster-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity 0.3s;
}
.video-overlay:hover .video-poster-img {
  opacity: 0.95;
}
.play-button {
  position: relative;
  z-index: 2;
  width: 68px;
  height: 48px;
  background: rgba(33, 33, 33, 0.8);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.2s, transform 0.2s;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.play-button i {
  color: white;
  font-size: 20px;
  margin-left: 4px;
}
.video-overlay:hover .play-button {
  background: #ff0000;
  transform: scale(1.05);
}

.btn-comprar .cart-icon { display: none; }
/* Responsive Cart Button */
@media (max-width: 768px) {
  .btn-comprar .btn-text { display: none !important; }
  .btn-comprar .cart-icon { display: inline-block !important; font-size: 1.3rem; }
  .btn-comprar { 
      padding: 0 !important; 
      background: transparent !important; 
      color: var(--ink) !important; 
      width: auto !important; 
      height: auto !important;
  }
}


/* Centrar portadas en móvil */
@media (max-width: 768px) {
  .destacada-portada, .obra-card-portada {
    display: flex !important;
    justify-content: center !important;
    margin: 0 auto 1.5rem auto !important;
    width: 100% !important;
  }
}

/* Centrar OTROS LIBROS en móvil */
@media (max-width: 768px) {
  .otros-libros-grid {
    justify-content: center !important;
  }
  .otros-libros-card {
    align-items: center !important;
    text-align: center !important;
  }
}


/* Centrar OTROS LIBROS en móvil */
@media (max-width: 768px) {
  #otros-libros .otros-grid {
    justify-content: center !important;
  }
  #otros-libros .otros-card {
    align-items: center !important;
    text-align: center !important;
  }
}
