:root {
  --ink: #241a1c;
  --paper: #f5f0ea;
  --light: #fcf9f5;
  --burgundy: #6a2234;
  --muted: #70564c;
  --line: #c9b9ae;
  --selected: #eee3dc;
  --shadow: 0 20px 64px #30171d2e;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: Inter, Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { height: 100%; }
body {
  margin: 0;
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
}
button, input, select { font: inherit; }
button { cursor: pointer; }
button, a, select, input, summary { touch-action: manipulation; }
button, a { -webkit-tap-highlight-color: transparent; }
button { transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease; }
button:disabled { cursor: default; opacity: .4; }
a { color: var(--burgundy); text-underline-offset: 4px; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 4px; }
::selection { background: var(--burgundy); color: var(--light); }
input { caret-color: var(--burgundy); }
* { scrollbar-width: thin; scrollbar-color: var(--line) var(--light); }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.05; text-wrap: balance; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.7rem; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 20; background: var(--light); padding: 10px; transform: translateY(-160%); }
.skip:focus { transform: none; }
.reader-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; padding: max(12px, env(safe-area-inset-top)) max(32px, env(safe-area-inset-right)) 12px max(32px, env(safe-area-inset-left)); min-height: 72px; border-bottom: 1px solid var(--line); background: var(--light); }
.brand { width: 198px; min-height: 44px; display: flex; align-items: center; flex-shrink: 0; }
.brand img { width: 100%; height: auto; }
.catalog-label { display: grid; gap: 1px; text-align: center; font-family: var(--serif); font-size: 20px; color: var(--burgundy); }
.edition { font-size: 12px; color: var(--muted); }
.header-actions { justify-self: end; margin-left: auto; display: flex; align-items: center; gap: 16px; }
.quiet-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 8px 12px; background: transparent; border: 0; color: var(--burgundy); }
.quiet-button:hover { text-decoration: underline; text-underline-offset: 5px; }
.cart-button { font-size: 14px; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--burgundy); border-radius: 4px; color: var(--light); background: var(--burgundy); }
.cart-button b { min-width: 22px; text-align: center; font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; border-left: 1px solid #ffffff55; padding-left: 10px; }
.cart-button:hover { background: #531929; }
.secondary:hover, .icon-button:hover, .tool-button:hover { background: var(--selected); }
main { position: relative; min-height: 0; min-width: 0; }
.reader, .book-stage { width: 100%; height: 100%; min-height: 0; position: relative; }
.book-stage { overflow: hidden; isolation: isolate; touch-action: none; overscroll-behavior: none;
  /* Ciclorama de estudio de belleza: caja de luz arriba, fondo infinito crema que cae a rosa empolvado. */
  background:
    radial-gradient(ellipse 72% 40% at 50% 8%, #fffdfb 0%, #fffdfbc7 45%, transparent 80%),
    radial-gradient(ellipse 70% 64% at 50% 52%, #fbf7f3 0%, #f4ece7 52%, #e9ddd8 84%, #ddcdc8 100%);
  background-color: #f2e9e4; }
.book-stage:focus-visible { outline: 2px solid var(--burgundy); outline-offset: -4px; }
.book-stage canvas { display: block; touch-action: none; }
.book-stage[aria-busy="true"] { cursor: progress; }
.page-actions { position: absolute; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }
.page-action { position: absolute; pointer-events: none; color: transparent; background: transparent; border: 2px solid transparent; border-radius: 2px; padding: 0; min-height: 44px; overflow: hidden; }
.page-action:focus-visible { outline: 3px solid #222; outline-offset: 3px; border-color: var(--light); }
.page-action:hover { border-color: #cbb79c; }
.book-stage[data-ready="false"] canvas { visibility: hidden; }
.book-stage[data-ready="false"] { pointer-events: none; }
.book-stage[data-preparing="true"] { pointer-events: none; cursor: progress; }
.book-loading { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; color: var(--muted); }
.reader-feedback { position: absolute; z-index: 3; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; align-items: center; gap: 16px; width: max-content; max-width: min(680px, calc(100% - 24px)); padding: 4px 8px 4px 20px; font-size: 14px; color: var(--light); background: var(--burgundy); border-radius: 4px; box-shadow: var(--shadow); }
.reader-feedback:has(#feedback:empty):has(#load-retry[hidden]) { display: none; }
#feedback:not(:empty) { padding: 10px 0; }
.reader-feedback .text-button, .reader-feedback .icon-button { color: var(--light); flex-shrink: 0; }
.reader-feedback .icon-button:hover { background: #ffffff18; }
.reader-footer { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 20px; padding: 12px max(32px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(32px, env(safe-area-inset-left)); background: var(--light); }
.reading-progress { position: absolute; inset: 0 0 auto; width: 100%; height: 2px; border: 0; appearance: none; background: var(--line); color: var(--burgundy); }
.reading-progress::-webkit-progress-bar { background: var(--line); }
.reading-progress::-webkit-progress-value { background: var(--burgundy); }
.reading-progress::-moz-progress-bar { background: var(--burgundy); }
.reader-location { min-width: 0; }
.page-title { font-size: 13px; color: var(--burgundy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reader-help { font-size: 12px; color: var(--muted); }
.page-navigation { display: flex; align-items: center; justify-content: center; gap: 14px; grid-column: 2; }
#page-status { font-size: 13px; min-width: 110px; text-align: center; color: var(--burgundy); font-variant-numeric: tabular-nums; }
.reader-tools { display: flex; justify-content: flex-end; gap: 6px; grid-column: 3; }
.tool-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 12px; min-height: 44px; border: 0; border-radius: 4px; background: transparent; color: var(--burgundy); font-size: 13px; }
.icon-button { display: inline-grid; place-items: center; background: transparent; color: var(--burgundy); border: 0; border-radius: 4px; width: 44px; height: 44px; flex-shrink: 0; }
.page-meta { font-size: 12px; color: var(--muted); }
.page-photo { margin: 18px 0 24px; width: 100%; height: min(31vh, 300px); object-fit: contain; background: white; }
.page-presentation { font-size: 14px; color: var(--muted); margin: 12px 0; }
.page-description { color: var(--muted); margin: 18px 0; }
.page-price { color: var(--burgundy); font-size: 22px; margin: 18px 0; }
.product-page > .primary { width: 100%; }
.page-footnote { font-size: 11px; color: var(--muted); margin-top: 24px; }
.index-page > p { color: var(--muted); margin: 24px 0; }
.index-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) 22px; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding: 12px 0; }
.index-row > span { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.index-link { font-family: var(--serif); font-size: 1.6rem; text-align: left; color: var(--burgundy); background: none; border: 0; padding: 8px 0; min-height: 44px; line-height: 1.1; }
.index-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.primary, .secondary { display: inline-flex; justify-content: center; align-items: center; gap: 12px; text-align: center; min-height: 50px; padding: 12px 20px; border-radius: 4px; text-decoration: none; line-height: 1.4; font-size: 15px; font-weight: 500; }
.primary svg { width: 20px; height: 20px; flex-shrink: 0; }
.primary { color: var(--light); background: var(--burgundy); border: 1px solid var(--burgundy); }
.primary:hover { background: #531929; }
.secondary { color: var(--burgundy); background: transparent; border: 1px solid var(--burgundy); }
.text-button { border: 0; background: none; color: var(--burgundy); padding: 10px 0; text-decoration: underline; text-underline-offset: 4px; font-size: 13px; min-height: 44px; }
select, input { background: var(--light); border: 1px solid var(--line); border-radius: 4px; color: var(--ink); padding: 11px 12px; width: 100%; max-width: 100%; min-height: 46px; }
.empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; padding: 24px; text-align: center; }
.empty p { max-width: 45ch; color: var(--muted); }
dialog { border: 0; background: var(--light); color: var(--ink); padding: 0; box-shadow: var(--shadow); border-radius: 6px; max-height: calc(100dvh - 40px); overscroll-behavior: contain; }
dialog::backdrop { background: #24171c80; }
dialog[open] { animation: dialog-enter 240ms var(--ease) both; }
@keyframes dialog-enter { from { opacity: .5; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.dialog-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 24px; }
.dialog-subtitle { font-size: 13px; color: var(--muted); margin-top: 10px; }
.contents-dialog { width: min(760px, calc(100vw - 32px)); padding: 32px; }
.contents-dialog[open] { display: flex; flex-direction: column; overflow: hidden; }
.contents-dialog > .dialog-heading, .contents-tools, .contents-bottom { flex-shrink: 0; }
.contents-list { min-height: 0; overflow-y: auto; }
.contents-tools { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; margin-bottom: 20px; }
.contents-search { display: grid; gap: 8px; color: var(--muted); font-size: 14px; min-width: 0; }
.contents-search select { min-width: 0; font-size: 16px; }
.contents-bottom { display: flex; align-items: center; flex-wrap: wrap; gap: 0 24px; border-top: 1px solid var(--line); padding-top: 12px; }
.contents-empty { padding: 40px 0; }
.contents-empty h3 { margin-bottom: 16px; }
.contents-empty p { max-width: 44ch; color: var(--muted); font-size: 16px; line-height: 1.6; }
.contents-search input { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 3px; padding: 10px 12px; background: var(--light); color: var(--ink); font-size: 16px; }
.bundle-components { margin-bottom: 20px; color: var(--burgundy); }
.bundle-components ul { margin: 12px 0; padding-left: 20px; color: var(--muted); font-size: 14px; }
#cover-link { align-self: flex-start; }
.contents-dialog h2 { font-size: 2.5rem; }
.contents-row { width: 100%; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 16px 0; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; }
.contents-row:hover { background: var(--selected); }
.contents-row[aria-current] strong { text-decoration: underline; text-underline-offset: 5px; }
.contents-row img { width: 64px; height: 72px; object-fit: contain; background: white; }
.contents-row strong { display: block; font: 600 1.4rem/1.1 var(--serif); color: var(--burgundy); }
.contents-row > span > span { display: block; font-size: 12px; color: var(--muted); margin-top: 8px; }
.contents-page { display: grid; justify-items: end; gap: 8px; font-size: 11px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.contents-page svg { color: var(--burgundy); width: 18px; }
#cover-link { margin-top: 0; }
.options-dialog { width: min(540px, calc(100vw - 24px)); padding: 0; overflow: hidden; }
.options-dialog[open] { display: flex; flex-direction: column; }
.options-dialog > .dialog-heading { padding: 24px 28px 20px; margin: 0; flex-shrink: 0; border-bottom: 1px solid var(--line); }
.options-dialog h2 { font-size: 2rem; }
.options-body { padding: 24px 28px; overflow-y: auto; min-height: 0; }
.options-intro { font-size: 15px; color: var(--muted); line-height: 1.6; }
.view-switch { display: grid; gap: 10px; margin: 24px 0; }
.view-switch button { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; padding: 14px 16px; border-radius: 4px; border: 1px solid var(--line); background: transparent; color: var(--burgundy); text-align: left; }
.view-switch strong { display: block; font-size: 16px; font-weight: 600; }
.view-switch small { display: block; margin-top: 5px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.view-switch svg { visibility: hidden; flex-shrink: 0; }
.view-switch button:hover { border-color: var(--burgundy); }
.view-switch button[aria-pressed="true"] { background: var(--burgundy); border-color: var(--burgundy); color: var(--light); }
.view-switch button[aria-pressed="true"] small { color: var(--light); }
.view-switch button[aria-pressed="true"] svg { visibility: visible; }
.reader-guide { border-top: 1px solid var(--line); color: var(--burgundy); }
.reader-guide summary { min-height: 48px; padding: 14px 0; font-size: 14px; cursor: pointer; }
.reader-guide p { font-size: 14px; line-height: 1.65; color: var(--muted); margin-bottom: 16px; }
.options-site { display: inline-flex; align-items: center; min-height: 44px; gap: 8px; margin-top: 12px; font-size: 13px; text-underline-offset: 4px; }
.options-site svg { width: 16px; height: 16px; }
.reader-sound { border: 0; border-top: 1px solid var(--line); margin: 0 0 24px; padding: 16px 0 0; min-width: 0; }
.reader-sound legend { padding: 0 12px 0 0; font-size: 14px; color: var(--burgundy); }
.reader-setting { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 48px; font-size: 14px; cursor: pointer; }
.reader-setting input { width: 22px; height: 22px; min-height: 0; accent-color: var(--burgundy); cursor: pointer; }
.reader-volume { display: grid; gap: 4px; margin-top: 12px; font-size: 13px; }
.reader-volume > span { display: flex; justify-content: space-between; gap: 24px; }
.reader-volume output { color: var(--muted); font-variant-numeric: tabular-nums; }
.reader-volume input { width: 100%; min-height: 44px; padding: 0; accent-color: var(--burgundy); }
.reader-sound:disabled { opacity: .55; }
.reader-advanced { margin-bottom: 8px; }
.reader-effects { border: 0; margin: 0 0 12px; padding: 0; min-width: 0; color: var(--ink); }
.reader-effects .reader-setting { padding: 6px 0; }
.reader-effects:disabled .reader-setting { opacity: .55; cursor: default; }
.reader-setting > span { display: grid; gap: 2px; }
.reader-setting small { font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.effects-note { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.options-dialog .price-date { font-size: 12px; line-height: 1.6; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 12px; color: var(--muted); }
.product-dialog { width: min(960px, calc(100vw - 48px)); overflow: hidden; }
.product-dialog[open] { display: flex; flex-direction: column; }
#product-detail { display: flex; flex-direction: column; min-height: 0; max-height: calc(100dvh - 40px); }
.close { position: absolute; right: 12px; top: 12px; z-index: 2; background: var(--light); }
.detail-layout { display: grid; grid-template-columns: .95fr 1.05fr; min-height: 0; overflow-y: auto; }
.detail-photo { background: white; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; padding: 40px 24px 24px; }
.detail-photo img { width: 100%; height: min(43vh, 360px); object-fit: contain; }
.photo-preview { position: relative; width: 100%; border: 0; padding: 0 0 32px; color: var(--burgundy); background: white; }
.photo-preview > span { display: inline-flex; align-items: center; gap: 6px; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); min-height: 32px; font-size: 12px; white-space: nowrap; }
.photo-preview > span svg { width: 16px; height: 16px; }
.photo-preview:hover > span { text-decoration: underline; text-underline-offset: 4px; }
#detail-caption { font-size: 12px; color: var(--muted); text-align: center; }
.image-dialog { width: min(1000px, calc(100vw - 40px)); height: min(840px, calc(100dvh - 40px)); overflow: hidden; }
.image-dialog[open] { display: flex; flex-direction: column; }
.image-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 24px; flex-shrink: 0; }
.image-heading h2 { font-size: 1.8rem; text-align: left; }
.image-stage { flex: 1; min-height: 0; background: white; }
.image-stage img { width: 100%; height: 100%; object-fit: contain; }
#image-caption { flex-shrink: 0; padding: 16px 24px; color: var(--muted); font-size: 13px; text-align: center; }
.detail-copy { padding: 48px 36px 16px; min-width: 0; }
.detail-copy h2 { font-size: clamp(2.1rem, 3vw, 2.8rem); margin-bottom: 12px; text-wrap: pretty; }
.detail-copy h2:focus { outline: none; }
.product-meta { color: var(--muted); font-size: 12px; }
.product-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin-top: 24px; }
.detail-copy .price { font-size: 24px; color: var(--burgundy); font-variant-numeric: tabular-nums; }
.detail-copy .presentation { font-size: 13px; color: var(--muted); }
.detail-copy .description { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 16px 0 24px; }
.variant-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.variant-fieldset legend { font-size: 14px; font-weight: 500; margin-bottom: 12px; }
.variant-options { display: grid; gap: 8px; }
.variant-option { position: relative; display: flex; align-items: center; gap: 12px; min-height: 64px; border: 1px solid var(--line); border-radius: 4px; padding: 6px 12px 6px 6px; font-size: 13px; line-height: 1.4; cursor: pointer; }
.variant-option:hover { border-color: var(--burgundy); }
.variant-option:has(:checked) { background: var(--selected); border-color: var(--burgundy); }
.variant-option:has(:focus-visible) { outline: 2px solid var(--burgundy); outline-offset: 3px; }
.variant-option input { position: absolute; width: 1px; height: 1px; min-height: 0; opacity: 0; padding: 0; }
.variant-option img { width: 48px; height: 48px; object-fit: contain; background: white; flex-shrink: 0; }
.variant-option > span { flex: 1; }
.variant-check { width: 18px; height: 18px; visibility: hidden; flex-shrink: 0; color: var(--burgundy); }
.variant-option:has(:checked) .variant-check { visibility: visible; }
.in-cart-note { margin-top: 12px; font-size: 12px; color: var(--burgundy); }
.purchase-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.purchase-row > label { font-size: 14px; margin-right: auto; }
#detail-total { min-width: 90px; text-align: right; color: var(--burgundy); font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; }
.quantity-control { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 4px; overflow: clip; flex-shrink: 0; background: var(--light); }
.quantity-control button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; color: var(--burgundy); }
.quantity-control button:hover:not(:disabled) { background: var(--selected); }
.quantity-control svg { width: 18px; height: 18px; }
.quantity-control input { width: 36px; min-height: 44px; height: 44px; border: 0; border-radius: 0; padding: 6px 0; text-align: center; appearance: textfield; font-size: 16px; font-variant-numeric: tabular-nums; }
.quantity-control input::-webkit-inner-spin-button, .quantity-control input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.quantity-control :focus-visible { outline-offset: -3px; }
.detail-purchase { flex-shrink: 0; display: grid; grid-template-columns: .95fr 1.05fr; column-gap: 48px; padding: 16px 36px 20px; background: var(--light); border-top: 1px solid var(--line); }
.detail-purchase .primary { width: 100%; justify-content: space-between; grid-column: 2; grid-row: 1; }
.detail-purchase .availability { grid-column: 1; grid-row: 1; margin: 0; align-self: center; max-width: 28ch; }
.detail-purchase .cart-error:not(:empty) { grid-column: 1 / -1; grid-row: 1; margin-bottom: 16px; }
.detail-purchase:has(.cart-error:not(:empty)) .primary, .detail-purchase:has(.cart-error:not(:empty)) .availability { grid-row: 2; }
.availability { font-size: 12px; color: var(--muted); margin-top: 12px; }
.source-link { font-size: 12px; display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; min-height: 44px; }
.source-link svg { width: 15px; height: 15px; }
.cart-dialog { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(540px, 100vw); height: 100dvh; max-height: 100dvh; border-radius: 0; max-width: 100vw; overflow: hidden; }
.cart-dialog[open] { display: flex; flex-direction: column; animation-name: drawer-enter; }
@keyframes drawer-enter { from { opacity: .65; transform: translateX(32px); } to { opacity: 1; transform: translateX(0); } }
.cart-dialog > .dialog-heading { flex-shrink: 0; margin: 0; padding: max(28px, env(safe-area-inset-top)) 28px 24px; border-bottom: 1px solid var(--line); }
.cart-dialog h2 { font-size: 2.5rem; }
#cart-content { padding: 0 28px max(20px, env(safe-area-inset-bottom)); overflow-y: auto; min-height: 0; flex: 1; }
.cart-dialog:has(.cart-lines) #cart-content { display: flex; flex-direction: column; overflow: hidden; padding-bottom: 0; }
.cart-lines { min-height: 0; flex: 1 1 auto; overflow-y: auto; }
.cart-line { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 80px; height: 96px; object-fit: contain; background: white; }
.cart-line h3 { font-size: 1.55rem; text-wrap: pretty; }
.cart-line p { font-size: 12px; color: var(--muted); margin-top: 7px; line-height: 1.5; }
.cart-line p + p { margin-top: 3px; }
.cart-line-copy { min-width: 0; }
.cart-tone { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; margin-top: 6px; }
.cart-tone > span { flex-shrink: 0; }
.cart-tone select { flex: 1; width: 0; min-width: 0; min-height: 44px; padding: 8px; font-size: 13px; color: var(--burgundy); }
.line-bottom { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; margin-top: 14px; font-variant-numeric: tabular-nums; }
.line-bottom > strong { margin-left: auto; font-weight: 500; font-size: 14px; color: var(--burgundy); }
.remove { border: 0; background: none; text-decoration: underline; text-underline-offset: 3px; padding: 10px 4px; min-height: 44px; min-width: 44px; color: var(--muted); font-size: 12px; }
.remove:hover { color: var(--burgundy); }
.cart-total { display: flex; justify-content: space-between; gap: 16px; margin: 24px 0 12px; font-size: 17px; color: var(--burgundy); font-variant-numeric: tabular-nums; }
.cart-total strong { font-size: 22px; font-weight: 500; }
.cart-checkout { flex-shrink: 0; background: var(--light); padding: 4px 0 max(20px, env(safe-area-inset-bottom)); }
.cart-note { font-size: 13px; color: var(--muted); margin: 10px 0 22px; }
.cart-actions { display: grid; gap: 10px; }
.cart-actions > .primary { justify-content: space-between; }
.cart-actions > .text-button { justify-self: center; }
.cart-undo { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 16px; background: var(--selected); padding: 8px 12px; font-size: 12px; }
.cart-undo .text-button { flex-shrink: 0; }
.cart-error { color: var(--burgundy); font-size: 13px; margin: 14px 0; }
.cart-error:empty { margin: 0; }
.cart-status { color: var(--burgundy); font-size: 12px; padding-top: 12px; }
.cart-status:empty { display: none; }
.quote-summary { white-space: pre-wrap; overflow-wrap: anywhere; font: 400 13px/1.8 var(--sans); padding: 16px 0; margin: 0; }
.quote-intro { padding-top: 28px; }
.quote-mark { width: 40px; height: 40px; color: var(--burgundy); margin-bottom: 20px; }
.quote-title { font-size: 2rem; }
.quote-items { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quote-items > div { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding: 16px 0; font-size: 14px; }
.quote-items small { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; }
.quote-items strong { white-space: nowrap; font-size: 14px; font-weight: 500; color: var(--burgundy); }
.message-preview { margin: 24px 0; border-block: 1px solid var(--line); }
.message-preview summary { font-size: 13px; color: var(--burgundy); min-height: 48px; padding-block: 14px; cursor: pointer; }
.empty-cart { padding: 48px 12px 32px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.empty-cart h3 { font-size: 2rem; max-width: 14ch; }
.empty-cart p { color: var(--muted); margin: 20px 0 28px; font-size: 14px; max-width: 30ch; }
.empty-bag { width: 52px; height: 52px; color: var(--burgundy); margin-bottom: 32px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 700px) {
  .reader-header { display: flex; padding-right: max(12px, env(safe-area-inset-right)); padding-left: max(12px, env(safe-area-inset-left)); gap: 8px; min-height: 62px; }
  .brand { width: 150px; }
  .catalog-label { display: none; }
  .header-actions { gap: 4px; }
  .quiet-button { font-size: 13px; padding: 8px; }
  .cart-button { padding: 8px 10px; gap: 6px; }
  .cart-button > span { display: none; }
  .reader-footer { grid-template-columns: minmax(0, 1fr) auto; padding: 8px max(12px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); gap: 0; }
  .reader-location { grid-column: 1 / -1; grid-row: 2; text-align: center; padding: 4px 0 0; }
  .page-title { display: none; }
  .reader-help { font-size: 11px; }
  .page-navigation { justify-self: start; gap: 2px; grid-column: 1; }
  #page-status { min-width: 104px; font-size: 12px; }
  .reader-tools { gap: 0; grid-column: 2; }
  .tool-button { padding-inline: 8px; font-size: 12px; gap: 5px; }
  .product-dialog { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 8px 8px 0 0; max-height: calc(100dvh - 12px); }
  #product-detail { max-height: calc(100dvh - 12px); }
  .detail-layout { display: block; flex: 1 1 auto; }
  .detail-photo { padding: 16px 56px 12px; height: 210px; gap: 4px; }
  .detail-photo img { height: 130px; width: 100%; }
  #detail-caption { font-size: 11px; }
  .image-dialog { width: calc(100vw - 16px); max-width: none; height: calc(100dvh - 16px); max-height: none; margin: 8px; }
  .image-heading { padding: 12px 16px; gap: 12px; }
  .image-heading h2 { font-size: 1.6rem; }
  #image-caption { padding: 12px 16px; }
  .detail-copy { padding: 24px 24px 8px; }
  .detail-copy h2 { font-size: 2.1rem; }
  .product-price { margin-top: 18px; }
  .detail-copy .description { margin: 14px 0 20px; }
  .detail-purchase { display: flex; flex-direction: column; padding: 14px 24px max(16px, env(safe-area-inset-bottom)); }
  .detail-purchase .availability { margin-top: 8px; font-size: 11px; }
  .detail-purchase .availability { max-width: none; align-self: flex-start; }
  .purchase-row { gap: 8px; }
  .cart-dialog > .dialog-heading { padding-inline: 24px; }
  #cart-content { padding-inline: 24px; }
  .cart-dialog h2 { font-size: 2.4rem; }
  .cart-line { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; }
  .cart-line img { width: 64px; height: 84px; }
  .cart-tone select { font-size: 16px; }
  .line-bottom { gap: 4px 8px; }
  .line-bottom > strong { width: 100%; margin-left: 0; margin-top: 4px; }
  .contents-dialog { padding: 24px; }
  .contents-row { gap: 12px; grid-template-columns: 52px minmax(0, 1fr) auto; }
  .contents-row img { width: 52px; height: 64px; }
  .contents-row strong { font-size: 1.3rem; }
  .options-dialog { padding: 0; }
  .reader-feedback { flex-wrap: wrap; gap: 0 12px; padding: 8px 12px; bottom: 12px; font-size: 13px; }
  #feedback { flex: 1 1 calc(100% - 56px); }
  #feedback-cart { order: 2; }
  #feedback-dismiss { align-self: flex-start; }
}
@media (max-height: 540px) {
  dialog { max-height: calc(100dvh - 16px); }
  .contents-dialog { padding: 20px 24px; }
  .contents-dialog .dialog-heading { margin-bottom: 12px; }
  .contents-dialog h2 { font-size: 2rem; }
  .contents-row { padding-block: 10px; }
  .cart-dialog > .dialog-heading { padding: 12px 20px; }
  .cart-dialog h2 { font-size: 2rem; }
  .cart-dialog .dialog-subtitle { margin-top: 4px; font-size: 12px; }
  .cart-checkout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 16px; padding: 12px 0 max(12px, env(safe-area-inset-bottom)); }
  .cart-checkout .cart-total { margin: 0; flex-wrap: wrap; align-self: center; gap: 0 8px; font-size: 13px; }
  .cart-checkout .cart-total strong { font-size: 20px; }
  .cart-checkout .cart-note { grid-column: 1 / -1; margin: 0; font-size: 11px; line-height: 1.5; }
  .cart-checkout .cart-error, .cart-checkout .cart-status { grid-column: 1 / -1; margin: 0; padding: 0; }
  .cart-checkout .cart-error:empty { display: none; }
  .cart-checkout .cart-actions { grid-column: 2; grid-row: 2; }
  .cart-checkout .cart-total { grid-column: 1; grid-row: 2; }
  .cart-checkout .cart-actions > .primary { min-height: 44px; padding: 8px 12px; font-size: 13px; }
  .cart-checkout .cart-actions > [data-close] { display: none; }
  .detail-purchase { padding-top: 10px; padding-bottom: max(10px, env(safe-area-inset-bottom)); }
  .detail-purchase .availability { font-size: 11px; }
  .detail-copy { padding-top: 28px; }
  .reader-header { min-height: 52px; padding-top: 4px; padding-bottom: 4px; }
  .reader-footer { padding-top: 4px; padding-bottom: max(4px, env(safe-area-inset-bottom)); }
  .reader-location { display: none; }
}
@media (max-height: 540px) and (min-width: 600px) {
  .detail-layout { display: grid; grid-template-columns: .8fr 1.2fr; }
  .detail-photo { height: auto; padding: 20px; justify-content: flex-start; }
  .detail-photo img { height: 160px; }
  .detail-copy { padding: 28px 24px 8px; }
  .detail-copy h2 { font-size: 2rem; }
  .detail-purchase { display: grid; grid-template-columns: .8fr 1.2fr; gap: 0 24px; padding-inline: 24px; }
  .detail-purchase .availability { grid-column: 1; grid-row: 1; max-width: 26ch; align-self: center; margin: 0; }
  .detail-purchase .primary { grid-column: 2; grid-row: 1; }
}
@media (max-width: 359px) {
  .brand { width: 126px; }
  .quiet-button { gap: 4px; padding-inline: 4px; }
  .quiet-button svg { display: none; }
  .reader-tools .tool-button span { display: none; }
  .reader-tools .tool-button { min-width: 44px; }
  .cart-button { padding-inline: 8px; }
  .detail-copy, .detail-purchase { padding-inline: 20px; }
  .cart-dialog > .dialog-heading, #cart-content { padding-inline: 20px; }
  #detail-total { min-width: 70px; font-size: 14px; }
}
@media (max-height: 450px) and (min-width: 701px) {
  .reader-header { min-height: 50px; padding-top: 2px; padding-bottom: 2px; }
  .reader-footer { padding-top: 0; padding-bottom: 0; }
  .brand { width: 160px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Editorial compositions share the same publication in the WebGL and HTML readers. */
.price-reference { flex-basis: 100%; color: var(--muted); font-size: 11px; }
.product-price { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.detail-copy .price { font-family: var(--serif); font-size: 36px; font-weight: 600; line-height: 1; }
.variant-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.variant-option { min-width: 0; }
.variant-option > span { overflow-wrap: anywhere; }
#sound-toggle svg { width: 20px; }
@media (min-width: 701px) and (max-width: 900px) {
  .reader-header { display: flex; }
  .catalog-label { display: none; }
}
@media (max-width: 700px) {
  .variant-options { grid-template-columns: 1fr; }
  .detail-copy .price { font-size: 32px; }
}
@media (max-width: 380px) {
  .brand { width: 130px; }
  #sound-toggle { display: none; }
}

/* The approved editorial spread, rendered as accessible HTML as well as book artwork. */
.reader-header { min-height: 68px; padding-block: 8px; }
.page-title { font-family: var(--serif); font-size: 18px; }
.page-action[aria-pressed="true"]:focus-visible { border-color: var(--burgundy); }
.simple-stage { height: 100%; overflow: auto; padding: 24px; overscroll-behavior: contain; }
.simple-spread { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 1400px; margin: auto; }
.print-page { max-width: 700px; min-height: 860px; margin: auto; background: var(--light); padding: 36px 48px 24px; display: flex; flex-direction: column; }
.simple-spread > .print-page { width: 100%; height: 100%; margin: 0; }
.print-page h1 { color: var(--burgundy); font-size: clamp(3rem, 5vw, 4.8rem); line-height: .98; font-weight: 500; text-wrap: pretty; }
.print-running { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 18px; margin-bottom: 40px; border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .16em; }
/* Product leaves are product photography and typesetting; editorial photos only open sections. */
.print-product > h1 { font-size: clamp(2.6rem, 4.5vw, 4.2rem); min-height: 110px; margin-bottom: 26px; }
.print-running { margin-bottom: 32px; }
.print-hero { min-width: 0; height: 310px; margin: 0 20px 30px; mix-blend-mode: multiply; }
.official-photo { display: block; width: 100%; height: 100%; stroke: none; }
.print-hero-palette { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; }
.print-palette { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: center; gap: 12px; }
.print-palette figure { margin: 0; font-size: 11px; color: var(--muted); text-align: center; }
.print-palette .official-photo { height: 80px; }
.print-intro { color: var(--muted); font-size: 16px; line-height: 1.65; margin-bottom: 20px; }
.print-specification { display: flex; align-items: start; justify-content: space-between; gap: 24px; }
.page-presentation, .chosen-tone { font-size: 13px; line-height: 1.5; color: var(--muted); }
.page-presentation { max-width: 34ch; }
.chosen-tone { color: var(--burgundy); text-align: right; }
.print-tone-options { display: flex; align-items: flex-start; gap: 16px; margin: 24px 0; }
.print-tone { width: 80px; min-height: 80px; flex-shrink: 0; display: flex; align-items: center; flex-direction: column; gap: 10px; background: none; color: var(--muted); padding: 6px; border: 0; font-size: 12px; line-height: 1.3; }
.print-tone .official-photo { width: 44px; height: 44px; border-radius: 50%; outline: 1px solid var(--line); outline-offset: 5px; }
.print-tone[aria-pressed="true"] .official-photo { outline: 2px solid var(--burgundy); }
.print-tone:hover .official-photo { outline-color: var(--burgundy); }
.print-more-tones { align-self: center; margin-left: auto; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--burgundy); min-height: 48px; padding: 8px 0; font: 600 22px/1.2 var(--serif); text-align: right; }
.print-purchase { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; margin-top: auto; padding-top: 24px; border-top: 1px solid var(--line); }
.print-price { color: var(--burgundy); }
.print-price p { font: 600 2.5rem/1.1 var(--serif); font-variant-numeric: tabular-nums; }
.print-price small { display: block; color: var(--muted); font-size: 12px; margin-top: 6px; }
.print-purchase .print-action { margin: 0; }
.variant-intro { color: var(--muted); font-size: 16px; margin-bottom: 24px; }
.print-variant-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 32px; }
.print-variant-grid .print-tone { width: 100%; min-height: 130px; padding: 12px; }
.print-variant-grid .official-photo { width: 80px; height: 80px; border-radius: 0; outline: none; }
.print-variant-grid .print-tone[aria-pressed="true"] { background: var(--selected); outline: 1px solid var(--burgundy); outline-offset: -1px; }
.print-action { display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 0; margin-top: 30px; padding: 14px 20px; min-height: 58px; width: 100%; background: var(--burgundy); color: var(--light); font: 600 24px/1.15 var(--serif); text-align: left; }
.print-action svg { width: 20px; flex-shrink: 0; }
.print-action:hover { background: #531929; }
.print-folio { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 28px; margin-top: auto; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .04em; }
.print-editorial { padding: 0 0 24px; overflow: hidden; }
.editorial-portrait { width: 100%; height: 578px; object-fit: cover; }
.editorial-copy { padding: 32px 54px 0; }
.editorial-copy h1 { font-size: clamp(4rem, 7vw, 6rem); margin: 0 0 22px; }
.editorial-copy p { font-size: 18px; color: var(--muted); }
.editorial-copy small { display: block; font-size: 10px; color: var(--muted); margin-top: 20px; }
.print-editorial .print-folio { padding-inline: 54px; }
.print-index h1 { margin: 38px 0 24px; }
.print-index > p { color: var(--muted); margin-bottom: 40px; }
.print-index-row { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 18px 0; gap: 24px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--burgundy); text-align: left; font: 500 30px/1.1 var(--serif); }
.print-index-row small { display: block; margin-top: 10px; font: 400 12px/1.4 var(--sans); color: var(--muted); }
.print-index-row:hover { background: var(--selected); }
.print-cover { padding: 32px 0 24px; }
.cover-logo { width: 64%; height: auto; margin: 0 48px 28px; }
.print-cover-art { width: 100%; height: 390px; object-fit: cover; object-position: center 36%; }
.print-cover h1 { margin: 26px 48px 0; }
.print-cover h1 i { font-size: .78em; }
.cover-disclosure { font-size: 10px; color: var(--muted); margin: 18px 48px 0; }
.print-cover-action { margin: 0 48px; }
.print-cover .print-folio { padding-inline: 48px; }
.print-back { background: var(--burgundy); color: var(--light); }
.print-back > img { width: 80%; height: auto; }
.print-back h1 { margin-top: 100px; color: var(--light); }
.print-back > p { margin-top: 44px; color: #f0dfd3; font-size: 20px; max-width: 29ch; }
.print-back .print-domain { font-size: 14px; margin-top: auto; padding-top: 48px; }
.print-back .print-action { background: var(--light); color: var(--burgundy); }
.print-back .print-folio { color: #f0dfd3; }
.print-welcome { background: var(--light); color: var(--burgundy); }
.print-welcome h1 { color: var(--burgundy); }
.print-welcome > p, .print-welcome .print-folio { color: var(--muted); }
.print-welcome .print-action { background: var(--burgundy); color: var(--light); }
.print-palette { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 26px 0; }
.print-palette figure { margin: 0; min-width: 0; }
.print-palette img { width: 100%; height: 70px; object-fit: contain; mix-blend-mode: multiply; }
.print-palette figcaption { font-size: 10px; color: var(--muted); overflow-wrap: anywhere; }
.mobile-purchase { display: none; }
@media (max-width: 1000px) {
  .simple-spread { display: block; max-width: 700px; }
  .simple-spread > .print-editorial { display: none; }
}
@media (max-width: 700px) {
  .reader-header { min-height: 62px; }
  .reader-footer { padding-inline: max(16px, env(safe-area-inset-right)); padding-block: 6px max(8px, env(safe-area-inset-bottom)); }
  .mobile-purchase { display: flex; grid-column: 1 / -1; grid-row: 1; align-items: center; gap: 14px; min-height: 78px; padding: 8px 0 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
  .mobile-purchase > div { flex: 1; min-width: 0; }
  .mobile-purchase p { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--burgundy); }
  .mobile-purchase span { display: inline-block; font: 600 23px/1.2 var(--serif); color: var(--burgundy); }
  .mobile-purchase small { display: block; font-size: 10px; color: var(--muted); }
  .mobile-purchase button { font-size: 13px; min-height: 46px; flex-shrink: 0; padding: 10px 16px; }
  .page-navigation, .reader-tools { grid-row: 2; }
  .reader-location { grid-row: 3; }
  .simple-stage { padding: 12px; }
  .print-page { min-height: 0; padding: 28px 24px 20px; }
  .print-running { font-size: 10px; margin-bottom: 28px; }
  .print-tone { width: 80px; font-size: 12px; }
  .print-tone-options { gap: 12px; margin: 4px 0; }
  .print-price { padding-top: 0; }
  .print-action { margin-top: 0; }
  .print-editorial { padding: 0 0 24px; }
  .editorial-portrait { height: 430px; }
  .editorial-copy { padding: 28px 24px 0; }
  .editorial-copy h1 { font-size: 4rem; }
  .print-editorial .print-folio { padding-inline: 24px; }
  .print-cover { padding-inline: 0; }
  .cover-logo { margin-inline: 24px; width: 78%; }
  .print-cover h1, .cover-disclosure, .print-cover-action { margin-inline: 24px; }
  .print-cover .print-folio { padding-inline: 24px; }
  .print-cover-art { height: 310px; }
  .print-back h1 { margin-top: 60px; }
  .print-back > p { font-size: 18px; }
  .print-palette { margin-block: 0; }
}

.product-brandline { display: block; font-size: min(1.4em, 6rem); line-height: .95; }
.product-titleline { display: block; font-size: .85em; margin-top: 12px; }

@media (max-width: 700px) {
  .print-product { padding: 28px 24px 24px; }
  .print-product > h1 { font-size: 2.6rem; min-height: 0; margin-bottom: 28px; }
  .print-product .print-hero { height: 340px; margin: 0 4px 28px; }
  .print-product .print-intro { font-size: 16px; margin-bottom: 20px; }
  .print-product .print-tone-options { gap: 6px; flex-wrap: wrap; }
  .print-product .print-more-tones { font-size: 20px; }
  .print-product .print-purchase { gap: 16px; }
  .print-product .print-price p { font-size: 2rem; }
  .print-product .print-action { font-size: 20px; padding-inline: 12px; }
  .print-variant-grid { gap: 6px; }
  .print-variant-grid .print-tone { padding: 8px 4px; font-size: 12px; }
  .print-variant-grid .official-photo { width: 60px; height: 60px; }
}

@media (min-width: 701px) {
  .print-product-portrait { display: grid; grid-template-columns: 1fr .95fr; column-gap: 32px; grid-template-rows: auto auto auto auto 1fr auto auto; }
  .print-product-portrait .print-running { grid-column: 1 / -1; grid-row: 1; }
  .print-product-portrait > h1 { grid-column: 2; grid-row: 2; font-size: 3.3rem; min-height: 0; margin-bottom: 28px; }
  .print-product-portrait .print-hero { grid-column: 1; grid-row: 2 / 6; height: 530px; margin: 0; align-self: center; }
  .print-product-portrait .print-intro { grid-column: 2; grid-row: 3; }
  .print-product-portrait .print-specification { grid-column: 2; grid-row: 4; flex-direction: column; gap: 10px; }
  .print-product-portrait .print-tone-options { grid-column: 2; grid-row: 5; flex-wrap: wrap; }
  .print-product-portrait .print-tone { width: 64px; }
  .print-product-portrait .print-purchase { grid-column: 1 / -1; grid-row: 6; }
  .print-product-portrait .print-folio { grid-column: 1 / -1; grid-row: 7; }
}

/* The reading surface stays central; controls describe the current section. */
@media (max-width: 700px) {
  .reader-header .brand { width: clamp(104px, 36vw, 150px); }
  .contents-tools { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-bottom: 16px; }
  .contents-bottom { gap: 0 18px; }
  .contents-dialog h2 { font-size: 2rem; }
  .contents-row strong { font-size: 1.35rem; }
  .reader-location .page-title { display: block; font: 500 14px/1.4 var(--sans); padding-top: 3px; }
  #page-status { min-width: 82px; max-width: 100px; }
  .reader-location .reader-help { display: none; }
  .mobile-purchase button { min-height: 48px; font-size: 14px; }
  .options-dialog > .dialog-heading { padding: 20px 24px 16px; }
  .options-body { padding: 20px 24px; }
  .options-dialog h2 { font-size: 1.8rem; }
  .view-switch { margin-block: 20px; }
  .cart-dialog > .dialog-heading { padding-block: max(20px, env(safe-area-inset-top)) 16px; }
  .cart-dialog .dialog-subtitle { font-size: 13px; margin-top: 8px; }
  .cart-dialog h2 { font-size: 2.2rem; }
}
@media (max-width: 360px) {
  #contents-open > span, #options-open > span { display: none; }
  #contents-open, #options-open { width: 44px; height: 44px; padding: 10px; }
  #contents-open > svg { display: block; }
  .page-navigation { gap: 0; }
  #page-status { min-width: 82px; font-size: 12px; }
}

/* Hojas de producto: la acción va en contorno; el bordó lleno queda para recorrer y para el pedido. */
.print-product .print-action, .print-action-outline { background: transparent; color: var(--burgundy); box-shadow: inset 0 0 0 1.5px var(--burgundy); }
.print-product .print-action:hover, .print-action-outline:hover { background: var(--selected); }
.print-back .print-action-outline { margin-top: 30px; background: transparent; color: var(--light); box-shadow: inset 0 0 0 1.5px var(--light); }
.print-back .print-action-outline:hover { background: #ffffff1a; }
.print-back .print-action-outline + .print-action { margin-top: 12px; }
.print-kicker { margin-top: 12px; color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.print-cover-kicker { margin: 22px 48px 0; }
.print-cover h1 { margin-top: 10px; }
.print-steps { list-style: none; margin: 40px 0 0; padding: 0; counter-reset: paso; }
.print-steps li { counter-increment: paso; display: grid; grid-template-columns: 56px 1fr; gap: 2px 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.print-steps li::before { content: counter(paso, decimal-leading-zero); grid-row: span 2; color: #cbb79c; font: 500 34px/1 var(--serif); font-variant-numeric: lining-nums; }
.print-steps strong { color: var(--burgundy); font: 600 24px/1.2 var(--serif); }
.print-steps span { color: var(--muted); font-size: 15px; }

/* Pie en teléfono: franja de contexto de altura fija (producto o sección) y una fila de navegación.
   La altura no cambia entre hojas, así el libro conserva su tamaño al pasar de página. */
@media (max-width: 700px) {
  .reader-footer { grid-template-rows: 64px auto; row-gap: 2px; }
  .mobile-purchase { min-height: 0; height: 64px; padding: 6px 0 8px; margin-bottom: 0; }
  .mobile-purchase > div { display: grid; align-content: center; gap: 1px; }
  .mobile-purchase p { font: 500 12px/1.3 var(--sans); }
  .mobile-purchase span { font: 600 22px/1.05 var(--serif); }
  .mobile-purchase small { font-size: 10px; line-height: 1.3; }
  .mobile-purchase.is-idle p { font: 500 19px/1.15 var(--serif); color: var(--burgundy); }
  .mobile-purchase.is-idle span { display: none; }
  .mobile-purchase.is-idle button { visibility: hidden; }
  .reader-location { display: none; }
}

/* Vista simple: las mismas hojas del libro, enteras en pantalla, con flechas a los lados. */
.simple-stage { display: flex; align-items: center; justify-content: center; gap: clamp(8px, 2vw, 24px); overflow: hidden; padding: 24px; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.simple-sheet { display: flex; gap: 2px; box-shadow: 0 18px 48px #30171d33, 0 2px 6px #30171d1f; background: var(--line); }
.simple-leaf { position: relative; flex: none; background: var(--light); }
.simple-leaf canvas { display: block; width: 100%; height: 100%; }
.simple-action { position: absolute; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer; border-radius: 2px; }
.simple-action:hover { background: #6a22340d; }
.simple-action:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; background: transparent; }
.simple-turn { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; background: var(--light); color: var(--burgundy); }
.simple-turn:hover:not(:disabled) { background: var(--selected); border-color: var(--burgundy); }
.simple-turn:disabled { opacity: .3; }
@media (max-width: 700px) {
  .simple-stage { padding: 10px; gap: 0; }
  /* En teléfono las flechas del pie y el deslizamiento pasan de página; la hoja usa todo el ancho. */
  .simple-turn { display: none; }
  .simple-sheet { box-shadow: 0 8px 24px #30171d29; }
}
