/* --- style.css: LA IDENTIDAD VISUAL --- */
:root {
    --bg-dark: #050505;
    --bg-panel: #0a0a0f;
    --primary-neon: #39ff14; /* Verde Hacker */
    --secondary-neon: #bc13fe; /* Morado Cyber */
    --accent-blue: #00f3ff;   /* Azul Tron */
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
    --glass: rgba(20, 20, 25, 0.7);
    --border: 1px solid rgba(255, 255, 255, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(188, 19, 254, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(57, 255, 20, 0.1) 0%, transparent 40%);
    min-height: 100vh;
}

/* TIPOGRAFÍA & GLITCH */
h1, h2, h3 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 1px; margin: 0; }
h1 { margin-bottom: 1rem; }
h2 { margin-bottom: 1.5rem; }
h3 { margin-bottom: 1rem; }

.text-neon { color: var(--primary-neon); text-shadow: 0 0 10px rgba(57, 255, 20, 0.5); }
.text-purple { color: var(--secondary-neon); text-shadow: 0 0 10px rgba(188, 19, 254, 0.5); }

/* BOTONES AVANZADOS */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 12px 28px; font-family: var(--font-display); font-weight: 700;
    text-transform: uppercase; background: transparent; 
    color: var(--primary-neon); border: 1px solid var(--primary-neon);
    cursor: pointer; transition: all 0.3s ease; position: relative; z-index: 10;
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
    text-decoration: none; font-size: 0.9rem;
}
.btn:hover { background: var(--primary-neon); color: #000; box-shadow: 0 0 25px rgba(57, 255, 20, 0.6); transform: translateY(-2px); }

.btn-secondary {
    border-color: var(--secondary-neon); color: var(--secondary-neon);
}
.btn-secondary:hover { background: var(--secondary-neon); color: #fff; box-shadow: 0 0 25px rgba(188, 19, 254, 0.6); }

/* HEADER GLOBAL */
header {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: rgba(5, 5, 5, 0.9); backdrop-filter: blur(12px);
    border-bottom: var(--border); padding: 1rem 5%;
    display: flex; justify-content: space-between; align-items: center;
}
.logo { font-size: 1.5rem; font-weight: 900; }
nav ul { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; }
nav a { font-weight: 500; opacity: 0.7; transition: 0.3s; text-decoration: none; color: inherit; }
nav a:hover, nav a.active { opacity: 1; color: var(--primary-neon); text-shadow: 0 0 8px rgba(57,255,20,0.4); }

/* CARDS & GLASSMORPHISM */
.card {
    background: var(--glass); border: var(--border);
    backdrop-filter: blur(10px); border-radius: 16px; padding: 2rem;
    transition: 0.4s; position: relative; overflow: hidden;
    display: flex; flex-direction: column; justify-content: space-between;
}
.card:hover { transform: translateY(-5px); border-color: var(--secondary-neon); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%;
    background: var(--secondary-neon); opacity: 0; transition: 0.3s;
}
.card:hover::before { opacity: 1; }

/* MODAL & UTILS */
.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9); z-index: 2000; justify-content: center; align-items: center;
}
.modal-box {
    background: #111; border: 1px solid var(--primary-neon); padding: 2.5rem; width: 90%; max-width: 450px;
    text-align: center; position: relative; box-shadow: 0 0 50px rgba(57,255,20,0.1);
}
.input-group { margin-bottom: 15px; }
.input-group input {
    width: 100%; padding: 14px; background: #1a1a1a; border: 1px solid #333;
    color: #fff; border-radius: 4px; outline: none; transition: 0.3s;
}
.input-group input:focus { border-color: var(--primary-neon); background: #000; }

/* LAYOUTS */
.section { padding: 100px 5%; }
.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
}

/* MOBILE */
@media (max-width: 768px) {
    header { flex-direction: column; gap: 15px; padding: 1rem; }
    nav ul { gap: 1rem; font-size: 0.9rem; }
    .hero h1 { font-size: 2.5rem; }
    
    /* Ajustes para el panel en móvil */
    body { flex-direction: column; }
    aside.sidebar { 
        position: relative; width: 100%; height: auto; 
        padding: 1rem; flex-direction: row; justify-content: space-between; 
        align-items: center; border-right: none; border-bottom: 1px solid #333;
    }
    main.main-content { margin-left: 0; padding: 1.5rem; }
    aside .menu-item span { display: none; } /* Solo iconos en móvil */
    aside .logout-btn { margin-top: 0; }
}

/* FORZAR VISIBILIDAD CAPTCHA (IMPORTANTE) */
.grecaptcha-badge { 
    visibility: visible !important; 
    z-index: 99999 !important; 
}