/* ----------------------------------------------------
   KADOSH MATRIX // STYLE_CORE_V3
   ---------------------------------------------------- */

:root {
    --gold-primary: #C6A75E;
    --gold-dark: #8C733E;
    --gold-dim: rgba(198, 167, 94, 0.2);
    --gold-glow: rgba(198, 167, 94, 0.6);
    --bg-main: #050505;
    --bg-card: rgba(15, 15, 15, 0.95);
    --text-main: #FFFFFF;
    --text-muted: #888888;
    --font-main: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --white: #ffffff;
    --cyber-ease: cubic-bezier(0.23, 1, 0.32, 1);
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Canvas & Effects */
#tech-canvas {
    position: fixed;
    inset: 0;
    z-index: -2;
    opacity: 0.4;
    pointer-events: none;
}

.scanlines {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.05) 50%);
    background-size: 100% 4px;
    opacity: 0.6;
}

.app-container {
    width: 100%;
    padding: 0 5%;
}



/* System Status Dot Re-integration */
.nav-status {
    display: flex;
    align-items: center;
    color: var(--text-muted);
}

.nav-status::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #00ff41;
    /* Cyber Green */
    border-radius: 50%;
    margin-right: 12px;
    box-shadow: 0 0 10px #00ff41, 0 0 20px rgba(0, 255, 65, 0.2);
    animation: status-pulse 2s infinite ease-in-out;
}

@keyframes status-pulse {
    0% {
        opacity: 0.4;
        transform: scale(0.9);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
        box-shadow: 0 0 15px #00ff41;
    }

    100% {
        opacity: 0.4;
        transform: scale(0.9);
    }
}

/* Sections Global */
.section-container {
    padding: 3rem 0; /* Paso 3: Configurado a 3rem */
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.section-header {
    margin-bottom: 2.5rem;
    max-width: 900px;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--text-muted);
    opacity: 0.85; /* Paso 4: Contraste mejorado */
    margin-top: 1.5rem;
}

/* Buttons Cyber Style */
.btn-cyber {
    position: relative;
    padding: 1.2rem 3rem;
    background: transparent;
    color: var(--gold-primary);
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 3px;
    border: 1px solid var(--gold-dim);
    cursor: pointer;
    overflow: hidden;
    transition: 0.4s;
    text-transform: uppercase;
}

.btn-cyber:hover {
    color: #fff;
    border-color: var(--gold-primary);
    background: rgba(198, 167, 94, 0.05);
    transform: translateY(-3px);
}

.cyber-border {
    position: absolute;
    top: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--gold-primary);
    border-right: 2px solid var(--gold-primary);
}

/* Card Architecture */
.tech-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    transition: all 0.6s var(--cyber-ease);
    overflow: hidden;
    backdrop-filter: blur(10px);
    margin-bottom: 1rem;
}

.tech-card:hover {
    border-color: var(--gold-primary);
    transform: translateY(-10px);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.8);
}

.tech-card-inner {
    padding: clamp(1.5rem, 5vw, 3.5rem);
}

.tech-sub {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    padding: 4px 12px;
    border: 1px solid #333;
    color: #666;
    display: inline-block;
    margin-bottom: 2rem;
}

/* Hero Section */
.hero {
    text-align: center;
    height: auto;
    padding-top: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5.5rem); /* Ajustado para una sola línea */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    white-space: nowrap; /* Fuerza una sola línea */
    background: linear-gradient(135deg, var(--white) 30%, var(--gold-primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.05em;
}

.hero p {
    font-size: 1.2rem;
    line-height: 2;
    color: var(--text-muted);
    max-width: 800px;
    margin: 2rem auto 0 auto;
    letter-spacing: 0.15em;
    opacity: 0.9;
}

.hero-logo {
    width: min(400px, 80%);
    height: auto;
    margin-bottom: 2rem;
    filter: brightness(1.5) contrast(1.2);
    animation: bio-glow 3s infinite ease-in-out;
}

@keyframes bio-glow {
    0% {
        transform: scale(1);
        filter: brightness(1.2) contrast(1.1);
    }

    50% {
        transform: scale(1.03);
        filter: brightness(2.5) contrast(1.4);
    }

    100% {
        transform: scale(1);
        filter: brightness(1.2) contrast(1.1);
    }
}

.gold-gradient-text {
    background: linear-gradient(45deg, #fff, var(--gold-primary), #fff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Responsive Grid Systems */
.systems-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem; /* Paso 5: Más espacio entre ecosistemas */
    width: 100%;
}

.tech-feature-list {
    list-style: none;
    margin-top: 2.5rem;
}

.tech-feature-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.25rem;
    color: #ccc;
    font-size: 0.95rem;
}

.tech-feature-list li svg {
    width: 18px;
    color: var(--gold-primary);
    opacity: 0.7;
}

.suite-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .suite-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .systems-grid, .suite-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero h1 {
        font-size: clamp(2rem, 10vw, 3.5rem) !important;
        white-space: normal !important;
        line-height: 1.2;
    }

    .hero p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .btn-cyber {
        width: 100%;
        padding: 1rem 1.5rem;
    }

    .section-header h2 {
        font-size: 2.5rem !important;
    }
    .hero-logo {
        width: min(250px, 60%) !important;
    }
    
    .section-container {
        padding: 4rem 5% !important;
    }
}

