/* ==========================================================================
   NIKOLE MASTER LUXURY MAGAZINE - DESIGN SYSTEM & STYLESHEET
   High-End Contemporary Publication (Haute Couture / Editorial Architectural)
   ========================================================================== */

/* --- ROOT VARIABLES & PALETTES --- */
:root {
    --gold-primary: #c5a059;
    --gold-light: #f7eedb;
    --gold-dark: #8c6a2e;
    --gold-glow: rgba(197, 160, 89, 0.4);
    --gold-gradient: linear-gradient(135deg, #e5cea5 0%, #c5a059 50%, #8f692b 100%);
    --gold-foil: linear-gradient(90deg, #c5a059, #fff4e0, #c5a059);

    /* Light Theme (Warm Alabaster / Fine Matte Paper con Contraste Reforzado) */
    --bg-viewport: #0f1013;
    --bg-page: #fefdfa;
    --bg-page-alt: #f5f2e9;
    --text-primary: #07080a;
    --text-secondary: #282b34;
    --text-muted: #565a68;
    --border-hairline: rgba(197, 160, 89, 0.45);
    --border-subtle: rgba(7, 8, 10, 0.12);
    --card-bg: #ffffff;
    --card-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
    --spine-shadow-left: inset -22px 0 40px -10px rgba(0, 0, 0, 0.18);
    --spine-shadow-right: inset 22px 0 40px -10px rgba(0, 0, 0, 0.18);

    /* Typography */
    --font-masthead: 'Bodoni Moda', 'Cinzel', serif;
    --font-serif: 'Cormorant Garamond', 'Bodoni Moda', Georgia, serif;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-meta: 'Outfit', sans-serif;

    --page-width: 580px;
    --page-height: 840px;
    --page-radius: 3px;
    --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
    --bg-viewport: #040507;
    --bg-page: #0d0f14;
    --bg-page-alt: #131720;
    --text-primary: #ffffff;
    --text-secondary: #cbd3e2;
    --text-muted: #98a1b5;
    --border-hairline: rgba(229, 206, 165, 0.55);
    --border-subtle: rgba(255, 255, 255, 0.14);
    --card-bg: #141822;
    --card-shadow: 0 14px 40px rgba(0, 0, 0, 0.65);
    --spine-shadow-left: inset -22px 0 40px -10px rgba(0, 0, 0, 0.65);
    --spine-shadow-right: inset 22px 0 40px -10px rgba(0, 0, 0, 0.65);
}

/* --- RESET & GLOBAL --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

body {
    background-color: var(--bg-viewport);
    color: var(--text-primary);
    font-family: var(--font-sans);
    overflow-x: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
    user-select: text;
}

/* --- TOP LUXURY NAVBAR --- */
.luxe-navbar {
    height: 64px;
    background: rgba(15, 16, 19, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(184, 144, 88, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: relative;
    z-index: 1000;
    color: #f5f5f7;
    flex-shrink: 0;
}

.nav-left, .nav-right, .nav-center {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-brand {
    display: flex;
    flex-direction: column;
    margin-left: 8px;
}

.nav-logo {
    font-family: var(--font-masthead);
    font-size: 1.4rem;
    letter-spacing: 0.25em;
    font-weight: 700;
    background: var(--gold-foil);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.nav-issue {
    font-family: var(--font-meta);
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    color: #9ea2ac;
    text-transform: uppercase;
}

.nav-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e5e7eb;
    height: 38px;
    padding: 0 14px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-meta);
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.nav-btn:hover {
    border-color: var(--gold-primary);
    color: var(--gold-light);
    background: rgba(184, 144, 88, 0.08);
}

.nav-btn.icon-only {
    padding: 0;
    width: 38px;
    justify-content: center;
}

.nav-btn.print-btn {
    background: var(--gold-primary);
    color: #0d0f12;
    border-color: var(--gold-primary);
    font-weight: 600;
}

.nav-btn.print-btn:hover {
    background: #cba873;
    color: #000;
    box-shadow: 0 4px 15px rgba(184, 144, 88, 0.35);
}

/* Spread Navigator */
.spread-navigator {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 3px 6px;
}

.nav-page-btn {
    background: none;
    border: none;
    color: #e5e7eb;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.nav-page-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--gold-primary);
}

.page-indicator-badge {
    padding: 0 12px;
    font-family: var(--font-meta);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    color: #d1d5db;
    display: flex;
    align-items: center;
    gap: 6px;
}

.page-indicator-badge #current-page-label {
    color: var(--gold-light);
    font-weight: 600;
}

.indicator-divider {
    color: #6b7280;
}

/* View Mode Buttons */
.view-mode-group {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 2px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.mode-btn {
    background: none;
    border: none;
    color: #9ca3af;
    padding: 6px 12px;
    font-family: var(--font-meta);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    border-radius: 3px;
    transition: var(--transition-smooth);
}

.mode-btn.active, .mode-btn:hover {
    color: #ffffff;
    background: rgba(184, 144, 88, 0.25);
}

.mode-btn.active {
    color: var(--gold-light);
}

/* --- MAIN MAGAZINE VIEWPORT --- */
.magazine-viewport {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 20px 50px 20px;
    perspective: 2500px;
    position: relative;
}

.magazine-spread-stage {
    display: flex;
    align-items: stretch;
    justify-content: center;
    transition: transform 0.4s ease;
}

/* --- MAGAZINE PAGE (BASE STRUCTURE) --- */
.magazine-page {
    width: var(--page-width);
    height: var(--page-height);
    min-height: var(--page-height);
    background: var(--bg-page);
    color: var(--text-primary);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: none;
}

/* Double Spread Facing Mode */
body.mode-spread .magazine-page.page-active {
    display: flex;
    flex-direction: column;
}

body.mode-spread .magazine-page.page-left {
    border-top-left-radius: var(--page-radius);
    border-bottom-left-radius: var(--page-radius);
    box-shadow: var(--spine-shadow-left), -10px 15px 40px rgba(0, 0, 0, 0.3);
    border-right: 1px solid rgba(0, 0, 0, 0.08);
}

body.mode-spread .magazine-page.page-right {
    border-top-right-radius: var(--page-radius);
    border-bottom-right-radius: var(--page-radius);
    box-shadow: var(--spine-shadow-right), 10px 15px 40px rgba(0, 0, 0, 0.3);
    border-left: 1px solid rgba(0, 0, 0, 0.08);
}

/* Single Page View Mode */
body.mode-single .magazine-viewport {
    align-items: flex-start;
}

body.mode-single .magazine-spread-stage {
    flex-direction: column;
    gap: 30px;
}

body.mode-single .magazine-page {
    display: flex !important;
    flex-direction: column;
    border-radius: var(--page-radius);
    margin-bottom: 24px;
}

/* Grid / Gallery View Mode */
body.mode-grid .magazine-viewport {
    align-items: flex-start;
    padding: 30px 40px;
}

body.mode-grid .magazine-spread-stage {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
    width: 100%;
    max-width: 1400px;
}

body.mode-grid .magazine-page {
    display: flex !important;
    width: 100%;
    height: 380px;
    transform: scale(1);
    cursor: pointer;
    border-radius: 6px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid var(--border-subtle);
    pointer-events: auto;
}

body.mode-grid .magazine-page:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 0 2px var(--gold-primary);
}

/* --- PAGE INNER CONTENT WRAPPER --- */
.page-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 30px 36px 24px 36px;
    position: relative;
    background-color: var(--bg-page);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(184, 144, 88, 0.25) transparent;
}

.page-inner::-webkit-scrollbar {
    width: 4px;
}

.page-inner::-webkit-scrollbar-thumb {
    background: rgba(184, 144, 88, 0.25);
    border-radius: 2px;
}

/* --- RUNNING HEADERS & FOOTERS --- */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-meta);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-hairline);
    padding-bottom: 10px;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.page-header .header-left, .page-header .header-right {
    font-weight: 600;
    color: var(--gold-primary);
}

.page-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-meta);
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    border-top: 1px solid var(--border-subtle);
    padding-top: 10px;
    margin-top: auto;
    flex-shrink: 0;
}

