/**
 * ==============================================================================
 * ARCHIVO: assets/css/tactical-hud.css
 * PROYECTO: ANI-CNI-ISDA // Consola Táctica de Mando C4ISR
 * DOMINIO: ani-cni-isda.com
 * DESCRIPCIÓN: Estilos maestros, variables tácticas, texturas CRT, mallas HUD,
 *              biseles a 45 grados y componentes de tarjetas y visor militar.
 * ==============================================================================
 */

/* =============================================================================
   1. VARIABLES DE SISTEMA Y PALETAS OPERATIVAS (TEMA ÁMBAR Y TEMA NVG VERDE)
   ============================================================================= */
:root {
    /* Paleta base por defecto: Ámbar Operativo CRT (Modo Nocturno de Radar) */
    --hud-bg-black: #060709;
    --hud-surface: #0e1117;
    --hud-surface-card: #131720;
    --hud-surface-hover: #181d28;
    
    /* Colores temáticos Ámbar */
    --hud-primary: #f59e0b;              /* Ámbar fósforo */
    --hud-primary-rgb: 245, 158, 11;
    --hud-primary-dim: #78350f;          /* Ámbar atenuado */
    --hud-primary-glow: rgba(245, 158, 11, 0.18);
    
    /* Bordes y líneas tácticas */
    --hud-border: #232a36;
    --hud-border-active: #3b4556;
    --hud-border-glow: rgba(245, 158, 11, 0.4);
    
    /* Colores de telemetría y texto */
    --hud-text-white: #f1f5f9;
    --hud-text-body: #cbd5e1;
    --hud-text-dim: #64748b;
    --hud-text-muted: #475569;
    
    /* Acentos funcionales de interfaz militar */
    --hud-c8-blue: #38bdf8;              /* Azul satelital / Aula C-8 */
    --hud-c8-blue-glow: rgba(56, 189, 248, 0.2);
    --hud-red-alert: #ef4444;            /* Alerta roja / Clasificado */
    --hud-green-online: #10b981;         /* Verde señal activa */
    
    /* Tipografías de telemetría y consola */
    --font-tactical: 'Share Tech Mono', 'Courier New', monospace;
    --font-editorial: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Grosor y dimensiones de chaflán táctico (recortes en 45°) */
    --bezel-size: 14px;
    --bezel-card: 10px;
    --bezel-btn: 6px;
    
    /* Capa de profundidad z-index */
    --z-scanlines: 900;
    --z-hud-chassis: 950;
    --z-drawer-overlay: 1000;
    --z-drawer-content: 1010;
}

/* Modo Alternativo: NVG Fósforo Verde Táctico (Activable mediante clase en <body>) */
body.theme-nvg {
    --hud-primary: #10b981;              /* Verde visión nocturna */
    --hud-primary-rgb: 16, 185, 129;
    --hud-primary-dim: #064e3b;
    --hud-primary-glow: rgba(16, 185, 129, 0.2);
    --hud-border-glow: rgba(16, 185, 129, 0.4);
}

/* =============================================================================
   2. REINICIO TÁCTICO Y CAPA DE FONDO MILIMÉTRICA (SCANLINES & RETÍCULA)
   ============================================================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
    background-color: #060709;
    min-height: 100vh;
    position: relative;
    /* Cuadrícula táctica nítida de 28px fijada a nivel de documento */
    background-image: 
        linear-gradient(rgba(56, 189, 248, 0.22) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.22) 1px, transparent 1px);
    background-size: 28px 28px;
    background-position: center top;
    background-attachment: fixed;
}

/* HAZ DE RADAR MÁS LENTO Y PAUSADO (CICLO DE 14s) */
html::before {
    content: '';
    position: fixed;
    top: -240px;
    left: 0;
    width: 100vw;
    height: 240px;
    pointer-events: none;
    z-index: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(56, 189, 248, 0.04) 40%,
        rgba(56, 189, 248, 0.16) 80%,
        rgba(56, 189, 248, 0.38) 100%
    );
    border-bottom: 2px solid rgba(56, 189, 248, 0.85);
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.4);
    animation: barridoRadarTactico 14s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Ajuste NVG si se activa */
