/* ============================================
ESTILOS GLOBALES - PARANOIA SECTOR CHIL-e
============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --verde-neon: #00ff41;
    --rojo-alerta: #ff003c;
    --dorado: #ffd700;
    --negro: #0a0a0a;
    --gris-oscuro: #1a1a1a;
    --gris-medio: #2a2a2a;
    --texto: #e0e0e0;
    --cyan: #00ffff;
}

body {
    font-family: 'Courier New', monospace;
    background: var(--negro);
    color: var(--texto);
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* ============================================
EFECTO CRT SCANLINES
============================================ */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 255, 65, 0.03) 50%, rgba(0, 0, 0, 0.15) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 9999;
    animation: scanlines 0.3s linear infinite;
}

@keyframes scanlines {
    0% { background-position: 0 0; }
    100% { background-position: 0 4px; }
}

/* ============================================
NAVEGACIÓN
============================================ */
.main-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 2px solid var(--verde-neon);
    padding: 1rem 2rem;
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--verde-neon);
    text-shadow: 0 0 10px var(--verde-neon);
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--texto);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--verde-neon);
    text-shadow: 0 0 10px var(--verde-neon);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--verde-neon);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ============================================
OJO DEL ORDENADOR EN NAVEGACIÓN
============================================ */
.nav-eye-socket {
    width: 40px;
    height: 20px;
    background: #111;
    border: 2px solid var(--rojo-alerta);
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(255,0,60,0.6), inset 0 0 5px rgba(255,0,60,0.4);
    animation: nav-eye-blink 6s infinite;
}

.nav-eye-pupil {
    width: 12px;
    height: 12px;
    background: var(--rojo-alerta);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 5px #fff, inset 0 0 2px #000;
    transition: transform 0.05s linear;
}

@keyframes nav-eye-blink {
    0%, 90%, 94%, 100% { height: 20px; }
    92% { height: 2px; }
}

/* ============================================
SECCIONES
============================================ */
.section-visible {
    padding: 5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    display: block;
}

/* ============================================
HERO SECTION
============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background: radial-gradient(ellipse at center, var(--gris-oscuro) 0%, var(--negro) 70%);
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    color: var(--verde-neon);
    text-shadow: 0 0 20px var(--verde-neon), 0 0 40px var(--verde-neon);
    margin-bottom: 1rem;
    letter-spacing: 8px;
    animation: glitch 3s infinite;
}

@keyframes glitch {
    0%, 90%, 100% { transform: translate(0); }
    92% { transform: translate(-2px, 2px); }
    94% { transform: translate(2px, -2px); }
    96% { transform: translate(-2px, -2px); }
    98% { transform: translate(2px, 2px); }
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--dorado);
    margin-bottom: 2rem;
    min-height: 2rem;
    letter-spacing: 2px;
}

.hero-warning {
    color: var(--rojo-alerta);
    font-size: 0.9rem;
    margin-bottom: 3rem;
    animation: blink 1.5s infinite;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.3; }
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* ============================================
OJO DEL ORDENADOR INTERACTIVO (HERO)
============================================ */
.computer-eye-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 3;
}

.computer-eye-socket {
    width: 140px;
    height: 70px;
    background: #111;
    border: 3px solid var(--rojo-alerta);
    border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(255,0,60,0.6), inset 0 0 15px rgba(255,0,60,0.4);
    animation: eye-blink 6s infinite;
}

.computer-eye-pupil {
    width: 45px;
    height: 45px;
    background: var(--rojo-alerta);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 15px #fff, inset 0 0 5px #000;
    transition: transform 0.1s ease-out;
}

@keyframes eye-blink {
    0%, 90%, 94%, 100% { height: 70px; }
    92% { height: 4px; }
}

/* ============================================
VIDEO BACKGROUND (INICIO)
============================================ */
#inicio {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.77vh;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 5, 0.25);
    background-image: radial-gradient(circle, rgba(255, 0, 60, 0.15) 0%, rgba(5, 5, 5, 0.4) 100%);
    z-index: 1;
}

