:root {
  --ink: #17130f;
  --brown: #4b2f1c;
  --gold: #b98236;
  --gold-light: #edc98e;
  --paper: #f5f0e8;
  --muted: #74685d;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; text-decoration: none; }
header { background: var(--ink); color: white; }
.header-inner { width: min(100% - 32px, 1050px); min-height: 92px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { width: 58px; height: 58px; object-fit: cover; border: 2px solid white; }
.brand span { display: grid; gap: 4px; }
.brand strong { font-family: Georgia, serif; font-size: 19px; }
.brand small { color: var(--gold-light); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 11px 18px; border: 1px solid transparent; font-size: 14px; font-weight: 700; }
.button.primary { background: var(--gold-light); color: var(--ink); }
.button.secondary { border-color: rgba(255,255,255,.4); color: white; }
main { width: min(100% - 24px, 980px); margin: 0 auto; }
.intro { max-width: 720px; padding: 70px 0 44px; }
.eyebrow { margin: 0 0 14px; color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .1em; }
h1 { margin: 0 0 18px; font-family: Georgia, serif; font-size: clamp(2.7rem, 8vw, 5.4rem); line-height: .98; }
.intro > p:last-child { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
.page-controls { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; padding: 12px; background: rgba(23,19,15,.96); color: white; box-shadow: 0 8px 24px rgba(38,24,12,.16); }
.page-button { min-height: 42px; padding: 9px 14px; border: 1px solid rgba(255,255,255,.35); background: transparent; color: white; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.page-button:hover, .page-button:focus-visible { border-color: var(--gold-light); color: var(--gold-light); }
.page-button:disabled { opacity: .35; cursor: default; }
.page-status { min-width: 118px; color: var(--gold-light); font-size: 14px; text-align: center; }
.pages { display: grid; gap: 42px; padding-bottom: 72px; }
figure { margin: 0 auto; width: min(100%, 868px); }
figure img { display: block; width: 100%; height: auto; background: white; box-shadow: 0 18px 55px rgba(38,24,12,.16); }
figcaption { padding-top: 10px; color: var(--muted); font-size: 12px; text-align: center; }
.catalogo-enhanced .intro { display: none; }
.catalogo-enhanced main { padding-top: 16px; }
.catalogo-enhanced .pages { min-height: auto; align-items: start; padding-bottom: 34px; }
.catalogo-enhanced .pages figure { display: none; }
.catalogo-enhanced .pages figure.is-active { display: block; }
.catalogo-enhanced .pages figure img { width: auto; max-width: 100%; max-height: 48svh; margin: 0 auto; object-fit: contain; }
.download { margin-bottom: 70px; padding: 48px 30px; background: var(--brown); color: white; text-align: center; }
.download h2 { margin: 0 0 24px; font-family: Georgia, serif; font-size: clamp(1.9rem, 5vw, 3rem); }
.download .text-link { display: block; margin-top: 20px; color: var(--gold-light); font-size: 14px; }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 30px max(16px, calc((100% - 1050px)/2)); background: var(--ink); color: rgba(255,255,255,.58); font-size: 12px; }
footer p { margin: 0; }
footer strong { color: var(--gold-light); }

@media (max-width: 700px) {
  .header-inner { padding: 14px 0; align-items: flex-start; flex-direction: column; }
  .actions { width: 100%; }
  .actions .button { flex: 1; }
  .intro { padding-top: 48px; }
  .page-controls { top: 0; gap: 7px; padding: 10px 8px; }
  .page-button { min-height: 40px; padding: 8px 10px; font-size: 13px; }
  .page-status { order: -1; width: 100%; }
  .pages { gap: 26px; }
  .catalogo-enhanced main { padding-top: 10px; }
  .catalogo-enhanced .pages figure img { max-height: 44svh; }
  footer { flex-direction: column; }
}
