@charset "UTF-8";
:root {
    color-scheme: light;
    --blue: #006581;
    --blue-hover: #004e67;
    --navy: #0b2635;
    --cyan: #a2e4ec;
    --paper: #f5f8fa;
    --ink: #193644;
    --muted: #526a75;
    --line: #dbe5ea;
    --body-font: 'Manrope', 'Segoe UI', sans-serif;
    --display-font: 'Barlow Condensed', 'Arial Narrow', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { min-width: 280px; scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; min-height: 100vh; min-height: 100svh; font-family: var(--body-font); font-size: 15px; line-height: 1.6; color: white; background: var(--navy); }
body::before { content: ''; position: fixed; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(7,28,42,.86), rgba(10,39,52,.55) 60%, rgba(12,39,50,.63)), url('fondo-tienda.webp') center / cover no-repeat; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin-top: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #31a3c5; outline-offset: 5px; }
.icon { width: 22px; height: 22px; flex-shrink: 0; }
.page-width { width: min(1256px, calc(100% - 96px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: 10px; transform: translateY(-200%); background: white; color: var(--ink); padding: 12px 20px; border-radius: 4px; z-index: 1000; }
.skip-link:focus { transform: none; }
.site-header { background: rgba(9,31,45,.66); border-bottom: 1px solid #ffffff26; backdrop-filter: blur(12px); }
.header-inner { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 25px; min-width: 0; }
.brand img { width: 148px; height: auto; }
.brand-divider { height: 36px; width: 1px; background: #ffffff4d; }
.brand-caption { font-size: 11px; line-height: 1.5; letter-spacing: .04em; color: #dce8ee; }
.brand-caption strong { color: white; font-size: 12px; font-weight: 600; letter-spacing: 0; }
.header-nav { display: flex; align-items: center; gap: 28px; font-size: 13px; font-weight: 600; }
.header-nav a { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; }
.header-nav a:hover { color: var(--cyan); }
.header-nav .icon { width: 17px; height: 17px; }
.store-link { white-space: nowrap; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; color: #e4f2f6; font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow-line { width: 32px; height: 2px; background: var(--cyan); flex-shrink: 0; }
.small-label { display: block; font-size: 10px; letter-spacing: .11em; font-weight: 700; text-transform: uppercase; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 52px; padding: 13px 22px; border: 1px solid transparent; border-radius: 7px; font-size: 13px; font-weight: 700; line-height: 1.5; }
.button-primary { color: white; background: var(--blue); transition: background-color .18s ease; }
.button-primary:hover { background: var(--blue-hover); }
.button .icon { width: 21px; height: 21px; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 23px; border-top: 1px solid #ffffff2e; color: #deeaef; font-size: 10px; line-height: 1.6; }
.site-footer p { margin: 0; }
.site-footer p:last-child { text-align: right; }
.site-footer span { margin-inline: 7px; }

/* The building frames the entry; the current issue replaces the old static cover. */
.entry-page { display: flex; flex-direction: column; }
.entry-layout { flex: 1; display: grid; grid-template-columns: minmax(0,1fr) 405px; gap: 90px; align-items: center; padding-block: 64px; }
.entry-story h1 { font-family: var(--display-font); font-size: clamp(62px,6.4vw,91px); font-weight: 600; line-height: .98; letter-spacing: -.02em; margin-bottom: 25px; }
.entry-story h1 span { color: var(--cyan); }
.entry-description { color: #e1ebf0; font-size: 15px; line-height: 1.9; margin-bottom: 35px; }
.edition-preview { display: flex; align-items: center; gap: 18px; padding-top: 24px; border-top: 1px solid #ffffff42; width: fit-content; }
.edition-preview img { width: 58px; height: auto; border: 1px solid #ffffff4d; box-shadow: 0 5px 15px #0005; }
.edition-preview .small-label { color: #d4e4ec; margin-bottom: 4px; font-size: 9px; }
.edition-preview strong { display: block; font-size: 17px; font-weight: 700; }
.preview-caption { display: block; margin-top: 4px; color: #d9e6ec; font-size: 10px; }
.entry-card { background: #fffffff7; color: var(--ink); padding: 35px 36px 24px; border: 1px solid #ffffffb3; border-radius: 15px; box-shadow: 0 24px 75px #000f1a3b; }
.card-symbol { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; color: var(--blue); background: #e7f1f5; border: 1px solid #d4e7ed; border-radius: 12px; margin-bottom: 22px; }
.card-symbol .icon { width: 24px; height: 24px; }
.card-eyebrow { color: var(--blue); font-size: 9px; letter-spacing: .12em; margin-bottom: 10px; }
.entry-card h2 { font-family: var(--display-font); font-size: 37px; font-weight: 600; letter-spacing: -.01em; line-height: 1.1; margin-bottom: 12px; }
.entry-card-description { font-size: 12px; line-height: 1.8; color: var(--muted); max-width: 265px; margin-bottom: 25px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 11px; font-weight: 700; margin-bottom: 8px; }
.field input { width: 100%; min-width: 0; height: 49px; border: 1px solid #cddce3; background: white; color: var(--ink); border-radius: 6px; padding: 12px 14px; font-size: 16px; }
.field input::placeholder { color: #687c86; font-size: 12px; }
.field input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px #00658114; outline: 2px solid transparent; }
.password-field { position: relative; }
.password-field input { padding-right: 51px; }
.password-toggle { position: absolute; inset: 2px 2px 2px auto; display: flex; align-items: center; justify-content: center; width: 45px; border: 0; background: transparent; border-radius: 4px; color: var(--muted); }
.password-toggle:hover { color: var(--blue); background: #e7f1f5; }
.password-toggle .icon { width: 19px; height: 19px; }
.entry-submit { width: 100%; margin-top: 5px; justify-content: space-between; }
.entry-card-footer { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 23px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.entry-card-footer .icon { width: 15px; height: 15px; }

/* A single light archive surface gives the original covers room to breathe. */
.catalogue-main { padding-block: 52px; }
@media (min-width: 1101px) {
    .catalogue-page .page-width { width: calc(100% - 96px); }
}
.catalogue-intro { display: grid; grid-template-columns: minmax(0,1fr) 445px; align-items: center; gap: 60px; margin-bottom: 48px; }
.catalogue-heading .eyebrow { margin-bottom: 16px; font-size: 9px; letter-spacing: .12em; }
.catalogue-heading h1 { font-family: var(--display-font); font-size: 62px; font-weight: 600; letter-spacing: -.01em; line-height: 1.03; margin-bottom: 18px; }
.catalogue-heading h1 span { color: var(--cyan); }
.catalogue-heading > p:not(.eyebrow) { font-size: 13px; line-height: 1.8; color: #e4eef2; margin-bottom: 20px; }
.archive-meta { display: inline-block; font-size: 10px; font-weight: 600; color: #e0ecf2; }
.archive-meta span { color: var(--cyan); margin-inline: 12px; }
.latest-edition { display: flex; align-items: center; gap: 27px; padding: 26px; background: #0a233194; border: 1px solid #ffffff3d; border-radius: 13px; backdrop-filter: blur(8px); }
.latest-cover { flex: 0 0 139px; width: 139px; position: relative; }
.latest-cover::after { content: ''; position: absolute; inset: 5px -5px -5px 5px; border: 1px solid #ffffff50; border-radius: 2px; z-index: -1; }
.latest-cover img { height: auto; box-shadow: 0 12px 25px #0005; }
.latest-copy { min-width: 0; }
.latest-copy .small-label { font-size: 8px; letter-spacing: .12em; color: #d3e9f1; line-height: 1.8; margin-bottom: 12px; }
.latest-copy h2 { font-family: var(--display-font); font-size: 33px; font-weight: 600; line-height: 1.1; margin-bottom: 10px; }
.latest-copy p { font-size: 11px; color: #d7e5ec; margin-bottom: 25px; }
.latest-cta { display: flex; align-items: center; gap: 16px; color: var(--cyan); font-size: 11px; font-weight: 700; }
.latest-cta .icon { width: 20px; }
.latest-edition:hover { background: #0a2331cc; border-color: #a2e4ec99; }
.archive-panel { background: #f9fcfdfa; border: 1px solid #ffffff80; color: var(--ink); border-radius: 17px; padding: 35px; box-shadow: 0 20px 60px #0016242b; }
.archive-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 25px; }
.section-label { font-size: 9px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .13em; margin-bottom: 4px; }
.archive-toolbar h2 { font-family: var(--display-font); font-size: 35px; font-weight: 600; line-height: 1.1; margin: 0; }
.archive-search { display: flex; align-items: center; gap: 11px; padding: 0 6px 0 14px; min-height: 49px; width: 366px; border: 1px solid #cbdbe2; background: white; border-radius: 7px; }
.archive-search > .icon { color: var(--muted); width: 19px; height: 19px; }
.archive-search input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 16px; height: 47px; padding-block: 8px; }
.archive-search input::placeholder { font-size: 11px; color: var(--muted); }
.archive-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px #00658118; }
.search-submit { border: 0; border-radius: 4px; color: var(--blue); background: #eaf3f6; padding: 0 11px; min-height: 36px; font-size: 10px; font-weight: 700; }
.search-submit:hover { background: #d7e9f0; }
.year-filters { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 24px; }
.year-filter { display: flex; align-items: center; justify-content: center; min-width: 65px; min-height: 42px; border: 1px solid #dce6eb; border-radius: 5px; color: var(--muted); background: white; font-size: 11px; font-weight: 700; padding: 8px 16px; }
.year-filter:hover { color: var(--blue); border-color: var(--blue); }
.year-filter.is-active { color: white; background: var(--blue); border-color: var(--blue); }
.archive-results { display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 10px; min-height: 57px; color: var(--muted); }
.archive-results p { margin: 0; }
.clear-filters { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; min-height: 40px; display: inline-flex; align-items: center; }
.archive-year + .archive-year { margin-top: 42px; }
.year-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 21px; }
.year-heading h3 { font-family: var(--display-font); font-size: 30px; font-weight: 600; line-height: 1; margin: 0; }
.year-heading > span:not(.year-rule) { color: var(--muted); font-size: 9px; white-space: nowrap; }
.year-rule { flex: 1; height: 1px; background: var(--line); margin-left: 6px; }
.edition-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(200px,1fr)); gap: 25px 23px; }
.edition-card { min-width: 0; }
.edition-card > a { display: block; border-radius: 3px; }
.edition-cover { position: relative; aspect-ratio: 17 / 22; background: #e1e8ec; box-shadow: 0 5px 14px #102c3c18; overflow: hidden; border-radius: 2px; transition: box-shadow .2s ease, transform .2s ease; }
.edition-cover::after { content: ''; position: absolute; inset: 0; border: 1px solid #0a2b3912; pointer-events: none; }
.edition-cover img { width: 100%; height: 100%; object-fit: contain; }
.cover-action { display: flex; align-items: center; justify-content: center; gap: 9px; position: absolute; inset: auto 0 0; padding: 12px 7px; background: #05283af0; color: white; font-size: 10px; font-weight: 700; transform: translateY(100%); transition: transform .2s ease; }
.cover-action .icon { width: 17px; height: 17px; }
.edition-card a:hover .edition-cover, .edition-card a:focus-visible .edition-cover { transform: translateY(-3px); box-shadow: 0 9px 24px #102c3c30; }
.edition-card a:hover .cover-action, .edition-card a:focus-visible .cover-action { transform: none; }
.edition-caption { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; }
.edition-caption h4 { font-size: 13px; font-weight: 700; line-height: 1.4; margin: 0; }
.edition-caption span { color: var(--muted); font-size: 10px; }
.edition-caption > .icon { width: 18px; height: 18px; color: var(--blue); }
.empty-results { text-align: center; padding: 50px 20px; }
.empty-results .card-symbol { margin-bottom: 15px; }
.empty-results h3 { font-family: var(--display-font); font-size: 34px; font-weight: 600; margin-bottom: 10px; }
.empty-results p { color: var(--muted); font-size: 13px; max-width: 400px; margin: 0 auto 22px; }

/* Keep the existing flipbook below the publication navigation. */
.reader-page { height: 100vh; height: 100dvh; overflow: hidden; }
.reader-page .header-inner { min-height: 76px; }
.reader-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 12px 26px; background: #f4f8fa; color: var(--ink); border-bottom: 1px solid var(--line); min-height: 69px; }
.reader-title p { font-size: 9px; color: var(--muted); margin: 0; text-transform: uppercase; letter-spacing: .08em; }
.reader-title h1 { font-size: 17px; line-height: 1.5; margin: 0; font-weight: 700; }
.reader-fullscreen { min-height: 40px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 7px 13px; border: 1px solid #cadce5; border-radius: 5px; background: white; color: var(--blue); font-size: 11px; font-weight: 700; }
.reader-fullscreen .icon { width: 18px; height: 18px; }
.reader-stage { position: fixed; inset: 146px 0 0; background: #e4edf1; }
.reader-stage:fullscreen { inset: 0; }
#magazine-reader { width: 100%; height: 100%; position: relative; }
.reader-loading { display: grid; align-content: center; justify-items: center; gap: 13px; height: 100%; padding: 24px; color: var(--ink); text-align: center; }
.reader-loading p { margin: 0; }
.reader-loading .icon { width: 34px; height: 34px; }
.reader-error { max-width: 520px; margin: 10vh auto; padding: 36px; color: var(--ink); background: white; border-radius: 12px; text-align: center; }
.reader-error h1 { font-family: var(--display-font); font-size: 40px; font-weight: 600; }
.reader-error p { color: var(--muted); }

@media (min-width: 1600px) {
    .entry-layout { gap: 130px; }
}
@media (max-width: 1100px) {
    .page-width { width: calc(100% - 64px); }
    .entry-layout { gap: 45px; grid-template-columns: minmax(0,1fr) 375px; padding-block: 46px; }
    .entry-story h1 { font-size: 74px; }
    .entry-card { padding: 29px 29px 22px; }
    .catalogue-intro { grid-template-columns: minmax(0,1fr) 390px; gap: 32px; }
    .catalogue-heading h1 { font-size: 51px; }
    .latest-edition { gap: 20px; padding: 22px; }
    .latest-cover { flex-basis: 115px; width: 115px; }
    .latest-copy h2 { font-size: 30px; }
    .edition-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
    .archive-panel { padding: 29px; }
}
@media (max-width: 850px) {
    .brand-caption, .brand-divider { display: none; }
    .header-inner { min-height: 78px; }
    .entry-layout { gap: 32px; grid-template-columns: minmax(0,1fr) 340px; }
    .entry-story h1 { font-size: 62px; }
    .entry-description { font-size: 13px; }
    .entry-card { padding-inline: 25px; }
    .entry-card h2 { font-size: 34px; }
    .edition-preview { gap: 12px; }
    .preview-caption { max-width: 185px; }
    .site-footer { font-size: 9px; }
    .catalogue-intro { grid-template-columns: minmax(0,1fr) 330px; gap: 25px; }
    .catalogue-heading h1 { font-size: 46px; }
    .catalogue-heading .eyebrow { align-items: start; font-size: 8px; }
    .catalogue-heading .eyebrow-line { margin-top: 6px; width: 20px; }
    .latest-edition { gap: 17px; padding: 19px; }
    .latest-cover { flex-basis: 103px; width: 103px; }
    .latest-copy h2 { font-size: 28px; }
    .latest-copy p { margin-bottom: 15px; }
    .latest-copy .small-label { font-size: 7px; }
    .archive-toolbar { align-items: flex-start; flex-direction: column; gap: 20px; }
    .archive-search { width: 100%; }
    .edition-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px 20px; }
}
@media (max-width: 700px) {
    .page-width { width: calc(100% - 40px); }
    body::before { background-position: 52% center; background-image: linear-gradient(180deg, rgba(7,28,42,.7), rgba(10,39,52,.66)), url('fondo-tienda.webp'); }
    .header-inner { min-height: 72px; gap: 16px; }
    .brand img { width: 119px; }
    .header-nav { gap: 18px; font-size: 11px; }
    .header-nav a { gap: 6px; }
    .header-nav .icon { width: 15px; height: 15px; }
    .entry-layout { display: flex; flex-direction: column; align-items: stretch; gap: 34px; padding-block: 36px; }
    .entry-story h1 { font-size: clamp(60px,11.5vw,80px); margin-bottom: 18px; }
    .entry-story .eyebrow { font-size: 9px; margin-bottom: 18px; }
    .entry-description { font-size: 13px; margin-bottom: 22px; }
    .edition-preview { width: 100%; padding-top: 20px; }
    .edition-preview img { width: 45px; }
    .preview-caption { max-width: none; }
    .entry-card { padding: 29px 28px 22px; border-radius: 12px; }
    .entry-card h2 { font-size: 36px; }
    .entry-card-description { max-width: none; }
    .entry-card .card-symbol { margin-bottom: 18px; }
    .entry-card-footer { font-size: 10px; }
    .site-footer { align-items: flex-start; flex-direction: column; gap: 5px; padding-block: 20px; font-size: 9px; }
    .site-footer p:last-child { text-align: left; }
    .catalogue-main { padding-block: 32px; }
    .catalogue-intro { display: flex; flex-direction: column; align-items: stretch; gap: 26px; margin-bottom: 30px; }
    .catalogue-heading h1 { font-size: 52px; }
    .catalogue-heading .eyebrow { font-size: 8px; }
    .catalogue-heading > p:not(.eyebrow) { font-size: 12px; }
    .latest-edition { gap: 24px; padding: 22px; }
    .latest-cover { flex-basis: 103px; width: 103px; }
    .latest-copy h2 { font-size: 32px; }
    .latest-copy .small-label { font-size: 8px; }
    .latest-copy p { font-size: 11px; }
    .archive-panel { padding: 24px 20px; border-radius: 12px; }
    .archive-toolbar h2 { font-size: 33px; }
    .archive-toolbar { margin-bottom: 21px; }
    .year-filters { gap: 7px; padding-bottom: 20px; }
    .year-filter { min-width: 56px; min-height: 43px; font-size: 10px; padding-inline: 13px; }
    .edition-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 17px; }
    .edition-caption h4 { font-size: 12px; }
    .archive-year + .archive-year { margin-top: 30px; }
    .year-heading { margin-bottom: 19px; }
    .cover-action { display: none; }
    .reader-page .header-inner { min-height: 65px; }
    .reader-page .store-link { display: none; }
    .reader-page .header-nav { font-size: 10px; }
    .reader-toolbar { min-height: 73px; padding: 12px 20px; gap: 12px; }
    .reader-title p { font-size: 7px; }
    .reader-title h1 { font-size: 16px; }
    .reader-fullscreen { padding: 9px; }
    .reader-fullscreen span { display: none; }
    .reader-stage { inset-block-start: 139px; }
}
@media (max-width: 360px) {
    .page-width { width: calc(100% - 30px); }
    .brand img { width: 105px; }
    .header-nav { gap: 12px; font-size: 10px; }
    .entry-card { padding-inline: 22px; }
    .entry-story h1 { font-size: 57px; }
    .entry-description { font-size: 12px; }
    .desktop-break { display: none; }
    .archive-panel { padding-inline: 16px; }
    .latest-edition { padding: 17px; gap: 20px; }
    .latest-cover { flex-basis: 90px; width: 90px; }
    .latest-copy h2 { font-size: 29px; }
    .latest-copy .small-label { font-size: 7px; }
    .catalogue-heading h1 { font-size: 47px; }
    .edition-grid { gap: 22px 13px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