.page-footer .footer-right {
    font-weight: 700;
    color: var(--gold-primary);
}

/* --- EDITORIAL TYPOGRAPHY --- */
.kicker-tag {
    display: inline-block;
    font-family: var(--font-meta);
    font-size: 0.62rem;
    letter-spacing: 0.24em;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--gold-primary);
    margin-bottom: 6px;
}

.kicker-tag::after {
    content: '';
    display: block;
    width: 22px;
    height: 1px;
    background: var(--gold-primary);
    margin-top: 3px;
}

.page-title {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.page-subtitle {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 14px;
    border-left: 2px solid var(--gold-primary);
    padding-left: 10px;
}

/* Multi-column layout */
.columns-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    font-size: 0.76rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 12px;
    text-align: justify;
    hyphens: auto;
}

.columns-2 p {
    margin-bottom: 8px;
}

/* Classical Drop Cap */
.drop-cap {
    float: left;
    font-family: var(--font-serif);
    font-size: 2.8rem;
    line-height: 0.8;
    padding-top: 3px;
    padding-right: 6px;
    padding-bottom: 2px;
    color: var(--gold-primary);
    font-weight: 700;
}

/* --- EDITORIAL QUOTE STRIP --- */
.editorial-quote-strip {
    background: var(--bg-page-alt);
    border-left: 3px solid var(--gold-primary);
    padding: 10px 14px;
    margin: 10px 0;
    border-radius: 0 4px 4px 0;
}