.cyber-panel {
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.4s;
    position: relative;
}

.cyber-panel:hover {
    background: rgba(198, 167, 94, 0.03);
    border-color: var(--gold-primary);
}

.panel-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 30px;
    border-bottom: 2px solid var(--gold-primary);
    border-left: 2px solid var(--gold-primary);
}

/* 4. Intel Archive Section */
.intel-archive {
    padding: 8rem 0;
}

.intel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
    width: 100%;
}

.intel-file {
    aspect-ratio: 1 / 1;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(198, 167, 94, 0.2);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.5s var(--cyber-ease);
}

.hero-logo {
    width: 350px;
    height: auto;
    margin-bottom: 3rem;
    position: relative;
    z-index: 5;
    transition: transform 0.8s var(--cyber-ease);
}

.hero-logo:hover {
    transform: scale(1.05) rotate(2deg);
}

/* ----------------------------------------------------
   SISTEMA DE EVENTOS KADOSH
   ---------------------------------------------------- */
.events-section {
    padding: 8rem 0;
    position: relative;
}

/* ----------------------------------------------------
   SISTEMA DE EVENTOS KADOSH (GRID + MODAL)
   ---------------------------------------------------- */
/* ----------------------------------------------------
   SISTEMA DE CARRUSEL INFINITO (INFINITE STREAM)
   ---------------------------------------------------- */
.carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
    /* Degradado en los bordes para suavizar la entrada/salida */
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.carousel-track {
    display: flex;
    gap: 20px;
    width: max-content;
    will-change: transform; /* Optimización de GPU */
}

.carousel-track:hover {
    animation-play-state: paused; /* Se detiene al interactuar */
}

@keyframes infinite-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Se mueve hasta la mitad (donde empieza el clon) */
}

/* --- Controles de Navegación Laterales --- */
.carousel-container {
    position: relative;
    width: 100%;
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: 1px solid rgba(198, 167, 94, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    color: var(--gold-primary);
    transition: all 0.3s var(--cyber-ease);
    font-size: 1.5rem;
    z-index: 100;
}

.nav-arrow.prev { left: 10px; }
.nav-arrow.next { right: 10px; }

.nav-arrow:hover {
    background: var(--gold-primary);
    color: #000;
    box-shadow: 0 0 20px var(--gold-glow);
}

/* --- Tarjetas de Flujo (Blog & Eventos) --- */
.intel-file, .event-card {
    flex: 0 0 350px;
    background: #0a0a0a;
    border: 1px solid rgba(198, 167, 94, 0.15);
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--cyber-ease);
    display: flex;
    flex-direction: column;
    min-height: 420px;
    cursor: pointer;
}

.intel-file:hover, .event-card:hover {
    border-color: var(--gold-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.file-image, .event-image {
    width: 100%;
    height: 180px;
    background: #111;
    position: relative;
    overflow: hidden;
}

.file-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-data, .event-data {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.file-tag {
    color: var(--gold-primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 2px;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.file-title, .event-title {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 1rem;
}

.file-corner {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 15px 15px;
    border-color: transparent transparent var(--gold-primary) transparent;
    opacity: 0.3;
}

/* --- Modal Flotante --- */
.event-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    z-index: 1000;
    display: none; /* Oculto por defecto */
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: var(--bg-dark);
    border: 1px solid var(--gold-primary);
    padding: 4rem;
    max-width: 500px;
    width: 100%;
    position: relative;
    box-shadow: 0 0 50px rgba(198, 167, 94, 0.2);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    color: var(--gold-primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
}


.file-image {
    width: 100%;
    height: 55%;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid rgba(198, 167, 94, 0.1);
    position: relative;
}

.file-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(5, 5, 5, 0.9));
}

.file-content {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.file-content h3 {
    font-size: 1.25rem;
    line-height: 1.3;
    color: var(--white);
    font-weight: 800;
    margin-top: 5px;
}

.file-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--gold-primary);
    color: #000;
    padding: 4px 10px;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 800;
    z-index: 5;
    text-transform: uppercase;
}

.file-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
}

.access-grant {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--gold-primary);
}

