/* ═══════════════════════════════════════════════════════════════
   CODEX ASTRA - Fantasy Sci-Fi Book Catalog
   Aesthetic: Classic Fantasy meets Cyberpunk
   ═══════════════════════════════════════════════════════════════ */

:root {
    /* Slate Palette */
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;

    /* Accent Colors - tonos CODEX */
    --gold-metallic: #C7A56B;
    --gold-light: #DDC293;
    --gold-dark: #8D6F47;
    --cyan-neon: #7dd3e8;
    --cyan-light: #a5f3fc;
    --cyan-dark: #4fb8d1;

    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;

    /* Glass */
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* ═══════════════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════════════ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

/* Scrollbar base */
::-webkit-scrollbar {
    width: 12px;
    background: var(--slate-950);
}

::-webkit-scrollbar-track {
    background: var(--slate-950);
}

::-webkit-scrollbar-thumb {
    background: var(--slate-700);
    border-radius: 6px;
    border: 3px solid var(--slate-950);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--slate-600);
}

/* Scrollbar invisible cuando modal abierto */
html.modal-open {
    scrollbar-color: #020617 #020617;
}

html.modal-open::-webkit-scrollbar {
    background-color: #020617 !important;
}

html.modal-open::-webkit-scrollbar-track {
    background-color: #020617 !important;
}

html.modal-open::-webkit-scrollbar-thumb {
    background-color: #020617 !important;
    border-color: #020617 !important;
}

html.modal-open::-webkit-scrollbar-corner {
    background-color: #020617 !important;
}

body {
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    color: var(--slate-200);

    /* Radial gradient background */
    background:
        radial-gradient(
            ellipse 80% 50% at 50% -20%,
            rgba(6, 182, 212, 0.08) 0%,
            transparent 50%
        ),
        radial-gradient(
            ellipse 60% 40% at 50% 100%,
            rgba(212, 175, 55, 0.05) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 50% 50%,
            var(--slate-900) 0%,
            var(--slate-950) 100%
        );
    background-attachment: fixed;
}

/* Noise texture overlay */
.noise-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 10000;
    opacity: 0.035;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ═══════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════ */

.hero {
    min-height: 45vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem var(--space-md);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(
        circle,
        rgba(212, 175, 55, 0.08) 0%,
        rgba(6, 182, 212, 0.04) 40%,
        transparent 70%
    );
    pointer-events: none;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 12vw, 8rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: linear-gradient(
        135deg,
        var(--slate-200) 0%,
        var(--gold-metallic) 25%,
        var(--slate-300) 50%,
        var(--cyan-neon) 75%,
        var(--slate-200) 100%
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmer 8s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(0.85rem, 2vw, 1.1rem);
    font-weight: 400;
    letter-spacing: 0.45em;
    text-transform: uppercase;
    color: var(--gold-metallic);
    margin-top: var(--space-sm);
    position: relative;
    z-index: 1;
}

.hero-line {
    width: 120px;
    height: 1px;
    margin-top: var(--space-md);
    background: linear-gradient(
        90deg,
        transparent,
        var(--gold-metallic),
        var(--cyan-neon),
        transparent
    );
}

/* Logo header styles */
.hero-logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 1;
}

.hero-logo-book {
    width: 118px;
    height: auto;
}

.hero-logo-text {
    width: min(1050px, 90vw);
    height: auto;
}

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

/* Descomentar para activar brillo del logo
.hero-logo-container img {
    animation: subtle-glow 3s ease-in-out infinite;
}
@keyframes subtle-glow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.4); }
}
*/

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════ */

.navigation {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: var(--space-sm) var(--space-md);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(2, 6, 23, 0.8);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    gap: var(--space-xs);
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-btn {
    padding: 0.6rem 1.2rem;
    background: transparent;
    border: 1px solid var(--slate-700);
    border-radius: 6px;
    color: var(--slate-400);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(212, 175, 55, 0.1) 0%,
        rgba(6, 182, 212, 0.1) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-btn:hover {
    border-color: var(--gold-metallic);
    color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.15);
}

.nav-btn:hover::before {
    opacity: 1;
}

.nav-btn.active {
    background: linear-gradient(
        135deg,
        rgba(212, 175, 55, 0.15) 0%,
        rgba(6, 182, 212, 0.1) 100%
    );
    border-color: var(--gold-metallic);
    color: var(--gold-metallic);
    box-shadow:
        0 0 20px rgba(212, 175, 55, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ═══════════════════════════════════════════════════════════════
   ARCHIVISTA SHOWCASE - Exhibition Display
   ═══════════════════════════════════════════════════════════════ */

.archivista-showcase {
    position: relative;
    max-width: 1500px;
    margin: 2rem auto var(--space-lg) auto;
    padding: var(--space-lg) var(--space-md);
    overflow: hidden;

    /* Layered mystical background */
    background:
        /* Vignette interior */
        radial-gradient(
            ellipse 80% 60% at 50% 50%,
            transparent 0%,
            rgba(2, 6, 23, 0.4) 100%
        ),
        /* Gradiente base */
        linear-gradient(
            180deg,
            rgba(212, 175, 55, 0.03) 0%,
            rgba(15, 23, 42, 0.5) 15%,
            rgba(15, 23, 42, 0.7) 50%,
            rgba(15, 23, 42, 0.5) 85%,
            rgba(6, 182, 212, 0.03) 100%
        );

    /* Elegant border */
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 4px;

    /* Enhanced outer glow */
    box-shadow:
        0 0 80px rgba(212, 175, 55, 0.05),
        0 0 120px rgba(6, 182, 212, 0.03),
        inset 0 0 100px rgba(212, 175, 55, 0.02),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

/* Arcane energy lines connecting corners */
.archivista-showcase::before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid transparent;
    border-radius: 2px;
    background:
        linear-gradient(90deg, rgba(212, 175, 55, 0.3), transparent 20%, transparent 80%, rgba(212, 175, 55, 0.3)) top,
        linear-gradient(90deg, rgba(6, 182, 212, 0.2), transparent 20%, transparent 80%, rgba(6, 182, 212, 0.2)) bottom,
        linear-gradient(180deg, rgba(212, 175, 55, 0.3), transparent 20%, transparent 80%, rgba(6, 182, 212, 0.2)) left,
        linear-gradient(180deg, rgba(212, 175, 55, 0.3), transparent 20%, transparent 80%, rgba(6, 182, 212, 0.2)) right;
    background-size: 100% 1px, 100% 1px, 1px 100%, 1px 100%;
    background-repeat: no-repeat;
    pointer-events: none;
    animation: arcane-pulse 4s ease-in-out infinite;
}

/* Floating particles container */
.floating-particles-container {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.floating-particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

@keyframes arcane-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

/* Decorative corners - Arcane glyphs */
.showcase-corner {
    position: absolute;
    width: 40px;
    height: 40px;
    pointer-events: none;
    z-index: 2;
}

.showcase-corner::before,
.showcase-corner::after {
    content: '';
    position: absolute;
    background: var(--gold-metallic);
}

/* Corner lines */
.showcase-corner::before {
    width: 32px;
    height: 2px;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

.showcase-corner::after {
    width: 2px;
    height: 32px;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

/* Corner positioning */
.showcase-corner-tl { top: -1px; left: -1px; }
.showcase-corner-tl::before { top: 0; left: 0; }
.showcase-corner-tl::after { top: 0; left: 0; }

.showcase-corner-tr { top: -1px; right: -1px; }
.showcase-corner-tr::before { top: 0; right: 0; }
.showcase-corner-tr::after { top: 0; right: 0; }

.showcase-corner-bl { bottom: -1px; left: -1px; }
.showcase-corner-bl::before { bottom: 0; left: 0; }
.showcase-corner-bl::after { bottom: 0; left: 0; }

.showcase-corner-br { bottom: -1px; right: -1px; }
.showcase-corner-br::before { bottom: 0; right: 0; }
.showcase-corner-br::after { bottom: 0; right: 0; }

/* Glowing orb at each corner */
.showcase-corner-tl::before { border-radius: 0 0 4px 0; }
.showcase-corner-tr::before { border-radius: 0 0 0 4px; }
.showcase-corner-bl::before { border-radius: 0 4px 0 0; }
.showcase-corner-br::before { border-radius: 4px 0 0 0; }

/* Header section */
.showcase-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    position: relative;
    z-index: 2;
}

.showcase-header-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(212, 175, 55, 0.4),
        transparent
    );
}

.showcase-header-content {
    text-align: center;
    padding: 0 var(--space-md);
}

.showcase-emblem {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-sm);
    padding: 10px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    color: var(--gold-metallic);
    background: radial-gradient(
        circle at center,
        rgba(212, 175, 55, 0.1) 0%,
        transparent 70%
    );
    box-shadow:
        0 0 20px rgba(212, 175, 55, 0.1),
        inset 0 0 15px rgba(212, 175, 55, 0.05);
}

.showcase-emblem svg {
    width: 100%;
    height: 100%;
}

.showcase-title {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    font-weight: 500;
    color: var(--gold-metallic);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 0.3rem;
    text-shadow:
        0 0 30px rgba(212, 175, 55, 0.3),
        0 0 60px rgba(212, 175, 55, 0.1);
}

.showcase-subtitle {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--slate-400);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════════
   SECTION VARIANTS - Unique visual identity per section
   ═══════════════════════════════════════════════════════════════ */

/* ÚLTIMAS ENTRADAS - Portal/rift energy (cyan dominant) */
.ultimas-entradas-showcase {
    border-color: rgba(6, 182, 212, 0.25);
}

.ultimas-entradas-showcase::before {
    background:
        linear-gradient(90deg, rgba(6, 182, 212, 0.4), transparent 20%, transparent 80%, rgba(6, 182, 212, 0.4)) top,
        linear-gradient(90deg, rgba(212, 175, 55, 0.2), transparent 20%, transparent 80%, rgba(212, 175, 55, 0.2)) bottom,
        linear-gradient(180deg, rgba(6, 182, 212, 0.4), transparent 20%, transparent 80%, rgba(212, 175, 55, 0.2)) left,
        linear-gradient(180deg, rgba(6, 182, 212, 0.4), transparent 20%, transparent 80%, rgba(212, 175, 55, 0.2)) right;
    background-size: 100% 1px, 100% 1px, 1px 100%, 1px 100%;
    background-repeat: no-repeat;
    animation: rift-pulse 3s ease-in-out infinite;
}

.ultimas-entradas-showcase .showcase-corner::before,
.ultimas-entradas-showcase .showcase-corner::after {
    background: var(--cyan-neon);
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.6);
}

.ultimas-entradas-showcase .showcase-emblem {
    border-color: rgba(6, 182, 212, 0.4);
    color: var(--cyan-neon);
    background: radial-gradient(circle at center, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.15);
}

.ultimas-entradas-showcase .showcase-title {
    color: var(--cyan-neon);
    text-shadow: 0 0 30px rgba(6, 182, 212, 0.4), 0 0 60px rgba(6, 182, 212, 0.15);
}

.ultimas-entradas-showcase .showcase-header-line {
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.5), transparent);
}

@keyframes rift-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* PRÓXIMAS CATALOGACIONES - Mystical anticipation (cyan/purple mix) */
.proximas-catalogaciones-showcase {
    border-color: rgba(6, 182, 212, 0.2);
}

.proximas-catalogaciones-showcase::before {
    background:
        linear-gradient(90deg, rgba(6, 182, 212, 0.3), transparent 20%, transparent 80%, rgba(6, 182, 212, 0.3)) top,
        linear-gradient(90deg, rgba(168, 85, 247, 0.2), transparent 20%, transparent 80%, rgba(168, 85, 247, 0.2)) bottom,
        linear-gradient(180deg, rgba(6, 182, 212, 0.3), transparent 20%, transparent 80%, rgba(168, 85, 247, 0.2)) left,
        linear-gradient(180deg, rgba(6, 182, 212, 0.3), transparent 20%, transparent 80%, rgba(168, 85, 247, 0.2)) right;
    background-size: 100% 1px, 100% 1px, 1px 100%, 1px 100%;
    background-repeat: no-repeat;
    animation: anticipation-pulse 4s ease-in-out infinite;
}

.proximas-catalogaciones-showcase .showcase-corner::before,
.proximas-catalogaciones-showcase .showcase-corner::after {
    background: var(--cyan-neon);
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.5);
}

.proximas-catalogaciones-showcase .showcase-emblem {
    border-color: rgba(6, 182, 212, 0.4);
    color: var(--cyan-neon);
    background: radial-gradient(circle at center, rgba(6, 182, 212, 0.12) 0%, transparent 70%);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.12);
}

.proximas-catalogaciones-showcase .showcase-title {
    color: var(--cyan-neon);
    text-shadow: 0 0 30px rgba(6, 182, 212, 0.35), 0 0 60px rgba(6, 182, 212, 0.12);
}

.proximas-catalogaciones-showcase .showcase-header-line {
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.4), transparent);
}

@keyframes anticipation-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.9; }
}

/* ═══════════════════════════════════════════════════════════════
   ECOS DE LA PERIFERIA - Tonos turquesa bio
   ═══════════════════════════════════════════════════════════════ */

.ecos-periferia-showcase {
    border-color: rgba(45, 212, 191, 0.3);
}

.ecos-periferia-showcase::before {
    background:
        linear-gradient(90deg, rgba(45, 212, 191, 0.3), transparent 20%, transparent 80%, rgba(45, 212, 191, 0.3)) top,
        linear-gradient(90deg, rgba(13, 148, 136, 0.2), transparent 20%, transparent 80%, rgba(13, 148, 136, 0.2)) bottom,
        linear-gradient(180deg, rgba(45, 212, 191, 0.3), transparent 20%, transparent 80%, rgba(13, 148, 136, 0.2)) left,
        linear-gradient(180deg, rgba(45, 212, 191, 0.3), transparent 20%, transparent 80%, rgba(13, 148, 136, 0.2)) right;
    background-size: 100% 1px, 100% 1px, 1px 100%, 1px 100%;
    background-repeat: no-repeat;
}

.ecos-periferia-showcase .showcase-corner::before,
.ecos-periferia-showcase .showcase-corner::after {
    background: #2DD4BF;
    box-shadow: 0 0 12px rgba(45, 212, 191, 0.6);
}

.ecos-periferia-showcase .showcase-emblem {
    border-color: rgba(45, 212, 191, 0.4);
    color: #2DD4BF;
    background: radial-gradient(circle at center, rgba(45, 212, 191, 0.12) 0%, transparent 70%);
    box-shadow: 0 0 20px rgba(45, 212, 191, 0.12);
}

.ecos-periferia-showcase .showcase-title {
    color: #2DD4BF;
    text-shadow: 0 0 30px rgba(45, 212, 191, 0.35), 0 0 60px rgba(45, 212, 191, 0.12);
}

.ecos-periferia-showcase .showcase-subtitle {
    color: rgba(94, 234, 212, 0.8);
}

.ecos-periferia-showcase .showcase-header-line {
    background: linear-gradient(90deg, transparent, rgba(45, 212, 191, 0.5), transparent);
}

/* Glow turquesa para el libro destacado en Ecos */
.ecos-glow {
    background: radial-gradient(ellipse at center, rgba(45, 212, 191, 0.15) 0%, transparent 70%) !important;
}

/* ═══════════════════════════════════════════════════════════════ */
/* SELECCIÓN DEL CRONISTA - Registros Fundacionales (Tonos dorados) */
/* ═══════════════════════════════════════════════════════════════ */

.seleccion-cronista-showcase .showcase-emblem,
.seleccion-cronista-showcase .showcase-emblem-purple {
    border-color: rgba(212, 175, 55, 0.4);
    color: var(--gold-metallic);
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.12) 0%, transparent 70%);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.12);
}

.seleccion-cronista-showcase .showcase-title {
    color: var(--gold-metallic);
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.35), 0 0 60px rgba(212, 175, 55, 0.12);
}

.seleccion-cronista-showcase .showcase-subtitle {
    color: rgba(199, 165, 107, 0.8);
}

.seleccion-cronista-showcase .showcase-header-line {
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.5), transparent);
}

.seleccion-cronista-showcase .showcase-corner {
    border-color: rgba(212, 175, 55, 0.3);
}

.seleccion-cronista-showcase .showcase-corner::before,
.seleccion-cronista-showcase .showcase-corner::after {
    background: var(--gold-metallic);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.6);
}

.seleccion-cronista-showcase {
    border-color: rgba(212, 175, 55, 0.3);
}

.seleccion-cronista-showcase::before {
    background:
        linear-gradient(90deg, rgba(212, 175, 55, 0.3), transparent 20%, transparent 80%, rgba(212, 175, 55, 0.3)) top,
        linear-gradient(90deg, rgba(199, 165, 107, 0.2), transparent 20%, transparent 80%, rgba(199, 165, 107, 0.2)) bottom,
        linear-gradient(180deg, rgba(212, 175, 55, 0.3), transparent 20%, transparent 80%, rgba(199, 165, 107, 0.2)) left,
        linear-gradient(180deg, rgba(212, 175, 55, 0.3), transparent 20%, transparent 80%, rgba(199, 165, 107, 0.2)) right;
    background-size: 100% 1px, 100% 1px, 1px 100%, 1px 100%;
    background-repeat: no-repeat;
}

/* Glow dorado para el libro destacado en Selección del Cronista */
.cronista-glow {
    background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.15) 0%, transparent 70%) !important;
}

/* Home Codex Score - Versión para la home */
.home-codex-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    margin: var(--space-lg) 0;
    padding: var(--space-md);
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: 12px;
}

.home-codex-score .score-ring-container {
    position: relative;
    width: 100px;
    height: 100px;
}

.home-codex-score .codex-score-label {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: var(--slate-400);
    white-space: nowrap;
}

.home-codex-score .score-ring {
    width: 100%;
    height: 100%;
}

.home-codex-score .ring-bg {
    stroke: rgba(100, 116, 139, 0.3);
}

.home-codex-score .ring-progress {
    stroke: #a78bfa;
    stroke-linecap: round;
    filter: drop-shadow(0 0 8px rgba(167, 139, 250, 0.6));
}

.home-codex-score .score-ring-container.gold .ring-progress {
    stroke: #D4AF37;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.6));
}

.home-codex-score .score-ring-container.legendary .ring-progress {
    stroke: #22d3ee;
    filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.6));
}

.home-codex-score .score-ring-container.stable .ring-progress {
    stroke: #a78bfa;
    filter: drop-shadow(0 0 8px rgba(167, 139, 250, 0.6));
}

.home-codex-score .score-ring-container.neutral .ring-progress {
    stroke: #94a3b8;
    filter: drop-shadow(0 0 8px rgba(148, 163, 184, 0.5));
}