.editorial-quote-strip p {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-style: italic;
    line-height: 1.35;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.editorial-quote-strip.gold-accent {
    background: linear-gradient(90deg, rgba(184, 144, 88, 0.12), transparent);
}

.quote-ref {
    display: block;
    font-family: var(--font-meta);
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    color: var(--gold-dark);
    text-transform: uppercase;
}

/* ==========================================================================
   PAGE 1: ULTRA-LUXURY COVER (PORTADA)
   ========================================================================== */
.page-cover {
    background: #000;
    position: relative;
}

.cover-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.cover-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.cover-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(10, 10, 12, 0.45) 0%,
        rgba(10, 10, 12, 0.05) 25%,
        rgba(10, 10, 12, 0.35) 60%,
        rgba(10, 10, 12, 0.92) 100%
    );
}

.cover-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px 32px 18px 32px;
    color: #ffffff;
}

.cover-header {
    text-align: center;
}

.cover-top-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-meta);
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    color: #e5e7eb;
    margin-bottom: 6px;
    background: rgba(15, 17, 21, 0.6);
    backdrop-filter: blur(8px);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: inline-flex;
}

.cover-top-meta .separator {
    color: var(--gold-primary);
}

.masthead-spacer {
    height: 100px; /* Space for the photo's printed NIKOLE title */
}

.masthead-tagline {
    font-family: var(--font-meta);
    font-size: 0.58rem;
    letter-spacing: 0.3em;
    color: var(--gold-light);
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.cover-body {
    margin-top: auto;
    margin-bottom: 14px;
}

.cover-main-headline-group {
    background: rgba(13, 15, 18, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(184, 144, 88, 0.35);
    padding: 16px 20px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.cover-kicker {
    font-family: var(--font-meta);
    font-size: 0.58rem;
    letter-spacing: 0.25em;
    color: var(--gold-primary);
    text-transform: uppercase;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.cover-main-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    line-height: 1.1;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.cover-lead {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    line-height: 1.35;
    color: #e5e7eb;
}

.cover-feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.cover-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: rgba(15, 17, 21, 0.65);
    backdrop-filter: blur(8px);
    padding: 8px 10px;
    border-radius: 4px;
    border-left: 2px solid var(--gold-primary);
}

.feature-num {
    font-family: var(--font-meta);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--gold-primary);
}

.feature-text strong {
    font-size: 0.7rem;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 2px;
    display: block;
}

.feature-text span {
    font-size: 0.62rem;
    color: #a0a4af;
    line-height: 1.25;
}

.cover-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 10px;
}

.barcode-container {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.barcode-bars {
    width: 130px;
    height: 20px;
    background: repeating-linear-gradient(
        90deg,
        #ffffff,
        #ffffff 2px,
        transparent 2px,
        transparent 4px,
        #ffffff 4px,
        #ffffff 5px,
        transparent 5px,
        transparent 8px
    );
}

.barcode-digits {
    font-family: monospace;
    font-size: 0.55rem;
    color: #d1d5db;
    letter-spacing: 0.1em;
}

.cover-footer-note {
    font-family: var(--font-meta);
    font-size: 0.55rem;
    letter-spacing: 0.16em;
    color: #9ca3af;
    text-align: right;
    max-width: 260px;
}

/* ==========================================================================
   PAGE 2: SUMARIO & CRÉDITOS
   ========================================================================== */
.toc-split-layout {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 20px;
    flex: 1;
}

.toc-heading, .colophon-heading {
    font-family: var(--font-meta);
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    color: var(--gold-primary);
    text-transform: uppercase;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-hairline);
    padding-bottom: 4px;
}

.toc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.toc-item {
    display: flex;
    align-items: baseline;
    gap: 6px;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 3px;
    transition: var(--transition-smooth);
}

.toc-item:hover {
    background: var(--bg-page-alt);
    transform: translateX(4px);
}

.toc-num {
    font-family: var(--font-meta);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--gold-primary);
    width: 18px;
}

.toc-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.toc-sec {
    font-family: var(--font-meta);
    font-size: 0.52rem;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.toc-name {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 230px;
}

.toc-dots {
    flex-grow: 1;
    border-bottom: 1px dotted var(--text-muted);
    margin: 0 4px;
    opacity: 0.35;
}

.toc-p {
    font-family: var(--font-meta);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--gold-primary);
}

.colophon-card {
    background: var(--bg-page-alt);
    border: 1px solid var(--border-subtle);
    padding: 14px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.credit-row {
    display: flex;
    flex-direction: column;
}

.credit-role {
    font-family: var(--font-meta);
    font-size: 0.55rem;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.credit-name {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-primary);
}

.colophon-divider {
    height: 1px;
    background: var(--border-hairline);
    margin: 4px 0;
}

.mission-statement h4 {
    font-family: var(--font-meta);
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    color: var(--gold-primary);
    margin-bottom: 3px;
}

.mission-statement p {
    font-size: 0.68rem;
    line-height: 1.45;
    color: var(--text-secondary);
}

.editorial-seal {
    text-align: center;
    border: 1px dashed var(--gold-primary);
    padding: 5px;
    border-radius: 3px;
}

.seal-text {
    font-family: var(--font-meta);
    font-size: 0.55rem;
    letter-spacing: 0.22em;
    color: var(--gold-primary);
    font-weight: 600;
}

/* ==========================================================================
   PAGE 3: CARTA DE LA DIRECCIÓN
   ========================================================================== */
.director-spread-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.3fr;
    gap: 20px;
    flex: 1;
}