/* ============================================
BOTONES
============================================ */
.btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 2px solid;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    color: var(--verde-neon);
    border-color: var(--verde-neon);
}

.btn-primary:hover {
    background: var(--verde-neon);
    color: var(--negro);
    box-shadow: 0 0 20px var(--verde-neon);
}

.btn-secondary {
    color: var(--dorado);
    border-color: var(--dorado);
}

.btn-secondary:hover {
    background: var(--dorado);
    color: var(--negro);
    box-shadow: 0 0 20px var(--dorado);
}

.btn-danger {
    color: var(--rojo-alerta);
    border-color: var(--rojo-alerta);
}

.btn-danger:hover {
    background: var(--rojo-alerta);
    color: var(--negro);
    box-shadow: 0 0 20px var(--rojo-alerta);
}

/* ============================================
PAGE HEADERS
============================================ */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--gris-oscuro);
    border: 2px solid var(--verde-neon);
}

.page-title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--verde-neon);
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 0 0 10px var(--verde-neon);
    margin-bottom: 1rem;
}

.page-subtitle {
    color: var(--dorado);
    font-size: 1.1rem;
    letter-spacing: 1px;
}

/* ============================================
ETIQUETAS DE VERSIÓN (CANON VS LEGACY)
============================================ */
.sys-badge {
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 3px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-left: 8px;
    vertical-align: middle;
    display: inline-block;
}

.badge-oficial {
    background: var(--verde-neon);
    color: var(--negro);
    box-shadow: 0 0 5px var(--verde-neon);
}

.badge-legacy {
    background: var(--dorado);
    color: var(--negro);
}

.badge-xp {
    background: var(--cyan);
    color: var(--negro);
}

/* ============================================
FEATURES GRID (INICIO)
============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--gris-oscuro);
    border: 2px solid var(--verde-neon);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 255, 65, 0.3);
    border-color: var(--dorado);
}

.feature-card i {
    font-size: 3rem;
    color: var(--verde-neon);
    margin-bottom: 1rem;
    text-shadow: 0 0 10px var(--verde-neon);
}

.feature-card h3 {
    color: var(--dorado);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.feature-card p {
    color: var(--texto);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* ============================================
ONBOARDING GRID
============================================ */
.onboarding-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.onboarding-card {
    background: var(--gris-oscuro);
    border: 2px solid var(--dorado);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}