.home-codex-score .score-ring-container.critical .ring-progress {
    stroke: #f87171;
    filter: drop-shadow(0 0 8px rgba(248, 113, 113, 0.6));
}

.home-codex-score .ring-ticks line {
    stroke: rgba(100, 116, 139, 0.4);
    stroke-width: 1;
}

.home-codex-score .score-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.home-codex-score .score-number {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--slate-100);
}

.home-codex-score .score-ring-container.gold .score-number {
    color: #D4AF37;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.home-codex-score .score-ring-container.legendary .score-number {
    color: #22d3ee;
    text-shadow: 0 0 20px rgba(34, 211, 238, 0.5);
}

.home-codex-score .score-ring-container.stable .score-number {
    color: #a78bfa;
    text-shadow: 0 0 20px rgba(167, 139, 250, 0.5);
}

.home-codex-score .score-ring-container.neutral .score-number {
    color: #94a3b8;
    text-shadow: 0 0 20px rgba(148, 163, 184, 0.4);
}

.home-codex-score .score-ring-container.critical .score-number {
    color: #f87171;
    text-shadow: 0 0 20px rgba(248, 113, 113, 0.5);
}

/* Botón Amazon en la Home */
.home-amazon-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(255, 153, 0, 0.15) 0%, rgba(255, 153, 0, 0.08) 100%);
    border: 1px solid rgba(255, 153, 0, 0.4);
    border-radius: 8px;
    color: #ff9900;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.3s ease;
}

.home-amazon-btn:hover {
    background: linear-gradient(135deg, rgba(255, 153, 0, 0.25) 0%, rgba(255, 153, 0, 0.15) 100%);
    border-color: rgba(255, 153, 0, 0.6);
    box-shadow: 0 0 20px rgba(255, 153, 0, 0.3);
}

.home-amazon-btn .amazon-icon {
    width: 18px;
    height: 18px;
}

/* Cronista Actions - Solo botón explorar */
.cronista-actions {
    justify-content: center !important;
}

.cronista-featured-book .featured-book-content {
    display: flex;
    flex-direction: column;
}

/* Empty State for sections */
.showcase-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl) var(--space-lg);
    text-align: center;
    min-height: 200px;
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    margin-bottom: var(--space-md);
    color: rgba(6, 182, 212, 0.4);
    opacity: 0.6;
}

.empty-state-icon svg {
    width: 100%;
    height: 100%;
}

.empty-state-text {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--slate-400);
    letter-spacing: 0.05em;
    margin-bottom: var(--space-xs);
}

.empty-state-subtext {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ═══════════════════════════════════════════════════════════════
   LIBRO DESTACADO - VESTIGIO PRIMORDIAL
   ═══════════════════════════════════════════════════════════════ */

.featured-book {
    position: relative;
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
    overflow: hidden;
    background: rgba(15, 25, 45, 0.6);
    border-radius: 4px;
}

/* Hover en botón CTA activa efecto en portada */
.featured-book:has(.featured-book-cta:hover) .featured-book-cover {
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(212, 175, 55, 0.15),
        8px 0 20px rgba(0, 0, 0, 0.4);
}

.featured-book:has(.featured-book-cta:hover) .featured-book-cover img {
    filter: saturate(1.1) contrast(1.05) brightness(1.05);
}

.featured-book:has(.featured-book-cta:hover) .featured-book-cover-overlay {
    opacity: 0.6;
}

.featured-book:has(.featured-book-cta:hover) .featured-book-cover-shine {
    transform: translateX(150%);
}

.featured-book-glow {
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    pointer-events: none;
    animation: featured-glow-drift 8s ease-in-out infinite;
}

@keyframes featured-glow-drift {
    0%, 100% { transform: translateX(0) rotate(0deg); opacity: 0.5; }
    50% { transform: translateX(20%) rotate(5deg); opacity: 0.8; }
}

.featured-book-badge {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg,
        rgba(212, 175, 55, 0.95) 0%,
        rgba(180, 140, 40, 0.9) 50%,
        rgba(212, 175, 55, 0.95) 100%
    );
    border: 1px solid rgba(255, 220, 120, 0.6);
    border-radius: 4px;
    width: fit-content;
    margin-bottom: 1rem;
}

/* Badge móvil oculto en desktop */
.featured-book-badge-mobile {
    display: none;
}

/* Badge desktop visible en desktop */
.featured-book-badge-desktop {
    display: flex;
}

.featured-book-badge svg {
    width: 16px;
    height: 16px;
    color: var(--slate-900);
    fill: none;
    filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.3));
}

.featured-book-badge span {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--slate-950);
}

.featured-book-cover {
    position: relative;
    flex-shrink: 0;
    width: 280px;
    height: 420px;
    border-radius: 4px;
    overflow: hidden;
    background-color: var(--slate-950);
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(212, 175, 55, 0.1),
        8px 0 20px rgba(0, 0, 0, 0.4);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
}

/* Lomo del libro - efecto tomo real */
.featured-book-cover::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 18px;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(212, 175, 55, 0.2) 25%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(0, 0, 0, 0.4) 100%
    );
    z-index: 3;
    pointer-events: none;
}

/* Borde superior e inferior del tomo */
.featured-book-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 4px;
    box-shadow:
        inset 0 2px 4px rgba(255, 255, 255, 0.1),
        inset 0 -3px 6px rgba(0, 0, 0, 0.4);
    pointer-events: none;
    z-index: 4;
}

.featured-book-cover:hover {
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(212, 175, 55, 0.15),
        8px 0 20px rgba(0, 0, 0, 0.4);
}

.featured-book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.02);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), filter 0.4s ease;
    filter: saturate(0.95) contrast(1.02);
}

.featured-book-cover:hover img {
    filter: saturate(1.1) contrast(1.05) brightness(1.05);
}

/* Overlay con viñeta */
.featured-book-cover-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            ellipse 80% 60% at 50% 100%,
            rgba(2, 6, 23, 0.4) 0%,
            transparent 60%
        ),
        linear-gradient(
            180deg,
            transparent 50%,
            rgba(2, 6, 23, 0.12) 75%,
            rgba(2, 6, 23, 0.32) 100%
        );
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.4s ease;
}

.featured-book-cover:hover .featured-book-cover-overlay {
    opacity: 0.48;
}

.featured-book-cover-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 35%,
        rgba(255, 255, 255, 0.08) 42%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.08) 58%,
        transparent 65%
    );
    transform: translateX(-150%);
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 5;
    pointer-events: none;
}

.featured-book-cover:hover .featured-book-cover-shine {
    transform: translateX(150%);
}

.featured-book-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-right: var(--space-lg);
    padding-top: 0;
    position: relative;
    z-index: 2;
}

.featured-book-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gold-light);
    line-height: 1.2;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

.featured-book-author {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--slate-400);
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
}

/* Cita mejorada */
.featured-book-quote {
    position: relative;
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--slate-400);
    line-height: 1.7;
    padding: var(--space-xs) var(--space-md);
    margin-bottom: var(--space-xs);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.04) 0%, rgba(125, 211, 232, 0.02) 100%);
    border-left: 2px solid rgba(212, 175, 55, 0.5);
    border-radius: 0 4px 4px 0;
}

/* Espectro en featured book */
.featured-book-spectrum {
    width: 100%;
    margin-top: auto;
    padding-top: 1.2rem;
    margin-bottom: 0;
}

/* Botones de acción */
.featured-book-actions {
    display: flex;
    gap: 0.8rem;
    margin-top: var(--space-sm);
}

.featured-book-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.3rem;
    border: none;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    text-decoration: none;
    transition: box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.featured-book-cta svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Explorar vestigio - estilo glass/cyan */
.featured-cta-explore {
    background: linear-gradient(135deg, rgba(125, 211, 232, 0.15) 0%, rgba(125, 211, 232, 0.08) 100%);
    border: 1px solid rgba(125, 211, 232, 0.3);
    color: var(--cyan-light);
}

.featured-cta-explore:hover {
    box-shadow: 0 4px 20px rgba(125, 211, 232, 0.2), 0 0 30px rgba(125, 211, 232, 0.1);
    border-color: rgba(125, 211, 232, 0.5);
}

/* Adquirir tomo - estilo gold sólido */
.featured-cta-amazon {
    background: linear-gradient(135deg, var(--gold-metallic) 0%, var(--gold-dark) 100%);
    color: var(--slate-950);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
}

.featured-cta-amazon:hover {
    color: var(--slate-950);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.35), 0 0 40px rgba(212, 175, 55, 0.15);
}

.featured-book-spectrum .neon-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cyan-neon);
    margin-bottom: var(--space-xs);
}

.featured-book-spectrum .spectrum-genre {
    color: var(--slate-500);
    font-weight: 400;
}

.featured-book-spectrum .neon-bar-container {
    height: 14px;
    border-radius: 7px;
    margin-bottom: 6px;
    cursor: pointer;
}

.featured-book-spectrum .neon-segment {
    cursor: pointer;
    transform-origin: center;
}

.featured-book-spectrum .neon-legend {
    margin-top: 2px;
    gap: var(--space-md);
}

.featured-book-spectrum .neon-legend-item {
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.featured-book-spectrum .neon-legend-item.legend-hovered {
    transform: scale(1.05);
}

.featured-book-spectrum .neon-legend-item.legend-dimmed {
    opacity: 0.35;
}

.featured-book-spectrum .neon-value {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 4px;
    transition: text-shadow 0.3s ease;
}

.featured-book-spectrum .neon-legend-item.legend-hovered .neon-value {
    text-shadow: 0 0 15px currentColor;
}

.featured-book-spectrum .neon-label-text {
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--slate-400);
    font-weight: 500;
    transition: color 0.3s ease;
}

.featured-book-spectrum .neon-legend-item.legend-hovered .neon-label-text {
    color: var(--slate-200);
}

/* Sello Arcano - Grabado Láser */
.featured-book-seal {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 130px;
    height: 130px;
    z-index: 10;
    transform: rotate(12deg);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), filter 0.4s ease;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.5));
}

.featured-book-seal:hover {
    transform: rotate(0deg) scale(1.1);
    filter: drop-shadow(0 0 25px rgba(125, 211, 232, 0.35))
            drop-shadow(0 0 50px rgba(212, 175, 55, 0.25));
}

.featured-book-seal svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* === GRABADO LÁSER - ANILLO === */
.seal-laser-line {
    stroke-dasharray: 420;
    stroke-dashoffset: 420;
    animation: laser-engrave 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.seal-ring-outer {
    animation-delay: 0.8s;
}

.seal-divider {
    stroke-dasharray: 80;
    stroke-dashoffset: 80;
    animation-delay: 2.0s;
    animation-duration: 0.6s;
}

@keyframes laser-engrave {
    0% {
        stroke-dashoffset: 420;
        stroke: var(--cyan-neon);
        filter: drop-shadow(0 0 8px var(--cyan-neon)) drop-shadow(0 0 16px var(--cyan-neon));
    }
    60% {
        stroke: var(--cyan-neon);
        filter: drop-shadow(0 0 12px var(--cyan-neon)) drop-shadow(0 0 24px var(--cyan-light));
    }
    100% {
        stroke-dashoffset: 0;
        stroke: var(--gold-metallic);
        filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.6));
    }
}

/* === ESTRELLA DEL CRONISTA === */
.seal-star {
    stroke: var(--gold-metallic);
    stroke-dasharray: 150;
    stroke-dashoffset: 150;
    animation: star-draw 1s ease-out forwards;
    animation-delay: 1.3s;
}

@keyframes star-draw {
    0% {
        stroke-dashoffset: 150;
        stroke: var(--cyan-neon);
        filter: drop-shadow(0 0 10px var(--cyan-neon)) drop-shadow(0 0 20px var(--cyan-light));
    }
    60% {
        stroke: var(--cyan-neon);
    }
    100% {
        stroke-dashoffset: 0;
        stroke: var(--gold-metallic);
        filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.6));
    }
}

.seal-core {
    fill: var(--gold-metallic);
    opacity: 0;
    animation: core-ignite 0.5s ease-out forwards;
    animation-delay: 1.8s;
}

@keyframes core-ignite {
    0% {
        opacity: 0;
        fill: var(--cyan-neon);
        filter: drop-shadow(0 0 15px var(--cyan-neon)) drop-shadow(0 0 30px var(--cyan-light));
    }
    50% {
        opacity: 1;
        fill: var(--cyan-light);
        filter: drop-shadow(0 0 20px var(--cyan-neon));
    }
    100% {
        opacity: 1;
        fill: var(--gold-metallic);
        filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.8));
    }
}

/* === TEXTO LÁSER === */
.seal-text-laser {
    fill: transparent;
    stroke: var(--gold-metallic);
    stroke-width: 0.4;
    stroke-dasharray: 250;
    stroke-dashoffset: 250;
    animation: text-laser-write 1s ease-out forwards;
}

.seal-text-1 { animation-delay: 2.2s; }
.seal-text-2 { animation-delay: 2.8s; }

@keyframes text-laser-write {
    0% {
        stroke-dashoffset: 250;
        stroke: var(--cyan-neon);
        fill: transparent;
        filter: drop-shadow(0 0 8px var(--cyan-neon)) drop-shadow(0 0 16px var(--cyan-light));
    }
    50% {
        stroke: var(--cyan-light);
        fill: transparent;
        filter: drop-shadow(0 0 10px var(--cyan-neon));
    }
    80% {
        stroke-dashoffset: 0;
        fill: transparent;
    }
    100% {
        stroke-dashoffset: 0;
        stroke: var(--gold-metallic);
        fill: var(--gold-metallic);
        filter: drop-shadow(0 0 3px rgba(212, 175, 55, 0.4));
    }
}

/* === GLOW PULSANTE FINAL === */
.seal-complete-glow {
    opacity: 0;
    animation: seal-pulse-glow 3s ease-in-out infinite;
    animation-delay: 3.5s;
}

@keyframes seal-pulse-glow {
    0%, 100% { opacity: 0.15; }
    50% { opacity: 0.35; }
}

/* === SELLO EDICTO I CATENA (La Voluntad de Muchos) - Tema Cobrizo === */
.seal-voluntad .seal-laser-line {
    animation-name: laser-engrave-voluntad;
}

.seal-voluntad .seal-star {
    stroke: #CD7F32;
    stroke-dasharray: 150;
    stroke-dashoffset: 150;
    animation: star-draw-voluntad 1s ease-out forwards;
    animation-delay: 1.3s;
}

.seal-voluntad .seal-core {
    fill: #CD7F32;
    opacity: 0;
    animation: core-ignite-voluntad 0.5s ease-out forwards;
    animation-delay: 1.8s;
}

