/* --- VARIABLES & RESET --- */

:root {
    --bg-dark: #0A0A0B; /* Fondo principal oscuro */
    --bg-panel: #252528; /* Fondo de tarjetas/secciones */

    /* NUEVO COLOR ACENTO PRINCIPAL (Aguamarina de la referencia) */
    --accent-aqua: #00FFCC;
    /* Una variación ligeramente más brillante para hovers */
    --accent-aqua-hover: #33FFD6;

    --text-main: #E0E0E0;
    --text-muted: #999999;
    --grid-line: #2f2f32; /* Color sutil de la rejilla */

    --font-tech: 'Space Mono', monospace;
    --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* --- NAVIGATION (EXACT PROPORTIONS AS ABOUT US) --- */

.main-nav {
    position: fixed;
    top: 0; width: 100%;
    background: rgba(10, 10, 11, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--grid-line);
    z-index: 1000; /* Aumentado para seguridad */
    padding: 12px 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px; /* Ajustado como en About Us */
    height: 38px; /* Altura fija para alineación perfecta */
}

/* Distribution Groups */
.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 0.65; /* Lado izquierdo equilibrado */
}

.nav-socials {
    display: flex;
    gap: 17px;
    padding-right: 25px;
    border-right: 1px solid var(--grid-line);
}

.nav-socials a {
    color: #FFFFFF;
    font-size: 1.4rem;
}

.brand-name {
    font-family: var(--font-tech);
    font-weight: 700;
    color: var(--accent-aqua);
    letter-spacing: -0.90px;
    font-size: 1rem; /* Reducido levemente para match */
    white-space: nowrap;
}

/* --- SEARCH BAR (Centered Style) --- */
.search-wrapper {
    position: relative;
    flex: 2; /* Ocupa el centro proporcionalmente */
    display: flex;
    justify-content: center;
    margin: 0 10px;
}

#archiveSearch {
    background: rgba(255, 255, 255, 0.03); /* Estilo exacto de About Us */
    border: 1px solid #333;
    color: #fff; /* Texto blanco en input */
    padding: 8px 15px;
    font-family: var(--font-tech);
    font-size: 0.8rem;
    width: 100%;
    max-width: 550px; /* Tamaño ideal del centro */
    outline: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

#archiveSearch:focus {
    border-color: var(--accent-aqua);
    background: rgba(255, 255, 255, 0.06);
}

.search-results-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 550px;
    background: var(--bg-panel);
    border: 1px solid #333;
    border-radius: 4px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.search-results-dropdown div {
    padding: 12px 15px;
    font-family: var(--font-tech);
    font-size: 0.8rem;
    color: var(--text-main);
    cursor: pointer;
    border-bottom: 1px solid var(--grid-line);
}

.search-results-dropdown div:hover {
    background: var(--accent-aqua);
    color: var(--bg-dark);
}

/* --- NAV RIGHT SECTION (Funcionalidad Index) --- */
.nav-right-section {
    flex: 1; /* Lado derecho equilibrado */
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.nav-links {
    display: flex;
    gap: 15px;
    list-style: none;
    margin: 0; padding: 0;
}

.nav-links a {
    font-family: var(--font-tech);
    font-size: 1rem;
    color: var(--text-muted);
    white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent-aqua); }

/* Social Hover Effects */
.nav-socials a:hover {
    color: var(--accent-aqua) !important;
    filter: drop-shadow(0 0 8px var(--accent-aqua));
    transform: translateY(-2px);
}

/* --- HERO SECTION & GRID BACKGROUND --- */
.hero-section {
    position: relative; 
    height: 100vh; 
    min-height: 600px;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    overflow: hidden;
    
    /* CÍRCULO GRADIENTE QUE SIGUE AL MOUSE */
    background: radial-gradient(
        300px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(0, 255, 204, 0.15), 
        transparent 80%
    );
}

/* REJILLA DE FONDO (Estilo de referencia) */
.grid-background {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center center;
    z-index: 1; /* Move grid slightly above glow base */
    /* Efecto viñeta para oscurecer los bordes */
    mask-image: radial-gradient(circle at center, black 30%, transparent 95%);
    -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 95%);
    pointer-events: none;
}