.onboarding-card:hover {
    transform: scale(1.05);
    border-color: var(--verde-neon);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.onboarding-number {
    font-size: 3rem;
    color: var(--dorado);
    font-weight: bold;
    margin-bottom: 1rem;
}

.onboarding-card h2 {
    color: var(--verde-neon);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.onboarding-card p {
    color: var(--texto);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* ============================================
TOOLS GRID
============================================ */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.tool-card {
    background: var(--gris-oscuro);
    border: 2px solid var(--verde-neon);
    padding: 2rem;
    transition: all 0.3s;
    text-decoration: none;
    display: block;
    text-align: center;
}

.tool-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 255, 65, 0.4);
    border-color: var(--dorado);
}

.tool-card i {
    font-size: 3rem;
    color: var(--verde-neon);
    margin-bottom: 1rem;
    text-shadow: 0 0 20px var(--verde-neon);
    display: block;
}

.tool-card h3 {
    color: var(--dorado);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.tool-card p {
    color: var(--texto);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.tool-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: transparent;
    border: 2px solid var(--verde-neon);
    color: var(--verde-neon);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    transition: all 0.3s;
    margin-top: 1rem;
}

.tool-card:hover .tool-btn {
    background: var(--verde-neon);
    color: var(--negro);
    box-shadow: 0 0 20px var(--verde-neon);
}

/* ============================================
LEARN GRID
============================================ */
.learn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.learn-card {
    background: var(--gris-oscuro);
    border: 2px solid var(--dorado);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    text-decoration: none;
    display: block;
}

.learn-card:hover {
    transform: translateY(-5px);
    border-color: var(--verde-neon);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.learn-card i {
    font-size: 2.5rem;
    color: var(--dorado);
    margin-bottom: 1rem;
    display: block;
}

.learn-card h3 {
    color: var(--verde-neon);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.learn-card p {
    color: var(--texto);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.learn-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: transparent;
    border: 2px solid var(--dorado);
    color: var(--dorado);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    transition: all 0.3s;
}

.learn-card:hover .learn-btn {
    background: var(--dorado);
    color: var(--negro);
    box-shadow: 0 0 20px var(--dorado);
}

/* ============================================
GM GRID
============================================ */
.gm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.gm-card {
    background: var(--gris-oscuro);
    border: 2px solid var(--verde-neon);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    text-decoration: none;
    display: block;
}

.gm-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 65, 0.3);
    border-color: var(--dorado);
}

.gm-card.restricted {
    border-color: var(--rojo-alerta);
}

.gm-card.restricted:hover {
    box-shadow: 0 10px 30px rgba(255, 0, 60, 0.3);
}

.gm-card i {
    font-size: 2.5rem;
    color: var(--verde-neon);
    margin-bottom: 1rem;
    display: block;
}

.gm-card.restricted i {
    color: var(--rojo-alerta);
}

.gm-card h3 {
    color: var(--dorado);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.gm-card p {
    color: var(--texto);
    margin-bottom: 1.5rem;
}

.gm-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: transparent;
    border: 2px solid var(--verde-neon);
    color: var(--verde-neon);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    transition: all 0.3s;
}

.gm-card:hover .gm-btn {
    background: var(--verde-neon);
    color: var(--negro);
    box-shadow: 0 0 20px var(--verde-neon);
}

.gm-btn.danger {
    border-color: var(--rojo-alerta);
    color: var(--rojo-alerta);
}

.gm-card.restricted:hover .gm-btn.danger {
    background: var(--rojo-alerta);
    color: var(--negro);
    box-shadow: 0 0 20px var(--rojo-alerta);
}

/* ============================================
DOWNLOADS GRID
============================================ */
.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.download-category {
    background: var(--gris-oscuro);
    border: 2px solid var(--dorado);
    padding: 2rem;
}

.download-category h3 {
    color: var(--dorado);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--dorado);
}

.download-category h3 i {
    margin-right: 0.5rem;
}

.download-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin: 0.5rem 0;
    background: var(--negro);
    border-left: 3px solid var(--verde-neon);
}

.download-item span {
    color: var(--texto);
}

.download-item span:first-child {
    font-weight: bold;
    color: var(--dorado);
}

/* ============================================
FOOTER
============================================ */
footer {
    background: var(--gris-oscuro);
    border-top: 2px solid var(--verde-neon);
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 5rem;
}

.footer-warning {
    color: var(--rojo-alerta);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-text {
    color: var(--texto);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* ============================================
NAV RESPONSIVE - NOTEBOOKS Y TABLETS
============================================ */

/* Tablets grandes y notebooks pequeños (1024px - 1280px) */
@media (max-width: 1280px) {
    .nav-links {
        gap: 1rem;
    }
    
    .nav-links a {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
        letter-spacing: 0.5px;
    }
}

/* Tablets y notebooks muy pequeños (768px - 1024px) */
@media (max-width: 1024px) {
    .nav-links {
        gap: 0.5rem;
    }
    
    .nav-links a {
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
        letter-spacing: 0.3px;
    }
    
    .logo {
        font-size: 1.2rem;
    }
}

/* ============================================
RESPONSIVE GENERAL
============================================ */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        padding: 2rem;
        transition: left 0.3s;
        gap: 1rem;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links a {
        font-size: 1rem;
        padding: 1rem;
        width: 100%;
        text-align: center;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }
    
    .btn {
        width: 100%;
    }
    
    .features-grid,
    .tools-grid,
    .learn-grid,
    .gm-grid,
    .downloads-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
SCROLL SUAVE
============================================ */
html {
    scroll-behavior: smooth;
}