@keyframes laser-engrave-voluntad {
    0% {
        stroke-dashoffset: 420;
        stroke: #e8a849;
        filter: drop-shadow(0 0 8px #e8a849) drop-shadow(0 0 16px #CD7F32);
    }
    60% {
        stroke: #e8a849;
        filter: drop-shadow(0 0 12px #CD7F32) drop-shadow(0 0 24px #e8a849);
    }
    100% {
        stroke-dashoffset: 0;
        stroke: #CD7F32;
        filter: drop-shadow(0 0 4px rgba(205, 127, 50, 0.6));
    }
}

@keyframes star-draw-voluntad {
    0% {
        stroke-dashoffset: 150;
        stroke: #e8a849;
        filter: drop-shadow(0 0 10px #e8a849) drop-shadow(0 0 20px #CD7F32);
    }
    60% {
        stroke: #e8a849;
    }
    100% {
        stroke-dashoffset: 0;
        stroke: #CD7F32;
        filter: drop-shadow(0 0 5px rgba(205, 127, 50, 0.6));
    }
}

@keyframes core-ignite-voluntad {
    0% {
        opacity: 0;
        fill: #e8a849;
        filter: drop-shadow(0 0 15px #e8a849) drop-shadow(0 0 30px #CD7F32);
    }
    50% {
        opacity: 1;
        fill: #e8a849;
        filter: drop-shadow(0 0 20px #CD7F32);
    }
    100% {
        opacity: 1;
        fill: #CD7F32;
        filter: drop-shadow(0 0 6px rgba(205, 127, 50, 0.8));
    }
}

.seal-voluntad .seal-text-laser {
    fill: transparent;
    stroke: #CD7F32;
    stroke-width: 0.4;
    stroke-dasharray: 250;
    stroke-dashoffset: 250;
    animation: text-laser-write-voluntad 1s ease-out forwards;
}

.seal-voluntad .seal-text-1 { animation-delay: 2.2s; }
.seal-voluntad .seal-text-2 { animation-delay: 2.8s; }

@keyframes text-laser-write-voluntad {
    0% {
        stroke-dashoffset: 250;
        stroke: #e8a849;
        fill: transparent;
        filter: drop-shadow(0 0 8px #e8a849) drop-shadow(0 0 16px #CD7F32);
    }
    50% {
        stroke: #e8a849;
        fill: transparent;
        filter: drop-shadow(0 0 10px #CD7F32);
    }
    80% {
        stroke-dashoffset: 0;
        fill: transparent;
    }
    100% {
        stroke-dashoffset: 0;
        stroke: #CD7F32;
        fill: #CD7F32;
        filter: drop-shadow(0 0 3px rgba(205, 127, 50, 0.4));
    }
}

.seal-voluntad:hover {
    transform: rotate(0deg) scale(1.1);
    filter: drop-shadow(0 0 25px rgba(205, 127, 50, 0.4))
            drop-shadow(0 0 50px rgba(232, 168, 73, 0.25));
}

/* === SELLO CONDENA SAGRADA (Los Diablos) - Tema Carmesí === */
.seal-diablos .seal-laser-line {
    animation-name: laser-engrave-blood;
}

.seal-diablos .seal-star {
    stroke: #B91C1C;
    animation-name: star-draw-blood;
}

.seal-diablos .seal-text-laser {
    stroke: #B91C1C;
    animation-name: text-laser-blood;
}

.seal-diablos .seal-complete-glow {
    animation-name: seal-pulse-glow-blood;
}

.seal-diablos:hover {
    filter: drop-shadow(0 0 25px rgba(185, 28, 28, 0.4))
            drop-shadow(0 0 50px rgba(185, 28, 28, 0.2));
}

@keyframes laser-engrave-blood {
    0% {
        stroke-dashoffset: 420;
        stroke: #EF4444;
        filter: drop-shadow(0 0 8px #EF4444) drop-shadow(0 0 16px #DC2626);
    }
    60% {
        stroke: #EF4444;
        filter: drop-shadow(0 0 12px #EF4444) drop-shadow(0 0 24px #DC2626);
    }
    100% {
        stroke-dashoffset: 0;
        stroke: #B91C1C;
        filter: drop-shadow(0 0 4px rgba(185, 28, 28, 0.6));
    }
}

@keyframes star-draw-blood {
    0% {
        stroke-dashoffset: 150;
        stroke: #EF4444;
        filter: drop-shadow(0 0 8px #EF4444);
    }
    100% {
        stroke-dashoffset: 0;
        stroke: #B91C1C;
        filter: drop-shadow(0 0 5px rgba(185, 28, 28, 0.6));
    }
}

@keyframes text-laser-blood {
    0% {
        stroke-dashoffset: 250;
        stroke: #EF4444;
        fill: transparent;
        filter: drop-shadow(0 0 8px #EF4444);
    }
    70% {
        fill: transparent;
    }
    100% {
        stroke-dashoffset: 0;
        stroke: #B91C1C;
        fill: #B91C1C;
        filter: drop-shadow(0 0 3px rgba(185, 28, 28, 0.4));
    }
}

@keyframes seal-pulse-glow-blood {
    0%, 100% { opacity: 0.15; }
    50% { opacity: 0.4; }
}

/* === SELLO NO APTO PARA REZAR SOLO (Entre Dos Fuegos) - Tema Ámbar/Fuego === */
.seal-fuegos .seal-laser-line {
    animation-name: laser-engrave-ember;
}

.seal-fuegos .seal-star {
    stroke: #D97706;
    animation-name: star-draw-ember;
}

.seal-fuegos .seal-text-laser {
    stroke: #D97706;
    animation-name: text-laser-ember;
}

.seal-fuegos .seal-complete-glow {
    animation-name: seal-pulse-glow-ember;
}

.seal-fuegos:hover {
    filter: drop-shadow(0 0 25px rgba(217, 119, 6, 0.4))
            drop-shadow(0 0 50px rgba(245, 158, 11, 0.2));
}

@keyframes laser-engrave-ember {
    0% {
        stroke-dashoffset: 420;
        stroke: #FBBF24;
        filter: drop-shadow(0 0 8px #FBBF24) drop-shadow(0 0 16px #F59E0B);
    }
    60% {
        stroke: #F59E0B;
        filter: drop-shadow(0 0 12px #F59E0B) drop-shadow(0 0 24px #D97706);
    }
    100% {
        stroke-dashoffset: 0;
        stroke: #D97706;
        filter: drop-shadow(0 0 4px rgba(217, 119, 6, 0.6));
    }
}

@keyframes star-draw-ember {
    0% {
        stroke-dashoffset: 150;
        stroke: #FBBF24;
        filter: drop-shadow(0 0 8px #FBBF24);
    }
    100% {
        stroke-dashoffset: 0;
        stroke: #D97706;
        filter: drop-shadow(0 0 5px rgba(217, 119, 6, 0.6));
    }
}

@keyframes text-laser-ember {
    0% {
        stroke-dashoffset: 250;
        stroke: #FBBF24;
        fill: transparent;
        filter: drop-shadow(0 0 8px #FBBF24);
    }
    70% {
        fill: transparent;
    }
    100% {
        stroke-dashoffset: 0;
        stroke: #D97706;
        fill: #D97706;
        filter: drop-shadow(0 0 3px rgba(217, 119, 6, 0.4));
    }
}

@keyframes seal-pulse-glow-ember {
    0%, 100% { opacity: 0.15; }
    50% { opacity: 0.4; }
}

/* Responsive: Móvil */
@media (max-width: 768px) {
    .featured-book {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: var(--space-md);
    }

    /* Mostrar badge móvil, ocultar desktop */
    .featured-book-badge-mobile {
        display: flex;
    }

    .featured-book-badge-desktop {
        display: none;
    }

    .featured-book-cover {
        width: 220px;
        height: 330px;
    }

    .featured-book-cover::before {
        width: 14px;
    }

    .featured-book-content {
        padding-right: 0;
        align-items: center;
    }

    .featured-book-title {
        font-size: 1.6rem;
    }

    .featured-book-quote {
        border-left: none;
        border-top: 2px solid rgba(212, 175, 55, 0.4);
        border-radius: 0;
        padding: var(--space-md) var(--space-sm);
        text-align: center;
        background: transparent;
    }

    .featured-book-spectrum .neon-label {
        font-size: 0.7rem;
    }

    .featured-book-spectrum .neon-bar-container {
        height: 12px;
        margin-bottom: var(--space-sm);
    }

    .featured-book-spectrum .neon-legend {
        gap: var(--space-sm);
        flex-wrap: wrap;
        justify-content: center;
    }

    .featured-book-spectrum .neon-legend-item {
        flex-direction: column;
        gap: 0.15rem;
        align-items: center;
        text-align: center;
    }

    .featured-book-spectrum .neon-value {
        font-size: 1.1rem;
    }

    .featured-book-spectrum .neon-label-text {
        font-size: 0.55rem;
        line-height: 1.2;
    }

    .featured-book-seal {
        width: 95px;
        height: 95px;
        top: 8px;
        right: 8px;
    }

    .featured-book-spectrum {
        text-align: left;
    }

    .featured-book-spectrum .neon-legend {
        flex-wrap: wrap;
    }

    .featured-book-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .featured-book-cta {
        font-size: 0.78rem;
        padding: 0.6rem 1rem;
    }
}

/* WORK IN PROGRESS - Unstable/forming energy (mixed flickering) */
.work-in-progress-showcase {
    border-color: rgba(212, 175, 55, 0.15);
    border-style: dashed;
}

.work-in-progress-showcase::before {
    background:
        linear-gradient(90deg, rgba(212, 175, 55, 0.25), transparent 30%, transparent 70%, rgba(6, 182, 212, 0.25)) top,
        linear-gradient(90deg, rgba(6, 182, 212, 0.25), transparent 30%, transparent 70%, rgba(212, 175, 55, 0.25)) bottom,
        linear-gradient(180deg, rgba(212, 175, 55, 0.25), transparent 30%, transparent 70%, rgba(6, 182, 212, 0.25)) left,
        linear-gradient(180deg, rgba(6, 182, 212, 0.25), transparent 30%, transparent 70%, rgba(212, 175, 55, 0.25)) right;
    background-size: 100% 1px, 100% 1px, 1px 100%, 1px 100%;
    background-repeat: no-repeat;
    animation: unstable-flicker 2s ease-in-out infinite;
}

.work-in-progress-showcase .showcase-corner::before,
.work-in-progress-showcase .showcase-corner::after {
    opacity: 0.5;
    animation: corner-flicker 3s ease-in-out infinite;
}

.work-in-progress-showcase .showcase-emblem {
    opacity: 0.7;
    animation: emblem-pulse 4s ease-in-out infinite;
}

.work-in-progress-showcase .showcase-title {
    opacity: 0.85;
}

@keyframes unstable-flicker {
    0%, 100% { opacity: 0.3; }
    25% { opacity: 0.5; }
    50% { opacity: 0.2; }
    75% { opacity: 0.6; }
}

@keyframes corner-flicker {
    0%, 100% { opacity: 0.4; }
    33% { opacity: 0.7; }
    66% { opacity: 0.3; }
}

@keyframes emblem-pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.02); }
}

/* LA SELECCIÓN DEL CRONISTA - Default gold theme (most stable/curated) */
/* Uses base .archivista-showcase styles - the "completed" archive feel */

/* Content area */
.showcase-content {
    position: relative;
    z-index: 2;
}

.showcase-content .books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-md);
    justify-items: center;
}

@media (min-width: 900px) {
    .showcase-content .books-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .showcase-content .books-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: var(--space-sm);
    }

    .showcase-content .book-card {
        max-width: 220px;
    }
}

/* Forzar 6 columnas en pantallas landscape (iPad, tablets) */
@media (min-width: 769px) and (orientation: landscape) {
    .showcase-content .books-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: var(--space-sm);
    }

    .showcase-content .book-card {
        max-width: 220px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   BOOKS GRID (Legacy/Full catalog)
   ═══════════════════════════════════════════════════════════════ */

.library {
    padding: var(--space-lg) var(--space-md);
    max-width: 1600px;
    margin: 0 auto;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-md);
}

/* ═══════════════════════════════════════════════════════════════
   BOOK CARD - TOMO ARCANO
   Un grimorio flotante en la biblioteca del Cronista
   ═══════════════════════════════════════════════════════════════ */

.book-card {
    --tome-glow-primary: rgba(212, 175, 55, 0.4);
    --tome-glow-secondary: rgba(125, 211, 232, 0.3);

    position: relative;
    background: linear-gradient(
        145deg,
        rgba(20, 25, 40, 0.95) 0%,
        rgba(15, 20, 35, 0.98) 100%
    );
    border: none;
    border-radius: 4px;
    overflow: visible;
    cursor: pointer;
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);

    /* Ocupar toda la altura de la celda del grid */
    height: 100%;
    display: flex;
    flex-direction: column;

    /* Sombra base como si flotara */
    box-shadow:
        0 15px 35px -10px rgba(0, 0, 0, 0.7),
        0 5px 15px rgba(0, 0, 0, 0.4);
}

/* Marco exterior ornamental */
.book-card::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 6px;
    background: linear-gradient(
        135deg,
        rgba(212, 175, 55, 0.3) 0%,
        rgba(212, 175, 55, 0.1) 25%,
        transparent 50%,
        rgba(125, 211, 232, 0.1) 75%,
        rgba(125, 211, 232, 0.3) 100%
    );
    opacity: 0.5; /* era 0.6, reducido 15% */
    z-index: -1;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.book-card:hover {
    transform: translateY(-12px) rotateX(5deg);
    box-shadow:
        0 30px 50px -15px rgba(0, 0, 0, 0.6),
        0 20px 40px -10px rgba(212, 175, 55, 0.15),
        0 0 60px rgba(212, 175, 55, 0.1),
        0 0 80px rgba(125, 211, 232, 0.08);
}

.book-card:hover::before {
    opacity: 0.85; /* era 1, reducido 15% */
    transform: scale(1.01);
}

/* ═══ Upcoming Book Card (non-clickable) ═══ */
.upcoming-book-card {
    cursor: default;
}
.upcoming-book-card:hover {
    transform: none;
    box-shadow:
        0 15px 35px -10px rgba(0, 0, 0, 0.7),
        0 5px 15px rgba(0, 0, 0, 0.4);
}
.upcoming-book-card:hover::before {
    opacity: 0.5;
    transform: none;
}
.upcoming-book-card:hover .book-cover {
    transform: scale(1.02);
    filter: saturate(0.9) contrast(1.02);
}

/* Release date badge */
.upcoming-date-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.75) 0%, rgba(2, 6, 23, 0.95) 100%);
    border-top: 1px solid rgba(125, 211, 232, 0.3);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--cyan-neon);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.upcoming-date-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    stroke: var(--cyan-neon);
    opacity: 0.7;
}

/* Efecto lomo del libro (lado izquierdo) */
.book-cover-container {
    position: relative;
    width: 100%;
    aspect-ratio: 2/3;
    overflow: hidden;
    background-color: var(--slate-950);
    border-radius: 3px 3px 0 0;
}

/* Lomo simulado */
.book-cover-container::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 12px;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(212, 175, 55, 0.15) 30%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(0, 0, 0, 0.3) 100%
    );
    z-index: 2;
    pointer-events: none;
}


.book-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.02);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), filter 0.4s ease;
    filter: saturate(0.9) contrast(1.02);
}

.book-card:hover .book-cover {
    transform: scale(1.06);
    filter: saturate(1.1) contrast(1.05) brightness(1.05);
}

/* Overlay con gradiente y viñeta */
.cover-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            ellipse 80% 60% at 50% 100%,
            rgba(2, 6, 23, 0.56) 0%,
            transparent 60%
        ),
        linear-gradient(
            180deg,
            transparent 40%,
            rgba(2, 6, 23, 0.16) 70%,
            rgba(2, 6, 23, 0.48) 100%
        );
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.book-card:hover .cover-overlay {
    opacity: 0.56;
}


/* Author Badge */
.author-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 0.35rem 0.7rem;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--gold-metallic);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* Book Info - Página interior del tomo */
.book-info {
    padding: var(--space-sm);
    position: relative;
    background: linear-gradient(
        180deg,
        rgba(15, 20, 35, 0.98) 0%,
        rgba(20, 25, 45, 0.95) 100%
    );
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    /* Expandir para llenar el espacio restante */
    flex: 1;
    display: flex;
    flex-direction: column;
}

.book-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--slate-100);
    line-height: 1.35;
    margin-bottom: 0.35rem;
    /* Máximo 2 líneas */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.book-card:hover .book-title {
    color: var(--gold-light);
}

.book-author {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--slate-400);
    letter-spacing: 0.03em;
    transition: color 0.3s ease;
    /* Siempre 1 línea */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.book-card:hover .book-author {
    color: var(--cyan-neon);
}

.book-quote-preview {
    margin-top: var(--space-xs);
    padding-top: var(--space-xs);
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-style: italic;
    color: var(--slate-500);
    line-height: 1.5;
    /* Permitir hasta 4 líneas */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════
   CODEX SCORE TAG (inline indicator)
   ═══════════════════════════════════════════════════════════════ */

.book-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.featured-title-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.codex-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px 2px 5px;
    border-radius: 3px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(100, 116, 139, 0.15);
    flex-shrink: 0;
    transition: border-color 0.3s ease;
}

.codex-tag-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
}

.codex-tag-num {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
}

/* Gold (≥90) */
.codex-tag-gold .codex-tag-dot {
    background: #D4AF37;
    box-shadow: 0 0 6px rgba(212, 175, 55, 0.7);
}
.codex-tag-gold .codex-tag-num {
    color: #D4AF37;
}
.codex-tag-gold {
    border-color: rgba(212, 175, 55, 0.2);
}

/* Legendary (≥80) */
.codex-tag-legendary .codex-tag-dot {
    background: #22d3ee;
    box-shadow: 0 0 6px rgba(34, 211, 238, 0.7);
}
.codex-tag-legendary .codex-tag-num {
    color: #22d3ee;
}
.codex-tag-legendary {
    border-color: rgba(34, 211, 238, 0.15);
}

/* Stable (≥70) */
.codex-tag-stable .codex-tag-dot {
    background: #a78bfa;
    box-shadow: 0 0 6px rgba(167, 139, 250, 0.7);
}
.codex-tag-stable .codex-tag-num {
    color: #a78bfa;
}
.codex-tag-stable {
    border-color: rgba(167, 139, 250, 0.15);
}

/* Neutral (≥60) */
.codex-tag-neutral .codex-tag-dot {
    background: #94a3b8;
    box-shadow: 0 0 6px rgba(148, 163, 184, 0.5);
}
.codex-tag-neutral .codex-tag-num {
    color: #94a3b8;
}
.codex-tag-neutral {
    border-color: rgba(148, 163, 184, 0.15);
}

/* Critical (<60) */
.codex-tag-critical .codex-tag-dot {
    background: #f87171;
    box-shadow: 0 0 6px rgba(248, 113, 113, 0.7);
}
.codex-tag-critical .codex-tag-num {
    color: #f87171;
}
.codex-tag-critical {
    border-color: rgba(248, 113, 113, 0.15);
}

/* ═══════════════════════════════════════════════════════════════
   CARD FOOTER (genre + score replacing quote)
   ═══════════════════════════════════════════════════════════════ */

.book-card-footer {
    margin-top: auto;
    padding-top: var(--space-xs);
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.card-genre-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--slate-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.card-score-value {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
    line-height: 1;
    transition: text-shadow 0.3s ease;
}

.book-card:hover .card-score-value {
    filter: brightness(1.2);
}

/* Card score tiers */
.card-score-gold {
    color: #D4AF37;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}
.card-score-legendary {
    color: #22d3ee;
    text-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
}
.card-score-stable {
    color: #a78bfa;
    text-shadow: 0 0 10px rgba(167, 139, 250, 0.5);
}
.card-score-neutral {
    color: #94a3b8;
    text-shadow: 0 0 8px rgba(148, 163, 184, 0.3);
}
.card-score-critical {
    color: #f87171;
    text-shadow: 0 0 10px rgba(248, 113, 113, 0.5);
}

/* ═══════════════════════════════════════════════════════════════
   CODEX SCORE SEAL (replaces arcane seal on featured books)
   ═══════════════════════════════════════════════════════════════ */

.codex-seal {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 124px;
    height: 124px;
    z-index: 10;
    transform: rotate(8deg);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), filter 0.4s ease;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.5));
}

.codex-seal:hover {
    transform: rotate(0deg) scale(1.08);
}

.codex-seal svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* Ticks decorativos */
.seal-ticks line {
    stroke: rgba(100, 116, 139, 0.25);
    stroke-width: 1;
}

/* Anillo de progreso - fondo */
.cseal-ring-bg {
    stroke: rgba(100, 116, 139, 0.1);
    stroke-dasharray: 4 2.5;
}

/* Anillo de progreso - arco */
.cseal-ring-progress {
    transition: stroke-dashoffset 1.5s cubic-bezier(0.23, 1, 0.32, 1),
                stroke-width 0.3s ease;
    stroke-linecap: round;
}

.codex-seal:hover .cseal-ring-progress {
    stroke-width: 5.5;
}

/* Texto CODEX / SCORE */
.cseal-text {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    fill: rgba(148, 163, 184, 0.35);
    transition: fill 0.4s ease;
}

/* Número */
.cseal-number {
    font-family: 'JetBrains Mono', 'Roboto Mono', monospace;
    font-size: 38px;
    font-weight: 700;
    text-anchor: middle;
    transition: fill 0.4s ease, filter 0.4s ease;
}

