:root {
            --font-title: 'Cinzel', Georgia, serif;
            --font-spine-title: 'Cinzel', Georgia, serif;
            --font-serif: 'EB Garamond', Georgia, serif;
            --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
            --font-mono: 'JetBrains Mono', monospace;

            /* Tema Oscuro: Noches de San Petersburgo & Roble Ahumado */
            --bg-base: #0c0a09;
            --bg-surface: #14110f;
            --bg-card: #171311;
            --bg-card-hover: #1f1a16;
            --bg-input: #100d0b;
            
            --border-gold-subtle: rgba(212, 175, 55, 0.2);
            --border-gold-light: rgba(212, 175, 55, 0.4);
            --border-gold-bright: #d4af37;
            --border-sepia: rgba(180, 150, 120, 0.15);

            --gold-candle: #d4af37;
            --gold-bright: #f3d46d;
            --gold-glow: rgba(212, 175, 55, 0.18);
            
            --wax-crimson: #991b1b;
            --wax-crimson-bg: rgba(153, 27, 27, 0.18);

            --text-title: #f5efe6;
            --text-body: #c7b9ab;
            --text-muted: #857567;
            --text-gold: #d4af37;

            --nav-bg: rgba(12, 10, 9, 0.94);
            --shadow-candle: 0 10px 30px -5px rgba(0, 0, 0, 0.8), 0 0 20px rgba(212, 175, 55, 0.05);
            --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
            
            --radius-sm: 4px;
            --radius-md: 8px;
            --radius-lg: 12px;
        }

        [data-theme="manuscript"] {
            /* Tema Claro: Pergamino y Manuscrito */
            --bg-base: #f6f1e8;
            --bg-surface: #ece2d2;
            --bg-card: #ffffff;
            --bg-card-hover: #faf6f0;
            --bg-input: #f2e9dc;
            
            --border-gold-subtle: rgba(160, 115, 30, 0.22);
            --border-gold-light: rgba(160, 115, 30, 0.45);
            --border-gold-bright: #9a7322;
            --border-sepia: rgba(100, 70, 50, 0.16);

            --gold-candle: #9a7322;
            --gold-bright: #b88b2c;
            --gold-glow: rgba(154, 115, 34, 0.12);
            
            --wax-crimson: #881337;
            --wax-crimson-bg: rgba(136, 19, 55, 0.08);

            --text-title: #1c1917;
            --text-body: #44372e;
            --text-muted: #7c6d62;
            --text-gold: #8d6419;

            --nav-bg: rgba(246, 241, 232, 0.96);
            --shadow-candle: 0 10px 25px -5px rgba(100, 70, 50, 0.12), 0 0 15px rgba(160, 115, 30, 0.06);
            --shadow-card: 0 4px 15px rgba(100, 70, 50, 0.08);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            background-color: var(--bg-base);
            color: var(--text-body);
            font-family: var(--font-serif);
            font-size: 1.15rem;
            line-height: 1.8;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            transition: background-color 0.3s ease, color 0.3s ease;
            background-image: 
                radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.04) 0%, transparent 60%),
                linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
            background-size: 100% 100%, 40px 40px, 40px 40px;
        }

        /* TIPOGRAFÍA */
        h1, h2, h3, h4, h5, h6 {
            font-family: var(--font-title);
            color: var(--text-title);
            font-weight: 700;
            letter-spacing: 0.04em;
            line-height: 1.3;
        }

        a {
            color: var(--gold-candle);
            text-decoration: none;
            transition: color 0.2s ease;
        }

        a:hover {
            color: var(--gold-bright);
        }

        /* CONTENEDOR AMPLIO */
        .container {
            max-width: 1240px;
            margin: 0 auto;
            padding: 0 2rem;
            width: 100%;
        }

        .container-narrow {
            max-width: 1100px;
            margin: 0 auto;
            padding: 0 1.5rem;
            width: 100%;
        }

        /* CABECERA & LOGO */
        .masthead {
            position: sticky;
            top: 0;
            z-index: 100;
            background: var(--nav-bg);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-bottom: 1px solid var(--border-gold-subtle);
            padding: 1.1rem 0;
            transition: all 0.3s ease;
        }

        .masthead-inner {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
        }

        .brand-block {
            display: flex;
            align-items: center;
            gap: 0.85rem;
            text-decoration: none;
        }

        .brand-monogram {
            width: 42px;
            height: 42px;
            border: 1px solid var(--border-gold-light);
            border-radius: var(--radius-sm);
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: var(--font-title);
            font-size: 1.35rem;
            font-weight: 800;
            color: var(--gold-candle);
            background: var(--bg-surface);
            box-shadow: inset 0 0 10px var(--gold-glow);
            flex-shrink: 0;
        }

        .brand-title {
            font-size: 1.2rem;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: var(--text-title);
        }

        .brand-subtitle {
            font-family: var(--font-sans);
            font-size: 0.75rem;
            color: var(--text-muted);
            letter-spacing: 0.06em;
            text-transform: uppercase;
        }

        .nav-actions {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            flex-wrap: wrap;
        }

        .btn-action {
            font-family: var(--font-sans);
            font-size: 0.8rem;
            font-weight: 600;
            padding: 0.45rem 0.95rem;
            border-radius: var(--radius-sm);
            border: 1px solid var(--border-gold-subtle);
            background: var(--bg-surface);
            color: var(--text-title);
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            transition: all 0.2s ease;
            text-transform: uppercase;
            letter-spacing: 0.04em;
        }

        .btn-action:hover {
            border-color: var(--gold-candle);
            color: var(--gold-candle);
            box-shadow: 0 0 10px var(--gold-glow);
        }

        /* HERO EDITORIAL */
        .hero-section {
            padding: 4.5rem 0 2.5rem;
            text-align: center;
            border-bottom: 1px solid var(--border-sepia);
            position: relative;
        }

        .hero-overhead {
            font-family: var(--font-sans);
            font-size: 0.78rem;
            letter-spacing: 0.25em;
            text-transform: uppercase;
            color: var(--gold-candle);
            margin-bottom: 0.75rem;
            display: block;
        }

        .hero-title {
            font-size: clamp(2.4rem, 5.5vw, 3.8rem);
            margin-bottom: 0.85rem;
            font-weight: 800;
            line-height: 1.15;
            color: var(--text-title);
            letter-spacing: 0.08em;
        }

        .hero-subtitle {
            font-size: 1.25rem;
            font-style: italic;
            color: var(--text-muted);
            max-width: 720px;
            margin: 0 auto 1.5rem;
        }

        .hero-divider {
            width: 120px;
            height: 1px;
            background: linear-gradient(90deg, transparent, var(--border-gold-light), transparent);
            margin: 0 auto;
        }

        /* PROLEGÓMENO DE TOMOS Y MANIFIESTO */
        .manifesto-card,
        .prolegomeno-tomo-card {
            margin: 2.5rem 0 1.5rem;
            background: var(--bg-surface);
            border: 1px solid var(--border-gold-light);
            border-radius: var(--radius-md);
            padding: 2.75rem 2.5rem;
            position: relative;
            box-shadow: var(--shadow-candle);
            transition: opacity 0.2s ease, transform 0.2s ease;
        }

        .prolegomeno-tomo-card.fading {
            opacity: 0;
            transform: translateY(6px);
        }

        /* PLIEGO DEL PRÓLOGO DEL AUTOR */
        .prologo-drawer {
            margin: 1.5rem 0 2.5rem;
            animation: fadeInPrologo 0.3s ease forwards;
        }

        @keyframes fadeInPrologo {
            from { opacity: 0; transform: translateY(-8px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .prologo-card {
            background: var(--bg-card);
            border: 1px solid var(--border-gold-medium);
            padding: 3rem 2.75rem;
            border-radius: var(--radius-md);
            box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
        }

        .manifesto-card::before {
            content: '';
            position: absolute;
            top: 4px;
            left: 4px;
            right: 4px;
            bottom: 4px;
            border: 1px solid var(--border-gold-subtle);
            border-radius: calc(var(--radius-md) - 2px);
            pointer-events: none;
        }

        .card-seal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 1.75rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid var(--border-sepia);
            flex-wrap: wrap;
            gap: 1rem;
        }

        .seal-badge {
            font-family: var(--font-sans);
            font-size: 0.75rem;
            font-weight: 700;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            padding: 0.25rem 0.75rem;
            background: var(--wax-crimson-bg);
            border: 1px solid var(--wax-crimson);
            color: #ef4444;
            border-radius: var(--radius-sm);
        }

        [data-theme="manuscript"] .seal-badge {
            color: #991b1b;
        }

        .date-badge {
            font-family: var(--font-mono);
            font-size: 0.8rem;
            color: var(--text-muted);
        }

        .manifesto-title {
            font-size: 1.9rem;
            color: var(--gold-candle);
            margin-bottom: 1.25rem;
            letter-spacing: 0.08em;
        }

        .quote-main {
            font-size: 1.45rem;
            line-height: 1.75;
            font-style: italic;
            color: var(--text-title);
            margin-bottom: 2rem;
            position: relative;
        }

        .quote-dropcap {
            float: left;
            font-family: var(--font-title);
            font-size: 4rem;
            line-height: 0.85;
            padding-top: 0.25rem;
            padding-right: 0.75rem;
            padding-bottom: 0.1rem;
            color: var(--gold-candle);
            font-weight: 900;
        }

        .quote-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-top: 1px solid var(--border-sepia);
            padding-top: 1.25rem;
            flex-wrap: wrap;
            gap: 1rem;
        }

        .quote-author {
            font-family: var(--font-title);
            font-size: 1rem;
            color: var(--gold-candle);
            font-weight: 600;
            letter-spacing: 0.05em;
        }

        .quote-work {
            font-family: var(--font-serif);
            font-style: italic;
            color: var(--text-muted);
            font-size: 0.95rem;
        }

        /* =========================================================================
           ESTANTERÍA DE LIBROS REACTIVOS (5 TOMOS 3D MÁS ALTOS)
           ========================================================================= */
        .mobile-shelf-guide {
            display: none;
        }

        .bookshelf-section {
            margin: 2.5rem 0 3.5rem 0;
            perspective: 1400px;
        }

        .btn-shelf-toggle {
            display: inline-flex;
            align-items: center;
            gap: 0.65rem;
            padding: 0.5rem 1.4rem;
            background: linear-gradient(135deg, rgba(35, 26, 18, 0.95) 0%, rgba(20, 15, 10, 0.98) 100%);
            border: 1px solid var(--border-gold);
            color: var(--gold-candle);
            border-radius: 999px;
            font-family: var(--font-title);
            font-size: 0.74rem;
            font-weight: 600;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            cursor: pointer;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
            transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .btn-shelf-toggle:hover {
            background: linear-gradient(135deg, rgba(48, 35, 24, 0.98) 0%, rgba(28, 20, 14, 1) 100%);
            border-color: var(--gold-bright);
            color: #ffffff;
            box-shadow: 0 6px 22px rgba(0, 0, 0, 0.75), 0 0 16px rgba(212, 175, 55, 0.35);
            transform: translateY(-2px);
        }

        .btn-shelf-toggle .toggle-fleuron {
            color: var(--gold-bright);
            font-size: 0.85rem;
            line-height: 1;
        }

        .btn-shelf-toggle .toggle-chevron {
            font-size: 0.65rem;
            color: var(--gold-candle);
            transition: transform 0.25s ease;
            line-height: 1;
        }

        .active-tomo-banner {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.65rem;
            padding: 0.45rem 1.35rem;
            background: rgba(22, 16, 11, 0.88);
            border: 1px solid rgba(212, 175, 55, 0.32);
            border-radius: 999px;
            font-family: var(--font-title);
            font-size: 0.74rem;
            letter-spacing: 0.08em;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
        }

        .active-tomo-banner .active-tomo-label {
            opacity: 0.68;
            font-size: 0.68rem;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            color: var(--text-muted);
        }

        .active-tomo-banner .active-tomo-title {
            color: var(--gold-candle);
            font-weight: 700;
        }

                        /* ESTANTERÍA EN DOS NIVELES (ARRIBA Y ABAJO) - LIBROS DELGADOS Y ALTOS */
        .bookshelf-section {
            margin-bottom: 2.5rem;
            position: relative;
        }

        .bookshelf-bookcase {
            display: flex;
            flex-direction: column;
            gap: 2rem;
            transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
            overflow: visible;
        }

        .bookshelf-section.shelf-collapsed .bookshelf-bookcase {
            max-height: 0;
            opacity: 0;
            overflow: hidden;
            pointer-events: none;
            gap: 0;
        }

        .bookshelf-tier {
            display: flex;
            flex-direction: column;
            position: relative;
            align-items: center;
        }

        .bookshelf-grid {
            display: flex;
            justify-content: center;
            align-items: flex-end;
            gap: 1.15rem;
            position: relative;
            z-index: 10;
            padding: 0 1rem;
            width: 100%;
        }

        .tier-bottom {
            gap: 1.85rem;
        }

        #book-todos {
            width: 124px;
            flex: 0 0 124px;
            min-width: 124px;
            max-width: 124px;
        }

        .bookshelf-shelf {
            width: 100%;
            max-width: 880px;
        }

        .book-item {
            width: 112px;
            flex: 0 0 112px;
            min-width: 112px;
            max-width: 112px;
            transform-style: preserve-3d;
            transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
            cursor: pointer;
            position: relative;
        }

        .book-item:hover {
            transform: translateY(-26px) translateZ(30px) rotateX(3deg);
            filter: drop-shadow(0 25px 30px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 20px rgba(212, 175, 55, 0.28));
        }

        .book-item.selected {
            transform: translateY(-30px) translateZ(45px) scale(1.02);
            filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 28px rgba(212, 175, 55, 0.45));
        }

        .book-spine {
            border-radius: 4px 4px 0 0;
            padding: 1.25rem 0.42rem 0.95rem;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            box-shadow: inset -4px 0 15px rgba(0,0,0,0.65), inset 4px 0 10px rgba(255,255,255,0.08), 0 10px 30px rgba(0,0,0,0.7);
            position: relative;
            overflow: hidden;
            border-top: 1px solid rgba(212, 175, 55, 0.35);
            border-left: 3px solid rgba(255, 255, 255, 0.18);
            border-right: 2px solid rgba(0, 0, 0, 0.85);
            box-sizing: border-box;
        }

        /* LOMOS ALTOS Y ESBELTOS (415px a 445px - Ratio Clásico de Biblioteca) */
        .spine-vigilia {
            height: 415px;
            background: linear-gradient(90deg, #1b0c0c 0%, #3a1616 45%, #250d0d 100%);
        }
        .spine-ensayos {
            height: 440px;
            background: linear-gradient(90deg, #18110a 0%, #332212 45%, #1d140b 100%);
        }
        .spine-ecos {
            height: 425px;
            background: linear-gradient(90deg, #09160e 0%, #133020 45%, #0c1e14 100%);
        }
        .spine-obras {
            height: 435px;
            background: linear-gradient(90deg, #0d1527 0%, #1c2b4e 35%, #253966 50%, #1a2747 75%, #0b1220 100%);
            border-top: 1px solid rgba(253, 224, 71, 0.55);
            border-left: 3px solid rgba(254, 240, 138, 0.35);
        }
        .spine-lecturas {
            height: 420px;
            background: linear-gradient(90deg, #240c14 0%, #461426 45%, #2a0e19 100%);
        }
        .spine-scp {
            height: 445px;
            background: linear-gradient(90deg, #1b0707 0%, #3d1212 30%, #581818 50%, #380e0e 75%, #180505 100%);
            border-top: 1px solid rgba(248, 113, 113, 0.55);
            border-left: 3px solid rgba(254, 202, 202, 0.35);
        }
        .spine-botica {
            height: 425px;
            background: linear-gradient(90deg, #07170a 0%, #16381a 30%, #245027 50%, #143418 75%, #08170b 100%);
            border-top: 1px solid rgba(134, 239, 172, 0.45);
            border-left: 3px solid rgba(187, 247, 208, 0.28);
        }
        .spine-sistemas {
            height: 430px;
            background: linear-gradient(90deg, #09111c 0%, #13253d 45%, #0b1626 100%);
        }
        .spine-todos {
            height: 420px;
            background: linear-gradient(90deg, #150a22 0%, #2c1642 35%, #3d1f5c 50%, #29143e 75%, #13081e 100%);
            border-top: 1px solid rgba(192, 132, 252, 0.45);
            border-left: 3px solid rgba(216, 180, 254, 0.28);
        }

        /* Banner de Tomo Activo */
        

        /* =========================================================================
           RESPONSIVE MÓVIL (HASTA 768px) - PALABRAS COMPLETAS & HEADER LIBERADO
           ========================================================================= */
        @media (max-width: 768px) {
            /* 1. Header ligero y NO invasivo (se oculta al hacer scroll) */
            .masthead {
                position: relative !important;
                top: auto !important;
                padding: 0.55rem 0.85rem !important;
                background: rgba(14, 11, 8, 0.98) !important;
            }
            .masthead-inner {
                display: flex !important;
                flex-direction: row !important;
                justify-content: space-between !important;
                align-items: center !important;
                gap: 0.5rem !important;
            }
            .brand-block {
                gap: 0.5rem !important;
            }
            .brand-monogram {
                width: 32px !important;
                height: 32px !important;
                font-size: 1.05rem !important;
            }
            .brand-title {
                font-size: 0.92rem !important;
                letter-spacing: 0.06em !important;
                line-height: 1.1 !important;
            }
            .brand-subtitle {
                display: none !important; /* Despejar el encabezado móvil */
            }
            .nav-actions {
                display: flex !important;
                flex-direction: row !important;
                align-items: center !important;
                gap: 0.35rem !important;
                flex-wrap: nowrap !important;
            }
            .btn-action {
                font-size: 0.65rem !important;
                padding: 0.32rem 0.55rem !important;
                letter-spacing: 0.02em !important;
                border-radius: 4px !important;
                white-space: nowrap !important;
            }

            /* 2. Hero compacto */
            .hero-section {
                padding: 2.2rem 0 1.5rem !important;
            }
            .hero-title {
                font-size: 2.2rem !important;
            }
            .hero-subtitle {
                font-size: 1rem !important;
            }

            /* ==============================================================
               OPCIÓN A: CARRUSEL TÁCTIL EXCLUSIVO PARA TELÉFONOS (MÓVILES)
               ============================================================== */
            .bookshelf-section {
                margin: 1.25rem 0 1.85rem !important;
                position: relative !important;
            }

            /* El mueble se transforma en una hilera carrusel continua horizontal */
            .bookshelf-bookcase {
                display: flex !important;
                flex-direction: row !important;
                align-items: flex-end !important;
                gap: 0.95rem !important;
                overflow-x: auto !important;
                overflow-y: hidden !important;
                -webkit-overflow-scrolling: touch !important;
                scroll-snap-type: x mandatory !important;
                padding: 1.35rem 1.4rem 0.75rem 1.4rem !important;
                width: 100% !important;
                background: linear-gradient(180deg, rgba(0,0,0,0.12) 0%, rgba(18,14,10,0.4) 100%) !important;
                border-radius: 8px !important;
                box-shadow: inset 0 -6px 15px rgba(0,0,0,0.8), 0 8px 25px rgba(0,0,0,0.65) !important;
                border-bottom: 9px solid #321c10 !important; /* Estante corrido de madera oscura */
                scrollbar-width: thin !important;
                scrollbar-color: rgba(212, 175, 55, 0.45) transparent !important;
            }

            .bookshelf-bookcase::-webkit-scrollbar {
                height: 4px !important;
            }
            .bookshelf-bookcase::-webkit-scrollbar-thumb {
                background: rgba(212, 175, 55, 0.45) !important;
                border-radius: 4px !important;
            }

            /* Aplanar los estantes para que los 9 tomos desfilen en una sola hilera */
            .bookshelf-tier {
                display: contents !important;
            }
            .bookshelf-grid {
                display: contents !important;
            }
            .bookshelf-shelf {
                display: none !important;
            }

            /* Cada tomo en el carrusel móvil: ancho noble, holgado y cómodo */
            .book-item {
                width: 114px !important;
                flex: 0 0 114px !important;
                min-width: 114px !important;
                max-width: 114px !important;
                flex-shrink: 0 !important;
                scroll-snap-align: center !important;
                transform-origin: bottom center !important;
                transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.28s ease !important;
            }

            #book-todos {
                width: 124px !important;
                flex: 0 0 124px !important;
                min-width: 124px !important;
                max-width: 124px !important;
                flex-shrink: 0 !important;
                scroll-snap-align: center !important;
            }

            /* Alturas consistentes y proporcionadas para cada tomo en móvil */
            .spine-vigilia { height: 305px !important; }
            .spine-ensayos { height: 330px !important; }
            .spine-ecos { height: 315px !important; }
            .spine-obras { height: 325px !important; }
            .spine-lecturas { height: 310px !important; }
            .spine-scp { height: 335px !important; }
            .spine-botica { height: 315px !important; }
            .spine-sistemas { height: 320px !important; }
            .spine-todos { height: 305px !important; }

            /* Tomo seleccionado en el carrusel móvil: elevación con aura dorada */
            .book-item.selected {
                transform: translateY(-16px) scale(1.03) !important;
                filter: drop-shadow(0 20px 25px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 18px rgba(212, 175, 55, 0.45)) !important;
                z-index: 20 !important;
            }

            /* Rótulos del lomo en móvil: tipografía de calidad, espaciosa y sin recortes */
            .book-spine {
                padding: 1rem 0.45rem 0.85rem !important;
            }
            .book-title-box {
                padding: 0.65rem 0.25rem !important;
                margin: 0.35rem 0 !important;
            }
            .book-main-title {
                font-family: var(--font-spine-title) !important;
                font-size: 0.82rem !important;
                font-weight: 700 !important;
                color: var(--gold-candle) !important;
                letter-spacing: 0.04em !important;
                line-height: 1.18 !important;
                text-transform: uppercase !important;
                text-align: center !important;
                white-space: nowrap !important;
                word-break: keep-all !important;
                overflow-wrap: normal !important;
                hyphens: none !important;
                text-shadow: 0 1px 3px rgba(0,0,0,0.9) !important;
            }
            .title-obras {
                white-space: normal !important;
                display: flex !important;
                flex-direction: column !important;
                align-items: center !important;
                justify-content: center !important;
                line-height: 1.15 !important;
            }
            .title-obras .tomo-word-1 {
                font-size: 0.86rem !important;
                letter-spacing: 0.06em !important;
            }
            .title-obras .tomo-word-2 {
                font-size: 0.70rem !important;
                letter-spacing: 0.05em !important;
            }
            .title-scp {
                font-size: 0.86rem !important;
                letter-spacing: 0.05em !important;
                font-weight: 700 !important;
            }
            .title-scp-sub {
                font-size: 0.62rem !important;
                line-height: 1.15 !important;
            }
            .title-compendio {
                font-size: 0.76rem !important;
                letter-spacing: 0.02em !important;
            }
            .book-sub-title {
                font-family: var(--font-serif) !important;
                font-style: italic !important;
                font-size: 0.68rem !important;
                color: var(--text-muted) !important;
                margin-top: 0.25rem !important;
                line-height: 1.25 !important;
                text-align: center !important;
                word-break: keep-all !important;
                overflow-wrap: normal !important;
                hyphens: none !important;
            }
            .book-tomo-tag {
                font-size: 0.62rem !important;
                margin: 0.25rem 0 !important;
                white-space: nowrap !important;
                letter-spacing: 0.08em !important;
            }
            .book-author-tag {
                font-size: 0.55rem !important;
                letter-spacing: 0.06em !important;
                white-space: nowrap !important;
            }

            /* Indicador táctil de deslizamiento solo para teléfonos */
            .mobile-shelf-guide {
                display: flex !important;
                align-items: center !important;
                justify-content: center !important;
                gap: 0.6rem !important;
                font-family: var(--font-serif) !important;
                font-style: italic !important;
                font-size: 0.8rem !important;
                color: var(--gold-candle) !important;
                opacity: 0.85 !important;
                margin-top: 0.75rem !important;
                letter-spacing: 0.04em !important;
                animation: pulseGuide 2.5s infinite ease-in-out !important;
            }

            @keyframes pulseGuide {
                0%, 100% { opacity: 0.65; transform: scale(0.99); }
                50% { opacity: 1; transform: scale(1.01); color: var(--gold-bright); }
            }
        }

        



        /* TOMO VII: SCP - ESTILOS VISUALES & FICCIÓN */
        .scp-notice-banner {
            background: linear-gradient(135deg, rgba(153, 27, 27, 0.12) 0%, rgba(20, 17, 15, 0.85) 100%);
            border: 1px solid rgba(239, 68, 68, 0.35);
            border-left: 5px solid #dc2626;
            border-radius: var(--radius-sm);
            padding: 1.15rem 1.35rem;
            margin-bottom: 2rem;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
        }

        .scp-notice-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 0.5rem;
            flex-wrap: wrap;
            gap: 8px;
        }

        .scp-notice-title {
            font-family: var(--font-title);
            font-size: 0.95rem;
            color: #f87171;
            font-weight: 700;
            letter-spacing: 1px;
            text-transform: uppercase;
        }

        .scp-notice-body {
            font-size: 0.92rem;
            color: var(--text-body);
            line-height: 1.6;
            margin-bottom: 0.85rem;
        }

        .scp-subcat-nav {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
            border-top: 1px solid var(--border-sepia);
            padding-top: 0.85rem;
            margin-top: 0.5rem;
        }

        .scp-subcat-btn {
            background: var(--bg-surface);
            border: 1px solid var(--border-sepia);
            color: var(--text-muted);
            padding: 5px 12px;
            border-radius: var(--radius-sm);
            font-family: var(--font-sans);
            font-size: 0.78rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .scp-subcat-btn:hover {
            border-color: #f87171;
            color: #fca5a5;
            background: rgba(220, 38, 38, 0.1);
        }

        .scp-subcat-btn.active {
            background: rgba(220, 38, 38, 0.2);
            border-color: #ef4444;
            color: #fee2e2;
            font-weight: 700;
        }

        /* CARD SCP DE FICCIÓN */
        .card-scp {
            border-top: 3px solid #dc2626 !important;
            position: relative;
        }

        .scp-badge-class {
            font-family: var(--font-mono);
            font-size: 0.72rem;
            font-weight: 700;
            letter-spacing: 1px;
            padding: 3px 8px;
            border-radius: 3px;
            text-transform: uppercase;
            display: inline-block;
        }

        .badge-euclid {
            background: rgba(217, 119, 6, 0.18);
            border: 1px solid #d97706;
            color: #fbbf24;
        }

        .badge-keter {
            background: rgba(220, 38, 38, 0.2);
            border: 1px solid #dc2626;
            color: #f87171;
        }

        .badge-safe {
            background: rgba(22, 163, 74, 0.18);
            border: 1px solid #16a34a;
            color: #86efac;
        }

        .badge-lore {
            background: rgba(37, 99, 235, 0.18);
            border: 1px solid #2563eb;
            color: #93c5fd;
        }

        /* GALERÍA DE IMÁGENES DENTRO DE LA FICHA SCP */
        .scp-gallery-box {
            margin: 1.15rem 0;
            background: var(--bg-surface);
            border: 1px solid var(--border-sepia);
            border-radius: var(--radius-sm);
            padding: 0.75rem;
        }

        .scp-gallery-tabs {
            display: flex;
            gap: 5px;
            margin-bottom: 0.75rem;
            border-bottom: 1px solid var(--border-sepia);
            padding-bottom: 0.5rem;
            flex-wrap: wrap;
        }

        .scp-gallery-tab-btn {
            background: var(--bg-card);
            border: 1px solid var(--border-sepia);
            color: var(--text-muted);
            padding: 4px 10px;
            border-radius: var(--radius-sm);
            font-size: 0.75rem;
            font-family: var(--font-sans);
            cursor: pointer;
            transition: all 0.2s;
        }

        .scp-gallery-tab-btn.active {
            background: rgba(220, 38, 38, 0.18);
            border-color: #ef4444;
            color: #fca5a5;
            font-weight: 700;
        }

        .scp-gallery-view {
            text-align: center;
        }

        .scp-gallery-img {
            max-width: 100%;
            max-height: 400px;
            border-radius: 4px;
            border: 1px solid var(--border-sepia);
            box-shadow: 0 4px 15px rgba(0,0,0,0.5);
            margin: 0 auto 0.5rem;
            display: block;
        }

        .scp-gallery-caption {
            font-size: 0.8rem;
            color: var(--text-muted);
            font-style: italic;
        }

        

        .book-rib {
            height: 3px;
            background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(212,175,55,0.5) 50%, rgba(0,0,0,0.8) 100%);
            box-shadow: 0 1px 2px rgba(0,0,0,0.9);
            margin: 4px 0;
        }

        .book-tomo-tag {
            font-family: var(--font-title);
            font-size: 0.64rem;
            color: var(--gold-candle);
            letter-spacing: 0.08em;
            margin: 0.35rem 0;
            text-align: center;
            white-space: nowrap;
        }

        .book-title-box {
            background: rgba(0, 0, 0, 0.45);
            border: 1px solid var(--border-gold-subtle);
            padding: 0.75rem 0.25rem;
            border-radius: var(--radius-sm);
            text-align: center;
            box-shadow: inset 0 0 12px rgba(0,0,0,0.75);
            margin: 0.35rem 0;
        }

        .book-main-title {
            font-family: var(--font-spine-title);
            font-size: 0.72rem;
            font-weight: 700;
            color: var(--gold-bright);
            letter-spacing: 0.025em;
            line-height: 1.15;
            text-transform: uppercase;
            text-align: center;
            white-space: nowrap;
            word-break: keep-all;
            overflow-wrap: normal;
            hyphens: none;
        }

        .title-obras {
            white-space: normal !important;
            display: flex !important;
            flex-direction: column !important;
            align-items: center !important;
            justify-content: center !important;
            line-height: 1.12 !important;
        }

        .title-obras .tomo-word-1 {
            font-size: 0.82rem;
            letter-spacing: 0.08em;
            font-weight: 700;
        }

        .title-obras .tomo-word-2 {
            font-size: 0.64rem;
            letter-spacing: 0.06em;
            opacity: 0.95;
            font-weight: 600;
        }

        .title-scp {
            font-size: 0.74rem !important;
            letter-spacing: 0.06em !important;
            font-weight: 700 !important;
        }

        .title-scp-sub {
            font-size: 0.58rem !important;
            line-height: 1.2 !important;
            margin-top: 0.25rem !important;
        }

        .title-compendio {
            font-size: 0.68rem !important;
            letter-spacing: 0.03em !important;
        }

        .book-sub-title {
            font-family: var(--font-body);
            font-size: 0.64rem;
            color: var(--text-muted);
            margin-top: 0.3rem;
            line-height: 1.25;
            opacity: 0.85;
            text-align: center;
            word-break: keep-all;
            overflow-wrap: normal;
            hyphens: none;
        }

        .book-author-tag {
            font-family: var(--font-title);
            font-size: 0.58rem;
            color: rgba(212, 175, 55, 0.7);
            letter-spacing: 0.1em;
            text-transform: uppercase;
            text-align: center;
            white-space: nowrap;
        }

        .ribbon-bookmark {
            position: absolute;
            bottom: -14px;
            left: 50%;
            transform: translateX(-50%);
            width: 16px;
            height: 22px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.6);
            clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 75%, 0 100%);
            z-index: 5;
        }

        .ribbon-red { background: #991b1b; }
        .ribbon-gold { background: #d4af37; }
        .ribbon-emerald { background: #15803d; }
        .ribbon-burgundy { background: #881337; }
        .ribbon-blue { background: #0284c7; }
        .ribbon-purple { background: #9333ea; }
        .ribbon-botica { background: linear-gradient(180deg, #15803d 0%, #22c55e 100%); }

        .bookshelf-shelf {
            width: 100%;
            height: 26px;
            background: linear-gradient(180deg, #241a12 0%, #150f0a 60%, #0c0805 100%);
            border-top: 2px solid rgba(212, 175, 55, 0.3);
            border-bottom: 5px solid #070503;
            box-shadow: 0 18px 35px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255,255,255,0.05);
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 1.5rem;
            position: relative;
            z-index: 20;
            border-radius: 2px;
        }

        .bookshelf-shelf-label {
            font-family: var(--font-title);
            font-size: 0.68rem;
            color: rgba(180, 150, 120, 0.55);
            letter-spacing: 0.18em;
            text-transform: uppercase;
        }

        /* CONTROLS (BUSCADOR VINCULADO AL ESTANTE) */
        .feed-controls {
            margin: 2.5rem 0 2rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            flex-wrap: wrap;
        }

        .search-wrapper {
            flex: 1;
            min-width: 260px;
            position: relative;
        }

        .search-input {
            width: 100%;
            padding: 0.7rem 1.1rem;
            background: var(--bg-surface);
            border: 1px solid var(--border-gold-subtle);
            border-radius: var(--radius-sm);
            color: var(--text-title);
            font-family: var(--font-serif);
            font-size: 1.05rem;
            transition: all 0.2s ease;
        }

        .search-input:focus {
            outline: none;
            border-color: var(--gold-candle);
            box-shadow: 0 0 10px var(--gold-glow);
        }

        .search-input::placeholder {
            color: var(--text-muted);
            font-style: italic;
        }

        .active-filter-indicator {
            font-family: var(--font-mono);
            font-size: 0.8rem;
            color: var(--gold-candle);
            background: var(--bg-surface);
            border: 1px solid var(--border-gold-subtle);
            padding: 0.45rem 0.85rem;
            border-radius: var(--radius-sm);
        }

        /* FILTRO DE ORDEN (RECIENTES / ORDEN DE CARGA) */
        .sort-controls {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            background: var(--bg-surface);
            border: 1px solid var(--border-gold-subtle);
            padding: 0.25rem 0.45rem;
            border-radius: var(--radius-sm);
        }

        .sort-label {
            font-family: var(--font-title);
            font-size: 0.72rem;
            color: var(--text-muted);
            letter-spacing: 0.08em;
            text-transform: uppercase;
            padding: 0 0.35rem;
        }

        .btn-sort {
            background: transparent;
            border: 1px solid transparent;
            color: var(--text-muted);
            font-family: var(--font-mono);
            font-size: 0.75rem;
            padding: 0.25rem 0.65rem;
            border-radius: 3px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .btn-sort:hover {
            color: var(--gold-light);
            background: rgba(212, 175, 55, 0.08);
        }

        .btn-sort.active {
            background: rgba(212, 175, 55, 0.18);
            color: var(--gold-candle);
            border-color: rgba(212, 175, 55, 0.4);
            font-weight: 600;
            box-shadow: 0 0 8px rgba(212, 175, 55, 0.2);
        }

        /* SELECTOR DE CANTIDAD POR PÁGINA (PAGINACIÓN) */
        .per-page-controls {
            display: inline-flex;
            align-items: center;
            gap: 0.25rem;
            background: var(--bg-surface);
            border: 1px solid var(--border-gold-subtle);
            padding: 0.25rem 0.45rem;
            border-radius: var(--radius-sm);
        }

        .per-page-label {
            font-family: var(--font-title);
            font-size: 0.72rem;
            color: var(--text-muted);
            letter-spacing: 0.08em;
            text-transform: uppercase;
            padding: 0 0.35rem;
        }

        .btn-per-page {
            background: transparent;
            border: 1px solid transparent;
            color: var(--text-muted);
            font-family: var(--font-mono);
            font-size: 0.72rem;
            padding: 0.2rem 0.45rem;
            border-radius: 3px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .btn-per-page:hover {
            color: var(--gold-light);
            background: rgba(212, 175, 55, 0.08);
        }

        .btn-per-page.active {
            background: rgba(212, 175, 55, 0.18);
            color: var(--gold-candle);
            border-color: rgba(212, 175, 55, 0.4);
            font-weight: 600;
            box-shadow: 0 0 8px rgba(212, 175, 55, 0.2);
        }

        /* PAGINACIÓN INFERIOR (NAVEGACIÓN ENTRE PÁGINAS) */
        .pagination-container {
            margin: 2.5rem 0 3.5rem;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1rem;
            padding: 1.25rem 1.5rem;
            background: var(--bg-card);
            border: 1px solid var(--border-sepia);
            border-radius: var(--radius-sm);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
        }

        .pagination-info {
            font-family: var(--font-serif);
            font-style: italic;
            font-size: 0.92rem;
            color: var(--text-muted);
            letter-spacing: 0.02em;
        }

        .pagination-pages {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-wrap: wrap;
            gap: 0.4rem;
        }

        .btn-page-nav {
            background: var(--bg-surface);
            border: 1px solid var(--border-gold-subtle);
            color: var(--text-body);
            font-family: var(--font-mono);
            font-size: 0.8rem;
            padding: 0.35rem 0.75rem;
            border-radius: var(--radius-sm);
            cursor: pointer;
            transition: all 0.2s ease;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
        }

        .btn-page-nav:hover:not(:disabled) {
            color: var(--gold-candle);
            border-color: var(--gold-candle);
            background: rgba(212, 175, 55, 0.1);
            transform: translateY(-1px);
        }

        .btn-page-nav.active {
            background: rgba(212, 175, 55, 0.2);
            color: var(--gold-candle);
            border-color: var(--gold-candle);
            font-weight: 700;
            box-shadow: 0 0 10px rgba(212, 175, 55, 0.25);
        }

        .btn-page-nav:disabled {
            opacity: 0.35;
            cursor: not-allowed;
            border-color: transparent;
        }

        .pagination-ellipsis {
            color: var(--text-muted);
            font-family: var(--font-mono);
            padding: 0 0.3rem;
            user-select: none;
        }

        /* GRID DE ENTRADAS DEL BLOG & SISTEMAS */
        .entries-grid {
            display: flex;
            flex-direction: column;
            gap: 2rem;
            margin-bottom: 4rem;
        }

        /* SUBSECCIONES */
        .subsection-header {
            margin: 2.5rem 0 1rem;
            padding-bottom: 0.75rem;
            border-bottom: 1px solid var(--border-gold-subtle);
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 0.5rem;
        }

        .subsection-title {
            font-family: var(--font-title);
            font-size: 1.25rem;
            color: var(--gold-candle);
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }

        .subsection-desc {
            font-family: var(--font-serif);
            font-style: italic;
            font-size: 0.95rem;
            color: var(--text-muted);
        }

        .thought-card {
            background: var(--bg-card);
            border: 1px solid var(--border-sepia);
            border-radius: var(--radius-md);
            padding: 2.5rem;
            transition: all 0.25s ease;
            position: relative;
            box-shadow: var(--shadow-card);
        }

        .thought-card:hover {
            border-color: var(--border-gold-subtle);
            background: var(--bg-card-hover);
            transform: translateY(-2px);
            box-shadow: var(--shadow-candle);
        }

        .thought-meta {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 1.25rem;
            flex-wrap: wrap;
            gap: 0.5rem;
        }

        .thought-tag {
            font-family: var(--font-sans);
            font-size: 0.72rem;
            font-weight: 700;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            color: var(--gold-candle);
            background: rgba(212, 175, 55, 0.08);
            border: 1px solid var(--border-gold-subtle);
            padding: 0.2rem 0.65rem;
            border-radius: var(--radius-sm);
        }

        .thought-tag.tag-sistemas {
            color: #38bdf8;
            border-color: rgba(56, 189, 248, 0.35);
            background: rgba(56, 189, 248, 0.08);
        }

        .thought-date {
            font-family: var(--font-mono);
            font-size: 0.8rem;
            color: var(--text-muted);
        }

        .thought-heading {
            font-size: 1.55rem;
            margin-bottom: 1rem;
            color: var(--text-title);
        }

        .thought-body {
            font-size: 1.15rem;
            line-height: 1.8;
            color: var(--text-body);
            margin-bottom: 1.5rem;
            white-space: pre-line;
        }

        .thought-citation {
            font-style: italic;
            color: var(--text-muted);
            border-left: 2px solid var(--gold-candle);
            padding-left: 1rem;
            margin: 1.25rem 0;
            font-size: 1.05rem;
        }

        /* FICHAS DE SOFTWARE & SISTEMAS */
        .system-tech-pills {
            display: flex;
            flex-wrap: wrap;
            gap: 0.45rem;
            margin: 1.1rem 0 1.35rem;
        }

        .tech-pill {
            font-family: var(--font-mono);
            font-size: 0.75rem;
            color: var(--text-title);
            background: var(--bg-surface);
            border: 1px solid var(--border-sepia);
            padding: 0.25rem 0.6rem;
            border-radius: var(--radius-sm);
        }

        .system-link-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            font-family: var(--font-sans);
            font-size: 0.8rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            color: var(--gold-candle);
            border: 1px solid var(--border-gold-subtle);
            padding: 0.45rem 0.95rem;
            border-radius: var(--radius-sm);
            background: var(--bg-surface);
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .system-link-btn:hover {
            border-color: var(--gold-candle);
            background: var(--gold-candle);
            color: #0c0a09;
            box-shadow: 0 0 12px var(--gold-glow);
        }

        /* =========================================================================
           SECCIÓN DE LECTURAS, CARTEL DEL LECTOR & COLA DE ESPERA
           ========================================================================= */
        .reading-notice-banner {
            background: var(--bg-surface);
            border: 1px solid var(--border-gold-light);
            border-radius: var(--radius-sm);
            padding: 1.5rem 1.75rem;
            margin-bottom: 2rem;
            position: relative;
            box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.45), var(--shadow-card);
            border-left: 4px solid var(--gold-candle);
            animation: fadeIn 0.3s ease;
        }

        .reading-notice-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 0.65rem;
            flex-wrap: wrap;
            gap: 0.5rem;
        }

        .reading-notice-title {
            font-family: var(--font-title);
            font-size: 0.88rem;
            color: var(--gold-candle);
            text-transform: uppercase;
            letter-spacing: 0.12em;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-weight: 700;
        }

        .reading-notice-body {
            font-family: var(--font-serif);
            font-size: 1.05rem;
            line-height: 1.75;
            color: var(--text-body);
            font-style: italic;
        }

        /* FICHA DE LECTURA */
        .card-reading {
            border-left: 3px solid var(--border-gold-light);
        }

        .reading-header-box {
            display: flex;
            align-items: flex-start;
            gap: 1.25rem;
            margin-bottom: 1.25rem;
        }

        .reading-book-art {
            width: 50px;
            height: 68px;
            border-radius: var(--radius-sm);
            background: linear-gradient(135deg, #1f140e 0%, #3a2216 100%);
            border: 1px solid var(--border-gold-light);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
            font-size: 1.35rem;
        }

        .reading-header-info {
            flex: 1;
        }

        .reading-badge-fav {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            font-family: var(--font-title);
            font-size: 0.72rem;
            font-weight: 700;
            color: #f3d46d;
            background: rgba(212, 175, 55, 0.15);
            border: 1px solid rgba(212, 175, 55, 0.55);
            padding: 0.25rem 0.65rem;
            border-radius: var(--radius-sm);
            letter-spacing: 0.08em;
            text-transform: uppercase;
            margin-bottom: 0.5rem;
        }

        .reading-edition-tag {
            display: inline-block;
            font-family: var(--font-mono);
            font-size: 0.76rem;
            color: var(--gold-candle);
            background: var(--bg-surface);
            border: 1px solid var(--border-sepia);
            padding: 0.2rem 0.55rem;
            border-radius: var(--radius-sm);
            margin-top: 0.25rem;
        }

        /* COLA DE LECTURA (DESEANDO LEER) */
        .reading-queue-section {
            margin: 3.5rem 0 2rem;
            padding-top: 2rem;
            border-top: 1px solid var(--border-gold-subtle);
        }

        .queue-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
            gap: 1.25rem;
            margin-top: 1.5rem;
        }

        .queue-card {
            background: var(--bg-card);
            border: 1px solid var(--border-sepia);
            border-radius: var(--radius-sm);
            padding: 1.25rem;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            transition: all 0.25s ease;
            box-shadow: var(--shadow-card);
        }

        .queue-card:hover {
            background: var(--bg-card-hover);
            border-color: var(--border-gold-light);
            transform: translateY(-2px);
            box-shadow: var(--shadow-candle);
        }

        .queue-card-title {
            font-family: var(--font-title);
            font-size: 0.98rem;
            color: var(--text-title);
            font-weight: 700;
            margin-bottom: 0.25rem;
        }

        .queue-card-author {
            font-family: var(--font-serif);
            font-size: 0.92rem;
            color: var(--gold-candle);
            font-style: italic;
            margin-bottom: 0.85rem;
        }

        .queue-status-pill {
            font-family: var(--font-mono);
            font-size: 0.7rem;
            color: var(--text-muted);
            background: var(--bg-surface);
            border: 1px dashed var(--border-sepia);
            padding: 0.2rem 0.55rem;
            border-radius: var(--radius-sm);
            align-self: flex-start;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        /* =========================================================================
           BOTICA & HERBARIO DE SIMPLES (TOMO VI) - MONOGRAFÍAS BOTÁNICAS
           ========================================================================= */
        .card-botica {
            border-left: 3px solid #3b6b47 !important;
            background: var(--bg-card);
        }

        .botica-monograph-header {
            margin-bottom: 1.25rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid var(--border-gold-subtle);
        }

        .botica-scientific-name {
            font-family: var(--font-serif);
            font-style: italic;
            font-size: 1.15rem;
            color: var(--gold-candle);
            letter-spacing: 0.03em;
            margin-bottom: 0.75rem;
        }

        .botica-specs-table {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 0.4rem 1.5rem;
            background: var(--bg-surface);
            border: 1px solid var(--border-sepia);
            border-radius: var(--radius-sm);
            padding: 0.75rem 1rem;
            font-size: 0.88rem;
            font-family: var(--font-serif);
        }

        @media (max-width: 680px) {
            .botica-specs-table {
                grid-template-columns: 1fr;
            }
        }

        .botica-spec-row {
            display: flex;
            align-items: baseline;
            gap: 0.4rem;
            line-height: 1.45;
        }

        .botica-spec-label {
            font-family: var(--font-title);
            font-size: 0.72rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--gold-candle);
            flex-shrink: 0;
        }

        .botica-spec-val {
            color: var(--text-body);
        }

        .botica-section-block {
            margin-bottom: 1.2rem;
        }

        .botica-section-subtitle {
            font-family: var(--font-title);
            font-size: 0.78rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--gold-candle);
            margin-bottom: 0.35rem;
            font-weight: 700;
        }

        .botica-warning-box {
            padding: 0.75rem 1rem;
            background: rgba(180, 100, 30, 0.08);
            border-left: 3px solid #b45309;
            border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
            color: var(--text-body);
            font-style: italic;
            margin-top: 1rem;
        }

        [data-theme="manuscript"] .botica-warning-box {
            background: rgba(180, 100, 30, 0.1);
            color: #78350f;
            border-left-color: #92400e;
        }

        /* BOTICA: PLIEGO FOTOGRÁFICO & LÁMINA BOTÁNICA */
        .botica-photo-frame {
            margin: 1.15rem 0 1.35rem 0;
            background: var(--bg-surface);
            border: 1px solid var(--border-sepia);
            border-radius: var(--radius-sm);
            padding: 0.75rem;
            box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.35);
            position: relative;
        }

        .botica-photo-inner {
            position: relative;
            overflow: hidden;
            border-radius: calc(var(--radius-sm) - 2px);
            background: #080605;
            cursor: pointer;
            border: 1px solid rgba(212, 175, 55, 0.25);
            max-height: 420px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .botica-photo-img {
            width: 100%;
            height: auto;
            max-height: 420px;
            object-fit: cover;
            display: block;
            transition: transform 0.4s ease, filter 0.3s ease;
            filter: contrast(1.02) sepia(0.06);
        }

        .botica-photo-inner:hover .botica-photo-img {
            transform: scale(1.02);
            filter: contrast(1.06) sepia(0);
        }

        .botica-photo-zoom-hint {
            position: absolute;
            bottom: 0.6rem;
            right: 0.6rem;
            background: rgba(18, 14, 11, 0.88);
            backdrop-filter: blur(4px);
            border: 1px solid var(--border-gold-subtle);
            color: var(--gold-candle);
            font-family: var(--font-title);
            font-size: 0.7rem;
            letter-spacing: 0.06em;
            padding: 0.25rem 0.65rem;
            border-radius: var(--radius-sm);
            pointer-events: none;
            opacity: 0.85;
            transition: opacity 0.2s ease;
        }

        .botica-photo-inner:hover .botica-photo-zoom-hint {
            opacity: 1;
        }

        .botica-photo-caption {
            font-family: var(--font-serif);
            font-style: italic;
            font-size: 0.88rem;
            color: var(--text-muted);
            line-height: 1.5;
            margin-top: 0.65rem;
            padding: 0 0.25rem;
            display: flex;
            align-items: baseline;
            gap: 0.35rem;
            flex-wrap: wrap;
        }

        .botica-photo-caption strong {
            font-family: var(--font-title);
            font-style: normal;
            font-size: 0.72rem;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            color: var(--gold-candle);
        }

        /* Espacio reservado para fotografía de huerto */
        .botica-photo-slot-pending {
            margin: 1rem 0 1.25rem 0;
            padding: 0.75rem 1rem;
            border: 1px dashed var(--border-sepia);
            border-radius: var(--radius-sm);
            background: rgba(212, 175, 55, 0.02);
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 0.5rem;
            transition: all 0.2s ease;
        }

        .botica-photo-slot-pending:hover {
            border-color: rgba(212, 175, 55, 0.4);
            background: rgba(212, 175, 55, 0.04);
        }

        .botica-pending-label {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            font-family: var(--font-mono);
            font-size: 0.74rem;
            color: var(--text-body);
            letter-spacing: 0.02em;
        }

        .botica-pending-icon {
            opacity: 0.75;
            font-size: 0.9rem;
        }

        .botica-pending-note {
            font-family: var(--font-serif);
            font-style: italic;
            font-size: 0.82rem;
            color: var(--gold-candle);
            opacity: 0.85;
        }

        /* Lightbox para ampliar fotografía botánica */
        .botica-lightbox-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(6, 4, 3, 0.92);
            backdrop-filter: blur(8px);
            z-index: 3000;
            align-items: center;
            justify-content: center;
            padding: 1.5rem;
            box-sizing: border-box;
        }

        .botica-lightbox-overlay.active {
            display: flex;
            animation: fadeIn 0.2s ease;
        }

        .botica-lightbox-container {
            max-width: 880px;
            width: 100%;
            max-height: 90vh;
            background: var(--bg-card);
            border: 1px solid var(--border-gold-light);
            border-radius: var(--radius-md);
            padding: 1.25rem;
            display: flex;
            flex-direction: column;
            position: relative;
            box-shadow: 0 15px 50px rgba(0, 0, 0, 0.9);
            box-sizing: border-box;
        }

        .botica-lightbox-img {
            max-width: 100%;
            max-height: 68vh;
            object-fit: contain;
            margin: 0 auto;
            border-radius: var(--radius-sm);
            border: 1px solid var(--border-sepia);
            background: #000;
        }

        .botica-lightbox-meta {
            margin-top: 0.85rem;
            padding-top: 0.65rem;
            border-top: 1px solid var(--border-sepia);
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 0.5rem;
        }

        .botica-lightbox-caption {
            font-family: var(--font-serif);
            font-style: italic;
            font-size: 0.95rem;
            color: var(--text-title);
        }

        .botica-lightbox-close {
            background: transparent;
            border: 1px solid var(--border-sepia);
            color: var(--gold-candle);
            cursor: pointer;
            padding: 0.35rem 0.85rem;
            border-radius: var(--radius-sm);
            font-family: var(--font-mono);
            font-size: 0.78rem;
            transition: all 0.2s ease;
        }

        .botica-lightbox-close:hover {
            background: var(--bg-surface);
            border-color: var(--gold-candle);
        }

        /* BOTICA: FICHA BOTÁNICA EN PESTAÑAS (COMPACTA) */
        .botica-ficha-nav {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin: 1.25rem 0 1rem;
            padding-bottom: 0.75rem;
            border-bottom: 1px solid var(--border-gold-subtle);
        }

        .botica-ficha-tabs {
            display: flex;
            align-items: center;
            gap: 0.35rem;
            flex-wrap: wrap;
        }

        .botica-tab-btn {
            background: var(--bg-surface);
            border: 1px solid var(--border-sepia);
            color: var(--text-muted);
            font-family: var(--font-title);
            font-size: 0.72rem;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            padding: 0.35rem 0.75rem;
            border-radius: var(--radius-sm);
            cursor: pointer;
            transition: all 0.2s ease;
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
        }

        .botica-tab-btn:hover {
            color: #86efac;
            border-color: rgba(34, 197, 94, 0.4);
            background: rgba(34, 197, 94, 0.08);
        }

        .botica-tab-btn.active {
            background: rgba(34, 197, 94, 0.16);
            color: #86efac;
            border-color: #3b6b47;
            font-weight: 700;
            box-shadow: 0 0 8px rgba(34, 197, 94, 0.2);
        }

        .btn-botica-full-folio {
            background: transparent;
            border: 1px dashed var(--border-sepia);
            color: var(--text-muted);
            font-family: var(--font-mono);
            font-size: 0.72rem;
            padding: 0.3rem 0.65rem;
            border-radius: var(--radius-sm);
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .btn-botica-full-folio:hover,
        .btn-botica-full-folio.active {
            color: var(--gold-candle);
            border-color: var(--gold-candle);
            background: rgba(212, 175, 55, 0.08);
        }

        .botica-tab-panels {
            margin-top: 1rem;
        }

        .botica-tab-panel {
            display: none;
            animation: fadeInFicha 0.25s ease-out;
        }

        .botica-tab-panel.active {
            display: block;
        }

        /* Cuando está en modo Full Folio, se despliegan todos los paneles */
        .card-botica.full-folio .botica-tab-panel {
            display: block !important;
            margin-bottom: 1.25rem;
            padding-bottom: 1.25rem;
            border-bottom: 1px dashed rgba(212, 175, 55, 0.15);
        }

        .card-botica.full-folio .botica-tab-panel:last-child {
            border-bottom: none;
            margin-bottom: 0;
            padding-bottom: 0;
        }

        @keyframes fadeInFicha {
            from { opacity: 0; transform: translateY(4px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* BOTICA: ESTADO VACÍO ATMOSFÉRICO */
        .botica-empty-state {
            padding: 3rem 2rem;
            text-align: center;
            background: var(--bg-card);
            border: 1px solid var(--border-gold-subtle);
            border-left: 4px solid #3b6b47;
            border-radius: var(--radius-sm);
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
            margin: 2rem 0;
        }

        .botica-empty-icon {
            font-size: 2.2rem;
            margin-bottom: 1rem;
            display: block;
            opacity: 0.85;
            color: #86efac;
        }

        .botica-empty-title {
            font-family: var(--font-title);
            font-size: 1.25rem;
            letter-spacing: 0.1em;
            color: var(--gold-candle);
            text-transform: uppercase;
            margin-bottom: 0.75rem;
        }

        .botica-empty-text {
            font-family: var(--font-serif);
            font-style: italic;
            font-size: 1.05rem;
            color: var(--text-body);
            line-height: 1.7;
            max-width: 640px;
            margin: 0 auto 1.5rem;
        }

        .botica-empty-hint {
            font-family: var(--font-mono);
            font-size: 0.75rem;
            color: var(--text-muted);
            letter-spacing: 0.05em;
        }

        /* MODAL DE SOLICITUD DE ACCESO */
        .modal-backdrop {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(8, 6, 5, 0.85);
            backdrop-filter: blur(5px);
            z-index: 2000;
            align-items: center;
            justify-content: center;
            padding: 1.5rem;
        }

        .modal-backdrop.active {
            display: flex;
            animation: fadeIn 0.25s ease;
        }

        .modal-access-card {
            background: var(--bg-card);
            border: 1px solid var(--border-gold-light);
            border-radius: var(--radius-md);
            padding: 2.25rem;
            box-shadow: var(--shadow-candle);
            position: relative;
            max-width: 600px;
            width: 100%;
            animation: modalSlide 0.3s ease;
            box-sizing: border-box;
        }

        @keyframes modalSlide {
            from { opacity: 0; transform: translateY(-12px) scale(0.98); }
            to { opacity: 1; transform: translateY(0) scale(1); }
        }

        .modal-access-card::before {
            content: '';
            position: absolute;
            top: 4px;
            left: 4px;
            right: 4px;
            bottom: 4px;
            border: 1px solid var(--border-gold-subtle);
            border-radius: calc(var(--radius-md) - 2px);
            pointer-events: none;
        }

        .modal-form-group {
            margin-bottom: 1.25rem;
            text-align: left;
        }

        .modal-label {
            display: block;
            font-family: var(--font-title);
            font-size: 0.78rem;
            color: var(--gold-candle);
            letter-spacing: 0.08em;
            text-transform: uppercase;
            margin-bottom: 0.45rem;
        }

        .modal-input, .modal-textarea {
            width: 100%;
            background: var(--bg-input);
            border: 1px solid var(--border-sepia);
            border-radius: var(--radius-sm);
            color: var(--text-title);
            font-family: var(--font-sans);
            font-size: 0.92rem;
            padding: 0.75rem 0.95rem;
            outline: none;
            transition: all 0.2s ease;
            box-sizing: border-box;
        }

        .modal-input:focus, .modal-textarea:focus {
            border-color: var(--gold-candle);
            box-shadow: 0 0 10px var(--gold-glow);
        }

        .modal-textarea {
            min-height: 110px;
            resize: vertical;
            font-family: var(--font-serif);
            font-size: 1.05rem;
            line-height: 1.6;
        }

        .modal-actions-bar {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 0.75rem;
            margin-top: 1.5rem;
            border-top: 1px solid var(--border-sepia);
            padding-top: 1.25rem;
            flex-wrap: wrap;
        }

        .thought-card-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-top: 1px solid var(--border-sepia);
            padding-top: 1rem;
            flex-wrap: wrap;
            gap: 0.5rem;
        }

        .thought-author-tag {
            font-family: var(--font-title);
            font-size: 0.9rem;
            color: var(--text-muted);
        }

        .thought-actions {
            display: flex;
            align-items: center;
            gap: 0.6rem;
        }

        .thought-variant-tag {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            font-family: var(--font-mono);
            font-size: 0.72rem;
            color: var(--gold-bright);
            background: rgba(212, 175, 55, 0.08);
            border: 1px solid var(--border-gold-subtle);
            padding: 0.25rem 0.6rem;
            border-radius: var(--radius-sm);
            margin-bottom: 0.85rem;
            transition: all 0.2s ease;
        }

        .btn-card-action {
            background: transparent;
            border: none;
            color: var(--text-muted);
            font-family: var(--font-sans);
            font-size: 0.75rem;
            cursor: pointer;
            padding: 0.25rem 0.5rem;
            border-radius: var(--radius-sm);
            transition: all 0.2s ease;
        }

        .btn-card-action:hover {
            color: var(--gold-candle);
            background: var(--bg-surface);
        }

        /* BOTÓN Y CONTENEDOR DE NOTAS DEL AUTOR / EXÉGESIS */
        .btn-author-note {
            display: inline-flex !important;
            align-items: center;
            gap: 0.35rem;
            color: var(--gold-candle) !important;
            border: 1px solid var(--border-gold-subtle) !important;
            background: rgba(212, 175, 55, 0.08) !important;
            padding: 0.25rem 0.65rem !important;
            font-family: var(--font-title);
            font-size: 0.72rem;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            border-radius: var(--radius-sm);
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .btn-author-note:hover {
            background: rgba(212, 175, 55, 0.18) !important;
            border-color: var(--gold-candle) !important;
            color: #fff !important;
            box-shadow: 0 0 10px rgba(212, 175, 55, 0.25);
        }

        .author-note-container {
            margin-top: 1.5rem;
            margin-bottom: 1rem;
            background: linear-gradient(145deg, rgba(28, 22, 16, 0.96) 0%, rgba(18, 14, 11, 0.98) 100%);
            border: 1px solid var(--border-gold-subtle);
            border-left: 3px solid var(--gold-candle);
            border-radius: var(--radius-sm);
            padding: 1.5rem 1.75rem;
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
            animation: fadeInNote 0.25s ease-out;
        }

        @keyframes fadeInNote {
            from { opacity: 0; transform: translateY(-4px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .author-note-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding-bottom: 0.75rem;
            margin-bottom: 1rem;
            border-bottom: 1px solid rgba(197, 160, 89, 0.2);
        }

        .author-note-tag {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-family: var(--font-title);
            font-size: 0.82rem;
            font-weight: 700;
            color: var(--gold-candle);
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }

        .author-note-close-btn {
            background: transparent;
            border: none;
            color: var(--text-muted);
            font-family: var(--font-mono);
            font-size: 0.75rem;
            cursor: pointer;
            padding: 0.2rem 0.5rem;
            border-radius: var(--radius-sm);
            transition: color 0.2s;
        }

        .author-note-close-btn:hover {
            color: var(--gold-light);
        }

        .author-note-content {
            font-family: var(--font-serif);
            font-size: 1.05rem;
            line-height: 1.8;
            color: #d6cfc7;
        }

        .author-note-p {
            margin-bottom: 1rem;
        }

        .author-note-p strong, .author-note-content strong {
            color: var(--gold-light);
            font-weight: 600;
        }

        .author-note-subheading {
            font-family: var(--font-title);
            color: var(--gold-candle);
            font-size: 0.98rem;
            margin-top: 1.25rem;
            margin-bottom: 0.5rem;
            letter-spacing: 0.05em;
        }

        .author-note-list {
            margin: 0.5rem 0 1rem 1.5rem;
            padding: 0;
            list-style-type: disc;
        }

        .author-note-list li {
            margin-bottom: 0.4rem;
            color: #c9c0b5;
        }

        .author-note-list li::marker {
            color: var(--gold-candle);
        }

        .author-note-spacer {
            height: 0.5rem;
        }

        .author-note-footer {
            margin-top: 1.25rem;
            padding-top: 0.75rem;
            border-top: 1px dashed rgba(197, 160, 89, 0.15);
            display: flex;
            justify-content: flex-end;
            font-family: var(--font-title);
            font-size: 0.72rem;
            color: var(--text-muted);
            letter-spacing: 0.1em;
        }

        /* RESALTADO TIPO MARCADOR PARA CITAS Y NOTAS ANCLADAS */
        .note-highlight-marker {
            background: rgba(245, 158, 11, 0.28);
            color: #fef08a;
            border-bottom: 2px solid #f59e0b;
            border-radius: 2px;
            padding: 0.08em 0.3em;
            margin: 0 0.05em;
            cursor: pointer;
            font-weight: 500;
            transition: all 0.2s ease;
            box-decoration-break: clone;
            -webkit-box-decoration-break: clone;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
        }

        .note-highlight-marker:hover {
            background: rgba(245, 158, 11, 0.48);
            color: #ffffff;
            border-bottom-color: #fbbf24;
            box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
        }

        .note-highlight-marker.active-highlight {
            background: rgba(245, 158, 11, 0.7);
            color: #ffffff;
            border-bottom-color: #fef08a;
            box-shadow: 0 0 14px rgba(245, 158, 11, 0.65);
        }

        .note-item-card {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(197, 160, 89, 0.2);
            border-left: 3px solid var(--gold-candle);
            border-radius: var(--radius-sm);
            padding: 0.9rem 1.1rem;
            margin-bottom: 0.85rem;
            cursor: pointer;
            transition: all 0.25s ease;
        }

        .note-item-card:hover, .note-item-card.active-note-pulse {
            background: rgba(212, 175, 55, 0.08);
            border-left-color: #fef08a;
            box-shadow: 0 0 12px rgba(212, 175, 55, 0.2);
            transform: translateY(-1px);
        }

        .note-item-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 0.4rem;
            gap: 0.5rem;
        }

        .note-item-phrase {
            font-family: var(--font-serif);
            font-style: italic;
            font-weight: 600;
            color: #fef08a;
            font-size: 0.96rem;
        }

        .note-item-badge {
            font-family: var(--font-mono);
            font-size: 0.7rem;
            background: rgba(245, 158, 11, 0.18);
            color: #f59e0b;
            border: 1px solid rgba(245, 158, 11, 0.35);
            padding: 0.1rem 0.4rem;
            border-radius: 3px;
            white-space: nowrap;
        }

        .note-item-text {
            font-family: var(--font-serif);
            font-size: 0.98rem;
            line-height: 1.7;
            color: #d6cfc7;
        }

        .btn-variant-toggle {
            color: var(--gold-candle);
            font-family: var(--font-sans);
            font-weight: 600;
            border: 1px solid var(--border-gold-subtle);
            background: rgba(212, 175, 55, 0.06);
            padding: 0.25rem 0.65rem;
            border-radius: var(--radius-sm);
            transition: all 0.2s ease;
        }

        .btn-variant-toggle:hover {
            color: #0c0a09;
            background: var(--gold-candle);
            border-color: var(--gold-candle);
            box-shadow: 0 0 10px var(--gold-glow);
        }

        /* EMPTY STATE */
        .empty-state {
            text-align: center;
            padding: 4rem 1.5rem;
            background: var(--bg-surface);
            border: 1px dashed var(--border-sepia);
            border-radius: var(--radius-md);
            color: var(--text-muted);
        }

        .empty-state p {
            font-style: italic;
            margin-bottom: 1rem;
        }

        /* FOOTER & PLIEGO DESPLEGABLE DEL AUTOR (OPCIÓN 3) */
        .footer-site {
            margin-top: auto;
            border-top: 1px solid var(--border-sepia);
            padding: 3rem 0;
            text-align: center;
            background: var(--bg-surface);
        }

        .footer-colophon {
            font-family: var(--font-mono);
            font-size: 0.75rem;
            color: var(--text-muted);
            letter-spacing: 0.1em;
            text-transform: uppercase;
            margin-bottom: 0.85rem;
        }

        .footer-author-link-box {
            margin-top: 0.5rem;
        }

        .footer-author-btn {
            background: transparent;
            border: none;
            color: var(--gold-candle);
            font-family: var(--font-title);
            font-size: 0.82rem;
            letter-spacing: 0.08em;
            cursor: pointer;
            padding: 0.35rem 0.75rem;
            transition: all 0.2s ease;
            text-decoration: underline;
            text-underline-offset: 4px;
        }

        .footer-author-btn:hover {
            color: var(--gold-bright);
            text-shadow: 0 0 8px var(--gold-glow);
        }

        .author-drawer {
            display: none;
            margin-top: 2rem;
            animation: fadeIn 0.3s ease;
            text-align: left;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(-8px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .author-drawer-card {
            background: var(--bg-card);
            border: 1px solid var(--border-gold-light);
            border-radius: var(--radius-md);
            padding: 2.5rem;
            box-shadow: var(--shadow-candle);
            position: relative;
            max-width: 900px;
            margin: 0 auto;
        }

        .author-drawer-card::before {
            content: '';
            position: absolute;
            top: 4px;
            left: 4px;
            right: 4px;
            bottom: 4px;
            border: 1px solid var(--border-gold-subtle);
            border-radius: calc(var(--radius-md) - 2px);
            pointer-events: none;
        }

        .drawer-seal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-bottom: 1px solid var(--border-sepia);
            padding-bottom: 0.85rem;
            margin-bottom: 1.5rem;
        }

        .drawer-name {
            font-size: 1.6rem;
            color: var(--gold-candle);
            letter-spacing: 0.06em;
            margin-bottom: 0.2rem;
        }

        .drawer-title {
            font-family: var(--font-sans);
            font-size: 0.85rem;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.08em;
            margin-bottom: 1.25rem;
        }

        .drawer-body {
            font-size: 1.1rem;
            line-height: 1.75;
            color: var(--text-body);
            margin-bottom: 1.75rem;
        }

        .cv-meta-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 0.75rem 1.25rem;
            background: var(--bg-surface);
            border: 1px solid var(--border-sepia);
            border-radius: var(--radius-sm);
            padding: 1rem 1.25rem;
            margin-bottom: 1.75rem;
        }

        .cv-meta-item {
            font-family: var(--font-sans);
            font-size: 0.85rem;
            color: var(--text-body);
        }

        .cv-meta-label {
            font-family: var(--font-title);
            font-size: 0.72rem;
            color: var(--gold-candle);
            text-transform: uppercase;
            letter-spacing: 0.08em;
            display: block;
            margin-bottom: 0.2rem;
        }

        .cv-section-title {
            font-family: var(--font-title);
            font-size: 0.95rem;
            color: var(--gold-candle);
            text-transform: uppercase;
            letter-spacing: 0.1em;
            margin: 1.75rem 0 1rem;
            border-bottom: 1px solid var(--border-sepia);
            padding-bottom: 0.4rem;
        }

        .cv-timeline {
            display: flex;
            flex-direction: column;
            gap: 1.25rem;
            margin-bottom: 1.75rem;
        }

        .cv-item {
            position: relative;
            padding-left: 1.25rem;
            border-left: 2px solid var(--border-gold-light);
        }

        .cv-item-header {
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            flex-wrap: wrap;
            gap: 0.4rem;
            margin-bottom: 0.35rem;
        }

        .cv-item-title {
            font-family: var(--font-title);
            font-size: 1rem;
            color: var(--text-title);
            font-weight: 700;
        }

        .cv-item-company {
            font-family: var(--font-sans);
            font-size: 0.85rem;
            color: var(--gold-candle);
            font-weight: 600;
        }

        .cv-item-date {
            font-family: var(--font-mono);
            font-size: 0.78rem;
            color: var(--text-muted);
        }

        .cv-item-tasks {
            font-family: var(--font-serif);
            font-size: 1.02rem;
            line-height: 1.6;
            color: var(--text-body);
            margin: 0;
            padding-left: 1.1rem;
        }

        .cv-item-tasks li {
            margin-bottom: 0.25rem;
        }

        .drawer-skills-section {
            border-top: 1px solid var(--border-sepia);
            padding-top: 1.25rem;
            margin-bottom: 1.5rem;
        }

        .drawer-skills-title {
            font-family: var(--font-title);
            font-size: 0.85rem;
            color: var(--gold-candle);
            text-transform: uppercase;
            letter-spacing: 0.1em;
            margin-bottom: 0.75rem;
            text-align: center;
        }

        .drawer-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-top: 1px solid var(--border-sepia);
            padding-top: 1rem;
            flex-wrap: wrap;
            gap: 0.5rem;
        }

        .drawer-footer-note {
            font-family: var(--font-mono);
            font-size: 0.75rem;
            color: var(--text-muted);
        }

        /* TOAST NOTIFICATION */
        .toast-msg {
            position: fixed;
            bottom: 2rem;
            right: 2rem;
            background: var(--bg-card);
            border: 1px solid var(--gold-candle);
            color: var(--text-title);
            padding: 0.85rem 1.25rem;
            border-radius: var(--radius-sm);
            font-family: var(--font-sans);
            font-size: 0.85rem;
            box-shadow: var(--shadow-candle);
            transform: translateY(100px);
            opacity: 0;
            transition: all 0.3s ease;
            z-index: 1000;
        }

        .toast-msg.show {
            transform: translateY(0);
            opacity: 1;
        }

                /* BOTÓN VOLVER ARRIBA ANIMADO */
        .btn-scroll-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            z-index: 99999;
            display: inline-flex;
            align-items: center;
            gap: 0.45rem;
            padding: 0.65rem 1.15rem;
            background: linear-gradient(135deg, rgba(28, 22, 16, 0.96) 0%, rgba(18, 14, 10, 0.98) 100%);
            border: 1px solid var(--border-gold);
            color: var(--gold-candle);
            border-radius: 999px;
            font-family: var(--font-title);
            font-size: 0.76rem;
            letter-spacing: 0.12em;
            cursor: pointer;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.65), 0 0 15px rgba(212, 175, 55, 0.2);
            transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
            opacity: 0;
            pointer-events: none;
            transform: translateY(16px);
        }

        .btn-scroll-top .btn-scroll-label {
            display: inline-block;
        }

        .btn-scroll-top:hover {
            background: var(--bg-card-hover);
            border-color: var(--border-gold-bright);
            color: var(--gold-bright);
            transform: translateY(-3px) scale(1.03);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7), 0 0 16px var(--gold-glow);
        }

        .btn-scroll-top:active {
            transform: translateY(0);
        }

        .btn-scroll-top.visible {
            opacity: 1;
            visibility: visible;
            transform: translateY(0) scale(1);
        }

        .btn-scroll-top svg {
            width: 17px;
            height: 17px;
            stroke: currentColor;
            stroke-width: 2.4;
            fill: none;
            stroke-linecap: round;
            stroke-linejoin: round;
            transition: transform 0.2s ease;
        }

        .btn-scroll-top:hover svg {
            animation: bounceUpIcon 0.6s infinite alternate ease-in-out;
        }

        @keyframes bounceUpIcon {
            from { transform: translateY(0); }
            to { transform: translateY(-4px); }
        }

/* COMPENDIO DESKTOP: Rótulo holgado y ancho superior para palabra completa */
        #book-todos {
            width: 124px !important;
            flex: 0 0 124px !important;
            min-width: 124px !important;
            max-width: 124px !important;
        }
        #book-todos .book-title-box {
            padding: 0.75rem 0.35rem !important;
        }
        #book-todos .book-main-title {
            font-size: 0.70rem !important;
            letter-spacing: 0.02em !important;
            white-space: nowrap !important;
            overflow: visible !important;
            display: block !important;
        }


/* ========================================================== */
/* TOMO IV: PORTADA 3D INTERACTIVA & LIBRO DE AUTOR            */
/* ========================================================== */
.book-cover-showcase {
    margin: 2rem 0;
    perspective: 1200px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.book-card-wrapper {
    width: 100%;
    max-width: 820px;
    position: relative;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* 1. PORTADA CERRADA (VISTA FRONTAL) */
.book-front-display {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    background: linear-gradient(145deg, #2a1b12 0%, #160e0a 100%);
    border: 3px solid rgba(212, 175, 55, 0.6);
    border-radius: 6px 14px 14px 6px;
    box-shadow: -10px 0 25px rgba(0,0,0,0.8), 0 20px 45px rgba(0,0,0,0.9), inset 2px 0 5px rgba(255,255,255,0.1), inset -3px 0 10px rgba(0,0,0,0.8);
    padding: 2.2rem 1.8rem;
    position: relative;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    text-align: center;
    overflow: hidden;
}

.book-front-display:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: -15px 0 35px rgba(0,0,0,0.9), 0 28px 55px rgba(0,0,0,0.95), 0 0 25px rgba(212, 175, 55, 0.35);
    border-color: var(--gold-bright);
}

.book-front-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 22px;
    background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(212,175,55,0.3) 50%, rgba(0,0,0,0.65) 100%);
    border-right: 1px solid rgba(212, 175, 55, 0.4);
    box-shadow: inset 1px 0 3px rgba(255,255,255,0.15);
}

.cover-inner-border {
    border: 1px solid rgba(212, 175, 55, 0.4);
    outline: 1px dashed rgba(212, 175, 55, 0.25);
    outline-offset: 4px;
    padding: 1.8rem 1rem;
    position: relative;
}

.cover-fleuron-corner {
    position: absolute;
    color: var(--gold-candle);
    font-size: 0.95rem;
    line-height: 1;
}
.cover-fleuron-tl { top: -8px; left: -8px; }
.cover-fleuron-tr { top: -8px; right: -8px; }
.cover-fleuron-bl { bottom: -8px; left: -8px; }
.cover-fleuron-br { bottom: -8px; right: -8px; }

.cover-edition-badge {
    display: inline-block;
    font-family: var(--font-title);
    font-size: 0.65rem;
    color: var(--gold-candle);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    padding: 0.25rem 0.65rem;
    border-top: 1px solid rgba(212, 175, 55, 0.35);
    border-bottom: 1px solid rgba(212, 175, 55, 0.35);
}

.cover-main-title {
    font-family: var(--font-title);
    font-size: 1.65rem;
    font-weight: 800;
    color: #fef08a;
    line-height: 1.25;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,0.9), 0 0 15px rgba(212, 175, 55, 0.3);
    margin-bottom: 0.85rem;
}

.cover-divider-flourish {
    color: var(--gold-candle);
    font-size: 0.9rem;
    margin: 0.85rem 0;
    opacity: 0.85;
}

.cover-author-name {
    font-family: var(--font-title);
    font-size: 0.95rem;
    color: #ffffff;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.cover-sub-label {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.6rem;
}

.cover-click-prompt {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.5);
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-family: var(--font-title);
    font-size: 0.74rem;
    color: var(--gold-bright);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    animation: pulseCoverBtn 2.2s infinite ease-in-out;
}

@keyframes pulseCoverBtn {
    0%, 100% { box-shadow: 0 0 0 rgba(212, 175, 55, 0); }
    50% { box-shadow: 0 0 15px rgba(212, 175, 55, 0.4); border-color: var(--gold-bright); }
}

/* 2. LIBRO ABIERTO (DOBLE PÁGINA) */
.book-open-spread {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #171310;
    border: 2px solid rgba(212, 175, 55, 0.45);
    border-radius: 8px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(212, 175, 55, 0.15);
    overflow: hidden;
    position: relative;
    animation: openBookFlip 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes openBookFlip {
    0% { opacity: 0; transform: rotateY(-18deg) scale(0.96); }
    100% { opacity: 1; transform: rotateY(0) scale(1); }
}

.book-open-spread::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 28px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.15) 30%, rgba(255,255,255,0.06) 50%, rgba(0,0,0,0.15) 70%, rgba(0,0,0,0.6) 100%);
    z-index: 5;
    pointer-events: none;
}

.book-page-half {
    padding: 2.2rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: radial-gradient(circle at 50% 50%, #1e1915 0%, #14100d 100%);
}

.book-page-left {
    border-right: 1px solid rgba(0, 0, 0, 0.8);
}

.book-page-right {
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.page-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
    padding-bottom: 0.65rem;
    margin-bottom: 1.25rem;
}

.page-seal-tag {
    font-family: var(--font-title);
    font-size: 0.68rem;
    color: var(--gold-candle);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.btn-close-spread {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.35);
    color: var(--text-muted);
    font-family: var(--font-title);
    font-size: 0.7rem;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-close-spread:hover {
    color: #ffffff;
    background: rgba(220, 38, 38, 0.25);
    border-color: #ef4444;
}

.page-work-title {
    font-family: var(--font-title);
    font-size: 1.45rem;
    color: #fef08a;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.4rem;
}

.page-work-meta {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.page-work-summary {
    font-family: var(--font-serif);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-body);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.btn-reader-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25) 0%, rgba(180, 140, 35, 0.15) 100%);
    border: 1px solid var(--gold-candle);
    color: #fef08a;
    padding: 0.85rem 1.4rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-title);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: all 0.25s ease;
    cursor: pointer;
}

.btn-reader-primary:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.4) 0%, rgba(243, 212, 109, 0.25) 100%);
    color: #ffffff;
    border-color: var(--gold-bright);
    box-shadow: 0 6px 22px rgba(212, 175, 55, 0.35);
    transform: translateY(-2px);
}

/* Lista de capítulos en la página derecha */
.toc-list-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    flex-grow: 1;
    margin-bottom: 1rem;
}