body.theme-nvg ~ html,
html:has(body.theme-nvg) {
    background-image: 
        linear-gradient(rgba(16, 185, 129, 0.22) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 185, 129, 0.22) 1px, transparent 1px);
}

html:has(body.theme-nvg)::before {
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(16, 185, 129, 0.05) 40%,
        rgba(16, 185, 129, 0.18) 80%,
        rgba(16, 185, 129, 0.40) 100%
    );
    border-bottom: 2px solid rgba(16, 185, 129, 0.85);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.45);
}

@keyframes barridoRadarTactico {
    0% {
        transform: translateY(0);
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    85% {
        opacity: 1;
    }
    100% {
        transform: translateY(calc(100vh + 260px));
        opacity: 0;
    }
}

body {
    background-color: transparent; /* Permite ver la cuadrícula y el barrido del html */
    color: var(--hud-text-body);
    font-family: var(--font-tactical);
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Scanlines analógicas CRT (al frente del todo, sin bloquear interacción) */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    z-index: var(--z-scanlines);
    opacity: 0.75;
}

/* =============================================================================
   3. MARCO PERIMETRAL TÁCTICO HUD (CHASSIS BEZEL)
   ============================================================================= */
.hud-outer-frame {
    position: relative;
    max-width: 1560px;
    margin: 0 auto;
    padding: 16px 20px 40px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

/* Esquinas de telemetría de enfoque (Mira perimetral L-brackets) */
.hud-corner {
    position: absolute;
    width: 18px;
    height: 18px;
    border-color: var(--hud-primary);
    pointer-events: none;
    opacity: 0.85;
}
.hud-corner.tl { top: 10px; left: 10px; border-top: 2px solid; border-left: 2px solid; }
.hud-corner.tr { top: 10px; right: 10px; border-top: 2px solid; border-right: 2px solid; }
.hud-corner.bl { bottom: 10px; left: 10px; border-bottom: 2px solid; border-left: 2px solid; }
.hud-corner.br { bottom: 10px; right: 10px; border-bottom: 2px solid; border-right: 2px solid; }

/* Barra superior fija de telemetría militar */
.hud-telemetry-bar {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--hud-surface);
    border: 1px solid var(--hud-border);
    padding: 8px 18px;
    margin-bottom: 12px;
    font-size: 11px;
    letter-spacing: 1.5px;
    clip-path: polygon(
        0 0, 
        calc(100% - 10px) 0, 100% 10px, 
        100% 100%, 
        10px 100%, 0 calc(100% - 10px)
    );
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
}

.telemetry-node {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Punto parpadeante de enlace activo */
.status-pulse {
    width: 8px;
    height: 8px;
    background-color: var(--hud-green-online);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--hud-green-online);
    animation: tacticalPulse 2s infinite ease-in-out;
}

@keyframes tacticalPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.85); }
}

.hud-switch-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-tactical-toggle {
    position: relative;
    z-index: 2;
    background: #0b0e14;
    color: var(--hud-text-dim);
    border: 1px solid var(--hud-border);
    padding: 3px 8px;
    font-family: var(--font-tactical);
    font-size: 10px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

.btn-tactical-toggle:hover,
.btn-tactical-toggle.active {
    border-color: var(--hud-primary);
    color: var(--hud-primary);
    background: var(--hud-primary-glow);
}

/* =============================================================================
   4. NAVEGADOR DE SALTO ENTRE SECTORES (HUD SECTOR JUMPER BLINDADO)
   ============================================================================= */
.hud-sector-nav {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--hud-border);
    padding-bottom: 10px;
    flex-wrap: wrap;
}