.read-more {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--white);
    opacity: 0.6;
}

.file-corner {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 15px 15px;
    border-color: transparent transparent #222 transparent;
}

/* 4. ANALYTICS SECTION */
.analytics-section {
    padding: 10rem 0;
    position: relative;
    overflow: hidden;
}

.analytics-content {
    max-width: 900px;
    position: relative;
    z-index: 5;
}

.file-content {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.file-content h3 {
    font-size: 1.25rem;
    line-height: 1.2;
    margin-top: 0.5rem;
    color: var(--white);
    font-weight: 800;
}

.file-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--gold-primary);
    color: #000;
    padding: 4px 10px;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 800;
    z-index: 5;
    text-transform: uppercase;
}

.file-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
}

.access-grant {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: var(--gold-primary);
    letter-spacing: 1px;
}

.read-more {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--white);
    opacity: 0.6;
    cursor: pointer;
}

.file-corner {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 15px 15px;
    border-color: transparent transparent #222 transparent;
}

/* BLOQUE_OBSOLETO_REMOVIDO */

/* 5.2 K_NEURAL_HUB */
.discovery-lab {
    padding: 8rem 0;
}

.discovery-console {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(198, 167, 94, 0.1);
    padding: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 100px 200px rgba(0, 0, 0, 0.9);
    border-radius: 4px;
}

.discovery-console::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
    animation: scan-line 4s linear infinite;
}

@keyframes scan-line {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Reveal Animations (Paso 6: Blur Reveal Cinematic) */
.hidden {
    opacity: 0;
    filter: blur(15px);
    transform: translateY(30px);
    transition: all 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.show {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

/* --- LA TRINIDAD TIPOGRÁFICA --- */

/* 1. TÍTULOS (Poder) */
h1, h2, h3, .gold-gradient-text, .footer-brand {
    font-family: var(--font-primary);
    background: linear-gradient(135deg, #c6a75e 0%, #fff 50%, #c6a75e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    line-height: 1.1;
}

/* 2. SUBTÍTULOS (Precisión) */
.tech-mono-text, .gold-text, .tech-sub, .file-tag {
    font-family: var(--font-mono);
    color: var(--gold-primary) !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
    font-size: 0.8rem;
    letter-spacing: 3px;
    font-weight: normal;
    text-transform: uppercase;
}

/* 3. PÁRRAFOS (Narrativa) */
p, li {
    font-family: var(--font-primary);
    font-weight: 300;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
}

.file-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--gold-primary);
    color: #000;
    padding: 6px 12px;
    font-family: var(--font-mono);
    font-size: 0.75rem; /* 12px exactos */
    font-weight: 800;
    z-index: 5;
    text-transform: uppercase;
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

.delay-5 {
    transition-delay: 0.5s;
}

.delay-6 {
    transition-delay: 0.6s;
}

.delay-7 {
    transition-delay: 0.7s;
}

.delay-8 {
    transition-delay: 0.8s;
}

/* Footer */
.cyber-footer {
    padding: 4rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 8rem;
}

.footer-brand {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--gold-primary);
    letter-spacing: 4px;
    margin-bottom: 1rem;
}

.footer-meta {
    font-size: 0.75rem; /* 12px */
    opacity: 0.8; /* Contraste mejorado */
    letter-spacing: 2px;
}

/* 5. ARCHIVE ARCHITECTURE (CAROUSEL) */
.intel-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 1rem 0;
}

.intel-carousel-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.6s var(--cyber-ease);
    transition-delay: 0.1s;
}

.intel-file {
    min-width: 400px;
    max-width: 400px;
    height: 500px;
    background: #080808;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.5s var(--cyber-ease);
    cursor: pointer;
}

.intel-file:hover {
    border-color: var(--gold-primary);
    transform: translateY(-10px);
}

.file-image {
    width: 100%;
    height: 65%;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.file-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(40%);
    transition: 0.8s;
}