/* ── Tier: Gold (>=90) ── */
.codex-seal-gold .cseal-ring-progress { stroke: #D4AF37; }
.codex-seal-gold .cseal-ring-bg { stroke: rgba(212, 175, 55, 0.12); }
.codex-seal-gold .cseal-number { fill: #D4AF37; }
.codex-seal-gold .cseal-text { fill: rgba(212, 175, 55, 0.35); }
.codex-seal-gold .seal-ticks line { stroke: rgba(212, 175, 55, 0.2); }
.codex-seal-gold .seal-laser-line { animation-name: laser-engrave; }
.codex-seal-gold:hover .cseal-number { fill: #f0d060; filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.9)); }
.codex-seal-gold:hover .cseal-text { fill: rgba(240, 208, 96, 0.9); }
.codex-seal-gold:hover .cseal-ring-progress { stroke: #f0d060; }

/* ── Tier: Legendary (>=80) ── */
.codex-seal-legendary .cseal-ring-progress { stroke: #22d3ee; }
.codex-seal-legendary .cseal-ring-bg { stroke: rgba(34, 211, 238, 0.12); }
.codex-seal-legendary .cseal-number { fill: #22d3ee; }
.codex-seal-legendary .cseal-text { fill: rgba(34, 211, 238, 0.35); }
.codex-seal-legendary .seal-ticks line { stroke: rgba(34, 211, 238, 0.2); }
.codex-seal-legendary .seal-laser-line { animation-name: laser-engrave-cyan; }
.codex-seal-legendary:hover .cseal-number { fill: #67e8f9; filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.9)); }
.codex-seal-legendary:hover .cseal-text { fill: rgba(103, 232, 249, 0.9); }
.codex-seal-legendary:hover .cseal-ring-progress { stroke: #67e8f9; }

/* ── Tier: Stable (>=70) ── */
.codex-seal-stable .cseal-ring-progress { stroke: #a78bfa; }
.codex-seal-stable .cseal-ring-bg { stroke: rgba(167, 139, 250, 0.12); }
.codex-seal-stable .cseal-number { fill: #a78bfa; }
.codex-seal-stable .cseal-text { fill: rgba(167, 139, 250, 0.35); }
.codex-seal-stable .seal-ticks line { stroke: rgba(167, 139, 250, 0.2); }
.codex-seal-stable .seal-laser-line { animation-name: laser-engrave-purple; }
.codex-seal-stable:hover .cseal-number { fill: #c4b5fd; filter: drop-shadow(0 0 8px rgba(167, 139, 250, 0.9)); }
.codex-seal-stable:hover .cseal-text { fill: rgba(196, 181, 253, 0.9); }
.codex-seal-stable:hover .cseal-ring-progress { stroke: #c4b5fd; }

/* ── Tier: Neutral (>=60) ── */
.codex-seal-neutral .cseal-ring-progress { stroke: #94a3b8; }
.codex-seal-neutral .cseal-ring-bg { stroke: rgba(148, 163, 184, 0.1); }
.codex-seal-neutral .cseal-number { fill: #94a3b8; }
.codex-seal-neutral .cseal-text { fill: rgba(148, 163, 184, 0.3); }
.codex-seal-neutral .seal-laser-line { animation-name: laser-engrave-neutral; }
.codex-seal-neutral:hover .cseal-number { fill: #cbd5e1; filter: drop-shadow(0 0 6px rgba(148, 163, 184, 0.7)); }
.codex-seal-neutral:hover .cseal-text { fill: rgba(203, 213, 225, 0.8); }
.codex-seal-neutral:hover .cseal-ring-progress { stroke: #cbd5e1; }

/* ── Tier: Critical (<60) ── */
.codex-seal-critical .cseal-ring-progress { stroke: #f87171; }
.codex-seal-critical .cseal-ring-bg { stroke: rgba(248, 113, 113, 0.12); }
.codex-seal-critical .cseal-number { fill: #f87171; }
.codex-seal-critical .cseal-text { fill: rgba(248, 113, 113, 0.35); }
.codex-seal-critical .seal-ticks line { stroke: rgba(248, 113, 113, 0.2); }
.codex-seal-critical .seal-laser-line { animation-name: laser-engrave-red; }
.codex-seal-critical:hover .cseal-number { fill: #fca5a5; filter: drop-shadow(0 0 8px rgba(248, 113, 113, 0.9)); }
.codex-seal-critical:hover .cseal-text { fill: rgba(252, 165, 165, 0.9); }
.codex-seal-critical:hover .cseal-ring-progress { stroke: #fca5a5; }

/* Laser engrave animations per tier */
@keyframes laser-engrave-cyan {
    0% { stroke-dashoffset: 420; stroke: #22d3ee; filter: drop-shadow(0 0 8px #22d3ee); }
    60% { stroke: #22d3ee; filter: drop-shadow(0 0 12px #22d3ee); }
    100% { stroke-dashoffset: 0; stroke: #22d3ee; filter: drop-shadow(0 0 3px rgba(34, 211, 238, 0.5)); }
}

@keyframes laser-engrave-purple {
    0% { stroke-dashoffset: 420; stroke: #c4b5fd; filter: drop-shadow(0 0 8px #a78bfa); }
    60% { stroke: #c4b5fd; filter: drop-shadow(0 0 12px #a78bfa); }
    100% { stroke-dashoffset: 0; stroke: #a78bfa; filter: drop-shadow(0 0 3px rgba(167, 139, 250, 0.5)); }
}

@keyframes laser-engrave-neutral {
    0% { stroke-dashoffset: 420; stroke: #cbd5e1; filter: drop-shadow(0 0 6px #94a3b8); }
    60% { stroke: #cbd5e1; }
    100% { stroke-dashoffset: 0; stroke: #64748b; filter: none; }
}

@keyframes laser-engrave-red {
    0% { stroke-dashoffset: 420; stroke: #fca5a5; filter: drop-shadow(0 0 8px #f87171); }
    60% { stroke: #fca5a5; filter: drop-shadow(0 0 12px #f87171); }
    100% { stroke-dashoffset: 0; stroke: #f87171; filter: drop-shadow(0 0 3px rgba(248, 113, 113, 0.5)); }
}

/* ═══════════════════════════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════════════════════════ */

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.92);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    /* GPU optimization */
    will-change: opacity;
    transform: translateZ(0);
    isolation: isolate;
}

.modal-content {
    position: relative;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow:
        0 50px 100px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(212, 175, 55, 0.08),
        0 0 120px rgba(6, 182, 212, 0.05);
    /* GPU optimization */
    will-change: transform, opacity;
    transform: translateZ(0);
    contain: layout style paint;
}


.modal-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(2, 6, 23, 0.9);
    border: 1px solid var(--slate-600);
    border-radius: 50%;
    color: var(--slate-300);
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 1002;
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    /* GPU optimization */
    will-change: transform;
    transform: translateZ(0);
}

.modal-close:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--gold-metallic);
    color: var(--gold-metallic);
    transform: rotate(90deg);
}

/* Video Play Overlay */
.video-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(2, 6, 23, 0.4);
    z-index: 5;
    cursor: pointer;
    /* GPU optimization */
    will-change: opacity;
    transform: translateZ(0);
}

.video-play-btn {
    width: 80px;
    height: 80px;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(212, 175, 55, 0.5);
    border-radius: 50%;
    color: var(--gold-metallic);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow:
        0 0 40px rgba(212, 175, 55, 0.2),
        inset 0 0 20px rgba(212, 175, 55, 0.05);
    /* GPU optimization */
    will-change: transform;
    transform: translateZ(0);
}

.video-play-btn svg {
    width: 32px;
    height: 32px;
    margin-left: 4px;
}

.video-play-overlay:hover .video-play-btn {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--gold-metallic);
    transform: scale(1.1);
    box-shadow:
        0 0 60px rgba(212, 175, 55, 0.4),
        inset 0 0 30px rgba(212, 175, 55, 0.1);
}

/* Overlay para video standby - más oscuro */
.video-standby-overlay {
    background: rgba(2, 6, 23, 0.6);
}

.video-standby-overlay .video-play-btn {
    background: rgba(2, 6, 23, 0.9);
}

.neon-label {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--cyan-neon);
    margin-bottom: calc(var(--space-sm) + 8px);
    text-shadow: 0 0 10px rgba(125, 211, 232, 0.5);
}

.spectrum-genre {
    font-family: 'JetBrains Mono', 'Roboto Mono', 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--slate-500);
    text-shadow: none;
    letter-spacing: 0.1em;
}

.neon-bar-container {
    width: 100%;
    height: 16px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: var(--space-sm);
}

.neon-segment {
    height: 100%;
    position: relative;
    /* GPU optimization for scaleX animation */
    will-change: transform;
    backface-visibility: hidden;
}

.neon-segment.neon-adventure {
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-metallic), var(--gold-light));
    box-shadow:
        0 0 20px rgba(212, 175, 55, 0.6),
        0 0 40px rgba(212, 175, 55, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.neon-segment.neon-magic {
    background: linear-gradient(90deg, var(--cyan-dark), var(--cyan-neon), var(--cyan-light));
    box-shadow:
        0 0 20px rgba(125, 211, 232, 0.6),
        0 0 40px rgba(125, 211, 232, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.neon-segment.neon-drama {
    background: linear-gradient(90deg, #7c3aed, #8b5cf6, #a78bfa);
    box-shadow:
        0 0 20px rgba(139, 92, 246, 0.6),
        0 0 40px rgba(139, 92, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Ocultar versión vertical en desktop (solo visible en móvil via mobile.css) */
.neon-bar-vertical {
    display: none;
}

.neon-legend {
    display: flex;
    justify-content: space-between;
    margin-top: var(--space-md);
    gap: var(--space-sm);
}

.neon-legend-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.neon-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.3rem;
}

.neon-value-adventure {
    color: var(--gold-metallic);
    text-shadow:
        0 0 10px rgba(212, 175, 55, 0.8),
        0 0 20px rgba(212, 175, 55, 0.5),
        0 0 30px rgba(212, 175, 55, 0.3);
}

.neon-value-magic {
    color: var(--cyan-neon);
    text-shadow:
        0 0 10px rgba(125, 211, 232, 0.8),
        0 0 20px rgba(125, 211, 232, 0.5),
        0 0 30px rgba(125, 211, 232, 0.3);
}

.neon-value-drama {
    color: #a78bfa;
    text-shadow:
        0 0 10px rgba(167, 139, 250, 0.8),
        0 0 20px rgba(167, 139, 250, 0.5),
        0 0 30px rgba(167, 139, 250, 0.3);
}

.neon-name {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--slate-400);
    transition: all 0.3s ease;
}

/* Efecto hover interactivo del espectro */
.neon-segment {
    transition: opacity 0.3s ease, filter 0.3s ease, transform 0.2s ease;
    cursor: pointer;
}

.neon-segment.segment-hovered {
    filter: brightness(1.3);
    transform: scaleY(1.15);
}

.neon-segment.segment-dimmed {
    opacity: 0.35;
    filter: brightness(0.7) saturate(0.5);
}

.neon-legend-item {
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
}

.neon-legend-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.neon-legend-item.legend-hovered {
    transform: scale(1.08);
}

.neon-legend-item.legend-hovered .neon-value {
    transform: scale(1.1);
}

.neon-legend-item.legend-hovered .neon-name {
    color: var(--slate-200);
}

.neon-legend-item.legend-dimmed {
    opacity: 0.35;
}

.neon-legend-item.legend-dimmed .neon-value {
    filter: saturate(0.4);
}

.neon-legend-item.legend-dimmed .neon-name {
    color: var(--slate-600);
}

.neon-value {
    transition: all 0.3s ease;
}


/* ═══════════════════════════════════════════════════════════════
   LAYOUT CRONISTA FULL
   ═══════════════════════════════════════════════════════════════ */

.modal-content-cronista-full {
    max-width: 1300px;
    overflow: hidden;
}

.cronista-full-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    max-height: 85vh;
}

/* Columna Izquierda: Contenido completo */
.cronista-full-content {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.cronista-full-layout {
    display: flex;
    gap: var(--space-lg);
}

.cronista-full-cover {
    flex-shrink: 0;
    width: 200px;
}

.cronista-full-cover-inner {
    position: relative;
    overflow: hidden;
    border-radius: 3px;
    background-color: var(--slate-950);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    aspect-ratio: 2/3;
}

/* Lomo del libro simulado */
.cronista-full-cover-inner::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 14px;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(212, 175, 55, 0.15) 30%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(0, 0, 0, 0.3) 100%
    );
    z-index: 2;
    pointer-events: none;
    border-radius: 3px 0 0 3px;
}

.cronista-full-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* Hover sutil */
.cronista-full-cover:hover .cronista-full-cover-inner {
    transform: scale(1.03) translateY(-4px);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.8),
        0 0 30px rgba(34, 211, 238, 0.1);
}

.cronista-full-texto {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    min-width: 0;
    /* GPU optimization - isolate repaints */
    contain: layout style;
    transform: translateZ(0);
}

.cronista-full-texto .modal-synopsis {
    line-height: 1.8;
    margin-bottom: var(--space-sm);
}

.cronista-full-texto .modal-quote {
    margin-bottom: var(--space-md);
}

/* ADN en columna central */
.cronista-full-dna {
    margin-top: var(--space-sm);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    /* GPU optimization - isolate repaints for bar animations */
    contain: layout style;
    transform: translateZ(0);
    will-change: transform, opacity;
}

.cronista-full-dna .neon-legend {
    margin-top: var(--space-sm);
}

.cronista-full-dna .neon-value {
    font-size: 1.6rem;
}

/* Botón Amazon Desktop - debajo del Codex Score */
.cronista-full-cover-wrapper .amazon-desktop {
    width: 100%;
    margin-top: var(--space-sm);
    padding: 0.7rem 1rem;
    font-size: 0.8rem;
    justify-content: center;
}

/* Botón Amazon en columna central (legacy) */
.cronista-full-amazon {
    margin-top: var(--space-md);
    align-self: flex-start;
}

.external-book-cover-col .cronista-full-amazon {
    width: 100%;
    justify-content: center;
    align-self: stretch;
    margin-top: 0;
}

/* Desktop: mostrar botón dentro del modal, ocultar el de fuera */
.amazon-link.amazon-mobile {
    display: none !important;
}

/* Columna Derecha: Video Full Height */
.cronista-full-video {
    position: relative;
    background: linear-gradient(
        180deg,
        rgba(2, 6, 23, 0.95) 0%,
        rgba(15, 23, 42, 0.98) 100%
    );
    border-left: 1px solid rgba(125, 211, 232, 0.1);
    overflow: hidden;
}

/* Efecto scan lines */
.cronista-full-video::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(125, 211, 232, 0.015) 2px,
        rgba(125, 211, 232, 0.015) 4px
    );
    pointer-events: none;
    z-index: 2;
}

.cronista-full-video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.cronista-full-video-element {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Viñeta sutil en los bordes del video */
.cronista-full-video-vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    box-shadow:
        inset 0 0 100px rgba(2, 6, 23, 0.4),
        inset 0 0 200px rgba(2, 6, 23, 0.2);
}

/* ═══════════════════════════════════════════════════════════════
   REVISIÓN DEL CRONISTA - Panel con imagen estática
   ═══════════════════════════════════════════════════════════════ */

.cronista-full-video.cronista-review-panel {
    display: flex;
    align-items: stretch;
    min-height: 750px;  /* Altura mínima para que el texto de la exégesis sea visible */
    overflow: visible !important;  /* Sobrescribir overflow:hidden de cronista-full-video */
}

.cronista-review-wrapper {
    position: absolute;
    inset: 0;
}

/* Capa de ruido/grain para efecto pantalla */
.cronista-review-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.08;
    pointer-events: none;
    z-index: 10;
    mix-blend-mode: overlay;
}

.cronista-review-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.6) saturate(0.8);
}

.cronista-review-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.6) saturate(0.8);
}

.cronista-review-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 2rem 2.5rem;
    background: linear-gradient(
        to top,
        rgba(2, 6, 23, 0.95) 0%,
        rgba(2, 6, 23, 0.7) 40%,
        rgba(2, 6, 23, 0.3) 70%,
        transparent 100%
    );
    z-index: 4;
}

.cronista-review-content {
    max-width: 100%;
    width: 100%;
    padding: 0;
    text-align: center;
    box-sizing: border-box;
}

.cronista-review-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

/* Header para video dual con exégesis */
.cronista-video-header {
    position: absolute;
    top: 1.5rem;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    z-index: 10;
    pointer-events: none;
    text-align: center;
}

.cronista-video-header .cronista-review-icon {
    width: 20px;
    height: 20px;
}

.cronista-video-header .cronista-review-title {
    font-size: 0.85rem;
    letter-spacing: 0.18em;
}

/* Contenedor del video dual necesita position relative */
.cronista-dual-video {
    position: relative;
    min-height: 600px;
}

/* Zoom ligero en el video de standby para ocultar marca de agua */
.cronista-dual-video .cronista-full-video-element:not(.cronista-main-video) {
    transform: scale(1.05);
    transform-origin: center center;
}

.cronista-review-icon {
    width: 32px;
    height: 32px;
    color: #7dd3e8;
    filter: drop-shadow(0 0 8px rgba(125, 211, 232, 0.6));
    transition: transform 0.6s ease, filter 0.3s ease;
}

.cronista-review-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #7dd3e8;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-shadow: 0 0 10px rgba(125, 211, 232, 0.4);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.cronista-review-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(226, 232, 240, 0.9);
    font-style: italic;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* Hover effects para el panel de revisión */
.cronista-review-wrapper:hover .cronista-review-icon {
    transform: rotate(45deg);
    filter: drop-shadow(0 0 12px rgba(125, 211, 232, 0.8));
}

.cronista-review-wrapper:hover .cronista-review-title {
    color: #a5e8f7;
    text-shadow: 0 0 15px rgba(125, 211, 232, 0.6);
}

.cronista-review-wrapper:hover .cronista-review-text {
    color: rgba(248, 250, 252, 0.95);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4), 0 0 20px rgba(125, 211, 232, 0.15);
}

/* Efecto de borde luminoso para el panel de review */
.cronista-review-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(125, 211, 232, 0.15);
    pointer-events: none;
    z-index: 5;
}

/* Versión móvil de la revisión */
.cronista-review-mobile .cronista-review-wrapper {
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
}

.cronista-review-mobile .cronista-review-image {
    border-radius: 8px;
}

.cronista-review-mobile .cronista-review-video {
    border-radius: 8px;
}

.cronista-review-mobile .cronista-review-overlay {
    border-radius: 8px;
    padding: 1.5rem;
}

.cronista-review-mobile .cronista-review-text {
    font-size: 0.85rem;
    line-height: 1.6;
}

.cronista-review-mobile .cronista-review-title {
    font-size: 0.95rem;
}

/* Responsive para Cronista Full */
@media (max-width: 1100px) {
    .cronista-full-grid {
        grid-template-columns: 1fr;
    }

    .cronista-full-video {
        border-left: none;
        border-top: 1px solid rgba(125, 211, 232, 0.1);
        height: 400px;
    }

    .cronista-full-layout {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .cronista-full-cover {
        width: 160px;
    }

    .cronista-full-cover-wrapper {
        width: 160px;
    }

    .cronista-full-texto .modal-divider {
        margin-left: auto;
        margin-right: auto;
    }

    .cronista-full-amazon {
        align-self: center;
    }

    .cronista-full-dna .neon-value {
        font-size: 1.4rem;
    }
}

.modal-author-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--cyan-neon);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
    /* GPU optimization */
    will-change: transform, opacity;
    transform: translateZ(0);
}

.modal-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 700;
    color: var(--slate-100);
    line-height: 1.2;
    margin-bottom: var(--space-sm);
    /* GPU optimization */
    will-change: transform, opacity;
    transform: translateZ(0);
}

.modal-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(
        90deg,
        var(--gold-metallic),
        var(--cyan-neon),
        transparent
    );
    margin: var(--space-sm) 0;
    /* GPU optimization */
    will-change: transform;
    transform-origin: left;
}

.modal-synopsis {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 2;
    color: var(--slate-200);
    margin-bottom: var(--space-md);
    /* GPU optimization */
    will-change: transform, opacity;
    transform: translateZ(0);
}

.modal-quote {
    position: relative;
    padding: var(--space-sm) var(--space-md);
    background: linear-gradient(
        135deg,
        rgba(212, 175, 55, 0.08) 0%,
        rgba(125, 211, 232, 0.04) 100%
    );
    border-left: 3px solid var(--gold-metallic);
    border-radius: 0 12px 12px 0;
    margin-top: auto;
    /* GPU optimization */
    will-change: transform, opacity;
    transform: translateZ(0);
}

.modal-quote p {
    font-family: var(--font-display);
    font-size: 1rem;
    font-style: italic;
    line-height: 1.7;
    color: var(--slate-100);
}

/* ═══════════════════════════════════════════════════════════════
   DNA BAR - Composition Visualization
   ═══════════════════════════════════════════════════════════════ */

.dna-section {
    margin-top: var(--space-md);
    padding-top: var(--space-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.dna-label {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--slate-500);
    margin-bottom: var(--space-xs);
}

.dna-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
}

.dna-segment {
    height: 100%;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.dna-segment.adventure {
    background: linear-gradient(90deg, var(--gold-metallic), var(--gold-light));
}

.dna-segment.magic {
    background: linear-gradient(90deg, var(--cyan-dark), var(--cyan-neon));
}

.dna-segment.drama {
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
}

.dna-legend {
    display: flex;
    justify-content: space-between;
    gap: var(--space-md);
    margin-top: var(--space-sm);
}

.dna-legend-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    flex: 1;
    text-align: center;
}

.dna-legend-value {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1;
}

.dna-legend-item.adventure .dna-legend-value {
    color: var(--gold-metallic);
}

.dna-legend-item.magic .dna-legend-value {
    color: var(--cyan-neon);
}

.dna-legend-item.drama .dna-legend-value {
    color: #a78bfa;
}

.dna-legend-label {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--slate-500);
}

/* ═══════════════════════════════════════════════════════════════
   AMAZON LINK
   ═══════════════════════════════════════════════════════════════ */

.amazon-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: var(--space-md);
    padding: 0.9rem 1.6rem;
    background: linear-gradient(
        135deg,
        var(--gold-metallic) 0%,
        var(--gold-dark) 100%
    );
    border: none;
    border-radius: 8px;
    color: var(--slate-950);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow:
        0 4px 15px rgba(212, 175, 55, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    /* GPU optimization */
    will-change: transform;
    transform: translateZ(0);
}

.amazon-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        var(--gold-light) 0%,
        var(--gold-metallic) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.amazon-link:hover {
    color: var(--slate-950);
    box-shadow:
        0 6px 25px rgba(212, 175, 55, 0.4),
        0 0 40px rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
}

.amazon-link:hover::before {
    opacity: 1;
}

.amazon-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.amazon-text {
    position: relative;
    z-index: 1;
}

/* ═══════════════════════════════════════════════════════════════
   SMART NAVBAR
   ═══════════════════════════════════════════════════════════════ */

/* Cyan neon color for hover effects */
:root {
    --neon-cyan: #22D3EE;
    --neon-cyan-glow: rgba(34, 211, 238, 0.6);
    --neon-cyan-subtle: rgba(34, 211, 238, 0.15);
}

.smart-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
    /* Glassmorphism oscuro */
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

/* Borde inferior con efecto láser/holográfico */
.smart-navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(34, 211, 238, 0.3) 20%,
        var(--neon-cyan) 50%,
        rgba(34, 211, 238, 0.3) 80%,
        transparent 100%
    );
    opacity: 0.8;
}

.smart-navbar--visible {
    transform: translateY(0);
}

.smart-navbar__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.5rem var(--space-md); /* Slim height */
    gap: var(--space-md);
}

/* Logo Section */
.smart-navbar__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 2px;
    transition: all 0.25s ease;
}

.smart-navbar__logo:hover {
    background: var(--neon-cyan-subtle);
}

.smart-navbar__logo:hover .smart-navbar__logo-img {
    filter: drop-shadow(0 0 10px var(--neon-cyan-glow));
}

.smart-navbar__logo:hover .smart-navbar__logo-text-img {
    filter:
        drop-shadow(0 0 6px var(--neon-cyan-glow))
        drop-shadow(0 0 12px var(--neon-cyan-glow))
        brightness(1.2);
}

.smart-navbar__logo-img {
    width: 24px;
    height: auto;
    filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.3));
    transition: filter 0.25s ease;
}

.smart-navbar__logo-text-img {
    height: 18px;
    width: auto;
    opacity: 0.9;
    transition: all 0.25s ease;
}

/* Navigation Links */
.smart-navbar__links {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    list-style: none;
    margin: 0;
    padding: 0;
}

.smart-navbar__link {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(200, 200, 195, 0.85); /* Gris claro */
    background: transparent;
    border: none;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    position: relative;
}

/* Underline animado en hover */
.smart-navbar__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--neon-cyan);
    box-shadow: 0 0 8px var(--neon-cyan-glow);
    transition: all 0.25s ease;
    transform: translateX(-50%);
}

.smart-navbar__link:hover {
    color: var(--neon-cyan);
    text-shadow:
        0 0 8px var(--neon-cyan-glow),
        0 0 16px var(--neon-cyan-glow);
}

.smart-navbar__link:hover::after {
    width: 80%;
}

.smart-navbar__link:focus-visible {
    outline: 1px solid var(--neon-cyan);
    outline-offset: 4px;
}

/* Active link state (desktop) */
.smart-navbar__link--active {
    color: var(--neon-cyan);
    text-shadow:
        0 0 8px var(--neon-cyan-glow),
        0 0 16px var(--neon-cyan-glow);
}

.smart-navbar__link--active::after {
    width: 80%;
}

/* Panel mode — always visible */
.smart-navbar--panel {
    transform: translateY(0);
}

/* Responsive Navbar */
@media (max-width: 768px) {
    .smart-navbar__container {
        padding: 0.4rem var(--space-sm);
    }

    .smart-navbar__logo-text-img {
        display: none;
    }

    .smart-navbar__logo-img {
        width: 22px;
    }

    .smart-navbar__link {
        font-size: 0.6rem;
        letter-spacing: 1.5px;
        padding: 0.4rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .smart-navbar__links {
        gap: 0.25rem;
    }

    .smart-navbar__link {
        font-size: 0.6rem;
        padding: 0.35rem 0.5rem;
        letter-spacing: 0.02em;
    }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE HAMBURGER & OVERLAY (base — hidden on desktop)
   ═══════════════════════════════════════════════════════════════ */

/* Hamburger icon — hidden on desktop */
.smart-navbar__hamburger {
    display: none;
}

/* Overlay — base styles (always available for AnimatePresence) */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(34, 211, 238, 0.08) 0%, transparent 55%),
        linear-gradient(rgba(34, 211, 238, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 211, 238, 0.1) 1px, transparent 1px),
        rgba(5, 5, 5, 0.98);
    background-size: 100% 100%, 32px 32px, 32px 32px, 100% 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.mobile-nav-overlay__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.75rem;
    z-index: 10;
}

.close-x {
    display: block;
    width: 28px;
    height: 28px;
    position: relative;
}

.close-x__line {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 1.5px;
    background: linear-gradient(90deg, var(--neon-cyan), rgba(255,255,255,0.9));
    box-shadow: 0 0 8px var(--neon-cyan-glow);
    border-radius: 1px;
}

.close-x__line:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
}