/* --- THE MAIN CARD --- */
#main-card {
    position: relative; z-index: 10;
    background: rgba(25, 25, 28, 0.9); /* Un poco más claro que el fondo */
    border: 1px solid #333;
    padding: 60px 40px;
    border-radius: 16px;
    max-width: 600px; width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    transition: transform 0.1s ease;
    margin-left: 30px;
}

.terminal-header {
    font-family: var(--font-tech); font-size: 0.8rem;
    color: var(--accent-aqua); margin-bottom: 20px;
    text-transform: uppercase; letter-spacing: 2px; display: flex; align-items: center; justify-content: center;
}

.status-dot {
    display: inline-block; width: 8px; height: 8px;
    background: var(--accent-aqua); border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 0 8px var(--accent-aqua);
}

h1 {
    font-family: var(--font-tech); font-size: 2.5rem;
    color: var(--accent-aqua); /* Color del título como en la referencia */
    margin-bottom: 20px; line-height: 1.1;
    text-shadow: 0 0 15px rgba(0, 255, 204, 0.3);
}

.archivist-note {
    color: var(--text-muted); margin-bottom: 40px; font-size: 1.1rem; font-family: var(--font-tech);
}

/* --- CYBER BUTTON (Estilo de referencia) --- */
.cyber-button {
    background: var(--accent-aqua);
    color: #0A0A0B; /* Texto oscuro sobre botón brillante */
    border: none;
    padding: 20px 40px;
    font-family: var(--font-tech); font-weight: 700; font-size: 1.1rem;
    cursor: pointer; border-radius: 8px;
    transition: all 0.3s ease; width: 100%; max-width: 350px;
    box-shadow: 0 0 25px rgba(0, 255, 204, 0.4);
   
}

.cyber-button:hover {
    background: var(--accent-aqua-hover);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 40px rgba(0, 255, 204, 0.7);
}

.cyber-button:disabled {
    background: #444; color: #888; cursor: not-allowed; box-shadow: none; transform: none;
}

.legal-agreement { margin-top: 30px; font-size: 0.8rem; color: #555; }
.legal-agreement a:hover { color: var(--accent-aqua); }

/* --- EDITORIAL SECTIONS & ACCENTS --- */
.philosophy-strip {
    background: var(--bg-panel); padding: 100px 20px;
    border-top: 1px solid #222; border-bottom: 1px solid #222; text-align: center;
}
.content-wrapper { max-width: 800px; margin: 0 auto; }
.philosophy-strip h2 { font-family: var(--font-tech); margin-bottom: 30px; color: white; font-size: 1.8rem; }

/* Aplicando el nuevo color a los acentos */
.accent-aqua { color: var(--accent-aqua); }

/* Findings Grid */
.featured-findings { max-width: 1200px; margin: 100px auto; padding: 0 20px; position: relative; z-index: 5; }
.section-header { margin-bottom: 60px; }
.section-header h3 { font-family: var(--font-tech); font-size: 1.8rem; margin-bottom: 15px; color: white; }
.findings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }

.finding-card {
    background: var(--bg-panel); border: 1px solid #252525; border-radius: 12px; overflow: hidden; transition: all 0.3s ease;
    position: relative; z-index: 10; /* Ensures cards stay above background effects */
}
.finding-card:hover { transform: translateY(-10px); border-color: var(--accent-aqua); box-shadow: 0 10px 30px -10px rgba(0, 255, 204, 0.2); }
.card-image { height: 200px; background: #1A1A1D; position: relative; }
.card-content { padding: 30px; }

.tag {
    font-family: var(--font-tech); font-size: 0.7rem;
    color: var(--accent-aqua); border: 1px solid var(--accent-aqua);
    padding: 4px 10px; border-radius: 20px; display: inline-block; margin-bottom: 20px;
}
.finding-card h4 { font-size: 1.3rem; margin-bottom: 15px; color: white; }
.finding-card p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 25px; }
.read-more { font-family: var(--font-tech); font-size: 0.9rem; color: var(--accent-aqua); font-weight: 700; }