.intel-file:hover .file-image img {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.file-data {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.file-tag {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--gold-primary);
    letter-spacing: 2px;
}

.file-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin-top: 1rem;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.carousel-nav-controls {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

.nav-arrow {
    background: transparent;
    border: 1px solid #333;
    color: #fff;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-arrow:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    background: rgba(198, 167, 94, 0.05);
}

@media (max-width: 768px) {
    .intel-file {
        min-width: 85vw;
        height: 450px;
    }
}

/* ----------------------------------------------------
   6. RESPONSIVE ARCHITECTURE (MOBILE ELITE)
   ---------------------------------------------------- */

/* Tablet & Large Mobile (1024px) */
@media (max-width: 1024px) {

    .systems-grid,
    .suite-grid {
        grid-template-columns: 1fr;
        gap: 3rem; /* Más espacio en móvil */
    }

    .hero h1 {
        font-size: clamp(2.5rem, 12vw, 4.5rem);
        line-height: 1.3;
        margin-bottom: 2rem;
    }

    .section-container {
        padding: 2.5rem 0;
    }
}

/* Standard Mobile (768px) */
@media (max-width: 768px) {
    .app-container {
        padding: 0 6%;
    }

    .brand-nav {
        padding: 1.5rem 0;
    }

    .brand-logo {
        font-size: 1.2rem;
    }

    .hero-logo {
        width: 320px;
        margin-bottom: 2rem;
    }

    .hero h1 {
        font-size: 2.8rem;
        margin-bottom: 1.5rem;
    }

    .hero p {
        font-size: 1.1rem;
        line-height: 1.7;
        margin-top: 2rem;
        letter-spacing: 0.05em;
    }

    .section-header {
        margin-bottom: 1.5rem;
    }

    .section-header h2 {
        font-size: 2.2rem !important;
    }

    .tech-card-inner {
        padding: 1.5rem;
    }

    .section-container {
        padding: 1.5rem 0;
    }

    /* Discovery Lab Mobile Refinement */
    .discovery-console {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .console-body {
        padding: 2.5rem 1.5rem;
    }

    .option-grid {
        grid-template-columns: 1fr;
    }

    .btn-console {
        width: 100%;
        text-align: center;
    }

    .intel-grid {
        grid-template-columns: 1fr;
    }

    .intel-archive {
        padding: 4rem 1rem !important;
    }
}

/* Small Mobile (480px) */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.4rem;
    }

    .gold-gradient-text {
        letter-spacing: -1px;
    }

    .footer-brand {
        font-size: 1rem;
    }

    .hero-logo {
        width: 280px;
    }
}

/* KADOSH MATRIX MOBILE POLISH (Paso 92) */
@media (max-width: 768px) {
    .intel-layout {
        grid-template-columns: 1fr !important;
    }

    .intel-sidebar {
        display: none;
        /* En mobile, la navegación pasaría a menú o barra inferior */
    }

    .intelligence-grid {
        grid-template-columns: 1fr !important;
        padding: 1rem;
    }

    .w-full,
    .w-half,
    .w-third {
        grid-column: span 1 !important;
    }

    .hub-container {
        width: 95%;
        padding: 2rem 1.5rem;
    }

    #advisory-cards-container {
        grid-template-columns: 1fr !important;
    }

    .cyber-footer {
        padding: 3rem 1rem !important;
    }

    .footer-meta {
        font-size: 0.7rem !important;
        line-height: 1.6;
        padding: 0 10px;
        white-space: normal;
    }

    .social-networks {
        flex-wrap: wrap;
        gap: 20px;
    }

    .social-icon {
        font-size: 1.6rem;
    }
}

/* AUTOMATIC LIGHT MODE (Paso 95) */
@media (prefers-color-scheme: light) {
    :root {
        --bg-color: #ffffff;
        --text-primary: #111111;
        --border-color: rgba(198, 167, 94, 0.4);
    }

    body,
    .hub-container,
    .intel-layout {
        background-color: var(--bg-color);
        color: var(--text-primary);
    }

    .widget,
    .profile-card,
    .timeline-node {
        background: rgba(0, 0, 0, 0.02) !important;
        border-color: var(--border-color) !important;
    }

    .tech-mono-text {
        color: #333;
    }

    .gold-text {
        color: #A38030 !important;
        /* Un oro más oscuro para contrastar en fondo blanco */
    }
}

/* --- Redes Sociales (Global) --- */
.social-networks {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
}

.social-icon {
    font-size: 1.8rem; /* Tamaño más grande para logos puros */
    text-decoration: none;
    transition: transform 0.2s ease-in-out;
    display: inline-block;
}

.social-icon:hover {
    transform: scale(1.15);
}

/* Colores de Marca Nativos */
.social-icon.fb { color: #1877F2; }
.social-icon.ig { 
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.social-icon.th { color: #ffffff; }
.social-icon.tk { color: #ffffff; text-shadow: -1.5px -1.5px 0 #00f2fe, 1.5px 1.5px 0 #fe0979; }
.social-icon.yt { color: #FF0000; }