.close-x__line:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.mobile-nav-overlay__links {
    list-style: none;
    margin: 0;
    padding: 0 0 0 10%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2.5rem;
    border-left: 1px solid rgba(34, 211, 238, 0.12);
    position: relative;
}

.mobile-nav-overlay__link {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.75rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--neon-cyan);
    opacity: 0.5;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
    text-shadow: none;
    position: relative;
}

/* Active section — full brightness + left glow bar */
.mobile-nav-overlay__link--active {
    opacity: 1;
    text-shadow: 0 0 12px rgba(34, 211, 238, 0.4), 0 0 30px rgba(34, 211, 238, 0.15);
}

.mobile-nav-overlay__link--active::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 10%;
    height: 80%;
    width: 2px;
    background: var(--neon-cyan);
    box-shadow: 0 0 8px var(--neon-cyan-glow), 0 0 20px var(--neon-cyan-glow);
}

/* Glitch effect on tap */
@keyframes nav-glitch {
    0%   { opacity: 1; transform: translate(0); text-shadow: 0 0 20px rgba(34,211,238,0.15); }
    10%  { opacity: 0.6; transform: translate(-3px, 1px); text-shadow: 2px 0 #ff0040, -2px 0 var(--neon-cyan); }
    20%  { opacity: 1; transform: translate(2px, -1px); text-shadow: -2px 0 #ff0040, 2px 0 var(--neon-cyan); }
    30%  { opacity: 0.4; transform: translate(0, 2px); text-shadow: 2px 0 var(--neon-cyan), -2px 0 #ff0040; }
    40%  { opacity: 1; transform: translate(-1px, -1px); text-shadow: 0 0 8px var(--neon-cyan); }
    50%  { opacity: 0.7; transform: translate(3px, 0); text-shadow: -3px 0 #ff0040, 3px 0 var(--neon-cyan); }
    60%  { opacity: 1; transform: translate(0); text-shadow: 0 0 20px var(--neon-cyan-glow); }
    100% { opacity: 0; transform: translate(0); }
}

.mobile-nav-overlay__link--glitch {
    animation: nav-glitch 0.45s ease-out forwards;
    pointer-events: none;
}

.mobile-nav-overlay__link:hover,
.mobile-nav-overlay__link:active {
    opacity: 1;
    color: #fff;
    text-shadow: 0 0 12px var(--neon-cyan-glow);
}

/* ═══════════════════════════════════════════════════════════════
   AUTH BUTTON - Login/Logout
   ═══════════════════════════════════════════════════════════════ */

.auth-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.auth-signin {
    padding: 0.5rem 1rem;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.3);
    border-radius: 6px;
    color: var(--cyan-neon);
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-signin:hover {
    background: rgba(34, 211, 238, 0.2);
    border-color: var(--cyan-neon);
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.3);
}

.auth-signin .google-icon {
    width: 16px;
    height: 16px;
}

.auth-logged-in {
    gap: 0.6rem;
}

.auth-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--cyan-neon);
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.4);
}

.auth-name {
    color: var(--slate-200);
    font-weight: 500;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-name-link {
    cursor: pointer;
    transition: color 0.2s ease;
}

.auth-name-link:hover {
    color: var(--cyan-neon);
}

.auth-signout {
    padding: 0.35rem 0.6rem;
    background: transparent;
    border: 1px solid var(--slate-600);
    border-radius: 4px;
    color: var(--slate-400);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-signout:hover {
    border-color: var(--slate-400);
    color: var(--slate-200);
}

.auth-loading {
    padding: 0.5rem 1rem;
}

.auth-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--slate-600);
    border-top-color: var(--cyan-neon);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════════════════════════
   VOTING PANEL - HUD Module
   ═══════════════════════════════════════════════════════════════ */

/* Cover wrapper - exact width of cover */
.cronista-full-cover-wrapper {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    width: 200px;
}

.voting-panel {
    width: 100%;
    margin-top: var(--space-sm);
    background: linear-gradient(
        180deg,
        rgba(8, 12, 24, 0.95) 0%,
        rgba(4, 8, 16, 0.98) 100%
    );
    border: 1px solid rgba(100, 116, 139, 0.15);
    border-radius: 2px;
    padding: 0.5rem;
    position: relative;
}

/* Corner accents - tech style */
.voting-panel::before,
.voting-panel::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border: 1px solid rgba(100, 116, 139, 0.4);
}

.voting-panel::before {
    top: 4px;
    left: 4px;
    border-right: none;
    border-bottom: none;
}

.voting-panel::after {
    bottom: 4px;
    right: 4px;
    border-left: none;
    border-top: none;
}

/* Header */
.voting-header {
    text-align: center;
    margin-bottom: 0.5rem;
}

.voting-protocol {
    font-family: var(--font-mono);
    font-size: 0.5rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--slate-500);
    opacity: 0.7;
    text-transform: uppercase;
}

/* HUD Layout - horizontal */
.voting-hud {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

/* ═══ VOTE SLIDER ═══ */

.vote-slider-container {
    width: 100%;
    padding: 0.6rem 0.8rem 0.5rem;
}

.vote-slider-track-wrapper {
    position: relative;
    width: 100%;
    padding: 8px 0;
}

.vote-slider-ticks {
    position: absolute;
    top: 50%;
    left: 6px;
    right: 6px;
    transform: translateY(-50%);
    height: 12px;
    pointer-events: none;
    z-index: 1;
}

.vote-slider-tick {
    position: absolute;
    width: 1px;
    height: 8px;
    background: rgba(100, 116, 139, 0.35);
    top: 50%;
    transform: translate(-50%, -50%);
}

/* Range input reset + custom styling */
.vote-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 3px;
    background: transparent;
    cursor: pointer;
    position: relative;
    z-index: 2;
    outline: none;
}

/* Track */
.vote-slider::-webkit-slider-runnable-track {
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(
        to right,
        rgba(148, 163, 184, 0.5) 0%,
        rgba(148, 163, 184, 0.5) var(--slider-pct, 50%),
        rgba(100, 116, 139, 0.2) var(--slider-pct, 50%),
        rgba(100, 116, 139, 0.2) 100%
    );
}

.vote-slider::-moz-range-track {
    height: 3px;
    border-radius: 2px;
    background: rgba(100, 116, 139, 0.2);
    border: none;
}

.vote-slider::-moz-range-progress {
    height: 3px;
    border-radius: 2px;
    background: rgba(148, 163, 184, 0.5);
}

/* Thumb */
.vote-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #e2e8f0;
    border: 2px solid rgba(100, 116, 139, 0.6);
    margin-top: -6.5px;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
    box-shadow: 0 0 6px rgba(148, 163, 184, 0.3);
}

.vote-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #e2e8f0;
    border: 2px solid rgba(100, 116, 139, 0.6);
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
    box-shadow: 0 0 6px rgba(148, 163, 184, 0.3);
}

.vote-slider:hover::-webkit-slider-thumb {
    transform: scale(1.15);
}

.vote-slider:hover::-moz-range-thumb {
    transform: scale(1.15);
}

/* Tier-colored tracks & thumbs */
.vote-slider-container.gold .vote-slider::-webkit-slider-runnable-track {
    background: linear-gradient(
        to right,
        rgba(212, 175, 55, 0.7) 0%,
        rgba(212, 175, 55, 0.7) var(--slider-pct, 50%),
        rgba(100, 116, 139, 0.2) var(--slider-pct, 50%),
        rgba(100, 116, 139, 0.2) 100%
    );
}
.vote-slider-container.gold .vote-slider::-moz-range-progress { background: rgba(212, 175, 55, 0.7); }
.vote-slider-container.gold .vote-slider::-webkit-slider-thumb {
    background: #D4AF37;
    border-color: rgba(212, 175, 55, 0.8);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}
.vote-slider-container.gold .vote-slider::-moz-range-thumb {
    background: #D4AF37;
    border-color: rgba(212, 175, 55, 0.8);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

.vote-slider-container.legendary .vote-slider::-webkit-slider-runnable-track {
    background: linear-gradient(
        to right,
        rgba(34, 211, 238, 0.6) 0%,
        rgba(34, 211, 238, 0.6) var(--slider-pct, 50%),
        rgba(100, 116, 139, 0.2) var(--slider-pct, 50%),
        rgba(100, 116, 139, 0.2) 100%
    );
}
.vote-slider-container.legendary .vote-slider::-moz-range-progress { background: rgba(34, 211, 238, 0.6); }
.vote-slider-container.legendary .vote-slider::-webkit-slider-thumb {
    background: #22D3EE;
    border-color: rgba(34, 211, 238, 0.7);
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
}
.vote-slider-container.legendary .vote-slider::-moz-range-thumb {
    background: #22D3EE;
    border-color: rgba(34, 211, 238, 0.7);
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
}

.vote-slider-container.stable .vote-slider::-webkit-slider-runnable-track {
    background: linear-gradient(
        to right,
        rgba(167, 139, 250, 0.6) 0%,
        rgba(167, 139, 250, 0.6) var(--slider-pct, 50%),
        rgba(100, 116, 139, 0.2) var(--slider-pct, 50%),
        rgba(100, 116, 139, 0.2) 100%
    );
}
.vote-slider-container.stable .vote-slider::-moz-range-progress { background: rgba(167, 139, 250, 0.6); }
.vote-slider-container.stable .vote-slider::-webkit-slider-thumb {
    background: #a78bfa;
    border-color: rgba(167, 139, 250, 0.7);
    box-shadow: 0 0 10px rgba(167, 139, 250, 0.5);
}
.vote-slider-container.stable .vote-slider::-moz-range-thumb {
    background: #a78bfa;
    border-color: rgba(167, 139, 250, 0.7);
    box-shadow: 0 0 10px rgba(167, 139, 250, 0.5);
}

.vote-slider-container.neutral .vote-slider::-webkit-slider-runnable-track {
    background: linear-gradient(
        to right,
        rgba(148, 163, 184, 0.5) 0%,
        rgba(148, 163, 184, 0.5) var(--slider-pct, 50%),
        rgba(100, 116, 139, 0.2) var(--slider-pct, 50%),
        rgba(100, 116, 139, 0.2) 100%
    );
}
.vote-slider-container.neutral .vote-slider::-moz-range-progress { background: rgba(148, 163, 184, 0.5); }
.vote-slider-container.neutral .vote-slider::-webkit-slider-thumb {
    background: #94a3b8;
    border-color: rgba(148, 163, 184, 0.6);
    box-shadow: 0 0 8px rgba(148, 163, 184, 0.4);
}
.vote-slider-container.neutral .vote-slider::-moz-range-thumb {
    background: #94a3b8;
    border-color: rgba(148, 163, 184, 0.6);
    box-shadow: 0 0 8px rgba(148, 163, 184, 0.4);
}

.vote-slider-container.critical .vote-slider::-webkit-slider-runnable-track {
    background: linear-gradient(
        to right,
        rgba(220, 38, 38, 0.5) 0%,
        rgba(220, 38, 38, 0.5) var(--slider-pct, 50%),
        rgba(100, 116, 139, 0.2) var(--slider-pct, 50%),
        rgba(100, 116, 139, 0.2) 100%
    );
}
.vote-slider-container.critical .vote-slider::-moz-range-progress { background: rgba(220, 38, 38, 0.5); }
.vote-slider-container.critical .vote-slider::-webkit-slider-thumb {
    background: #DC2626;
    border-color: rgba(220, 38, 38, 0.6);
    box-shadow: 0 0 8px rgba(220, 38, 38, 0.4);
}
.vote-slider-container.critical .vote-slider::-moz-range-thumb {
    background: #DC2626;
    border-color: rgba(220, 38, 38, 0.6);
    box-shadow: 0 0 8px rgba(220, 38, 38, 0.4);
}

/* Label below slider */
.vote-slider-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.3rem;
    min-height: 22px;
}