/* Blindaje de botones de sección contra el haz */
.sector-nav-link,
.btn-seccion,
.nav-tab-seccion {
    position: relative;
    z-index: 2;
    background-color: #0c1017 !important; /* Fondo 100% opaco */
    color: var(--hud-text-dim);
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 1.5px;
    padding: 8px 16px;
    border: 1px solid var(--hud-border-active, #3b4556) !important;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 0 100%);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.9);
}

.sector-nav-link:hover,
.sector-nav-link.active,
.btn-seccion:hover,
.btn-seccion.active {
    color: var(--hud-primary);
    border-color: var(--hud-primary) !important;
    background: #141b26 !important;
    box-shadow: 0 0 12px var(--hud-primary-glow);
}

/* =============================================================================
   5. CABECERA MAESTRA (COMMAND HEADER)
   ============================================================================= */
.hud-header {
    position: relative;
    z-index: 2;
    background: var(--hud-surface);
    border: 1px solid var(--hud-border);
    border-left: 4px solid var(--hud-primary);
    padding: 24px 28px;
    margin-bottom: 20px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.85);
    clip-path: polygon(
        0 0, 
        calc(100% - var(--bezel-size)) 0, 100% var(--bezel-size),
        100% 100%, 
        0 100%
    );
}

.hud-header::before {
    content: 'C4ISR // DOSSIER PROTOCOL';
    position: absolute;
    top: 6px;
    right: 20px;
    font-size: 9px;
    color: var(--hud-text-muted);
    letter-spacing: 2px;
}

.header-agency-code {
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--hud-primary);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.header-main-title {
    font-size: 26px;
    color: var(--hud-text-white);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    line-height: 1.2;
}

.header-subtitle {
    margin-top: 8px;
    font-size: 12px;
    color: var(--hud-text-dim);
    letter-spacing: 1.5px;
    max-width: 950px;
}

/* =============================================================================
   6. DOCK ELEVADO AULA C-8 (MÓDULO TOTALMENTE OPACO SIN TRANSPARENCIA)
   ============================================================================= */
.aula-c8-elevated-dock,
#aula-c8,
.panel-aula-c8,
.card-aula-c8 {
    position: relative;
    z-index: 2;
    background: #080c14 !important; /* Opaco absoluto, elimina transparencia previa */
    border: 1px solid var(--hud-c8-blue);
    padding: 18px 24px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.95), 0 0 16px var(--hud-c8-blue-glow);
    clip-path: polygon(
        0 var(--bezel-size), var(--bezel-size) 0,
        100% 0, 100% calc(100% - var(--bezel-size)),
        calc(100% - var(--bezel-size)) 100%, 0 100%
    );
}

.c8-dock-badge {
    font-size: 10px;
    color: var(--hud-c8-blue);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}

.c8-dock-heading {
    font-size: 18px;
    color: #fff;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.c8-dock-desc {
    font-size: 12px;
    color: var(--hud-text-dim);
    margin-top: 4px;
    max-width: 800px;
}

.btn-dock-c8 {
    background: #090e18;
    border: 1px solid var(--hud-c8-blue);
    color: var(--hud-c8-blue);
    padding: 10px 18px;
    font-family: var(--font-tactical);
    font-size: 11px;
    letter-spacing: 2px;
    text-decoration: none;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.btn-dock-c8:hover {
    background: var(--hud-c8-blue);
    color: #000;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
}

/* =============================================================================
   7. BARRA DE CONTROL DE EXPEDIENTES (FILTROS Y BUSCADOR TÁCTICO)
   ============================================================================= */
.expedientes-control-hub {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--hud-surface);
    border: 1px solid var(--hud-border);
    padding: 12px 18px;
    margin-bottom: 20px;
    gap: 15px;
    flex-wrap: wrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
}

.filter-pills-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    background: #0a0c10;
    border: 1px solid var(--hud-border);
    color: var(--hud-text-dim);
    padding: 6px 12px;
    font-family: var(--font-tactical);
    font-size: 11px;
    letter-spacing: 1px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--hud-primary);
    color: var(--hud-primary);
    background: var(--hud-primary-glow);
}

.search-tactical-box {
    display: flex;
    align-items: center;
    background: #090b0f;
    border: 1px solid var(--hud-border);
    padding: 4px 10px;
    width: 280px;
}

.search-tactical-box input {
    background: transparent;
    border: none;
    color: var(--hud-primary);
    font-family: var(--font-tactical);
    font-size: 12px;
    outline: none;
    width: 100%;
}

.search-tactical-box input::placeholder {
    color: var(--hud-text-muted);
}

