/* ============================================================
   Páginas internas — componentes hi-fi · "Papiro & tinta"
   Reusa tokens y primitivas de hifi.css (cargar hifi.css ANTES)
   ============================================================ */

/* ---------- layout base ---------- */
.container { max-width: 1180px; margin: 0 auto; }
.narrow { max-width: 760px; margin: 0 auto; }
.section { padding: var(--sec-y) var(--page-x); position: relative; z-index: 2; }
.section.tint { background: var(--paper-2); }
.section.ink { background: var(--band); color: var(--paper); }
.section.ink .eyebrow { color: var(--gold-2); }
.section.ink .lead, .section.ink p { color: rgba(244,239,228,.78); }
.section + .section { border-top: 1px solid var(--line); }

.sec-head { max-width: 760px; margin: 0 0 clamp(34px, 4vw, 56px); display: flex; flex-direction: column; gap: 16px; }
.sec-head.center { margin-left: auto; margin-right: auto; align-items: center; text-align: center; }
.sec-head h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
.sec-head .lead { margin: 0; }

.prose { font-family: var(--body); font-weight: 300; font-size: 1.18rem; line-height: 1.78; color: var(--ink-2); max-width: 100%; }
.prose p { margin: 0 0 1.1em; }
.prose.dropcap > p:first-of-type::first-letter {
  font-family: var(--display); font-weight: 600; float: left;
  font-size: 4.6rem; line-height: .8; padding: 6px 14px 0 0; color: var(--accent);
}

/* ---------- page hero (cabecera de sección interna) ---------- */
.pg-hero { padding: clamp(54px, 8vw, 104px) var(--page-x) clamp(40px, 5vw, 64px); position: relative; z-index: 2; }
.pg-hero.tint { background: var(--paper-2); }
.pg-hero .crumb { font-family: var(--ui); text-transform: uppercase; letter-spacing: .18em; font-size: .66rem; color: var(--ink-soft); margin-bottom: 22px; display: inline-flex; gap: 8px; align-items: center; }
.pg-hero .crumb a { color: var(--ink-soft); }
.pg-hero .crumb a:hover { color: var(--accent); }
.pg-hero h1 { font-size: clamp(2.7rem, 6vw, 4.6rem); font-weight: 600; max-width: 16ch; }
.pg-hero h1 em { font-style: italic; color: var(--accent); }
.pg-hero .lead { margin-top: 22px; max-width: 60ch; }
.pg-hero .secno { font-family: var(--display); font-style: italic; font-size: 1.3rem; color: var(--gold); }

/* ---------- meta list (formato / páginas) ---------- */
.meta-list { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line); }
.meta-list div { padding: 18px 26px; border-right: 1px solid var(--line); }
.meta-list div:last-child { border-right: none; }
.meta-list dt { font-family: var(--ui); text-transform: uppercase; letter-spacing: .16em; font-size: .62rem; color: var(--ink-soft); margin-bottom: 6px; }
.meta-list dd { margin: 0; font-family: var(--display); font-size: 1.5rem; }

/* ---------- fragmento de lectura ---------- */
.excerpt {
  background: var(--paper-card); border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  padding: clamp(30px, 5vw, 56px); max-width: 760px; margin: 0 auto;
}
.excerpt .ex-body { font-family: var(--display); font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.5; color: var(--ink); }
.excerpt .ex-body p { margin: 0 0 1em; }
.excerpt .ex-meta { font-family: var(--ui); text-transform: uppercase; letter-spacing: .2em; font-size: .64rem; color: var(--ink-soft); margin-top: 24px; }

/* ---------- FAQ / preguntas ---------- */
.faq { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); padding: 26px 0; }
.faq-item .q { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; }
.faq-item .q h3 { font-size: 1.5rem; font-weight: 600; }
.faq-item .q .mk { font-family: var(--display); color: var(--gold); font-size: 1.8rem; line-height: 1; flex: none; }
.faq-item .a { font-family: var(--body); font-weight: 300; color: var(--ink-2); margin-top: 12px; max-width: 62ch; }