.vote-slider-nota {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--slate-400);
    text-transform: uppercase;
}

.vote-slider-nota strong {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--slate-200);
}

.vote-slider-hint {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--slate-600);
    text-transform: uppercase;
}

.vote-remove-btn {
    width: 18px;
    height: 18px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 50%;
    color: rgba(239, 68, 68, 0.8);
    font-size: 0.75rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

.vote-remove-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.5);
    color: #EF4444;
}

/* ═══ SCORE RING - Central HUD element ═══ */

.score-ring-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin-top: 12px; /* Space for CODEX SCORE label */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.score-ring {
    position: absolute;
    width: 100%;
    height: 100%;
}

/* CODEX SCORE label */
.codex-score-label {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 0.575rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--slate-400);
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0.85;
}

/* Color-matched label */
.score-ring-container.gold .codex-score-label {
    color: rgba(212, 175, 55, 0.7);
}

.score-ring-container.legendary .codex-score-label {
    color: rgba(34, 211, 238, 0.6);
}

.score-ring-container.stable .codex-score-label {
    color: rgba(167, 139, 250, 0.6);
}

.score-ring-container.neutral .codex-score-label {
    color: rgba(148, 163, 184, 0.5);
}

.score-ring-container.critical .codex-score-label {
    color: rgba(220, 38, 38, 0.6);
}

/* Background ring - segmented dial */
.ring-bg {
    stroke: rgba(100, 116, 139, 0.2);
    stroke-linecap: butt;
}

/* Progress ring - thick and machine-like */
.ring-progress {
    stroke-linecap: butt;
    transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.3s ease, filter 0.3s ease;
}

/* GOLD (≥90) */
.score-ring-container.gold .ring-progress {
    stroke: #D4AF37;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.8));
}

/* LEGENDARY (≥80) - Cyan */
.score-ring-container.legendary .ring-progress {
    stroke: #22D3EE;
    filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.7));
}

/* STABLE (≥70) - Purple */
.score-ring-container.stable .ring-progress {
    stroke: #a78bfa;
    filter: drop-shadow(0 0 8px rgba(167, 139, 250, 0.7));
}

/* NEUTRAL (≥60) - Grey */
.score-ring-container.neutral .ring-progress {
    stroke: #94a3b8;
    filter: drop-shadow(0 0 6px rgba(148, 163, 184, 0.5));
}

/* CRITICAL (<60) - Red */
.score-ring-container.critical .ring-progress {
    stroke: #991B1B;
    filter: drop-shadow(0 0 6px rgba(153, 27, 27, 0.6));
}

/* Tick marks */
.ring-ticks line {
    stroke: rgba(100, 116, 139, 0.4);
    stroke-width: 1;
}

/* Score value - center */
.score-value {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    line-height: 1;
}

.score-number {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    transition: all 0.3s ease;
}

/* GOLD (≥90) */
.score-ring-container.gold .score-number {
    color: #D4AF37;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
}

/* LEGENDARY (≥80) - Cyan */
.score-ring-container.legendary .score-number {
    color: #22D3EE;
    text-shadow: 0 0 15px rgba(34, 211, 238, 0.6);
}

/* STABLE (≥70) - Purple */
.score-ring-container.stable .score-number {
    color: #a78bfa;
    text-shadow: 0 0 15px rgba(167, 139, 250, 0.6);
}

/* NEUTRAL (≥60) - Grey */
.score-ring-container.neutral .score-number {
    color: #94a3b8;
    text-shadow: 0 0 12px rgba(148, 163, 184, 0.4);
}

/* CRITICAL (<60) - Red */
.score-ring-container.critical .score-number {
    color: #DC2626;
    text-shadow: 0 0 12px rgba(220, 38, 38, 0.5);
}

.score-ring-container.no-votes .score-number {
    color: var(--slate-500);
    text-shadow: none;
    font-size: 1.3rem;
}

.score-percent {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    color: inherit;
    opacity: 0.55;
    margin-left: 0;
    margin-top: 0.15rem;
}

/* ═══ VOTING PANEL LAYOUT (slider mode) ═══ */

/* ═══ HINT ═══ */

.voting-hint {
    font-family: var(--font-mono);
    font-size: 0.5rem;
    letter-spacing: 0.05em;
    color: var(--slate-600);
    text-align: center;
    margin-top: 0.4rem;
}

/* Desktop: hide mobile elements */
.voting-panel-mobile {
    display: none;
}

.mobile-hud {
    display: none;
}

/* ═══════════════════════════════════════════════════════════════
   AUTH MODAL - "La Esclusa"
   ═══════════════════════════════════════════════════════════════ */

.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    padding: var(--space-md);
}

.auth-modal {
    background: linear-gradient(
        180deg,
        rgba(15, 23, 42, 0.98) 0%,
        rgba(8, 12, 24, 0.99) 100%
    );
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 12px;
    padding: 2rem;
    max-width: 380px;
    width: 100%;
    text-align: center;
    box-shadow:
        0 0 30px rgba(239, 68, 68, 0.1),
        0 0 80px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.auth-modal-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-modal-icon svg {
    width: 28px;
    height: 28px;
    color: #EF4444;
    filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.5));
}

.auth-modal-title {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: #22D3EE;
    margin: 0 0 1rem;
    text-transform: uppercase;
}

.auth-modal-body {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--slate-300);
    margin: 0 0 1.5rem;
}

.auth-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.auth-modal-btn {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.9rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-modal-btn svg {
    width: 18px;
    height: 18px;
}

/* Botón primario - Cian Tech */
.auth-modal-primary {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.15) 0%, rgba(34, 211, 238, 0.08) 100%);
    border: 1px solid rgba(34, 211, 238, 0.4);
    color: #22D3EE;
    padding: 0.9rem 1.5rem;
    box-shadow:
        0 0 20px rgba(34, 211, 238, 0.15),
        inset 0 1px 0 rgba(34, 211, 238, 0.1);
}

.auth-modal-primary:hover {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.25) 0%, rgba(34, 211, 238, 0.12) 100%);
    border-color: rgba(34, 211, 238, 0.6);
    box-shadow:
        0 0 30px rgba(34, 211, 238, 0.25),
        inset 0 1px 0 rgba(34, 211, 238, 0.15);
    transform: translateY(-1px);
}

.auth-modal-primary svg {
    width: 18px;
    height: 18px;
}

.auth-modal-primary svg path { fill: #22D3EE; }

/* Botón secundario - Fantasma */
.auth-modal-secondary {
    background: transparent;
    border: 1px solid rgba(100, 116, 139, 0.3);
    color: var(--slate-400);
}

.auth-modal-secondary:hover {
    background: rgba(100, 116, 139, 0.1);
    border-color: rgba(100, 116, 139, 0.5);
    color: var(--slate-300);
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */

.footer {
    text-align: center;
    padding: var(--space-lg) var(--space-md);
    border-top: 1px solid var(--glass-border);
}

.footer-line {
    width: 80px;
    height: 1px;
    margin: 0 auto var(--space-sm);
    background: linear-gradient(
        90deg,
        transparent,
        var(--gold-metallic),
        var(--cyan-neon),
        transparent
    );
}

.footer-dragon-container {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-xs);
}

.footer-dragon {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.footer:hover .footer-dragon {
    opacity: 0.85;
}

.footer-text {
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--slate-500);
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════════
   SCROLLBAR
   ═══════════════════════════════════════════════════════════════ */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--slate-950);
}

::-webkit-scrollbar-thumb {
    background: var(--slate-700);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--slate-600);
}

/* Video móvil - oculto por defecto */
.cronista-video-mobile {
    display: none;
}

/* ═══════════════════════════════════════════════════════════════
   MENSAJE ENTRANTE DEL CRONISTA - Hero Accordion
   ═══════════════════════════════════════════════════════════════ */

.cronista-message-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    position: relative;
    z-index: 1;
}

.cronista-message-text {
    font-family: 'JetBrains Mono', 'Roboto Mono', 'Courier New', monospace;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--cyan-neon);
    text-shadow:
        0 0 10px rgba(125, 211, 232, 0.6),
        0 0 20px rgba(125, 211, 232, 0.4),
        0 0 40px rgba(125, 211, 232, 0.2);
    animation: messageGlow 2.5s ease-in-out infinite;
}

.cronista-message-text.no-blink {
    animation: none;
    opacity: 1;
}

@keyframes messageGlow {
    /* 3 parpadeos rápidos */
    0%, 6% { opacity: 1; }
    7%, 13% { opacity: 0.2; }
    14%, 20% { opacity: 1; }
    21%, 27% { opacity: 0.2; }
    28%, 34% { opacity: 1; }
    35%, 41% { opacity: 0.2; }
    /* Pausa con brillo */
    42%, 100% { opacity: 1; }
}

/* Waveform Button */
.cronista-waveform-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: rgba(125, 211, 232, 0.1);
    border: 1px solid rgba(125, 211, 232, 0.4);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cronista-waveform-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(125, 211, 232, 0.2) 0%,
        rgba(125, 211, 232, 0.05) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cronista-waveform-btn:hover {
    border-color: var(--cyan-neon);
    box-shadow:
        0 0 20px rgba(125, 211, 232, 0.3),
        0 0 40px rgba(125, 211, 232, 0.1);
    transform: translateY(-2px);
}

.cronista-waveform-btn:hover::before {
    opacity: 1;
}

.cronista-waveform-btn.active {
    background: rgba(125, 211, 232, 0.2);
    border-color: var(--cyan-neon);
    box-shadow:
        0 0 25px rgba(125, 211, 232, 0.4),
        inset 0 0 15px rgba(125, 211, 232, 0.1);
}

.waveform-container {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 20px;
    position: relative;
    z-index: 1;
}

.waveform-bar {
    width: 3px;
    height: 100%;
    background: var(--cyan-neon);
    border-radius: 2px;
    animation: waveformPulse 1.2s ease-in-out infinite;
    box-shadow: 0 0 6px rgba(125, 211, 232, 0.6);
}

@keyframes waveformPulse {
    0%, 100% {
        transform: scaleY(0.3);
        opacity: 0.6;
    }
    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

.waveform-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--cyan-neon);
    position: relative;
    z-index: 1;
}

/* Accordion Container */
.cronista-accordion {
    width: 100%;
    max-width: 700px;
    margin: var(--space-md) auto 0;
    overflow: hidden;
    border-radius: 12px;
    position: relative;
    z-index: 1;
}

.cronista-accordion-inner {
    background: rgba(2, 6, 23, 0.9);
    border: 1px solid rgba(125, 211, 232, 0.3);
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 0 30px rgba(125, 211, 232, 0.15),
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.cronista-accordion-video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--slate-950);
    overflow: hidden;
}

.cronista-accordion-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Scanlines effect */
.cronista-accordion-scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(125, 211, 232, 0.02) 2px,
        rgba(125, 211, 232, 0.02) 4px
    );
    pointer-events: none;
    z-index: 2;
}

/* Vignette effect */
.cronista-accordion-vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    box-shadow:
        inset 0 0 80px rgba(2, 6, 23, 0.5),
        inset 0 0 150px rgba(2, 6, 23, 0.3);
}

/* Close Button (hidden on desktop, visible on mobile fullscreen) */
.cronista-accordion-close {
    display: none;
}

/* Subtitle Overlay (hidden on desktop, visible on mobile fullscreen) */
.cronista-subtitle-overlay {
    display: none;
}

/* Mute Button */
.cronista-mute-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    background: rgba(2, 6, 23, 0.8);
    border: 1px solid rgba(125, 211, 232, 0.4);
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.cronista-mute-btn svg {
    width: 20px;
    height: 20px;
    color: var(--cyan-neon);
}

.cronista-mute-btn:hover {
    background: rgba(125, 211, 232, 0.2);
    border-color: var(--cyan-neon);
    box-shadow: 0 0 15px rgba(125, 211, 232, 0.3);
}

/* Terminal-style Subtitles */
.cronista-subtitle-display {
    padding: var(--space-sm) var(--space-md);
    background: rgba(0, 0, 0, 0.6);
    border-top: 1px solid rgba(125, 211, 232, 0.2);
    min-height: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.subtitle-prefix {
    font-family: 'JetBrains Mono', 'Roboto Mono', 'Courier New', monospace;
    font-size: 1rem;
    font-weight: 700;
    color: var(--cyan-neon);
    text-shadow: 0 0 8px rgba(125, 211, 232, 0.6);
    flex-shrink: 0;
}

.subtitle-text {
    font-family: 'JetBrains Mono', 'Roboto Mono', 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--cyan-light);
    text-shadow: 0 0 10px rgba(125, 211, 232, 0.4);
    flex: 1;
}

.subtitle-cursor {
    font-family: 'JetBrains Mono', 'Roboto Mono', 'Courier New', monospace;
    font-size: 1rem;
    font-weight: 700;
    color: var(--cyan-neon);
    text-shadow: 0 0 8px rgba(125, 211, 232, 0.6);
    animation: cursorBlink 1s step-end infinite;
    flex-shrink: 0;
}

.subtitle-cursor.typing {
    animation: none;
    opacity: 1;
}

@keyframes cursorBlink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 640px) {
    .hero {
        min-height: 35vh;
        padding: var(--space-lg) var(--space-sm);
    }

    .hero-title {
        letter-spacing: 0.15em;
    }

    .books-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: var(--space-sm);
    }

    .book-title {
        font-size: 0.95rem;
    }

    .book-quote-preview {
        display: none;
    }

    .book-card-footer {
        display: none;
    }

    .codex-seal {
        width: 90px;
        height: 90px;
        top: var(--space-sm, 8px);
        right: var(--space-sm, 8px);
    }

    /* ═══════════════════════════════════════════════════════════════
       MODAL - MOBILE FULLSCREEN
       ═══════════════════════════════════════════════════════════════ */

    .modal-backdrop {
        padding: 0;
        align-items: stretch;
    }

    .modal-content {
        max-width: 100%;
        max-height: 100%;
        height: 100%;
        border-radius: 0;
        display: flex;
        flex-direction: column;
    }

    .modal-content-cronista-full {
        max-width: 100%;
    }

    .modal-close {
        position: fixed;
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
        background: rgba(2, 6, 23, 0.95);
        border-color: var(--slate-600);
        z-index: 1002;
    }

    /* Grid a una columna */
    .cronista-full-grid {
        grid-template-columns: 1fr;
        height: 100%;
        overflow-y: auto;
        overflow-x: hidden;
    }

    /* Contenido principal */
    .cronista-full-content {
        padding: var(--space-md) var(--space-sm);
        padding-top: 60px; /* Espacio para el botón cerrar */
        padding-bottom: 80px; /* Espacio para el botón sticky */
    }

    .cronista-full-layout {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: var(--space-sm);
    }

    /* Portada centrada y más pequeña */
    .cronista-full-cover {
        width: 140px;
        margin-bottom: var(--space-xs);
    }

    .cronista-full-cover-inner {
        box-shadow:
            0 15px 40px rgba(0, 0, 0, 0.6),
            0 0 30px rgba(212, 175, 55, 0.08);
    }

    /* Texto centrado */
    .cronista-full-texto {
        align-items: center;
        text-align: center;
    }

    .cronista-full-texto .modal-divider {
        margin-left: auto;
        margin-right: auto;
        max-width: 200px;
    }

    /* Título más compacto */
    .modal-title {
        font-size: 1.4rem;
        margin-bottom: var(--space-xs);
    }

    .modal-author-label {
        font-size: 0.7rem;
    }

    /* Sinopsis compacta */
    .modal-synopsis {
        font-size: 0.9rem;
        line-height: 1.7;
        margin-bottom: var(--space-sm);
    }

    /* Cita más compacta */
    .modal-quote {
        padding: var(--space-xs) var(--space-sm);
        margin-top: var(--space-sm);
    }

    .modal-quote p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* ADN Narrativo compacto */
    .cronista-full-dna {
        margin-top: var(--space-sm);
        padding-top: var(--space-sm);
    }

    .neon-label {
        font-size: 0.65rem;
        margin-bottom: var(--space-xs);
    }

    .neon-bar-container {
        height: 12px;
    }

    .neon-legend {
        margin-top: var(--space-sm);
        gap: var(--space-xs);
    }

    .neon-legend-item,
    .featured-book-spectrum .neon-legend-item {
        flex-direction: column;
        gap: 0.15rem;
        align-items: center;
        text-align: center;
    }

    .neon-value,
    .featured-book-spectrum .neon-value {
        font-size: 1.1rem;
    }

    .cronista-full-dna .neon-value {
        font-size: 1.1rem;
    }

    .neon-name,
    .featured-book-spectrum .neon-label-text {
        font-size: 0.55rem;
        line-height: 1.2;
    }

    /* Ocultar video de columna derecha en móvil */
    .cronista-full-video {
        display: none;
    }

    /* Ocultar botón Amazon Desktop en móvil (se usa el Mobile HUD) */
    .cronista-full-cover-wrapper .amazon-desktop {
        display: none;
    }

    /* Video móvil debajo de la cita - ancho completo sin caja */
    .cronista-video-mobile {
        display: block;
        position: relative;
        margin: var(--space-md) calc(-1 * var(--space-sm));
        width: calc(100% + 2 * var(--space-sm));
        overflow: hidden;
        aspect-ratio: 16/9;
    }

    /* Encuadrar la cara del cronista */
    .cronista-video-mobile .cronista-full-video-element {
        object-position: center 35%;
    }

    .cronista-full-video-wrapper {
        height: 100%;
    }

    .video-play-btn {
        width: 60px;
        height: 60px;
    }

    .video-play-btn svg {
        width: 24px;
        height: 24px;
    }

    /* Botón Amazon sticky */
    .cronista-full-amazon {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        margin: 0;
        border-radius: 0;
        padding: 1rem;
        justify-content: center;
        z-index: 1000;
        background: linear-gradient(
            135deg,
            var(--gold-metallic) 0%,
            var(--gold-dark) 100%
        );
        box-shadow:
            0 -4px 20px rgba(0, 0, 0, 0.4),
            0 -2px 10px rgba(212, 175, 55, 0.2);
    }

    .amazon-link.cronista-full-amazon {
        width: 100%;
        text-align: center;
    }
}