.toc-row-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.85rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.2s ease;
}

.toc-row-card:hover {
    background: rgba(212, 175, 55, 0.12);
    border-color: var(--gold-candle);
    transform: translateX(4px);
}

.toc-row-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toc-roman {
    font-family: var(--font-title);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold-candle);
    min-width: 24px;
}

.toc-ch-title {
    font-family: var(--font-title);
    font-size: 0.82rem;
    color: var(--text-title);
    display: block;
}

.toc-ch-badge {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
}

.toc-row-action {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--gold-bright);
    white-space: nowrap;
}

.toc-row-upcoming {
    opacity: 0.65;
    background: rgba(0, 0, 0, 0.15);
    border-style: dashed;
}

@media (max-width: 768px) {
    .book-open-spread {
        grid-template-columns: 1fr;
    }
    .book-open-spread::before {
        display: none;
    }
    .book-page-left {
        border-right: none;
        border-bottom: 1px solid rgba(212, 175, 55, 0.25);
    }
    .book-page-half {
        padding: 1.5rem 1.15rem;
    }
}


/* ==============================================================
   LECTOR DE NOVELA INTEGRADO EN EL LIBRO (EN PÁGINA)
   ============================================================== */
.book-chapter-reader-view {
    background: #14100d;
    border: 2px solid rgba(212, 175, 55, 0.45);
    border-radius: 8px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(212, 175, 55, 0.15);
    overflow: hidden;
    animation: openBookFlip 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.book-reader-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.4rem;
    background: #1c1713;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    flex-wrap: wrap;
}

