/* Lectura y controles; el render y su recorrido permanecen intactos. */
:root { --space-1: 8px; --space-2: 16px; --space-3: 24px; --space-4: 32px; --type-caption: .75rem; --focus-ring: var(--ink); }
html { scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.dark { --focus-ring: var(--paper); }
:is(a, button, select, input, summary):focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 6px; }
.header nav a { display: inline-flex; align-items: center; min-height: 44px; }
.eyebrow, .hero .eyebrow, .hero-story.has-motion-layout .hero .eyebrow,
.intro .eyebrow, .reading-start .eyebrow, .closing .eyebrow, .family-notes .eyebrow,
.format-options label, .format-options small, .page-note, #page-status,
.footer, .footer a, .purchase-summary p, .availability,
.bible-visual figcaption, .header-cta, .buy-dock strong, .buy-dock span,
.buy-dock .button { font-size: var(--type-caption); line-height: 1.6; }
.prophets-caption { font-size: var(--type-caption) !important; }
.zoom { flex-shrink: 0; min-width: 44px; }
#purchase-country { font-size: 1rem; }
.section-links a { display: inline-flex; align-items: center; min-height: 44px; }
.footer nav { display: flex; flex-wrap: wrap; column-gap: var(--space-3); row-gap: var(--space-1); }
.footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
.account-bridge > div > p { line-height: 1.6; }
.account-bridge .text-button { font-size: .875rem; }
.button:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--teal); }
#page-dialog { --focus-ring: var(--ink); }
@media (max-width: 700px) {
  .footer nav { column-gap: var(--space-2); }
  .footer nav a { padding-block: var(--space-1); }
}
@media (prefers-reduced-motion: reduce) { .button:active { transform: none; } }
body.motion-off .button:active { transform: none; }
.launch-offer { margin-top: 30px; padding: 25px; border: 1px solid #293c7430; border-radius: 7px; background: var(--paper); box-shadow: 0 4px 0 #28a6bd2b; }
.purchase-copy .launch-offer > p.launch-offer-label { margin: 0 0 10px; color: var(--ink); font-size: .75rem; font-weight: 700; letter-spacing: .1em; }
.launch-offer > strong { display: block; color: var(--ink); font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.2; }
.purchase-copy .launch-offer > p:not(.launch-offer-label), .purchase-copy .launch-offer-extra p { margin: 10px 0 0; font-size: .875rem; line-height: 1.6; color: var(--muted); }
.launch-offer-extra { margin-top: 22px; padding-top: 18px; border-top: 1px solid #293c7425; }
.launch-offer-extra span { display: block; color: var(--ink); font-size: .875rem; font-weight: 700; }
.purchase-copy p.launch-contact-label { margin: 24px 0 0; color: var(--ink); font-size: .875rem; font-weight: 700; }
.purchase-copy .launch-email { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 14px; font-size: .875rem; overflow-wrap: anywhere; }
@media (max-width: 760px) { .launch-offer { margin-top: 24px; padding: 20px; } }
.purchase-products { border: 0; padding: 0; margin: var(--space-3) 0 0; display: grid; gap: 12px; }
.purchase-products legend { font-size: .875rem; font-weight: 600; margin-bottom: var(--space-2); }
.product-option { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-2); align-items: center; border: 1px solid #293c7440; padding: 14px 16px; border-radius: 5px; min-height: 78px; }
.product-option:has([name=product]:checked) { border-color: var(--ink); background: var(--paper); box-shadow: 0 3px 0 var(--teal); }
.product-main { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: .875rem; line-height: 1.5; min-width: 0; min-height: 44px; }
.product-main > input { accent-color: var(--ink); width: 18px; height: 18px; margin: 2px 0 0; flex-shrink: 0; }
.product-main small { display: block; color: var(--muted); font-size: var(--type-caption); line-height: 1.6; margin-top: 4px; }
.product-future { display: inline-block; color: var(--ink); background: #28a6bd18; padding: 2px 6px; margin-left: 3px; font-size: var(--type-caption); font-weight: 600; line-height: 1.5; border-radius: 3px; vertical-align: middle; }
.product-quantity { display: grid; gap: 4px; width: 70px; color: var(--muted); font-size: var(--type-caption); }
.product-quantity[hidden] { display: none; }
.product-quantity input { width: 100%; min-height: 44px; padding: 8px; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); border: 1px solid #293c7450; border-radius: 4px; }
.product-quantity input[aria-invalid=true] { border-color: #a13939; }
.purchase-copy p.purchase-quantity-note { font-size: var(--type-caption); line-height: 1.6; margin-top: var(--space-2); }
.purchase-summary strong { display: block; overflow-wrap: break-word; }
.purchase-summary p.purchase-offer-title { color: var(--ink); font-size: .875rem; font-weight: 600; margin: 0 0 8px; }
.purchase-summary p.purchase-discount { color: var(--ink); font-size: .875rem; font-weight: 600; padding-left: var(--space-2); border-left: 2px solid var(--teal); }
.purchase-copy p.purchase-access { font-size: .875rem; line-height: 1.6; margin-top: var(--space-2); padding-left: var(--space-2); border-left: 2px solid var(--teal); }
.purchase-copy p.purchase-planned { color: var(--ink); font-size: .875rem; line-height: 1.6; margin-top: var(--space-2); padding: 12px 16px; border: 1px solid #293c7430; border-radius: 5px; }
@media (max-width: 380px) { .product-option { padding: 12px; gap: 10px; } .product-quantity { width: 62px; } .product-main { gap: 9px; } }

.action-arrow { display: block; flex: none; width: 32px; height: 24px; fill: none; color: inherit; }
.button > .action-arrow, .text-button > .action-arrow, .header-cta > .action-arrow { width: 32px; height: 24px; }
.purchase-inline > .action-arrow { width: 24px; height: 24px; }
.reader-controls button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; }
.reader-controls .action-arrow { width: 24px; height: 18px; }
.action-arrow--back { transform: rotate(180deg); }
/* Cada sección conserva su compra; una barra flotante no tapa la lectura. */
.buy-dock { display: none; }
.footer { padding-bottom: var(--space-4); }
html { scroll-padding-bottom: calc(24px + env(safe-area-inset-bottom)); }

/* Los textos tienen su propio espacio, separado de las líneas y los controles. */
.account-bridge > div + div { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); min-width: 0; }
.account-bridge > div + div > :is(.button, .text-button) { margin-top: 0; }
.text-button { max-width: 100%; gap: var(--space-2); min-height: 48px; padding: 12px 8px; line-height: 1.5; }
.text-button svg, .purchase-inline span { flex-shrink: 0; }
.purchase-inline { max-width: 100%; gap: var(--space-2); padding: 8px 4px; line-height: 1.5; }
.purchase-copy .text-button { display: flex; width: fit-content; margin-top: var(--space-2); }
.purchase-copy #purchase-link { margin-top: var(--space-3); margin-bottom: var(--space-1); }
.product-option { padding: var(--space-2); gap: var(--space-2); }
.product-option:focus-within { border-color: var(--ink); }
.product-main { padding-block: 4px; }
.product-main > span { min-width: 0; overflow-wrap: break-word; }
[role="tabpanel"]:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 6px; }

/* El arte continúa alrededor de la agenda; la lectura conserva un fondo limpio. */
.prophets .feature-copy { background: var(--deep); box-shadow: 0 0 16px 16px var(--deep); }
.bible-heading, .bible .reading-start { background: #243656; box-shadow: 0 0 16px 16px #243656; }
.bible-visual figcaption { position: relative; z-index: 2; background: #243656; }
.prophets .page-note { background: var(--deep); }

@media (max-width: 700px) and (max-height: 560px) {
  .hero-story.has-motion-layout .hero-grid { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); text-align: center; padding-block: 20px 40px; }
  .hero-story.has-motion-layout .hero .eyebrow { justify-content: center; }
  .hero-story.has-motion-layout h1 { font-size: clamp(32px, 9vw, 46px); line-height: .98; margin-bottom: 12px; }
  .hero-story.has-motion-layout .hero-line { white-space: normal; }
  .hero-story.has-motion-layout .hero-lead { font-size: 14px; line-height: 1.45; margin-bottom: 16px; }
  .hero-story.has-motion-layout .hero-actions { justify-content: center; }
  .hero-story.has-motion-layout .hero .button { min-height: 44px; font-size: 13px; padding: 12px 16px; }
  .hero-story.has-motion-layout .hero-art { width: 100%; height: 100%; min-height: 0; margin: 0; display: grid; place-items: center; }
  .hero-story.has-motion-layout .book-presentation { width: min(100%, calc(100svh - 275px)); height: auto; max-height: 100%; margin: 0; }
}