/* ═══════════════════════════════════════════════════════════════
   AJUSTES PARA PANTALLAS CON ALTURA LIMITADA (iPad pequeño, texto grande)
   ═══════════════════════════════════════════════════════════════ */

@media screen and (max-height: 800px) and (min-width: 769px) {
    /* Modal más compacto */
    .cronista-full-grid {
        max-height: 95vh;
    }

    /* Reducir espaciados */
    .cronista-full-content {
        padding: var(--space-md);
    }

    /* Título más pequeño */
    .modal-content .modal-title {
        font-size: 1.4rem;
    }

    /* Sinopsis más compacta */
    .cronista-full-texto .modal-synopsis {
        line-height: 1.5;
        margin-bottom: var(--space-sm);
    }

    /* Cita más compacta */
    .modal-quote {
        padding: var(--space-xs) var(--space-sm);
        margin-bottom: var(--space-sm);
    }

    .modal-quote p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* Barra de espectro más compacta */
    .cronista-full-dna {
        margin-top: var(--space-xs);
        padding-top: var(--space-sm);
    }

    .cronista-full-dna .neon-value {
        font-size: 1.2rem;
    }

    .cronista-full-dna .neon-name {
        font-size: 0.6rem;
    }

    .neon-legend {
        margin-top: var(--space-xs);
        gap: var(--space-xs);
    }
}

/* Para alturas aún más pequeñas */
@media screen and (max-height: 650px) and (min-width: 769px) {
    .cronista-full-grid {
        max-height: 98vh;
    }

    .cronista-full-content {
        padding: var(--space-sm);
    }

    .modal-content .modal-title {
        font-size: 1.2rem;
    }

    .cronista-full-texto .modal-synopsis {
        line-height: 1.4;
    }
}

/* ═══════════════════════════════════════════════════════════════
   CENTRO DE MANDOS — USER PANEL (v2 — Cinematic Terminal)
   ═══════════════════════════════════════════════════════════════ */

@property --border-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.panel-container {
    position: relative;
    min-height: 100vh;
    padding: var(--space-md);
    padding-top: 80px;
    overflow: hidden;
}

/* ── Atmosphere layers ── */
.panel-atmosphere {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.panel-grain {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}

.panel-scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
    animation: scanline-drift 8s linear infinite;
}

@keyframes scanline-drift {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

.panel-grid-bg {
    position: absolute;
    inset: 0;
    opacity: 0.02;
    background-image:
        linear-gradient(rgba(34, 211, 238, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 211, 238, 0.3) 1px, transparent 1px);
    background-size: 60px 60px;
}

.panel-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: orb-float 12s ease-in-out infinite;
}

.panel-orb--cyan {
    width: 400px;
    height: 400px;
    top: 15%;
    left: -10%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.08) 0%, transparent 70%);
}

.panel-orb--gold {
    width: 350px;
    height: 350px;
    bottom: 10%;
    right: -8%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.06) 0%, transparent 70%);
    animation-delay: -6s;
    animation-direction: reverse;
}

@keyframes orb-float {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(30px, -20px); }
    50% { transform: translate(-10px, 30px); }
    75% { transform: translate(20px, 10px); }
}

/* ── Inner container ── */
.panel-inner {
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ── Panel Header ── */
.panel-header {
    margin-bottom: var(--space-xl);
    text-align: center;
    position: relative;
}

.panel-header::after {
    content: '';
    display: block;
    width: 120px;
    height: 1px;
    margin: 1.2rem auto 0;
    background: linear-gradient(90deg, transparent, var(--cyan-neon), transparent);
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.4);
}

.panel-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: none;
    color: var(--slate-400);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-bottom: var(--space-md);
}

.panel-back-btn:hover {
    background: rgba(34, 211, 238, 0.06);
    color: var(--cyan-neon);
}

.panel-back-btn svg {
    width: 16px;
    height: 16px;
}

.panel-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(1.1rem, 3vw, 1.6rem);
    font-weight: 400;
    color: var(--cyan-neon);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
    text-shadow: 0 0 20px rgba(34, 211, 238, 0.5), 0 0 40px rgba(34, 211, 238, 0.15);
}

.panel-subtitle {
    font-family: var(--font-display);
    font-size: clamp(0.9rem, 2.5vw, 1.15rem);
    font-weight: 600;
    background: linear-gradient(135deg, var(--gold-metallic), var(--gold-light), var(--gold-metallic));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 0.12em;
}

/* ── Profile Hero ── */
.panel-profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 2.5rem 1.5rem !important;
}

.panel-profile-avatar {
    position: relative;
    flex-shrink: 0;
    width: 110px;
    height: 110px;
}

.panel-profile-silhouette {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 15px rgba(6, 182, 212, 0.2));
}

/* Orbital rings */
.panel-orbit {
    position: absolute;
    border-radius: 50%;
    border: 1px solid transparent;
    pointer-events: none;
}

.panel-orbit--1 {
    inset: -12px;
    border-color: rgba(34, 211, 238, 0.2);
    animation: orbit-spin 8s linear infinite;
}

.panel-orbit--1::after {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--cyan-neon);
    box-shadow: 0 0 8px var(--cyan-neon), 0 0 16px var(--cyan-neon);
}

.panel-orbit--2 {
    inset: -22px;
    border-color: rgba(212, 175, 55, 0.12);
    animation: orbit-spin 14s linear infinite reverse;
}

.panel-orbit--2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 10%;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--gold-metallic);
    box-shadow: 0 0 6px var(--gold-metallic), 0 0 12px rgba(212, 175, 55, 0.4);
}

@keyframes orbit-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.panel-profile-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.panel-profile-name {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--slate-100);
    margin-bottom: 0.3rem;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.panel-profile-name-editable {
    cursor: pointer;
    position: relative;
    display: inline-block;
    transition: color 0.2s ease;
}

.panel-name-edit-icon {
    width: 14px;
    height: 14px;
    color: var(--slate-300);
    opacity: 0.8;
    transition: all 0.2s ease;
    flex-shrink: 0;
    position: absolute;
    right: -22px;
    top: 50%;
    transform: translateY(-50%);
}

.panel-profile-name-editable:hover .panel-name-edit-icon {
    opacity: 1;
    color: var(--cyan-neon);
}

.panel-profile-name-edit {
    margin-bottom: 0.3rem;
}

.panel-profile-name-input {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--slate-100);
    letter-spacing: 0.02em;
    background: rgba(6, 182, 212, 0.06);
    border: 1px solid rgba(6, 182, 212, 0.35);
    border-radius: 6px;
    padding: 0.2rem 0.6rem;
    text-align: center;
    outline: none;
    width: 100%;
    max-width: 320px;
    transition: border-color 0.2s ease;
}

.panel-profile-name-input:focus {
    border-color: var(--cyan-neon);
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.2);
}

.panel-profile-email {
    font-size: 0.78rem;
    color: var(--slate-400);
    margin-bottom: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
}

.panel-profile-date {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    color: var(--cyan-neon);
    opacity: 0.7;
    font-family: 'JetBrains Mono', monospace;
    background: rgba(34, 211, 238, 0.05);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

/* ── Circular Stat Gauges ── */
.panel-stats {
    margin-bottom: var(--space-md);
}

.panel-section-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cyan-neon);
    margin-bottom: var(--space-sm);
    opacity: 0.85;
    text-shadow: 0 0 10px rgba(34, 211, 238, 0.4);
}

.panel-stats-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.panel-stats-header .panel-section-title {
    margin-bottom: 0;
}

.panel-section-title-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.panel-help-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(148, 163, 184, 0.35);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.55rem;
    font-weight: 700;
    color: var(--slate-400);
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.panel-help-icon:hover,
.panel-help-icon:focus {
    border-color: var(--cyan-neon);
    color: var(--cyan-neon);
    box-shadow: 0 0 8px rgba(6, 182, 212, 0.2);
}

.panel-help-tooltip {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: 240px;
    padding: 0.6rem 0.8rem;
    background: rgba(15, 23, 42, 0.97);
    border: 1px solid rgba(6, 182, 212, 0.25);
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--slate-300);
    letter-spacing: 0.02em;
    text-transform: none;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.panel-help-icon:hover .panel-help-tooltip,
.panel-help-icon:focus .panel-help-tooltip {
    display: block;
}

.panel-stat-avg {
    color: var(--slate-400) !important;
    font-weight: 500;
}

.panel-period-filter {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
    background: rgba(2, 6, 23, 0.5);
    border: none;
    border-radius: 6px;
    padding: 3px;
}

.panel-period-btn {
    background: none;
    border: none;
    color: var(--slate-500);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    padding: 0.35rem 0.7rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.panel-period-btn:hover {
    color: var(--slate-200);
    background: rgba(255, 255, 255, 0.04);
}

.panel-period-btn.active {
    color: #fff;
    background: rgba(6, 182, 212, 0.15);
}

.panel-period-select {
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--slate-300);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    padding: 0.35rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2306b6d4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
    padding-right: 1.4rem;
    transition: all 0.2s ease;
}

.panel-period-select:hover { border-color: rgba(255, 255, 255, 0.12); }
.panel-period-select:focus { outline: none; border-color: rgba(6, 182, 212, 0.35); box-shadow: none; }
.panel-period-select option { background: #0f172a; color: var(--slate-300); }

/* Gauges row */
.panel-gauges-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.panel-gauge {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 1.2rem 0.5rem;
    border-radius: 12px;
    background: rgba(8, 14, 24, 0.45);
    transition: background 0.3s ease;
    cursor: default;
}

.panel-gauge:hover {
    background: rgba(12, 20, 32, 0.6);
}

.panel-gauge-ring {
    position: relative;
    width: 88px;
    height: 88px;
}

.panel-gauge-svg {
    width: 100%;
    height: 100%;
}

.panel-gauge-center {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel-gauge-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.panel-gauge-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    color: var(--slate-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
}

.panel-gauge-help {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(148, 163, 184, 0.4);
    font-size: 0.45rem;
    font-weight: 700;
    color: var(--slate-300);
    margin-left: 0.3rem;
    vertical-align: middle;
    cursor: pointer;
}

.panel-gauge-detail {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.panel-gauge-detail span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.58rem;
    color: var(--slate-500);
}

/* Gauge tooltip */
.panel-gauge-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    padding: 0.5rem 0.75rem;
    background: rgba(2, 6, 23, 0.95);
    border: 1px solid rgba(34, 211, 238, 0.25);
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    color: var(--slate-300);
    line-height: 1.4;
    max-width: 250px;
    white-space: normal;
    text-align: center;
    z-index: 20;
    pointer-events: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 12px rgba(34, 211, 238, 0.1);
}

.panel-gauge-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(34, 211, 238, 0.25);
}

/* Status dot indicators (used inside gauge details) */
.panel-stat-v2-up {
    color: #22c55e !important;
}

.panel-stat-v2-up::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #22c55e;
    margin-right: 3px;
    vertical-align: middle;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
    animation: status-pulse 2s ease-in-out infinite;
}

.panel-stat-v2-down {
    color: #ef4444 !important;
}

.panel-stat-v2-down::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ef4444;
    margin-right: 3px;
    vertical-align: middle;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.6);
}

@keyframes status-pulse {
    0%, 100% { opacity: 0.6; box-shadow: 0 0 4px rgba(34, 197, 94, 0.3); }
    50% { opacity: 1; box-shadow: 0 0 10px rgba(34, 197, 94, 0.8); }
}

/* ── Section Cards — Animated border ── */
.panel-section {
    position: relative;
    margin-bottom: var(--space-lg);
    padding: 1.5rem;
    background: rgba(10, 16, 26, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1.5px solid transparent;
    border-radius: 8px;
    --border-angle: 0deg;
    background-image:
        linear-gradient(rgba(10, 16, 26, 0.85), rgba(10, 16, 26, 0.85)),
        conic-gradient(from var(--border-angle), transparent 25%, rgba(34, 211, 238, 0.35) 37%, rgba(212, 175, 55, 0.25) 50%, rgba(34, 211, 238, 0.35) 63%, transparent 75%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    animation: border-spin 8s linear infinite;
    box-shadow:
        0 4px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

@keyframes border-spin {
    to { --border-angle: 360deg; }
}

/* Fallback for browsers without @property */
@supports not (background: conic-gradient(from 0deg, red, blue)) {
    .panel-section {
        border: 1px solid rgba(34, 211, 238, 0.12);
        background: rgba(10, 16, 26, 0.7);
    }
}

/* Geometric watermark overlay — circuits + sacred geometry */
.panel-section::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0.025;
    pointer-events: none;
    z-index: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%2322d3ee' stroke-width='0.5'%3E%3Ccircle cx='60' cy='60' r='30'/%3E%3Ccircle cx='60' cy='60' r='20'/%3E%3Cline x1='60' y1='0' x2='60' y2='120'/%3E%3Cline x1='0' y1='60' x2='120' y2='60'/%3E%3Cline x1='10' y1='10' x2='110' y2='110'/%3E%3Cline x1='110' y1='10' x2='10' y2='110'/%3E%3Crect x='30' y='30' width='60' height='60' transform='rotate(45 60 60)'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 120px 120px;
    mix-blend-mode: screen;
}

/* Corner crop marks */
.panel-section .showcase-corner {
    width: 16px;
    height: 16px;
    z-index: 2;
}

.panel-section .showcase-corner::before,
.panel-section .showcase-corner::after {
    background: rgba(34, 211, 238, 0.5);
    box-shadow: 0 0 8px rgba(34, 211, 238, 0.4);
}

.panel-section .showcase-corner::before {
    width: 12px;
    height: 1.5px;
}

.panel-section .showcase-corner::after {
    width: 1.5px;
    height: 12px;
}

.panel-empty-msg {
    font-size: 0.85rem;
    color: var(--slate-500);
    font-style: italic;
    text-align: center;
    padding: var(--space-md);
}

/* ── Voting History Grid ── */
.panel-votes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: var(--space-sm);
}

.panel-vote-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.panel-vote-card:hover {
    transform: translateY(-5px);
}

.panel-vote-cover {
    position: relative;
    width: 80px;
    aspect-ratio: 2/3;
    border-radius: 4px;
    overflow: hidden;
    box-shadow:
        0 10px 20px rgba(0, 0, 0, 0.8),
        0 0 15px rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.panel-vote-card:hover .panel-vote-cover {
    box-shadow:
        0 16px 32px rgba(0, 0, 0, 0.9),
        0 0 25px rgba(34, 211, 238, 0.06);
}

/* Lomo del tomo */
.panel-vote-cover::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(212, 175, 55, 0.15) 30%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(0, 0, 0, 0.3) 100%
    );
    z-index: 3;
    pointer-events: none;
}

/* Viñeta inferior */
.panel-vote-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 100%, rgba(2, 6, 23, 0.5) 0%, transparent 60%),
        linear-gradient(180deg, transparent 50%, rgba(2, 6, 23, 0.4) 100%);
    pointer-events: none;
    z-index: 2;
}

.panel-vote-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    filter: saturate(0.9) contrast(1.02);
    transition: transform 0.4s ease, filter 0.4s ease;
}

.panel-vote-card:hover .panel-vote-cover img {
    transform: scale(1.06);
    filter: saturate(1.15) contrast(1.05) brightness(1.08);
}

/* Verdict strip — bottom of vote cover */
.panel-vote-score-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    z-index: 4;
    padding: 0.2rem 0.4rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    color: #D4AF37;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
    background: rgba(2, 6, 23, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 4px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.panel-vote-title {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.panel-show-all-btn {
    display: block;
    margin: var(--space-md) auto 0;
    padding: 0.55rem 1.6rem;
    background: rgba(34, 211, 238, 0.04);
    border: 1px solid rgba(34, 211, 238, 0.15);
    border-radius: 6px;
    color: var(--slate-400);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.panel-show-all-btn:hover {
    background: rgba(34, 211, 238, 0.08);
    border-color: rgba(34, 211, 238, 0.3);
    color: var(--cyan-neon);
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.08);
}

/* ═══════════════════════════════════════════════════════════════
   READING LISTS — SHOWCASE DESIGN
   ═══════════════════════════════════════════════════════════════ */

.panel-lists-section {
    padding: 2rem;
}

.panel-lists-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.panel-lists-header .panel-section-title {
    margin-bottom: 0;
}

.panel-lists-total {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Tabs Bar */
.panel-tabs-bar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0.35rem;
    background: rgba(2, 6, 23, 0.5);
    border-radius: 12px;
    border: none;
}

.panel-tab-v2 {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: var(--slate-500);
    padding: 0.7rem 1rem;
    border-radius: 9px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
}

.panel-tab-v2:hover {
    color: var(--slate-300);
    background: rgba(255, 255, 255, 0.03);
}

.panel-tab-v2.active {
    color: #fff;
    background: rgba(212, 175, 55, 0.1);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.06);
}

.panel-tab-v2-icon {
    display: flex;
    align-items: center;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.panel-tab-v2.active .panel-tab-v2-icon {
    opacity: 1;
    color: var(--gold-metallic);
}

.panel-tab-v2-label { display: inline; }

.panel-tab-v2-count {
    background: rgba(255, 255, 255, 0.06);
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    font-size: 0.6rem;
    min-width: 1.4rem;
    text-align: center;
}

.panel-tab-v2.active .panel-tab-v2-count {
    background: rgba(212, 175, 55, 0.2);
    color: var(--gold-metallic);
}

/* Showcase Content */
.panel-showcase-content { min-height: 200px; }

.panel-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
}

/* Showcase Card */
.panel-showcase-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(10, 16, 26, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.panel-showcase-card:hover {
    border-color: rgba(212, 175, 55, 0.15);
    transform: translateY(-5px);
    box-shadow:
        0 24px 48px -12px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(212, 175, 55, 0.04);
}

/* Showcase Cover */
.panel-showcase-cover {
    width: 100%;
    aspect-ratio: 2/3;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    box-shadow:
        0 10px 20px rgba(0, 0, 0, 0.8),
        0 0 15px rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.panel-showcase-card:hover .panel-showcase-cover {
    box-shadow:
        0 16px 32px rgba(0, 0, 0, 0.9),
        0 0 25px rgba(34, 211, 238, 0.05);
}

.panel-showcase-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    filter: saturate(0.9) contrast(1.02);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), filter 0.4s ease;
}

.panel-showcase-card:hover .panel-showcase-cover img {
    transform: scale(1.06);
    filter: saturate(1.15) contrast(1.05) brightness(1.08);
}

/* Holographic shine effect on hover */
.panel-cover-shine {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(
        105deg,
        transparent 30%,
        rgba(255, 255, 255, 0.08) 45%,
        rgba(255, 255, 255, 0.14) 50%,
        rgba(255, 255, 255, 0.08) 55%,
        transparent 70%
    );
    transform: translateX(-100%);
    transition: opacity 0.3s ease;
}

.panel-showcase-card:hover .panel-cover-shine {
    opacity: 1;
    animation: shine-sweep 0.8s 0.15s ease-out forwards;
}

@keyframes shine-sweep {
    to { transform: translateX(100%); }
}

/* Lomo del tomo */
.panel-showcase-cover::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.6) 0%, rgba(212, 175, 55, 0.15) 30%, rgba(255, 255, 255, 0.08) 50%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 3;
    pointer-events: none;
}