/* =============================================================================
   8. CUADRÍCULA DE EXPEDIENTES TÁCTICOS (2 COLUMNAS ESTRICTAS)
   ============================================================================= */
.expedientes-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-bottom: 30px;
}

.target-card {
    background: var(--hud-surface-card);
    border: 1px solid var(--hud-border);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    clip-path: polygon(
        0 0, 
        calc(100% - var(--bezel-card)) 0, 100% var(--bezel-card),
        100% 100%, 
        0 100%
    );
}

.target-card:hover {
    border-color: var(--hud-primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.75), 0 0 18px var(--hud-primary-glow);
}

.target-card::before {
    content: '+';
    position: absolute;
    top: 3px;
    left: 5px;
    font-size: 12px;
    color: var(--hud-primary);
    opacity: 0.6;
}

.card-tactical-header {
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid var(--hud-border);
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    letter-spacing: 1.5px;
}

.card-ref-id {
    color: var(--hud-primary);
    font-weight: bold;
}

.card-classification-badge {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid var(--hud-red-alert);
    color: var(--hud-red-alert);
    padding: 2px 7px;
    font-size: 9.5px;
    letter-spacing: 1px;
}

.card-classification-badge.open-access {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--hud-green-online);
    color: var(--hud-green-online);
}

.card-core-body {
    display: flex;
    gap: 20px;
    padding: 20px;
    flex-grow: 1;
}

.card-cover-wrapper {
    width: 140px;
    min-width: 140px;
    height: 185px;
    background: #090b0e;
    border: 1px solid var(--hud-border);
    position: relative;
    overflow: hidden;
}

.card-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(35%) contrast(108%);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.target-card:hover .card-cover-img {
    filter: grayscale(0%) contrast(105%);
    transform: scale(1.04);
}

.card-crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    border: 1px dashed var(--hud-primary);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.target-card:hover .card-crosshair {
    opacity: 0.65;
}