/* --- FOOTER MEJORADO --- */
.site-footer { 
    background: #050505; 
    padding: 100px 20px 40px; 
    border-top: 1px solid var(--grid-line); 
    margin-top: 120px; 
    position: relative; 
    z-index: 10; 
}

.footer-grid { 
    max-width: 1400px; /* Más ancho para balancear el contenido */
    margin: 0 auto 80px; 
    display: grid; 
    grid-template-columns: 2fr 1fr 1fr 1fr; /* La primera columna es más ancha */
    gap: 60px; 
}

.footer-col h5 { 
    font-family: var(--font-tech); 
    color: var(--accent-aqua); /* Usamos el color acento para los títulos */
    margin-bottom: 30px; 
    letter-spacing: 2px; 
    font-size: 0.85rem;
}

.brand-desc {
    max-width: 300px;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* Estilo para los links del footer */
.footer-col a, .footer-col p { 
    color: var(--text-muted); 
    margin-bottom: 15px; 
    transition: all 0.3s ease; 
    font-size: 0.9rem;
}

.footer-col a:hover { 
    color: #fff; 
    padding-left: 5px; /* Pequeño efecto de desplazamiento al pasar el mouse */
}

/* Fila de redes sociales en el footer */
.footer-social-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-social-row a {
    font-size: 1.4rem !important;
    color: var(--text-main);
    padding: 0 !important; /* Reseteamos paddings anteriores */
}

.footer-social-row a:hover {
    color: var(--accent-aqua);
    transform: translateY(-3px);
    padding-left: 0;
}

/* System Status Glow */
.system-status {
    margin-top: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-text {
    font-family: var(--font-tech);
    font-size: 0.7rem;
    color: var(--accent-aqua);
    opacity: 0.7;
}

/* Copyright y Línea de cierre */
.copyright { 
    text-align: center; 
    color: #333; 
    font-size: 0.75rem; 
    font-family: var(--font-tech);
    position: relative;
}

.copyright-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--grid-line), transparent);
    width: 100%;
    margin-bottom: 30px;
}

.social-note {
    font-size: 0.75rem !important;
    font-style: italic;
    opacity: 0.5;
}

/* Ajuste para móviles */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 500px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* --- SPECIAL EFFECTS: WARP DRIVE --- */

/* 1. Flash Overlay */
#flash-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    opacity: 0;
    pointer-events: none;
    z-index: 9999; /* Asegura que cubra todo al final */
    transition: opacity 0.2s;
}

/* 2. Hyperspace Animation Applied to the Card */
.hyperspace-mode #main-card {
    animation: warpSpeed 3.0s forwards ease-in;
    pointer-events: none; /* Evita clics durante la animación */
}

.hyperspace-mode #flash-overlay {
    animation: flashBang 2.5s forwards ease-in;
}

/* Animation Keyframes */
@keyframes warpSpeed {
    0% {
        transform: perspective(1000px) scale(1) translate(0, 0);
    }
    20% {
        transform: perspective(1000px) scale(0.9) translate(0, 5px); /* Pull back slightly */
    }
    40% {
        transform: perspective(1000px) scale(0.9) translate(-5px, 5px); /* Shake */
    }
    60% {
        transform: perspective(1000px) scale(0.9) translate(5px, -5px); /* Shake */
    }
    100% {
        transform: perspective(1000px) scale(15); /* Zoom masivo hacia la cámara */
        opacity: 0;
        filter: blur(20px);
    }
}

@keyframes flashBang {
    0%, 70% { opacity: 0; }
    90% { opacity: 1; } /* El destello ocurre al final del zoom */
    100% { opacity: 0; }
}

/* --- EL BOTÓN: SOLO APARECE SI ALGO SE OCULTA --- */
.hamburguesa-neon {
    display: none;
    color: #00FFCC;
    font-size: 1.6rem;
    cursor: pointer;
    margin-left: 15px;
    z-index: 1000;
}