.book-reader-toolbar-left,
.book-reader-toolbar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.book-reader-ch-info {
    font-family: var(--font-title);
    font-size: 0.95rem;
    color: #fef08a;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.novel-btn-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.35);
    color: #fef08a;
    font-family: var(--font-title);
    font-size: 0.76rem;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.novel-btn-nav:hover {
    background: rgba(212, 175, 55, 0.25);
    border-color: var(--gold-bright);
    color: #ffffff;
    transform: translateY(-1px);
}

.novel-btn-nav.active {
    background: var(--gold-candle);
    color: #12100e;
    font-weight: 700;
}

.book-chapter-body-container {
    padding: 3rem 2.5rem;
    max-width: 860px;
    margin: 0 auto;
    background: radial-gradient(circle at 50% 30%, #1e1915 0%, #14100d 100%);
}

.book-chapter-body-container.font-sm {
    font-size: 0.98rem;
    line-height: 1.75;
}

.book-chapter-body-container.font-md {
    font-size: 1.12rem;
    line-height: 1.88;
}

.book-chapter-body-container.font-lg {
    font-size: 1.25rem;
    line-height: 1.95;
}

.novel-ch-header {
    text-align: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
    padding-bottom: 1.8rem;
    margin-bottom: 2.2rem;
}

.novel-part-badge {
    display: inline-block;
    font-family: var(--font-title);
    font-size: 0.75rem;
    color: var(--gold-candle);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.novel-chapter-title {
    font-family: var(--font-title);
    font-size: 1.75rem;
    font-weight: 800;
    color: #fef08a;
    line-height: 1.3;
    margin-bottom: 0.6rem;
    letter-spacing: 0.02em;
}

.novel-chapter-meta {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.novel-text-content {
    font-family: 'Merriweather', 'Georgia', serif;
    color: #e5ded4;
    text-align: justify;
}

.novel-text-content p {
    margin-bottom: 1.25rem;
    text-indent: 1.5rem;
}

.novel-text-content p.lead-paragraph {
    text-indent: 0;
}

.novel-text-content p.lead-paragraph::first-letter {
    float: left;
    font-family: var(--font-title);
    font-size: 3.6rem;
    line-height: 0.82;
    padding-top: 4px;
    padding-right: 10px;
    padding-bottom: 2px;
    color: #fef08a;
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.45);
}

.book-reader-bottom-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 1.2rem 2rem;
    background: #191410;
    border-top: 1px solid rgba(212, 175, 55, 0.25);
    flex-wrap: wrap;
}

/* Partes en el Índice del Libro */
.novel-parts-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 0.5rem;
}

.novel-part-section {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.novel-part-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 0.95rem;
    background: rgba(212, 175, 55, 0.08);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    font-family: var(--font-title);
    font-size: 0.78rem;
    color: var(--gold-candle);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.novel-part-chapters {
    display: flex;
    flex-direction: column;
    padding: 0.4rem;
    gap: 0.35rem;
}

.novel-ch-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.novel-ch-item:hover {
    background: rgba(212, 175, 55, 0.12);
    border-color: rgba(212, 175, 55, 0.4);
    transform: translateX(3px);
}

.novel-ch-item.disabled {
    cursor: default;
    opacity: 0.55;
}

.novel-ch-item.disabled:hover {
    background: rgba(255, 255, 255, 0.02);
    border-color: transparent;
    transform: none;
}

.novel-ch-item-left {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.novel-ch-num {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--gold-bright);
    min-width: 22px;
}

.novel-ch-name {
    font-family: var(--font-title);
    font-size: 0.82rem;
    color: var(--text-title);
}

.novel-ch-status {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--gold-candle);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .book-chapter-body-container {
        padding: 1.8rem 1.15rem;
    }
    .novel-chapter-title {
        font-size: 1.35rem;
    }
    .novel-text-content {
        text-align: left;
    }
    .book-reader-toolbar {
        padding: 0.65rem 0.85rem;
    }
    .book-reader-bottom-nav {
        padding: 1rem 0.85rem;
    }
}
