* { box-sizing: border-box; }
html { background: #f1efe9; scroll-padding-top: 20px; }
body { min-height: 100vh; display: flex; flex-direction: column; margin: 0; color: #343431; font-family: Arial, Helvetica, sans-serif; }
a { text-underline-offset: 4px; }
a:focus-visible { outline: 3px solid #c60024; outline-offset: 4px; }
.skip-link { position: absolute; top: -80px; left: 16px; z-index: 10; background: #fff; color: #06244b; padding: 12px 20px; }
.skip-link:focus { top: 12px; }
.site-masthead { background: #06244b; border-bottom: 3px solid #c60024; }
.masthead-brand { display: flex; justify-content: center; padding: 22px 24px; border-bottom: 1px solid #ffffff30; }
.masthead-brand > a { display: block; width: min(100%, 600px); padding: 8px 12px; background: #fff; }
.site-masthead-logo { display: block; width: 100%; height: auto; }
.header-nav { display: flex; justify-content: center; gap: 12px; max-width: 1128px; padding: 14px 24px; margin: 0 auto; }
.header-nav > a { display: inline-flex; justify-content: center; align-items: center; flex: 1; min-height: 48px; padding: 12px 20px; background: #15395f; color: #fff; border-radius: 4px; font-size: 14px; font-weight: 700; letter-spacing: .05em; text-decoration: none; text-transform: uppercase; }
.header-nav > a[aria-current="page"] { background: #fff; color: #06244b; }
.header-nav > .social-link { text-transform: none; font-size: 15px; }
.social-link { display: inline-flex; justify-content: center; align-items: center; gap: 9px; color: #fff; font-weight: 700; text-decoration: none; }
.social-link svg, .button-link svg { flex: none; width: 22px; height: 22px; }
.header-nav .whatsapp-link, .footer-socials .whatsapp-link { background: #13783c; }
.header-nav .youtube-link, .footer-socials .youtube-link { background: #c60024; }
.header-nav .facebook-link, .footer-socials .facebook-link { background: #0866df; }
.header-nav .tiktok-link, .footer-socials .tiktok-link { background: #111; }
.header-nav > a:hover, .social-link:hover, .button-link:hover { filter: brightness(1.12); }
.site-masthead a:focus-visible, .site-footer a:focus-visible { outline-color: #fff; }
.site-masthead .masthead-brand a:focus-visible { outline-offset: 6px; }
.site-footer { margin-top: auto; padding: 40px 24px 20px; background: #06244b; border-top: 3px solid #c60024; color: #d5dfeb; font-size: 14px; }
.footer-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 1080px; margin: 0 auto; }
.site-footer h2 { margin: 0 0 16px; color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: 10px; }
.site-footer a { color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.site-footer a:hover { text-decoration: underline; }
.site-footer address { font-style: normal; line-height: 1.8; }
.site-footer p { margin: 0 0 12px; }
.footer-socials { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; border-top: 1px solid #ffffff25; padding-top: 24px; }
.footer-socials .social-link { min-width: 180px; min-height: 46px; padding: 10px 20px; border-radius: 30px; color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; max-width: 1080px; margin: 24px auto 0; padding-top: 20px; border-top: 1px solid #ffffff25; font-size: 12px; }
.library { width: min(calc(100% - 48px), 1080px); margin: 48px auto 72px; }
.library-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding-bottom: 28px; margin-bottom: 32px; border-bottom: 1px solid #cbc7bc; }
.eyebrow { margin: 0 0 9px; color: #a52648; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.library h1 { margin: 0; color: #092c4a; font: 700 clamp(32px, 4vw, 48px)/1.1 Georgia, serif; }
.library-intro { margin: 14px 0 0; color: #69675f; font-size: 15px; line-height: 1.5; }
.library-count { flex: none; color: #69675f; font-size: 12px; padding-bottom: 3px; }
.publication-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 28px; }
.publication-card a { display: block; color: inherit; text-decoration: none; }
.publication-card a:focus-visible { outline: 3px solid #a52648; outline-offset: 6px; }
.publication-cover { aspect-ratio: 2400 / 3091; background: #fff; border: 1px solid #dedacf; box-shadow: 0 3px 12px #382d1c12; padding: 8px; }
.publication-cover .pdf-preview { height: 100%; }
.pdf-preview, .pdf-page { position: relative; display: block; width: 100%; background: #fff; }
.pdf-preview canvas, .pdf-page canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; visibility: hidden; }
.pdf-preview[data-state="ready"] canvas, .pdf-page[data-state="ready"] canvas { visibility: visible; }
.pdf-status { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; color: #69675f; font: 14px/1.5 Arial, sans-serif; text-align: center; }
[data-state="ready"] > .pdf-status { display: none; }
[data-state="error"] > .pdf-status { color: #a52648; }
.publication-card a:hover .publication-cover { border-color: #958b75; }
.publication-caption { padding: 16px 0; border-bottom: 1px solid #d7d3ca; }
.publication-caption h2 { margin: 0; color: #12324b; font: 700 19px/1.3 Georgia, serif; }
.publication-caption p { display: flex; justify-content: space-between; margin: 7px 0 0; color: #68685f; font-size: 12px; }
.publication-caption p span { color: #a52648; font-size: 19px; }
.library-empty { padding: 44px 0; color: #69675f; }
.tariffs-promo { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 48px; padding: 30px 32px; background: #fff; border: 1px solid #d7d3ca; border-left: 4px solid #c60024; }
.tariffs-promo h2 { margin: 0; color: #06244b; font: 700 27px/1.2 Georgia, serif; }
.tariffs-promo p:last-child { margin: 10px 0 0; color: #69675f; font-size: 14px; line-height: 1.6; }
.button-link { display: inline-flex; justify-content: center; align-items: center; flex: none; gap: 12px; min-height: 46px; padding: 13px 20px; border-radius: 4px; background: #06244b; color: #fff; text-decoration: none; font-size: 14px; font-weight: 700; }
.text-link { flex: none; color: #06244b; font-size: 14px; }
.tariffs { max-width: 1000px; }
.tariff-image-link { display: block; cursor: zoom-in; box-shadow: 0 3px 16px #382d1c12; }
.tariff-image { display: block; width: 100%; height: auto; background: #fff; }
.tariffs-contact { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 28px; }
.tariffs-contact p { margin: 0; color: #06244b; font: 700 23px/1.3 Georgia, serif; }
.edition { width: min(calc(100% - 32px), 1000px); margin: 24px auto 40px; }
.edition-navigation { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; color: #68685f; font-size: 13px; }
.edition-navigation a { color: #12324b; text-underline-offset: 4px; }
.edition-navigation h1 { margin: 0; font: inherit; }
.pdf-print-note { display: none; }
.print-page { background: #fff; box-shadow: 0 0 0 1px rgb(76 67 47 / 9%), 0 5px 18px rgb(56 45 28 / 6%); }
.print-page + .print-page { margin-top: 24px; }
.page-image-link { display: block; cursor: zoom-in; }
.page-image-link:focus-visible { outline: 3px solid #3c398f; outline-offset: 3px; }
.page-folio { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 4.36%; padding: 9px 0 12px; border-top: 1px solid #d7d3ca; color: #68685f; font-size: clamp(8px, 1.05vw, 10.5px); line-height: 1.35; letter-spacing: .06em; text-transform: uppercase; }
.page-folio > span:first-child { overflow-wrap: anywhere; }
.page-folio-number { flex: none; padding-left: 9px; border-left: 1px solid #d7d3ca; color: #3c398f; font: 700 clamp(10px, 1.5vw, 15px)/1 Georgia, serif; }
@media (max-width: 1023px) {
  .header-nav { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; padding: 12px 16px; }
  .header-nav > a { grid-column: span 2; padding: 10px 8px; min-height: 44px; font-size: 12px; }
  .header-nav > .social-link { grid-column: span 3; font-size: 14px; }
}
@media (max-width: 767px) {
  .masthead-brand { padding: 16px; }
  .masthead-brand > a { max-width: 350px; }
  .site-footer { padding: 30px 20px 22px; }
  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
  .footer-socials { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .footer-socials .social-link { min-width: 0; flex: 1; padding: 12px; }
  .footer-bottom { font-size: 11px; }
  .library { width: calc(100% - 32px); margin: 30px auto 48px; }
  .library-heading { align-items: start; flex-direction: column; gap: 14px; margin-bottom: 24px; padding-bottom: 22px; }
  .edition-navigation { padding: 0 10px; }
  .tariffs-promo { align-items: start; flex-direction: column; gap: 22px; margin-top: 32px; padding: 24px; }
  .tariffs-promo h2 { font-size: 25px; }
  .tariffs-contact { align-items: start; flex-direction: column; }
  .edition { width: calc(100% - 8px); margin: 12px auto 20px; }
  .print-page + .print-page { margin-top: 12px; }
  .page-folio { padding: 6px 0 8px; }
}
@media print {
  html, body { background: #fff; }
  .site-masthead, .site-footer, .edition-navigation, .skip-link, .tariffs-contact { display: none; }
  .edition { width: 100%; margin: 0; }
  .print-page { display: none; }
  .pdf-print-note { display: block; }
}

.edition-book { width: min(calc(100% - 32px), 1240px); }
.edition-book-stage { position: relative; display: flex; flex-direction: column; width: 100%; height: clamp(360px, calc(100dvh - 180px), 840px); overflow: hidden; border: 1px solid #cbc7bc; border-radius: 8px; background: #e8e5dd; }
.edition-book .edition-book-viewer { flex: 1; min-height: 0; width: 100%; height: 0; --fb-bg: transparent; --fb-paper: #fff; --fb-control-fg: #06244b; --fb-counter-fg: #343431; --fb-shadow: 0 12px 28px #382d1c24, 0 3px 9px #382d1c18; }
.edition-book-controls { flex: none; padding: 12px; border-top: 1px solid #d7d3ca; background: #f7f6f2; }
.edition-book-toolbar { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.edition-book-toolbar button, .edition-book .fullscreen-exit { min-width: 42px; min-height: 42px; padding: 10px 14px; border: 1px solid #bcb8ac; border-radius: 4px; background: #fff; color: #06244b; font: 700 13px Arial, sans-serif; cursor: pointer; }
.edition-book-toolbar button:hover, .edition-book .fullscreen-exit:hover { background: #edeae3; }
.edition-book-toolbar button:disabled { opacity: .4; cursor: default; }
.edition-book button:focus-visible, .edition-book-viewer:focus-visible { outline: 3px solid #c60024; outline-offset: 3px; }
.edition-book .edition-book-viewer:focus-visible { outline-offset: -3px; }
.edition-book #previous, .edition-book #next { min-width: 110px; }
.edition-book #counter { min-width: 130px; color: #343431; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; }
.edition-book .tools-separator { width: 1px; height: 24px; margin: 0 4px; background: #cbc7bc; }
.edition-book #status { min-height: 16px; margin: 7px 0 0; color: #69675f; font-size: 12px; line-height: 1.4; text-align: center; }
.edition-book #status[data-error] { color: #a52648; }
.edition-book .fullscreen-exit { position: absolute; top: 12px; right: 12px; z-index: 100; display: none; }
.edition-book-stage:fullscreen, .edition-book-stage.fullscreen-fallback { width: 100vw; height: 100dvh; border: 0; border-radius: 0; }
.edition-book-stage.fullscreen-fallback { position: fixed; inset: 0; z-index: 1000; }
.edition-book-stage:fullscreen .fullscreen-exit, .edition-book-stage.fullscreen-fallback .fullscreen-exit { display: block; }
html.edition-book-fullscreen-active, html.edition-book-fullscreen-active body { overflow: hidden; }
@media (max-width: 767px) {
  .edition-book { width: calc(100% - 16px); }
  .edition-book-stage { height: max(420px, calc(100dvh - 110px)); }
  .edition-book-controls { padding: 10px 8px; }
  .edition-book-toolbar { gap: 6px; }
  .edition-book-toolbar button { padding: 9px 11px; font-size: 12px; }
  .edition-book #previous, .edition-book #next { min-width: 86px; }
  .edition-book #counter { min-width: 112px; font-size: 12px; }
  .edition-book .tools-separator { display: none; }
  .edition-book #status { font-size: 11px; }
}
@media print {
  .edition-book-stage { display: none; }
}