.card-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-sector-tag {
    font-size: 10.5px;
    color: var(--hud-primary);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.card-dossier-title {
    font-size: 16px;
    color: #fff;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
}

.card-intro-extract {
    font-family: var(--font-editorial);
    font-size: 13px;
    color: var(--hud-text-body);
    line-height: 1.55;
    margin-bottom: 14px;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-technical-meta {
    font-size: 10.5px;
    color: var(--hud-text-dim);
    letter-spacing: 1px;
    margin-top: auto;
    display: flex;
    gap: 16px;
}

.card-action-dock {
    border-top: 1px solid var(--hud-border);
    padding: 12px 20px;
    background: #0b0d12;
    display: flex;
    gap: 12px;
}

.btn-tactical {
    flex: 1;
    background: #141822;
    border: 1px solid var(--hud-border);
    color: var(--hud-text-white);
    padding: 10px 14px;
    font-family: var(--font-tactical);
    font-size: 11px;
    letter-spacing: 1.5px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    clip-path: polygon(0 0, calc(100% - 4px) 0, 100% 4px, 100% 100%, 0 100%);
}

.btn-tactical:hover {
    background: var(--hud-surface-hover);
    border-color: var(--hud-primary);
    color: var(--hud-primary);
}

.btn-tactical.primary-action {
    background: var(--hud-primary);
    color: #000;
    font-weight: bold;
    border-color: var(--hud-primary);
}

.btn-tactical.primary-action:hover {
    background: #fbbf24;
    box-shadow: 0 0 14px var(--hud-primary-glow);
}

/* =============================================================================
   9. MOTOR DE PAGINACIÓN TÁCTICA HUD
   ============================================================================= */
.hud-pagination-terminal {
    position: relative;
    z-index: 2;
    background: var(--hud-surface);
    border: 1px solid var(--hud-border);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 11px;
    margin-bottom: 30px;
}

.pagination-telemetry-status {
    color: var(--hud-text-dim);
    letter-spacing: 1.5px;
}

.pagination-telemetry-status span {
    color: var(--hud-primary);
}

.pagination-controls-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pg-btn {
    background: #090a0e;
    border: 1px solid var(--hud-border);
    color: var(--hud-text-body);
    padding: 6px 10px;
    font-family: var(--font-tactical);
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.pg-btn:hover:not(.disabled) {
    border-color: var(--hud-primary);
    color: var(--hud-primary);
}

.pg-btn.active {
    background: var(--hud-primary);
    border-color: var(--hud-primary);
    color: #000;
    font-weight: bold;
}

.pg-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* =============================================================================
   10. VISOR SUPERPUESTO DIVIDIDO (SPLIT OVERLAY DRAWER)
   ============================================================================= */
.hud-overlay-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(3, 4, 6, 0.88);
    backdrop-filter: blur(6px);
    z-index: var(--z-drawer-overlay);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.hud-overlay-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.hud-split-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 90vw;
    max-width: 1100px;
    height: 100vh;
    background: var(--hud-surface);
    border-left: 2px solid var(--hud-primary);
    z-index: var(--z-drawer-content);
    display: flex;
    flex-direction: column;
    box-shadow: -15px 0 40px rgba(0, 0, 0, 0.9);
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.hud-split-drawer.active {
    right: 0;
}

.drawer-tactical-header {
    background: #080a0e;
    border-bottom: 1px solid var(--hud-border);
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-header-title {
    color: var(--hud-primary);
    font-size: 13px;
    letter-spacing: 2px;
}

.btn-close-drawer {
    background: #141822;
    border: 1px solid var(--hud-border);
    color: var(--hud-text-dim);
    padding: 6px 12px;
    font-family: var(--font-tactical);
    font-size: 11px;
    cursor: pointer;
    letter-spacing: 1px;
    transition: all 0.2s;
}

.btn-close-drawer:hover {
    border-color: var(--hud-red-alert);
    color: var(--hud-red-alert);
}

.drawer-grid-content {
    display: grid;
    grid-template-columns: 320px 1fr;
    height: calc(100vh - 60px);
    overflow: hidden;
}

.drawer-sidebar-specs {
    background: #0b0d13;
    border-right: 1px solid var(--hud-border);
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.drawer-cover-preview {
    width: 100%;
    height: 340px;
    background: #06070a;
    border: 1px solid var(--hud-border);
    margin-bottom: 20px;
    overflow: hidden;
}

.drawer-cover-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.specs-block-list {
    list-style: none;
    font-size: 11px;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.specs-block-list li {
    padding: 6px 0;
    border-bottom: 1px dashed var(--hud-border);
    display: flex;
    justify-content: space-between;
}

.specs-label {
    color: var(--hud-text-dim);
}

.specs-val {
    color: var(--hud-text-white);
    font-weight: bold;
}

.drawer-actions-persistent {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.drawer-reading-body {
    padding: 35px 40px;
    overflow-y: auto;
    background: var(--hud-surface);
}

.drawer-dossier-heading {
    font-size: 22px;
    color: #fff;
    letter-spacing: 1px;
    line-height: 1.3;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.drawer-dossier-meta {
    font-size: 11px;
    color: var(--hud-primary);
    letter-spacing: 2px;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--hud-border);
}

.drawer-full-text {
    font-family: var(--font-editorial);
    font-size: 15px;
    line-height: 1.8;
    color: #d1d5db;
    white-space: pre-line;
}

/* =============================================================================
   11. PIE DE PÁGINA BLINDADO Y CANAL DE DESPACHO
   ============================================================================= */
.hud-footer,
footer {
    position: relative;
    z-index: 2;
    margin-top: auto;
    background-color: #060709 !important; /* Fondo sólido opaco, no pasa el destello */
    border-top: 1px solid var(--hud-border);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--hud-text-dim);
    letter-spacing: 1.5px;
    flex-wrap: wrap;
    gap: 15px;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.95);
}

.hud-footer a,
footer a {
    color: var(--hud-text-dim);
    text-decoration: none;
    transition: color 0.2s;
}

.hud-footer a:hover,
footer a:hover {
    color: var(--hud-primary);
}

.btn-footer-c8 {
    
    color: var(--hud-c8-blue) !important;
}

.btn-footer-c8:hover {
    background: var(--hud-c8-blue) !important;
    color: #000 !important;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.5) !important;
}