/* ---------- dónde comprar ---------- */
.buy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.buy-card { background: var(--paper-card); padding: 32px 28px; display: flex; flex-direction: column; gap: 12px; }
.buy-card .store { font-family: var(--ui); text-transform: uppercase; letter-spacing: .16em; font-size: .68rem; color: var(--ink-soft); }
.buy-card h3 { font-size: 1.7rem; }
.buy-card .price { font-family: var(--display); font-size: 1.4rem; color: var(--accent); }
.buy-card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- historias ---------- */
.story-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.story-card { background: var(--paper-card); padding: clamp(28px, 3vw, 44px); display: flex; flex-direction: column; gap: 16px; transition: background .4s var(--ease); }
.story-card:hover { background: var(--paper); }
.story-card .st-top { display: flex; align-items: baseline; gap: 16px; }
.story-card .st-n { font-family: var(--display); font-style: italic; font-size: 2.2rem; color: var(--gold); line-height: 1; }
.story-card h3 { font-size: 2rem; }
.story-card p { font-family: var(--body); font-weight: 300; color: var(--ink-2); margin: 0; max-width: 46ch; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip { font-family: var(--ui); font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; border: 1.4px solid var(--line); color: var(--ink-soft); padding: 6px 13px; border-radius: 40px; }
.chip.accent { border-color: var(--accent); color: var(--accent); }
.story-card .go { margin-top: auto; font-family: var(--ui); text-transform: uppercase; letter-spacing: .14em; font-size: .68rem; font-weight: 600; color: var(--accent); display: inline-flex; gap: 8px; align-items: center; }

/* historia destacada (detalle) */
.story-feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 72px); align-items: center; }
.story-feature .imgs { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 10px; }
.story-feature .imgs .img-slot { width: 100%; height: 100%; }
.story-feature .imgs .tall { grid-row: span 2; aspect-ratio: 3/5; }
.story-feature .imgs .sq { aspect-ratio: 1; }
.reflect { border: 1px solid var(--line); padding: 26px 30px; margin-top: 26px; }
.reflect h4 { font-family: var(--ui); text-transform: uppercase; letter-spacing: .16em; font-size: .68rem; color: var(--ink-soft); margin: 0 0 14px; }
.reflect ul { margin: 0; padding-left: 20px; font-family: var(--display); font-style: italic; font-size: 1.3rem; line-height: 1.7; color: var(--ink); }
.reflect ul li::marker { color: var(--gold); }

/* ---------- archivo: grids de imágenes ---------- */
.img-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.img-grid .img-slot { width: 100%; aspect-ratio: 4/3; }
.img-grid .img-slot.tall { aspect-ratio: 3/4; }
.subsec { display: grid; grid-template-columns: 300px 1fr; gap: clamp(24px, 4vw, 56px); padding: clamp(36px, 5vw, 60px) 0; border-bottom: 1px solid var(--line); }
.subsec:last-child { border-bottom: none; }
.subsec .ssn { font-family: var(--display); font-style: italic; color: var(--gold); font-size: 1.3rem; }
.subsec h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 8px 0 14px; }
.subsec .ss-imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.subsec .ss-imgs .img-slot { width: 100%; aspect-ratio: 1; }

/* portadas alternativas */
.cover-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.cover-row figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.cover-row .img-slot { width: 100%; aspect-ratio: 2/3; box-shadow: 0 14px 30px rgba(0,0,0,.18); }
.cover-row figcaption { font-family: var(--ui); text-transform: uppercase; letter-spacing: .12em; font-size: .62rem; color: var(--ink-soft); text-align: center; }
.cover-row figure.final .img-slot { outline: 2px solid var(--accent); outline-offset: 4px; }

/* cronología */
.timeline { max-width: 820px; }
.timeline-row { display: grid; grid-template-columns: 120px 1fr; gap: 26px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.timeline-row .ty { font-family: var(--display); font-size: 2rem; color: var(--accent); line-height: 1; }
.timeline-row .td h4 { font-size: 1.4rem; margin: 0 0 6px; }
.timeline-row .td p { font-family: var(--body); font-weight: 300; color: var(--ink-2); margin: 0; }

/* escenas eliminadas / comentario del autor */
.author-note { border-left: 4px solid var(--gold); padding: 4px 0 4px 24px; margin-top: 22px; }
.author-note .lbl { font-family: var(--ui); text-transform: uppercase; letter-spacing: .16em; font-size: .64rem; color: var(--gold); }
.author-note p { font-family: var(--display); font-style: italic; font-size: 1.4rem; color: var(--ink); margin: 8px 0 0; line-height: 1.5; }

/* ---------- preguntas grandes ---------- */
.q-list { max-width: 920px; margin: 0 auto; border-top: 1px solid var(--line); }
.q-item { display: grid; grid-template-columns: 80px 1fr auto; gap: 24px; align-items: center; padding: 30px 0; border-bottom: 1px solid var(--line); transition: padding-left .35s var(--ease); }
.q-item:hover { padding-left: 14px; }
.q-item .qn { font-family: var(--display); font-style: italic; font-size: 2.4rem; color: var(--gold); }
.q-item h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 600; }
.q-item .go { font-family: var(--ui); text-transform: uppercase; letter-spacing: .14em; font-size: .66rem; color: var(--accent); white-space: nowrap; }