/* Viñeta inferior */
.panel-showcase-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 100%, rgba(2, 6, 23, 0.5) 0%, transparent 60%),
        linear-gradient(180deg, transparent 50%, rgba(2, 6, 23, 0.4) 100%);
    pointer-events: none;
    z-index: 2;
}

/* Score Seal — bottom integrity badge */
.panel-showcase-seal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.35rem 0.5rem;
    margin-top: auto;
    border-radius: 6px;
    background: rgba(2, 6, 23, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.panel-seal-score {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--seal-color);
    text-shadow: 0 0 8px var(--seal-color);
    line-height: 1;
}

.panel-seal-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.42rem;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1;
}

.panel-showcase-user-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.panel-user-score-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    color: #D4AF37;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
    line-height: 1;
}

.panel-user-score-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.42rem;
    color: rgba(212, 175, 55, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1;
}

/* Info Block */
.panel-showcase-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0 0.15rem;
}

.panel-showcase-title {
    font-family: 'Playfair Display', serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--slate-100);
    line-height: 1.25;
    cursor: pointer;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.panel-showcase-title:hover {
    color: var(--gold-metallic);
}

.panel-showcase-author {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.panel-showcase-genre {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: rgba(148, 163, 184, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Remove Button */
.panel-showcase-remove {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 7;
    backdrop-filter: blur(4px);
}

.panel-showcase-card:hover .panel-showcase-remove { opacity: 1; }
.panel-showcase-remove:hover { transform: scale(1.15); background: rgba(239, 68, 68, 1); }

/* Empty State */
.panel-showcase-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;
    gap: 0.75rem;
}

.panel-showcase-empty-icon { color: var(--slate-700); margin-bottom: 0.5rem; }
.panel-showcase-empty h4 { font-family: 'Playfair Display', serif; font-size: 1rem; color: var(--slate-400); margin: 0; }
.panel-showcase-empty p { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: var(--slate-600); max-width: 280px; line-height: 1.5; }

/* Loading State */
.panel-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xl);
    color: var(--slate-400);
    font-size: 0.85rem;
}

/* Auth Avatar Link */
.auth-avatar-link {
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    border: 2px solid transparent;
}

.auth-avatar-link:hover {
    border-color: var(--gold-metallic);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
    transform: scale(1.1);
}

/* ═══════════════════════════════════════════════════════════════
   BOOK LIST BUTTON (Modal dropdown)
   ═══════════════════════════════════════════════════════════════ */

.book-list-btn-container {
    position: relative;
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
}

.book-list-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--slate-600);
    border-radius: 8px;
    color: var(--slate-300);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s ease;
    width: 100%;
    justify-content: center;
}

.book-list-btn:hover {
    border-color: var(--gold-metallic);
    color: var(--gold-metallic);
}

.book-list-btn.active {
    border-color: var(--gold-metallic);
    color: var(--gold-metallic);
    background: rgba(212, 175, 55, 0.08);
}

.book-list-btn.active svg {
    fill: var(--gold-metallic);
    stroke: var(--gold-metallic);
}

.book-list-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    min-width: 220px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--slate-600);
    border-radius: 8px;
    overflow: hidden;
    z-index: 20;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.book-list-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.65rem 1rem;
    background: none;
    border: none;
    color: var(--slate-300);
    font-family: var(--font-body);
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.15s ease;
    text-align: left;
}

.book-list-option:hover {
    background: rgba(212, 175, 55, 0.08);
}

.book-list-option.active {
    color: var(--gold-metallic);
}

.book-list-option-icon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.book-list-check {
    margin-left: auto;
    color: var(--gold-metallic);
    font-weight: 700;
}

.book-list-option + .book-list-option {
    border-top: 1px solid var(--slate-800);
}

.book-list-divider {
    height: 1px;
    background: var(--slate-800);
    margin: 0.25rem 0;
}

.book-list-add-new {
    color: var(--cyan-neon) !important;
    opacity: 0.7;
}

.book-list-add-new:hover {
    opacity: 1;
}

.book-list-new-form {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.6rem 0.75rem;
}

.book-list-new-input {
    width: 100%;
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid var(--slate-700);
    color: var(--slate-200);
    padding: 0.45rem 0.6rem;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    outline: none;
    box-sizing: border-box;
}

.book-list-new-input:focus {
    border-color: var(--cyan-neon);
    box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.1);
}

.book-list-new-actions {
    display: flex;
    gap: 0.4rem;
    justify-content: flex-end;
}

.book-list-new-cancel {
    background: none;
    border: 1px solid var(--slate-700);
    color: var(--slate-400);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.7rem;
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.15s ease;
}

.book-list-new-cancel:hover {
    border-color: var(--slate-500);
    color: var(--slate-200);
}

.book-list-new-submit {
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: var(--cyan-neon);
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.7rem;
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.15s ease;
}

.book-list-new-submit:hover {
    background: rgba(6, 182, 212, 0.25);
    border-color: var(--cyan-neon);
}

.book-list-show-more {
    color: var(--slate-400) !important;
    font-size: 0.75rem;
    border-top: 1px solid var(--slate-800);
}

.book-list-show-more:hover {
    color: var(--slate-200) !important;
}

/* ═══════════════════════════════════════════════════════════
   CODEX PERSONAL
   ═══════════════════════════════════════════════════════════ */

.codex-personal {
    padding: 2rem;
}

.codex-personal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.codex-personal-header-left {
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.codex-personal-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    font-weight: 700;
    color: var(--cyan-neon);
    letter-spacing: 0.15em;
    margin: 0;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.codex-personal-total {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.codex-personal-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.codex-toggle-all-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(100, 116, 139, 0.06);
    border: none;
    color: var(--slate-400);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.codex-toggle-all-btn:hover {
    background: rgba(100, 116, 139, 0.12);
    color: var(--slate-200);
    opacity: 1;
}

.codex-add-section-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(6, 182, 212, 0.06);
    border: none;
    color: var(--cyan-neon);
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
    opacity: 0.7;
}

.codex-add-section-btn:hover {
    background: rgba(6, 182, 212, 0.12);
    opacity: 1;
    box-shadow: none;
}

.codex-sections-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.codex-section {
    background: rgba(8, 14, 24, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.codex-section:hover {
    background: rgba(12, 20, 32, 0.5);
    border-color: rgba(212, 175, 55, 0.1);
}

.codex-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.codex-section-header:hover {
    background: rgba(255, 255, 255, 0.02);
}

.codex-section-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.codex-section-chevron {
    color: var(--slate-500);
    flex-shrink: 0;
}

.codex-section-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gold-metallic);
    margin: 0;
    letter-spacing: 0.05em;
}

.codex-section-count {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    color: var(--slate-500);
    background: rgba(255, 255, 255, 0.04);
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
}

.codex-section-header-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.codex-section-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid transparent;
    color: var(--slate-500);
    padding: 0.35rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.codex-section-action-btn:hover {
    color: var(--cyan-neon);
    background: rgba(6, 182, 212, 0.08);
}

.codex-section-action-btn.delete:hover {
    color: #f87171;
    background: rgba(248, 113, 113, 0.08);
}

.codex-section-content {
    overflow: hidden;
}

.codex-section-content .panel-showcase-grid {
    padding: 0 1.25rem 1.25rem;
}

.codex-section-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 2rem;
    color: var(--slate-600);
}

.codex-section-empty svg {
    opacity: 0.3;
}

.codex-section-empty p {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    margin: 0;
    text-align: center;
}

/* Create/Rename Section Modal */
.create-section-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.create-section-modal {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));
    border: 1px solid rgba(199, 165, 107, 0.2);
    border-radius: 16px;
    padding: 2rem;
    width: 90%;
    max-width: 400px;
    box-shadow:
        0 0 40px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(199, 165, 107, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.create-section-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gold-metallic);
    letter-spacing: 0.1em;
    margin: 0 0 1.5rem 0;
    text-transform: uppercase;
}

.create-section-input {
    width: 100%;
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid var(--slate-700);
    color: var(--slate-200);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.create-section-input:focus {
    border-color: var(--gold-metallic);
    box-shadow: 0 0 15px rgba(199, 165, 107, 0.1);
}

.create-section-input::placeholder {
    color: var(--slate-600);
}

.create-section-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.create-section-cancel {
    background: none;
    border: 1px solid var(--slate-700);
    color: var(--slate-400);
    padding: 0.55rem 1.2rem;
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.create-section-cancel:hover {
    border-color: var(--slate-500);
    color: var(--slate-200);
}

.create-section-submit {
    background: linear-gradient(135deg, rgba(199, 165, 107, 0.2), rgba(212, 175, 55, 0.15));
    border: 1px solid rgba(199, 165, 107, 0.3);
    color: var(--gold-metallic);
    padding: 0.55rem 1.2rem;
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.05em;
}

.create-section-submit:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(199, 165, 107, 0.3), rgba(212, 175, 55, 0.25));
    box-shadow: 0 0 20px rgba(199, 165, 107, 0.1);
}

.create-section-submit:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ═══════════════════════════════════════════════════════════════
   BOOK SEARCH MODAL
   ═══════════════════════════════════════════════════════════════ */

.book-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(2, 6, 23, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
}

.book-search-modal {
    width: 100%;
    max-width: 560px;
    max-height: 85vh;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.95));
    border: 1px solid rgba(199, 165, 107, 0.2);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow:
        0 0 60px rgba(0, 0, 0, 0.6),
        0 0 100px rgba(199, 165, 107, 0.05);
}

.book-search-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.book-search-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold-metallic);
    letter-spacing: 0.15em;
    margin: 0;
}

.book-search-close {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(100, 116, 139, 0.1);
    border: 1px solid rgba(100, 116, 139, 0.15);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    color: var(--slate-400);
    cursor: pointer;
    transition: all 0.2s ease;
}

.book-search-close:hover {
    background: rgba(248, 113, 113, 0.1);
    border-color: rgba(248, 113, 113, 0.3);
    color: #f87171;
}

/* Section selector */
.book-search-section-selector {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.book-search-section-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: var(--slate-500);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.book-search-section-select {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: var(--slate-200);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.book-search-section-select:focus {
    border-color: rgba(199, 165, 107, 0.4);
}

.book-search-section-select option {
    background: var(--slate-900);
    color: var(--slate-200);
}

/* Search input */
.book-search-input-wrapper {
    position: relative;
    padding: 0.75rem 1.5rem;
}

.book-search-input-icon {
    position: absolute;
    left: 2.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--slate-500);
    pointer-events: none;
}

.book-search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(199, 165, 107, 0.15);
    border-radius: 10px;
    color: var(--slate-200);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    padding: 0.85rem 2.5rem 0.85rem 2.75rem;
    outline: none;
    transition: all 0.3s ease;
}

.book-search-input::placeholder {
    color: var(--slate-600);
}

.book-search-input:focus {
    border-color: rgba(199, 165, 107, 0.4);
    box-shadow: 0 0 20px rgba(199, 165, 107, 0.08);
}

.book-search-clear {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--slate-500);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-search-clear:hover {
    color: var(--slate-300);
}

/* Results area */
.book-search-results {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 1rem;
    min-height: 200px;
    max-height: calc(85vh - 220px);
}

.book-search-results::-webkit-scrollbar {
    width: 4px;
}

.book-search-results::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.3);
    border-radius: 2px;
}

/* Loading & empty */
.book-search-loading,
.book-search-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 3rem 1rem;
    color: var(--slate-500);
}

.book-search-loading span,
.book-search-empty p {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    margin: 0;
}

/* Result card */
.book-search-result {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.65rem 0.5rem;
    border-radius: 10px;
    transition: background 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.book-search-result:last-child {
    border-bottom: none;
}

.book-search-result:hover {
    background: rgba(255, 255, 255, 0.03);
}

.book-search-result--added {
    opacity: 0.6;
}

.book-search-result-cover {
    width: 44px;
    height: 64px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.book-search-result-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-search-result-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.book-search-result-title {
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--slate-200);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.book-search-result-author {
    font-size: 0.72rem;
    color: var(--slate-500);
}

/* Source badges */
.book-source-badge {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    width: fit-content;
    margin-top: 0.15rem;
}

.book-source-badge--local {
    color: #D4AF37;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.25);
}

.book-source-badge--google {
    color: var(--slate-400);
    background: rgba(100, 116, 139, 0.12);
    border: 1px solid rgba(100, 116, 139, 0.2);
}

/* Add button */
.book-search-add-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.25);
    color: var(--cyan-neon);
    cursor: pointer;
    transition: all 0.2s ease;
}

.book-search-add-btn:hover:not(:disabled) {
    background: rgba(6, 182, 212, 0.2);
    border-color: rgba(6, 182, 212, 0.5);
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.15);
}

.book-search-add-btn--done {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: #22c55e;
    cursor: default;
}

/* External book indicator in panel */
.panel-showcase-seal--external {
    --seal-color: #64748b;
    background: rgba(100, 116, 139, 0.08);
    border-color: rgba(100, 116, 139, 0.15);
}

.panel-showcase-card--external {
    border-color: rgba(100, 116, 139, 0.08);
}

.panel-showcase-card--external:hover {
    border-color: rgba(100, 116, 139, 0.2);
    box-shadow:
        0 24px 48px -12px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(100, 116, 139, 0.04);
}

/* Manual entry form */
.book-search-manual {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem 0.5rem;
    align-items: center;
}

.book-search-manual-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--slate-400);
    text-align: center;
    margin: 0;
}

.book-search-manual-input {
    width: 100%;
    max-width: 320px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: var(--slate-200);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    padding: 0.65rem 0.85rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.book-search-manual-input::placeholder {
    color: var(--slate-600);
}

.book-search-manual-input:focus {
    border-color: rgba(199, 165, 107, 0.35);
}

.book-search-manual-btn {
    background: rgba(199, 165, 107, 0.12);
    border: 1px solid rgba(199, 165, 107, 0.25);
    border-radius: 8px;
    color: var(--gold-metallic);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.65rem 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.book-search-manual-btn:hover:not(:disabled) {
    background: rgba(199, 165, 107, 0.2);
    box-shadow: 0 0 15px rgba(199, 165, 107, 0.1);
}

.book-search-manual-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Search books button in header */
.codex-search-books-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(199, 165, 107, 0.08);
    border: none;
    color: var(--gold-metallic);
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

.codex-search-books-btn:hover {
    background: rgba(199, 165, 107, 0.15);
    opacity: 1;
}

/* Empty section CTA */
.codex-section-empty-cta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(199, 165, 107, 0.06);
    border: 1px solid rgba(199, 165, 107, 0.15);
    border-radius: 8px;
    color: var(--gold-metallic);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    padding: 0.5rem 1rem;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.codex-section-empty-cta:hover {
    background: rgba(199, 165, 107, 0.12);
    opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════
   EXTERNAL BOOK MODAL
   ═══════════════════════════════════════════════════════════════ */

.external-book-modal {
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem;
    position: relative;
}

.external-book-badge {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.12), rgba(148, 163, 184, 0.04));
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 6px;
    padding: 0.6rem 1rem;
    margin-bottom: 1.5rem;
}

.external-book-badge-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: #94a3b8;
    text-transform: uppercase;
}

.external-book-badge-sub {
    font-family: var(--font-body);
    font-size: 0.72rem;
    color: var(--slate-500);
    letter-spacing: 0.02em;
}

.external-book-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2.5rem;
    align-items: start;
}

.external-book-cover-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.external-book-info-col {
    display: flex;
    flex-direction: column;
}

.external-book-meta {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.external-book-genre,
.external-book-year {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    color: var(--slate-400);
    background: rgba(100, 116, 139, 0.1);
    border: 1px solid rgba(100, 116, 139, 0.15);
    border-radius: 3px;
    padding: 0.2rem 0.5rem;
}

.external-book-mobile-actions {
    display: none;
}

/* Inclusion request */
.external-book-inclusion {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(199, 165, 107, 0.1);
}

.inclusion-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(125, 211, 232, 0.15), rgba(125, 211, 232, 0.06));
    border: 1.5px solid rgba(125, 211, 232, 0.4);
    border-radius: 10px;
    color: var(--cyan-neon);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(125, 211, 232, 0.06);
}

.inclusion-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(125, 211, 232, 0.25), rgba(125, 211, 232, 0.12));
    border-color: rgba(125, 211, 232, 0.6);
    box-shadow: 0 0 30px rgba(125, 211, 232, 0.15);
    transform: translateY(-2px);
}

.inclusion-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.inclusion-btn--sent {
    background: rgba(125, 211, 232, 0.06);
    border-color: rgba(125, 211, 232, 0.2);
    color: rgba(125, 211, 232, 0.6);
    cursor: default;
}

.inclusion-btn-loading {
    opacity: 0.7;
}

.inclusion-hint {
    margin-top: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.7rem;
    color: var(--slate-500);
    font-style: italic;
    line-height: 1.4;
}

/* Confirmation overlay */
.inclusion-confirmation-overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-radius: inherit;
}

.inclusion-confirmation {
    text-align: center;
    padding: 2.5rem 2rem;
    max-width: 320px;
}

.inclusion-confirmation-icon {
    color: var(--cyan-neon);
    margin-bottom: 1rem;
}

.inclusion-confirmation h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--slate-100);
    margin-bottom: 0.5rem;
}

.inclusion-confirmation p {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--slate-400);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.inclusion-confirmation-close {
    padding: 0.6rem 1.5rem;
    background: rgba(125, 211, 232, 0.12);
    border: 1px solid rgba(125, 211, 232, 0.35);
    border-radius: 8px;
    color: var(--cyan-neon);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
}

.inclusion-confirmation-close:hover {
    background: rgba(125, 211, 232, 0.2);
    border-color: rgba(125, 211, 232, 0.5);
}