.director-photo-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.director-image-frame {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    height: 340px;
}

.director-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.photo-caption-tag {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(15, 17, 21, 0.75);
    backdrop-filter: blur(8px);
    padding: 5px 10px;
    border-radius: 3px;
    border-left: 2px solid var(--gold-primary);
    color: #ffffff;
    display: flex;
    flex-direction: column;
}

.photo-caption-tag strong {
    font-family: var(--font-masthead);
    font-size: 0.78rem;
    letter-spacing: 0.15em;
}

.photo-caption-tag span {
    font-family: var(--font-meta);
    font-size: 0.58rem;
    color: var(--gold-light);
}

.quote-editorial-box {
    background: var(--bg-page-alt);
    border: 1px solid var(--border-hairline);
    padding: 12px 14px;
    border-radius: 4px;
}

.quote-mark {
    font-family: var(--font-serif);
    font-size: 2rem;
    line-height: 0.8;
    color: var(--gold-primary);
    display: block;
}

.quote-text {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-style: italic;
    line-height: 1.35;
    color: var(--text-primary);
    margin: 4px 0 6px 0;
}

.quote-author {
    font-family: var(--font-meta);
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    color: var(--gold-dark);
    text-transform: uppercase;
}

.editorial-body {
    font-size: 0.76rem;
    line-height: 1.6;
    color: var(--text-primary);
    text-align: justify;
}

.editorial-body p {
    margin-bottom: 8px;
}

.recuadro-gold-card {
    background: var(--bg-page-alt);
    border: 1px solid var(--border-hairline);
    padding: 12px 14px;
    border-radius: 4px;
    margin: 10px 0;
}

.recuadro-title {
    font-family: var(--font-meta);
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    color: var(--gold-primary);
    margin-bottom: 6px;
    text-transform: uppercase;
}

.recuadro-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.72rem;
    line-height: 1.4;
}

.recuadro-list li strong {
    color: var(--gold-primary);
}

.director-signature-block {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
}

.sig-name {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    font-style: italic;
}

.sig-title {
    font-family: var(--font-meta);
    font-size: 0.58rem;
    letter-spacing: 0.2em;
    color: var(--gold-primary);
}

/* ==========================================================================
   PAGE 4 & 5: INFOGRAPHICS & PROTOCOLS
   ========================================================================== */
.infographic-container {
    background: var(--bg-page-alt);
    border: 1px solid var(--border-hairline);
    border-radius: 4px;
    padding: 12px 14px;
    margin: 10px 0;
}

.infographic-header {
    margin-bottom: 8px;
}

.info-badge {
    font-family: var(--font-meta);
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    color: var(--gold-primary);
    text-transform: uppercase;
    font-weight: 700;
}

.info-title {
    font-family: var(--font-serif);
    font-size: 0.98rem;
    color: var(--text-primary);
    margin-top: 2px;
}

.infographic-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.info-card {
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.7rem;
    line-height: 1.35;
}

.card-tag {
    font-family: var(--font-meta);
    font-size: 0.52rem;
    letter-spacing: 0.15em;
    font-weight: 700;
}