/* ---------- encuestas (lectores) ---------- */
.poll-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.poll { background: var(--paper-card); border: 1px solid var(--line); padding: 30px; }
.poll h3 { font-size: 1.6rem; margin: 0 0 6px; }
.poll .psub { font-family: var(--body); font-weight: 300; font-size: .95rem; color: var(--ink-soft); margin: 0 0 20px; }
.poll-opt { margin-bottom: 16px; }
.poll-opt .lab { display: flex; justify-content: space-between; font-family: var(--ui); font-size: .78rem; letter-spacing: .04em; margin-bottom: 6px; }
.poll-opt .lab .pct { color: var(--accent); font-weight: 600; }
.poll-bar { height: 10px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 30px; overflow: hidden; }
.poll-bar i { display: block; height: 100%; background: var(--accent); opacity: .85; border-radius: 30px; }

/* ---------- formularios ---------- */
.form-card { background: var(--paper-card); border: 1px solid var(--line); padding: clamp(30px, 5vw, 52px); max-width: 640px; }
.section.ink .form-card { background: rgba(244,239,228,.04); border-color: rgba(244,239,228,.18); }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label { font-family: var(--ui); text-transform: uppercase; letter-spacing: .14em; font-size: .66rem; color: var(--ink-soft); }
.inp { border: none; border-bottom: 1.5px solid var(--ink-soft); background: transparent; color: var(--ink); padding: 10px 2px; font-family: var(--body); font-size: 1.05rem; transition: border-color .3s var(--ease); }
.inp:focus { outline: none; border-color: var(--accent); }
.section.ink .inp { color: var(--paper); border-color: rgba(244,239,228,.35); }
.inp.area { min-height: 110px; resize: vertical; }

/* ---------- bibliografía / book cards ---------- */
.book-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.book-card { display: grid; grid-template-columns: 130px 1fr; gap: 24px; align-items: center; background: var(--paper-card); border: 1px solid var(--line); padding: 26px; }
.book-card .img-slot { width: 130px; aspect-ratio: 2/3; box-shadow: 0 12px 26px rgba(0,0,0,.2); }
.book-card .by { font-family: var(--ui); text-transform: uppercase; letter-spacing: .14em; font-size: .64rem; color: var(--ink-soft); }
.book-card h3 { font-size: 1.7rem; margin: 6px 0 8px; }
.book-card p { font-family: var(--body); font-weight: 300; font-size: .95rem; color: var(--ink-2); margin: 0; }

/* ---------- listas / influencias / invitaciones ---------- */
.def-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.def-cols h4 { font-family: var(--ui); text-transform: uppercase; letter-spacing: .16em; font-size: .68rem; color: var(--gold); margin: 0 0 16px; }
.def-cols ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-family: var(--body); font-weight: 300; color: var(--ink-2); }
.def-cols li { border-bottom: 1px dashed var(--line); padding-bottom: 10px; }

.invite-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.invite { display: flex; gap: 18px; align-items: flex-start; background: var(--paper-card); border: 1px solid var(--line); padding: 24px; }
.invite .ic { font-family: var(--display); font-style: italic; font-size: 1.8rem; color: var(--gold); line-height: 1; flex: none; }
.invite h4 { font-size: 1.4rem; margin: 0 0 4px; }
.invite p { font-family: var(--body); font-weight: 300; font-size: .92rem; color: var(--ink-soft); margin: 0; }