/* --- LÓGICA DE OCULTACIÓN REAL (BORRA EL ESPACIO) --- */
@media (max-width: 1400px) { 
    [data-id="0"] { display: none !important; position: absolute; visibility: hidden; } 
    .hamburguesa-neon { display: block !important; }
}
@media (max-width: 1250px) { [data-id="1"] { display: none !important; position: absolute; visibility: hidden; } }
@media (max-width: 1100px) { [data-id="2"] { display: none !important; position: absolute; visibility: hidden; } }
@media (max-width: 950px) {  [data-id="3"] { display: none !important; position: absolute; visibility: hidden; } }
@media (max-width: 800px) {  [data-id="4"] { display: none !important; position: absolute; visibility: hidden; } }

/* --- EL MENÚ QUE FLOTA (EL QUE NO ROMPE NADA) --- */
.menu-desplegable-neon {
    display: none;
    position: absolute;
    top: 55px;
    right: 0;
    background: #080808;
    border: 1px solid #00FFCC;
    width: 220px;
    padding: 20px;
    z-index: 99999;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.2);
}

.menu-desplegable-neon.show { display: flex !important; }
.menu-desplegable-neon a {
    color: #fff;
    text-decoration: none;
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    display: block;
    border-bottom: 1px solid #111;
    padding-bottom: 5px;
}

/* --- RESPONSIVE SEARCH BAR --- */
@media screen and (max-width: 768px) {
    #archiveSearch {
        display: none !important;
    }
    
    /* Si también quieres ocultar el contenedor de resultados para que no flote vacío */
    #searchResults {
        display: none !important;
    }
}

/* --- CENTRADO REAL EN CELULARES --- */
@media screen and (max-width: 768px) {
    #main-card {
        /* Esto anula el margin-left que pusiste para PC */
        margin-left: auto !important;
        margin-right: auto !important;
        
        /* Esto asegura que la tarjeta tenga espacio igual a los lados */
        display: block !important;
        float: none !important;
        
        /* Ajuste de ancho para que respire en el celular */
        width: 92% !important;
        transform: none !important;
    }
}





/* --- AJUSTES RESPONSIVE PARA "ABOUT" --- */
@media screen and (max-width: 768px) {
    
    /* Ajuste del contenedor principal */
    .about-main-container {
        padding: 120px 20px 80px !important; /* Menos espacio arriba en móvil */
    }

    /* Ajuste del título gigante */
    .about-title {
        font-size: 2.2rem !important; /* Letra más pequeña para que no se corte */
        letter-spacing: -1px !important;
        line-height: 1.2 !important;
    }

    /* Convertir las 2 columnas en 1 sola (Especificaciones) */
    .about-grid-specs {
        grid-template-columns: 1fr !important; 
        gap: 30px !important;
    }

    /* Convertir el manifiesto de 2 columnas a 1 sola */
    .about-manifesto-columns {
        column-count: 1 !important;
    }

    /* Ajuste de los recuadros de la promesa (Permanencia, Anonymity, etc) */
    .about-main-container div[style*="repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
    }

    /* Reducir el padding de la sección gris oscuro */
    section[style*="padding: 60px"] {
        padding: 30px 20px !important;
    }
}



/* --- AJUSTES DE TEXTO PARA EL INDEX EN MÓVIL --- */
@media screen and (max-width: 768px) {
    
    /* Ajustamos el título principal */
    .hero-title {
        font-size: 1.8rem !important; /* Más pequeño para que no se amontone */
        line-height: 1.2 !important;
        margin-bottom: 15px !important;
        letter-spacing: -1px !important;
    }

    /* Ajustamos la nota del archivista (el texto debajo del título) */
    .archivist-note {
        font-size: 0.95rem !important;
        margin-bottom: 25px !important;
        padding: 0 10px;
    }

    /* Ajuste para el tag de expansión operativa */
    .section-tag-mobile {
        letter-spacing: 1px !important;
        font-size: 0.65rem !important;
        display: block;
        word-break: break-all;
    }
}

    /* Ajustamos el botón para que sea más cómodo de tocar */
    .cyber-button {
        padding: 15px 30px !important;
        font-size: 1rem !important;
        width: 100% !important;
    }

    /* Reducimos el padding de la tarjeta para ganar espacio */
    #main-card {
        padding: 40px 20px !important;
    }

    /* Ajustamos el encabezado de terminal (el que tiene el punto verde) */
    .terminal-header {
        font-size: 0.7rem !important;
        letter-spacing: 1px !important;
    }