.info-card-green .card-tag { color: #2e7d32; }
.info-card-amber .card-tag { color: #d97706; }
.info-card-red .card-tag { color: #dc2626; }

.info-card h5 {
    font-size: 0.74rem;
    color: var(--text-primary);
}

.card-action strong {
    color: var(--gold-primary);
}

/* Process steps on Page 5 */
.process-flow-container {
    background: var(--bg-page-alt);
    border: 1px solid var(--border-hairline);
    border-radius: 4px;
    padding: 12px 14px;
    margin: 10px 0;
}

.process-header {
    margin-bottom: 8px;
}

.process-title {
    font-family: var(--font-serif);
    font-size: 0.98rem;
    color: var(--text-primary);
}

.process-steps-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

.step-card {
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    padding: 8px 6px;
    border-radius: 4px;
    text-align: center;
}

.step-num {
    font-family: var(--font-meta);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gold-primary);
    margin-bottom: 2px;
}

.step-content h5 {
    font-size: 0.68rem;
    line-height: 1.25;
    margin-bottom: 2px;
    color: var(--text-primary);
}

.step-content p {
    font-size: 0.6rem;
    line-height: 1.3;
    color: var(--text-secondary);
}

/* ==========================================================================
   PAGE 6, 8, 10, 14: PHOTO BANNERS
   ========================================================================== */
.photo-banner-top {
    position: relative;
    height: 190px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: var(--card-shadow);
}

.editorial-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-caption-overlay {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(13, 15, 18, 0.75);
    backdrop-filter: blur(6px);
    padding: 3px 8px;
    border-radius: 2px;
    font-family: var(--font-meta);
    font-size: 0.52rem;
    letter-spacing: 0.2em;
    color: var(--gold-light);
}

/* Author desk spread on Page 8 */
.author-banner-spread {
    position: relative;
    height: 190px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: var(--card-shadow);
}

.author-desk-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.author-banner-text {
    position: absolute;
    bottom: 10px;
    left: 12px;
    background: rgba(13, 15, 18, 0.85);
    backdrop-filter: blur(8px);
    padding: 6px 12px;
    border-radius: 3px;
    border-left: 2px solid var(--gold-primary);
    color: #ffffff;
}

.desk-tag {
    font-family: var(--font-meta);
    font-size: 0.52rem;
    letter-spacing: 0.2em;
    color: var(--gold-light);
}

.author-banner-text h3 {
    font-family: var(--font-serif);
    font-size: 0.88rem;
    color: #ffffff;
}

/* Matrix Cards on Page 8 */
.matrix-card {
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    padding: 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    line-height: 1.4;
}

.matrix-card.matrix-featured {
    border-color: var(--gold-primary);
    box-shadow: 0 0 15px rgba(184, 144, 88, 0.15);
}

.matrix-level {
    font-family: var(--font-meta);
    font-size: 0.52rem;
    letter-spacing: 0.15em;
    color: var(--gold-primary);
    font-weight: 700;
}

.matrix-card h5 {
    font-size: 0.76rem;
    margin: 2px 0 4px 0;
    color: var(--text-primary);
}

/* Grid 2x2 on Page 7, 11 */
.infographic-grid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.rule-card, .repair-card {
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    padding: 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    line-height: 1.4;
}

.rule-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 3px;
}

.rule-icon, .repair-num {
    font-family: var(--font-meta);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--gold-primary);
}

.rule-header h5, .repair-card h5 {
    font-size: 0.75rem;
    color: var(--text-primary);
}

/* Timeline on Page 10 */
.timeline-infographic {
    background: var(--bg-page-alt);
    border: 1px solid var(--border-hairline);
    padding: 12px;
    border-radius: 4px;
    margin: 10px 0;
}

.timeline-acts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.act-card {
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    padding: 8px;
    border-radius: 4px;
    text-align: center;
}

.act-badge {
    font-family: var(--font-meta);
    font-size: 0.55rem;
    letter-spacing: 0.15em;
    color: var(--gold-primary);
    font-weight: 700;
}

.act-card h5 {
    font-size: 0.72rem;
    margin: 3px 0;
    color: var(--text-primary);
}