/* ---------- download / producto ---------- */
.product-band { display: grid; grid-template-columns: 300px 1fr; gap: clamp(34px, 6vw, 80px); align-items: center; }
.product-band .mock { position: relative; aspect-ratio: 3/4; }
.product-band .mock .img-slot { width: 100%; height: 100%; box-shadow: 0 26px 60px rgba(0,0,0,.4); }
.includes { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.includes li { font-family: var(--body); font-weight: 300; padding-left: 26px; position: relative; }
.includes li::before { content: "◆"; position: absolute; left: 0; color: var(--gold); font-size: .7rem; top: 5px; }

/* ---------- galería ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery .img-slot { width: 100%; aspect-ratio: 1; }
.gallery .img-slot.wide { grid-column: span 2; aspect-ratio: 2/1; }

/* download card (club) */
.dl-card { display: grid; grid-template-columns: 80px 1fr auto; gap: 24px; align-items: center; background: var(--paper-card); border: 1px solid var(--line); padding: 28px 32px; }
.dl-card .fmt { font-family: var(--display); font-style: italic; font-size: 1.6rem; color: var(--gold); }
.dl-card h3 { font-size: 1.5rem; margin: 0 0 4px; }
.dl-card p { font-family: var(--body); font-weight: 300; font-size: .92rem; color: var(--ink-soft); margin: 0; }

/* ---------- FAQ interactivo (activado por shell.js) ---------- */
body.js-ix .faq-item .q { cursor: pointer; user-select: none; }
body.js-ix .faq-item .a {
  max-height: 0; opacity: 0; overflow: hidden; margin-top: 0;
  transition: max-height .55s var(--ease), opacity .4s var(--ease), margin-top .4s var(--ease);
}
body.js-ix .faq-item.open .a { max-height: 300px; opacity: 1; margin-top: 12px; }
.faq-item .mk { transition: transform .35s var(--ease), color .35s var(--ease); }
body.js-ix .faq-item.open .mk { transform: rotate(45deg); color: var(--accent); }

/* ---------- encuestas votables ---------- */
body.js-ix .poll-opt {
  cursor: pointer; padding: 6px 10px; margin: 0 -10px 10px;
  transition: background .3s var(--ease);
}
body.js-ix .poll-opt:hover { background: var(--paper-2); }
body.js-ix .poll.voted .poll-opt { pointer-events: none; }
.poll-bar i { transition: width 1.1s var(--ease); }
.poll-opt.chosen .lab { color: var(--accent); font-weight: 600; }
.poll-opt.chosen .poll-bar { border-color: var(--accent); }
.poll-thanks {
  font-family: var(--ui); font-size: .66rem; text-transform: uppercase;
  letter-spacing: .16em; color: var(--accent); margin: 8px 0 0;
}

/* ---------- confirmación de formulario ---------- */
.form-ok { text-align: center; padding: 26px 0; }
.form-ok .fo-mark {
  display: inline-flex; width: 54px; height: 54px; align-items: center; justify-content: center;
  border: 1.5px solid var(--accent); border-radius: 50%; color: var(--accent);
  font-size: 1.3rem; margin-bottom: 14px;
}
.form-ok h3 { font-size: 1.9rem; margin: 0 0 6px; }
.form-ok p { font-family: var(--body); font-weight: 300; color: var(--ink-soft); margin: 0; }
.section.ink .form-ok h3 { color: var(--paper); }
.section.ink .form-ok p { color: rgba(244,239,228,.7); }

/* ---------- archivo: expediente (polaroids) ---------- */
.subsec .ss-imgs .img-slot,
.img-grid .img-slot {
  border: 9px solid #fff;
  border-bottom-width: 32px;
  background: #fff;
  box-shadow: 0 16px 32px rgba(32,34,46,.16), 0 2px 6px rgba(32,34,46,.12);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.subsec .ss-imgs .img-slot:nth-child(odd),
.img-grid .img-slot:nth-child(odd) { transform: rotate(-1.5deg); }
.subsec .ss-imgs .img-slot:nth-child(even),
.img-grid .img-slot:nth-child(even) { transform: rotate(1.3deg); }
.subsec .ss-imgs .img-slot:hover,
.img-grid .img-slot:hover {
  transform: rotate(0deg) scale(1.025);
  box-shadow: 0 26px 50px rgba(32,34,46,.24), 0 4px 10px rgba(32,34,46,.14);
  z-index: 2; position: relative;
}
body.dark .subsec .ss-imgs .img-slot,
body.dark .img-grid .img-slot { border-color: #ece5d4; background: #ece5d4; }

/* ---------- cronología con línea ---------- */
.timeline { position: relative; padding-left: 36px; }
.timeline::before {
  content: ""; position: absolute; left: 6px; top: 10px; bottom: 10px;
  width: 2px; background: var(--line);
}
.timeline-row { position: relative; }
.timeline-row::before {
  content: ""; position: absolute; left: -36px; top: 32px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--paper); border: 1.5px solid var(--accent);
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .buy-grid, .story-grid, .poll-grid, .book-grid, .invite-grid { grid-template-columns: 1fr; }
  .def-cols { grid-template-columns: 1fr; gap: 26px; }
  .story-feature, .product-band, .subsec { grid-template-columns: 1fr; }
  .cover-row { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .q-item { grid-template-columns: 50px 1fr; }
  .q-item .go { display: none; }
}