.act-card p {
    font-size: 0.62rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

/* Clean 3 Grid on Page 6, 13, 15 */
.grid-3-clean {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    font-size: 0.7rem;
    line-height: 1.4;
}

.clean-col strong {
    display: block;
    font-size: 0.72rem;
    color: var(--gold-primary);
    margin-bottom: 3px;
}

/* Phases Grid 4 on Page 12 */
.phases-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.phase-card {
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    padding: 8px 6px;
    border-radius: 4px;
    text-align: center;
}

.phase-badge {
    font-family: var(--font-meta);
    font-size: 0.55rem;
    letter-spacing: 0.15em;
    color: var(--gold-primary);
    font-weight: 700;
}

.phase-card h5 {
    font-size: 0.7rem;
    margin: 3px 0;
    color: var(--text-primary);
}

.phase-card p {
    font-size: 0.6rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

/* Rules box gold on Page 9 */
.rules-box-gold {
    background: var(--bg-page-alt);
    border: 1px solid var(--border-hairline);
    padding: 12px 14px;
    border-radius: 4px;
    margin: 10px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rules-box-title {
    font-family: var(--font-meta);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--gold-primary);
    text-transform: uppercase;
}

.rule-numbered-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.72rem;
    line-height: 1.4;
}

.rule-badge-num {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gold-primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-meta);
    font-size: 0.62rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ==========================================================================
   PAGE 16 & 17: CASOS COMENTADOS
   ========================================================================== */
.case-study-layout {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.case-narrative-box {
    background: var(--bg-page-alt);
    border-left: 3px solid var(--gold-primary);
    padding: 12px 16px;
    border-radius: 0 4px 4px 0;
}

.case-badge {
    font-family: var(--font-meta);
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    color: var(--gold-primary);
    font-weight: 700;
    margin-bottom: 3px;
}

.case-narrative-box h4 {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.case-context {
    font-size: 0.75rem;
    line-height: 1.6;
    color: var(--text-secondary);
    text-align: justify;
}

.case-analysis-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.analysis-card {
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    padding: 12px;
    border-radius: 4px;
}

.analysis-tag {
    font-family: var(--font-meta);
    font-size: 0.55rem;
    letter-spacing: 0.18em;
    color: var(--gold-primary);
    font-weight: 700;
    display: block;
    margin-bottom: 3px;
}

.analysis-card h5 {
    font-size: 0.78rem;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.analysis-card p {
    font-size: 0.7rem;
    line-height: 1.45;
    color: var(--text-secondary);
}

/* ==========================================================================
   PAGES 18 & 19: LA GUÍA DEL FILTRO (INTERACTIVE SCORECARD)
   ========================================================================== */
.filter-intro {
    font-size: 0.76rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-style: italic;
}

.filter-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

.filter-cards-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}

.test-card {
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    transition: var(--transition-smooth);
}

.test-card:hover {
    border-color: var(--gold-primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.test-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

.test-badge {
    font-family: var(--font-meta);
    font-size: 0.52rem;
    letter-spacing: 0.15em;
    color: var(--gold-primary);
    font-weight: 700;
}

.test-card h4 {
    font-size: 0.74rem;
    color: var(--text-primary);
    line-height: 1.25;
    font-weight: 600;
}

.custom-check-label {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    font-size: 0.6rem;
    color: var(--text-muted);
}

.interactive-test-checkbox {
    accent-color: var(--gold-primary);
    cursor: pointer;
    width: 14px;
    height: 14px;
}

.test-desc {
    font-size: 0.65rem;
    line-height: 1.35;
    color: var(--text-secondary);
}

.test-key {
    font-size: 0.6rem;
    color: var(--gold-primary);
    font-style: italic;
}

/* Scorecard Calculator Box on Page 19 */
.scorecard-calculator-box {
    background: var(--bg-page-alt);
    border: 1px solid var(--border-hairline);
    border-radius: 6px;
    padding: 12px 16px;
    margin-top: 8px;
}

.calc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-hairline);
    padding-bottom: 6px;
}

.calc-badge {
    font-family: var(--font-meta);
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    color: var(--gold-primary);
    font-weight: 700;
}

.calc-title-group h4 {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--text-primary);
}

.score-display {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.score-number {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold-primary);
    line-height: 1;
}

.score-total {
    font-family: var(--font-meta);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.rubric-bars-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.rubric-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 8px;
    border-radius: 4px;
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    font-size: 0.68rem;
    opacity: 0.6;
    transition: var(--transition-smooth);
}

.rubric-row.active {
    opacity: 1;
    border-color: var(--gold-primary);
    box-shadow: 0 4px 12px rgba(184, 144, 88, 0.2);
}

.rubric-badge-tag {
    font-family: var(--font-meta);
    font-size: 0.55rem;
    letter-spacing: 0.15em;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 2px;
    white-space: nowrap;
}

.rubric-badge-tag.high { background: rgba(46, 125, 50, 0.15); color: #2e7d32; }
.rubric-badge-tag.mid { background: rgba(217, 119, 6, 0.15); color: #d97706; }
.rubric-badge-tag.low { background: rgba(220, 38, 38, 0.15); color: #dc2626; }

/* ==========================================================================
   PAGES 20 & 21: MANIFIESTO Y PROTOCOLO 24H
   ========================================================================== */
.manifesto-intro-lead {
    font-size: 0.78rem;
    line-height: 1.55;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 12px;
    border-left: 2px solid var(--gold-primary);
    padding-left: 10px;
}

.manifesto-clauses-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.clause-card {
    background: var(--bg-page-alt);
    border: 1px solid var(--border-hairline);
    padding: 10px 12px;
    border-radius: 4px;
}

.clause-badge {
    font-family: var(--font-meta);
    font-size: 0.52rem;
    letter-spacing: 0.2em;
    color: var(--gold-primary);
    font-weight: 700;
}

.clause-header h5 {
    font-size: 0.75rem;
    color: var(--text-primary);
    margin: 2px 0 4px 0;
}

.clause-card p {
    font-size: 0.68rem;
    line-height: 1.4;
    color: var(--text-secondary);
}

/* Protocol 24 Hours on Page 21 */
.protocol-24h-container {
    background: var(--bg-page-alt);
    border: 1px solid var(--border-hairline);
    padding: 12px 14px;
    border-radius: 4px;
    margin: 12px 0;
}

.protocol-timeline-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-top: 8px;
}

.timeline-step-card {
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    padding: 8px 6px;
    border-radius: 4px;
    text-align: center;
}

.time-badge {
    font-family: var(--font-meta);
    font-size: 0.55rem;
    font-weight: 700;
    color: var(--gold-primary);
    background: rgba(184, 144, 88, 0.12);
    padding: 2px 4px;
    border-radius: 2px;
    display: inline-block;
    margin-bottom: 3px;
}

.timeline-step-card h5 {
    font-size: 0.7rem;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.timeline-step-card p {
    font-size: 0.6rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

/* ==========================================================================
   PAGE 22: LUXURY BACK COVER (CONTRAPORTADA)
   ========================================================================== */
.page-backcover {
    background: #0d0f12;
    position: relative;
}

.backcover-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.backcover-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
}

.backcover-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(10, 11, 14, 0.85) 0%,
        rgba(10, 11, 14, 0.6) 50%,
        rgba(10, 11, 14, 0.95) 100%
    );
}

.backcover-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 44px;
    color: #ffffff;
    text-align: center;
}

.backcover-header {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.crest-emblem {
    width: 44px;
    height: 44px;
    border: 1px solid var(--gold-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.crest-monogram {
    font-family: var(--font-masthead);
    font-size: 1.3rem;
    color: var(--gold-light);
    font-weight: 700;
}

.backcover-brand {
    font-family: var(--font-masthead);
    font-size: 2.2rem;
    letter-spacing: 0.25em;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.backcover-tagline {
    font-family: var(--font-meta);
    font-size: 0.58rem;
    letter-spacing: 0.3em;
    color: var(--gold-primary);
    text-transform: uppercase;
}

.backcover-quote-block {
    max-width: 400px;
    margin: 0 auto;
}

.closing-quote-mark {
    font-family: var(--font-serif);
    font-size: 3rem;
    color: var(--gold-primary);
    line-height: 0.8;
    display: block;
    margin-bottom: 4px;
}

.closing-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 8px;
}

.closing-quote {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--gold-light);
    font-style: italic;
    margin-bottom: 14px;
}

.closing-body-summary {
    font-size: 0.75rem;
    line-height: 1.55;
    color: #d1d5db;
}

.backcover-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 14px;
    text-align: left;
}

.backcover-colophon-text p {
    font-size: 0.58rem;
    color: #9ca3af;
    line-height: 1.4;
}

.backcover-barcode {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

/* ==========================================================================
   DRAWER: SUMARIO & ÍNDICE LATERAL
   ========================================================================== */
.toc-drawer {
    position: fixed;
    top: 0;
    left: -400px;
    width: 380px;
    height: 100vh;
    background: rgba(18, 20, 24, 0.96);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-right: 1px solid var(--border-hairline);
    z-index: 2000;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 10px 0 50px rgba(0, 0, 0, 0.7);
    color: #ffffff;
}

.toc-drawer.open {
    transform: translateX(400px);
}

.drawer-header {
    padding: 24px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.drawer-pre {
    font-family: var(--font-meta);
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    color: var(--gold-primary);
}

.drawer-title-group h3 {
    font-family: var(--font-masthead);
    font-size: 1.25rem;
    letter-spacing: 0.15em;
}

.drawer-close-btn {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.drawer-close-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

.toc-quick-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.drawer-toc-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border-left: 2px solid transparent;
}

.drawer-toc-item:hover, .drawer-toc-item.active {
    background: rgba(184, 144, 88, 0.15);
    border-left-color: var(--gold-primary);
}

.drawer-page-num {
    font-family: var(--font-meta);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gold-primary);
    width: 24px;
}

.drawer-item-info {
    display: flex;
    flex-direction: column;
}

.drawer-item-sec {
    font-family: var(--font-meta);
    font-size: 0.55rem;
    letter-spacing: 0.15em;
    color: #9ca3af;
    text-transform: uppercase;
}

.drawer-item-title {
    font-size: 0.78rem;
    color: #e5e7eb;
    line-height: 1.25;
}

.drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.drawer-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

/* --- BOTTOM SCRUBBER (THUMBNAIL STRIP) --- */
.bottom-scrubber {
    height: 48px;
    background: rgba(13, 15, 18, 0.9);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    padding: 0 20px;
    z-index: 999;
    flex-shrink: 0;
}

.scrubber-track {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
}

.scrubber-track::-webkit-scrollbar {
    height: 3px;
}

.scrubber-track::-webkit-scrollbar-thumb {
    background: rgba(184, 144, 88, 0.3);
    border-radius: 2px;
}

.scrub-pill {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #9ca3af;
    padding: 4px 10px;
    border-radius: 12px;
    font-family: var(--font-meta);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.scrub-pill:hover, .scrub-pill.active {
    background: var(--gold-primary);
    color: #0d0f12;
    font-weight: 600;
}

/* ==========================================================================
   PRINT STYLESHEET (@media print) - 22 MASTER PAGES READY FOR PDF / PRINT
   ========================================================================== */
@media print {
    @page {
        size: A4 portrait;
        margin: 0;
    }

    html, body {
        background: #ffffff !important;
        color: #000000 !important;
        height: auto !important;
        overflow: visible !important;
        font-size: 9.5pt;
    }

    /* Hide all web application chrome */
    .luxe-navbar,
    .toc-drawer,
    .drawer-backdrop,
    .bottom-scrubber,
    .nav-btn,
    .view-mode-group,
    .luxe-modal-overlay {
        display: none !important;
    }

    .magazine-viewport {
        padding: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
        display: block !important;
    }

    .magazine-spread-stage {
        display: block !important;
        transform: none !important;
    }

    /* Print every single page sequentially on full A4 sheets */
    .magazine-page {
        display: flex !important;
        flex-direction: column !important;
        width: 210mm !important;
        height: 297mm !important;
        page-break-after: always !important;
        break-after: page !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
        background: #ffffff !important;
        color: #000000 !important;
        border: none !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .page-inner {
        padding: 16mm 18mm !important;
        background: #ffffff !important;
        overflow: hidden !important;
    }

    .page-cover, .page-backcover {
        background: #000000 !important;
        color: #ffffff !important;
    }

    .columns-2 {
        column-gap: 8mm !important;
    }
}

/* ==========================================================================
   RESPONSIVE ADAPTATIONS
   ========================================================================== */
@media (max-width: 1199px) {
    :root {
        --page-width: 480px;
        --page-height: 740px;
    }

    .columns-2 {
        font-size: 0.72rem;
        gap: 14px;
    }

    .page-title {
        font-size: 1.4rem;
    }
}

@media (max-width: 991px) {
    .view-mode-group {
        display: none;
    }

    .magazine-page {
        width: 92vw;
        max-width: 580px;
        height: auto;
        min-height: 840px;
    }

    .columns-2 {
        grid-template-columns: 1fr;
    }

    .director-spread-grid {
        grid-template-columns: 1fr;
    }

    .director-image-frame {
        height: 260px;
    }

    .toc-split-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .luxe-navbar {
        padding: 0 14px;
    }

    .nav-logo {
        font-size: 1.1rem;
    }

    .btn-label, .nav-issue {
        display: none;
    }

    .page-inner {
        padding: 22px 18px;
    }

    .cover-main-title {
        font-size: 1.4rem;
    }

    .cover-feature-grid {
        grid-template-columns: 1fr;
    }

    .infographic-grid-3, .timeline-acts, .phases-grid-4, .process-steps-grid, .filter-cards-grid-3 {
        grid-template-columns: 1fr;
    }

    .filter-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   LUXURY VIP LEAD & PDF EXPORT MODAL
   Haute Couture Editorial Aesthetic & Glassmorphism
   ========================================================================== */
.luxe-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(4, 5, 8, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 20px;
}

.luxe-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.luxe-modal-card {
    position: relative;
    width: 100%;
    max-width: 520px;
    background: #0d0f15;
    border: 1px solid rgba(197, 160, 89, 0.5);
    border-radius: 12px;
    padding: 42px 36px 34px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85), 0 0 40px rgba(197, 160, 89, 0.22);
    transform: translateY(22px) scale(0.95);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    color: #f5f5f8;
}

.luxe-modal-overlay.active .luxe-modal-card {
    transform: translateY(0) scale(1);
}

.luxe-modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: transparent;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #9499a8;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.luxe-modal-close:hover {
    color: #ffffff;
    transform: rotate(90deg);
}

.luxe-modal-crest {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid var(--gold-primary);
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(197, 160, 89, 0.1);
    box-shadow: 0 0 16px rgba(197, 160, 89, 0.25);
}

.crest-monogram-sm {
    font-family: var(--font-masthead);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gold-primary);
    line-height: 1;
}

.luxe-modal-kicker {
    display: block;
    font-family: var(--font-meta);
    font-size: 0.68rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--gold-primary);
    margin-bottom: 12px;
    font-weight: 600;
}

.luxe-modal-title {
    font-family: var(--font-masthead);
    font-size: 1.6rem;
    color: #ffffff;
    margin-bottom: 14px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.luxe-modal-desc {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    line-height: 1.55;
    color: #a4abbc;
    margin-bottom: 26px;
}

.luxe-modal-desc strong {
    color: #ffffff;
    font-weight: 600;
}

.luxe-modal-form {
    display: flex;
    flex-direction: column;
}

.luxe-input-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.luxe-modal-input {
    width: 100%;
    height: 52px;
    padding: 0 18px;
    background: #06070a;
    border: 1px solid rgba(197, 160, 89, 0.4);
    border-radius: 6px;
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 0.96rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.luxe-modal-input:focus {
    border-color: var(--gold-primary);
    background: #0a0c12;
    box-shadow: 0 0 16px rgba(197, 160, 89, 0.35);
}

.luxe-modal-btn {
    width: 100%;
    height: 52px;
    background: var(--gold-gradient);
    border: none;
    border-radius: 6px;
    color: #07080a;
    font-family: var(--font-sans);
    font-size: 0.94rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.luxe-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(197, 160, 89, 0.45);
    filter: brightness(1.06);
}

.luxe-modal-btn:active {
    transform: translateY(0);
}

.luxe-modal-feedback {
    min-height: 24px;
    margin-top: 10px;
    font-size: 0.84rem;
    font-weight: 500;
    text-align: center;
}

.luxe-modal-feedback.error {
    color: #ff6b6b;
}

.luxe-modal-feedback.success {
    color: #51cf66;
    font-weight: 600;
}

.luxe-modal-footer {
    margin-top: 16px;
    font-size: 0.76rem;
    color: #798094;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

@media (max-width: 480px) {
    .luxe-modal-card {
        padding: 32px 20px 24px;
    }
    .luxe-modal-title {
        font-size: 1.35rem;
    }
}

