/* --- Variables de Color --- */
:root {
    --bg-main: #02040a; 
    --panel-dark: #000000;
    --neon-cyan: #00eaff;
    --neon-blue: #0066ff;
    --text-bright: #ffffff;
    --text-dim: #a0b0c0;
    --input-bg: rgba(0, 234, 255, 0.05);
}

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Rajdhani:wght@400;600&display=swap');

/* --- Reset y Body --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- Reset y Body Modificado --- */
html {
    scroll-behavior: smooth; /* Esto hace que al hacer click en el menú, baje suavemente */
}

body {
    font-family: 'Rajdhani', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-bright);
    display: block; /* CAMBIADO: Antes era flex, ahora es block para permitir scroll */
    min-height: 100vh;
    overflow-x: hidden;
}

/* Movemos el centrado que tenía el body a la nueva sección Hero */
.hero-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
    padding: 80px 0; /* Espacio para que el navbar no tape el login */
}

/* ========================================== */
/* FONDO OPTIMIZADO - SIN LAG */
/* ========================================== */
.cyber-grid-bg {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background-color: var(--bg-main);
    z-index: -1;
    
    /* OPTIMIZACIÓN CLAVE: Usa GPU para todo */
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Capa 1: Rejilla estática (sin animación en esta) */
.cyber-grid-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 234, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 234, 255, 0.08) 1px, transparent 1px);
    background-size: 50px 50px;
    /* OPTIMIZACIÓN: GPU rendering */
    transform: translateZ(0);
}

/* Capa 2: Estrellas sutiles con animación MUY lenta */
.cyber-grid-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(0, 234, 255, 0.15) 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.2) 1px, transparent 1px),
        radial-gradient(circle at 50% 50%, rgba(0, 102, 255, 0.1) 1px, transparent 1px);
    background-size: 300px 300px;
    /* Animación MUY lenta y sutil */
    animation: gentleGlow 15s ease-in-out infinite;
    /* OPTIMIZACIÓN: GPU rendering */
    will-change: opacity;
    transform: translateZ(0);
}

/* Animación ultra suave solo de opacidad (más eficiente) */
@keyframes gentleGlow {
    0%, 100% { 
        opacity: 0.3; 
    }
    50% { 
        opacity: 0.5; 
    }
}

/* --- Contenedor Principal --- */
.login-container {
    display: flex;
    width: 1100px;
    max-width: 95%;
    background-color: var(--panel-dark);
    border-radius: 20px;
    border: 2px solid var(--neon-blue);
    box-shadow: 
        0 0 30px rgba(0, 102, 255, 0.5),
        inset 0 0 50px rgba(0, 102, 255, 0.1);
    overflow: hidden;
    min-height: 600px;
    /* Altura máxima para evitar que se salga de pantalla en laptops pequeñas */
    max-height: 90vh; 
    /* OPTIMIZACIÓN: Aislamiento de rendering */
    transform: translateZ(0);
    will-change: auto;
}

/* ============================================ */
/* PANEL IZQUIERDO - LOGO Y COMUNIDAD (login-image-panel) */
/* ============================================ */
.login-image-panel {
    flex: 1;
    background-color: #000;
    display: flex;
    flex-direction: column; /* Clave para poner cosas debajo del logo */
    justify-content: center;
    align-items: center;
    padding: 30px 40px;
    border-right: 2px solid rgba(0, 234, 255, 0.15);
    position: relative;
    overflow: hidden;
}

/* Efecto de resplandor estático detrás del logo */
.login-image-panel::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    /* Sin animación para mejor performance */
}

/* IMAGEN ESTÁTICA (SIN MOVIMIENTO) */
.logo-img {
    width: 100%;
    max-width: 450px;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 1;
    
    /* OPTIMIZACIÓN para imágenes */
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Láser de Escaneo (Efecto Cyberpunk) - OPCIONAL */
.scanner-line {
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 20px;
    
    background: linear-gradient(
        to right, 
        transparent 0%, 
        rgba(0, 234, 255, 0.1) 20%,
        rgba(0, 234, 255, 0.8) 50%,
        rgba(0, 234, 255, 0.1) 80%, 
        transparent 100%
    );
    
    box-shadow: 0 10px 20px rgba(0, 234, 255, 0.3);
    opacity: 0.7;
    z-index: 5;
    pointer-events: none;
    
    /* Animación más lenta */
    animation: escanear 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    /* OPTIMIZACIÓN */
    will-change: top, opacity;
    transform: translateZ(0);
}

@keyframes escanear {
    0% { top: -10%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 110%; opacity: 0; }
}

/* ================================================= */
/* PANEL DERECHO - FORMULARIO (login-form-panel) */
/* CORREGIDO: Solución al corte de texto superior */
/* ================================================= */
.login-form-panel {
    flex: 1;
    /* Aumentamos el padding para dar aire */
    padding: 40px 40px; 
    display: flex;
    flex-direction: column;
    /* IMPORTANTE: Usamos flex-start para que empiece desde arriba y no corte el título */
    justify-content: flex-start; 
    background: linear-gradient(180deg, rgba(5, 10, 25, 0.95), rgba(0, 0, 0, 1));
    /* Agregamos scroll por si el formulario de registro es muy largo */
    overflow-y: auto; 
}

/* ================================================= */
/* ESTILOS COMUNES PARA AMBOS FORMULARIOS */
/* ================================================= */
#loginForm, #registroForm {
    width: 100%;
    /* Centrado vertical opcional si sobra espacio */
    margin: auto 0; 
}

#loginForm h2, #registroForm h2 {
    font-family: 'Orbitron', sans-serif;
    color: var(--text-bright);
    margin-bottom: 15px;
    /* CORREGIDO: Tamaño más pequeño para evitar cortes (Antes 2rem) */
    font-size: 1.5rem; 
    letter-spacing: 2px;
    text-align: left;
    text-transform: uppercase;
    /* CORREGIDO: Margen superior extra por seguridad */
    margin-top: 10px; 
}

.sub-title {
    display: block;
    color: var(--text-dim);
    margin-bottom: 30px; /* Reducido un poco */
    font-size: 0.95rem;
    text-align: left;
}

/* --- Grupos de Input --- */
.input-group {
    margin-bottom: 20px; /* Reducido un poco para ganar espacio */
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--neon-cyan);
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    font-weight: 600;
    text-transform: uppercase;
}

.input-field {
    display: flex;
    align-items: center;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px 18px; /* Un poco más compacto */
    transition: all 0.3s ease;
}

.input-field:focus-within {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 234, 255, 0.3);
    background-color: rgba(0, 234, 255, 0.03);
}

.input-field i {
    color: var(--text-dim);
    margin-right: 15px;
    font-size: 1.1rem;
}

.input-field input {
    border: none;
    background: none;
    outline: none;
    color: #fff;
    flex: 1;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
}

.input-field input::placeholder {
    color: rgba(160, 176, 192, 0.5);
}

/* --- Grupo Captcha --- */
.captcha-group {
    display: flex;
    align-items: center;
    margin-bottom: 35px;
    gap: 15px;
}

.captcha-code-box {
    background: #000;
    border: 2px solid var(--neon-cyan);
    color: var(--neon-cyan);
    padding: 14px 20px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 1.3rem;
    letter-spacing: 4px;
    box-shadow: 0 0 15px rgba(0, 234, 255, 0.3);
    border-radius: 6px;
    min-width: 100px;
    text-align: center;
}

.captcha-input {
    flex: 1;
}

/* --- Botón de Login --- */
.btn-login {
    width: 100%;
    padding: 16px;
    background: var(--neon-cyan);
    border: none;
    border-radius: 8px;
    color: #000;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.15rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 25px rgba(0, 234, 255, 0.6);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.btn-login:hover {
    background: #fff;
    box-shadow: 0 0 40px rgba(0, 234, 255, 0.9);
    transform: translateY(-2px);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login i {
    margin-right: 10px;
}

/* --- Footer del Formulario --- */
.form-footer {
    margin-top: 30px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.form-footer a {
    color: var(--neon-cyan);
    text-decoration: none;
    transition: color 0.3s ease;
}

.form-footer a:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--neon-cyan);
}

.form-footer p {
    margin-top: 10px;
}

/* ================================ */
/* --- RESPONSIVE DESIGN --- */
/* ================================ */
@media (max-width: 900px) {
    body {
        padding: 20px 0;
        height: auto;
    }
    
    .login-container {
        flex-direction: column;
        width: 95%;
        max-width: 450px;
        margin: 10px auto 30px; /* REDUCIDO: El padding del hero-section hará el resto */
        max-height: none !important;
        height: auto !important;
        overflow: hidden !important; 
        border-radius: 20px; 
    }
    
    .login-image-panel {
        min-height: auto;
        height: auto;
        border-right: none;
        border-bottom: 2px solid rgba(0, 234, 255, 0.3);
        padding: 30px 20px;
        overflow: visible !important; /* EVITA QUE SE CORTEN LOS BOTONES */
    }
    
    .login-image-panel::before {
        width: 250px;
        height: 250px;
    }
    
    .logo-img {
        max-width: 170px !important; /* IMAGEN MÁS PEQUEÑA PARA CELULAR */
        margin-bottom: 15px;
    }
    
    .login-form-panel {
        padding: 30px 20px;
        height: auto;
        overflow-y: visible !important; /* ESTO ELIMINA EL SCROLL DEL FORMULARIO */
    }
    
    #loginForm h2, #registroForm h2 {
        font-size: 1.5rem; /* Ajustado */
        text-align: center;
    }
    
    .sub-title {
        text-align: center;
        font-size: 0.9rem;
    }
    
    .input-group label {
        font-size: 0.8rem;
    }
    
    .input-field {
        padding: 12px 15px;
    }
    
    .input-field input {
        font-size: 1rem;
    }
    
    .captcha-group {
        flex-direction: row;
        gap: 10px;
    }
    
    .captcha-code-box {
        min-width: 90px;
        padding: 12px 15px;
        font-size: 1.2rem;
    }
    
    .btn-login {
        font-size: 1rem;
        padding: 14px;
    }
    
    .form-footer {
        font-size: 0.85rem;
    }
}

@media (max-width: 500px) {
    .login-container {
        width: 92%;
        margin: 10px auto 30px; /* REDUCIDO */
    }
    
    .login-image-panel {
        min-height: auto;
        height: auto;
        padding: 25px 15px;
    }

    .logo-img {
        max-width: 150px !important; /* AÚN MÁS PEQUEÑO EN CELULARES CHICOS */
    }
    
    .login-form-panel {
        padding: 25px 15px;
        overflow-y: visible !important;
    }
    
    #loginForm h2, #registroForm h2 {
        font-size: 1.4rem;
        letter-spacing: 2px;
    }
    
    .sub-title {
        font-size: 0.85rem;
        margin-bottom: 30px;
    }
    
    .input-group {
        margin-bottom: 20px;
    }
    
    .input-field i {
        font-size: 1rem;
        margin-right: 12px;
    }
    
    .captcha-code-box {
        min-width: 80px;
        padding: 10px 12px;
        font-size: 1.1rem;
        letter-spacing: 3px;
    }
    
    .btn-login {
        font-size: 0.95rem;
        padding: 13px;
        letter-spacing: 1.5px;
    }
    
    .form-footer {
        margin-top: 25px;
        font-size: 0.8rem;
    }
}

/* --- Ajustes específicos para pantallas medianas/bajas (SOLO PC) --- */
@media (max-height: 800px) and (min-width: 901px) {
    .login-container {
        overflow-y: auto; 
        max-height: 95vh;
    }
}

/* ============================================== */
/* OPTIMIZACIONES MÁXIMAS PARA ELIMINAR LAG */
/* ============================================== */

/* Desactiva animaciones pesadas en equipos de bajo rendimiento */
@media (prefers-reduced-motion: reduce) {
    .cyber-grid-bg::after {
        animation: none;
        opacity: 0.4;
    }
    
    .scanner-line {
        animation: none;
        display: none;
    }
}

/* En pantallas grandes, reduce aún más las animaciones */
@media (min-width: 1200px) {
    .cyber-grid-bg::after {
        animation-duration: 20s;
    }
}

/* --- ESTILOS DEL CAPTCHA DINÁMICO --- */

.captcha-img-container {
    background: #000;
    border: 1px solid var(--neon-cyan); /* Borde neón */
    border-radius: 6px;
    padding: 0;
    cursor: pointer; /* Manito al pasar el mouse */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-width: 120px; /* Ancho mínimo para que se vea */
    height: 52px; /* Altura igual a los inputs */
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 234, 255, 0.1);
}

.captcha-img-container:hover {
    box-shadow: 0 0 15px rgba(0, 234, 255, 0.4); /* Brillo al pasar el mouse */
    border-color: #fff;
}

.captcha-img-container img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ajusta la imagen SVG dentro */
}

/* Ajuste para que el input de al lado se vea bien */
.captcha-group {
    gap: 10px; /* Espacio entre la imagen y el input */
}

/* =========================================
   CORRECCIÓN RESPONSIVE PARA CAPTCHA (V2 - IMAGEN GRANDE)
   ========================================= */
@media screen and (max-width: 768px) {
    
    /* 1. Estructura vertical (Input abajo de imagen) */
    .captcha-group {
        display: flex;
        flex-direction: column; 
        align-items: center;
        gap: 15px;
        margin-bottom: 25px; /* Un poco más de espacio abajo */
    }

    /* 2. El contenedor de la imagen ahora ocupa todo el ancho */
    .captcha-img-container {
        display: flex;
        justify-content: center;
        align-items: center;
        background: rgba(0, 0, 0, 0.2); 
        padding: 8px; /* Padding pequeño para no desperdiciar espacio */
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        
        /* Aseguramos una altura mínima para que se vea imponente */
        min-height: 80px; 
    }

    /* 3. ¡AQUÍ ESTÁ EL CAMBIO IMPORTANTE PARA LA IMAGEN! */
    #captcha-img {
        width: 100%;       /* Ocupa todo el ancho del contenedor */
        height: auto;      /* La altura crece automáticamente */
        min-height: 60px;  /* Evita que se vea muy delgada */
        max-height: 120px; /* (Opcional) Limite para que no sea gigante en tablets */
        object-fit: contain; /* Clave: Agranda sin cortar nada de la imagen */
        display: block;    /* Quita espacios extraños debajo de la imagen */
    }

    /* 4. Input ocupando todo el ancho (esto ya estaba bien) */
    .captcha-input {
        width: 100% !important;
        margin: 0 !important;
    }

    .captcha-input input {
        text-align: center;
        width: 100%;
    }
}

/* =========================================
   BARRA DE SEGURIDAD DE CONTRASEÑA
   ========================================= */
.strength-container {
    margin-bottom: 15px;
}

.strength-bar-bg {
    width: 100%;
    height: 6px;
    background: #333;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}

.strength-bar-fill {
    height: 100%;
    width: 0%;
    background: #ff4444; /* Rojo por defecto */
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

.strength-text {
    display: block;
    font-size: 0.8rem;
    margin-top: 5px;
    text-align: right;
    color: #888;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Niveles de Seguridad */
.strength-weak { 
    background: #ff4444 !important; /* Rojo */
    box-shadow: 0 0 10px #ff4444 !important;
}
.strength-medium { 
    background: #ffbb33 !important; /* Amarillo */
    box-shadow: 0 0 10px #ffbb33 !important;
}
.strength-strong { 
    background: #00C851 !important; /* Verde */
    box-shadow: 0 0 10px #00C851 !important;
}

/* =========================================
   ANIMACIÓN DE IMAGEN FLOTANTE (LOGIN/REGISTRO)
   ========================================= */

/* 1. Definimos los pasos de la animación */
@keyframes cyber-float-glow {
    0% {
        /* Posición inicial (abajo) */
        transform: translateY(0px);
        /* Sombra azul neón pegada a la imagen */
        filter: drop-shadow(0 5px 10px rgba(0, 234, 255, 0.5));
    }
    50% {
        /* Punto más alto (sube 20 pixeles) */
        transform: translateY(-20px);
        /* La sombra se aleja, se agranda y se vuelve más difusa */
        filter: drop-shadow(0 25px 25px rgba(0, 234, 255, 0.3));
    }
    100% {
        /* Vuelve a la posición inicial */
        transform: translateY(0px);
        filter: drop-shadow(0 5px 10px rgba(0, 234, 255, 0.5));
    }
}

/* 2. Aplicamos la animación a la imagen */
/* Usamos .login-image-panel img para asegurar que le afecte */
.login-image-panel img {
    /* Esto ayuda al navegador a optimizar el movimiento */
    will-change: transform;
    
    /* APLICAR LA ANIMACIÓN:
       - Nombre: cyber-float-glow
       - Duración: 4 segundos (para que sea lento y suave)
       - Efecto: ease-in-out (acelera y frena suavemente)
       - Repetición: infinite (nunca se detiene)
    */
    animation: cyber-float-glow 4s ease-in-out infinite;
    
    /* Aseguramos que la imagen no se salga de su contenedor al moverse */
    max-height: 90%; /* Un poco menos del 100% para dar espacio al movimiento */
    width: auto;
    object-fit: contain;
}

/* ========================================== */
/* NUEVOS COMPONENTES: NAVBAR, SECCIONES, FOOTER */
/* ========================================== */

/* --- Navbar --- */
.cyber-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(2, 4, 10, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 234, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    z-index: 1000;
}

.nav-logo .neon-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: var(--text-bright);
    text-shadow: 0 0 10px var(--neon-cyan);
    font-weight: bold;
    letter-spacing: 2px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-bright);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s, text-shadow 0.3s;
    text-transform: uppercase;
}

.nav-links a:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 8px rgba(0, 234, 255, 0.8);
}

/* --- Flecha de Scroll --- */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--neon-cyan);
    font-size: 2rem;
    animation: bounce 2s infinite;
    text-shadow: 0 0 10px var(--neon-cyan);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-20px) translateX(-50%); }
    60% { transform: translateY(-10px) translateX(-50%); }
}

/* --- Estructura de Secciones --- */
.content-section {
    padding: 100px 5%;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 10;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    color: var(--neon-cyan);
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
    text-shadow: 0 0 15px rgba(0, 234, 255, 0.4);
    letter-spacing: 2px;
}

/* --- Quiénes Somos --- */
.about-content {
    max-width: 800px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 102, 255, 0.3);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.about-text p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--text-dim);
}

.about-text strong {
    color: var(--neon-cyan);
}

/* --- Tarjetas de Servicios --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1100px;
}

.service-card {
    background: #050a19;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    border-color: var(--neon-cyan);
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 234, 255, 0.2);
}

.card-icon {
    font-size: 3rem;
    color: var(--neon-cyan);
    margin-bottom: 20px;
    transition: transform 0.3s;
}

.service-card:hover .card-icon {
    transform: scale(1.1);
    text-shadow: 0 0 15px var(--neon-cyan);
}

.service-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.service-card p {
    color: var(--text-dim);
    font-size: 1.1rem;
    line-height: 1.5;
}

/* --- Footer --- */
.cyber-footer {
    background: #000;
    border-top: 2px solid var(--neon-blue);
    padding: 50px 0 20px 0;
    text-align: center;
    position: relative;
    z-index: 10;
}

.footer-content h3 {
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    margin-bottom: 10px;
}

.footer-content p {
    color: var(--text-dim);
    margin-bottom: 20px;
}

.btn-whatsapp {
    display: inline-block;
    background: #25D366; /* Color oficial WhatsApp */
    color: #fff;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover {
    background: #1ebe57;
    box-shadow: 0 0 25px rgba(37, 211, 102, 0.7);
    transform: translateY(-2px);
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #555;
    font-size: 0.9rem;
}

/* --- Ajustes Responsive Menú --- */
@media (max-width: 768px) {
    .cyber-navbar {
        padding: 0 20px;
        flex-direction: column;
        height: auto;
        padding-top: 15px;
        padding-bottom: 15px;
    }
    .nav-links {
        margin-top: 15px;
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero-section {
        padding-top: 65px; /* REDUCIDO: Para que no deje un hueco enorme en el login */
    }
}

/* ================================================================== */
/* 🔥 ANIMACIONES DE REVELADO AL HACER SCROLL (SCROLL REVEAL 3D) */
/* ================================================================== */

/* Estado inicial: oculto, más abajo y ligeramente rotado en 3D */
.reveal-3d {
    opacity: 0;
    transform: translateY(80px) rotateX(-15deg) scale(0.95);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Curva suave y rebotona */
    will-change: transform, opacity;
}

/* Estado inicial para revelar desde los lados */
.reveal-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-right {
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* La clase "active" se añade con JavaScript cuando el usuario llega a la zona */
.reveal-3d.active, 
.reveal-left.active, 
.reveal-right.active {
    opacity: 1;
    transform: translateY(0) translateX(0) rotateX(0) scale(1);
}

/* Tiempos de retraso para que aparezcan en cascada (uno tras otro) */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.5s; }

/* ================================================================== */
/* 🔥 BANNER DE SEGURIDAD FLOTANTE (TOAST) */
/* ================================================================== */

.security-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 380px;
    max-width: calc(100% - 40px);
    background: rgba(5, 10, 25, 0.95);
    border: 1px solid var(--neon-cyan);
    border-left: 4px solid #ff4444; /* Borde rojo de advertencia */
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(255, 68, 68, 0.2);
    display: flex;
    align-items: flex-start;
    padding: 20px;
    z-index: 9999; /* Para que quede por encima de todo */
    backdrop-filter: blur(10px);
    transform: translateX(0);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: slideInRight 0.5s ease-out forwards;
}

/* Clase para ocultar suavemente */
.security-toast.hide {
    transform: translateX(120%);
    opacity: 0;
}

.toast-icon {
    font-size: 24px;
    color: #ff4444;
    margin-right: 15px;
    animation: pulse-red 2s infinite;
}

.toast-content {
    flex: 1;
}

.toast-content h4 {
    color: #ff4444;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.toast-content p {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 15px;
}

.toast-content strong {
    color: var(--text-bright);
}

.toast-buttons {
    display: flex;
    gap: 10px;
}

.btn-toast {
    flex: 1;
    padding: 8px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.btn-official {
    background: rgba(0, 234, 255, 0.1);
    color: var(--neon-cyan);
    border: 1px solid var(--neon-cyan);
}

.btn-official:hover {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 10px var(--neon-cyan);
}

.btn-scammer {
    background: rgba(255, 68, 68, 0.1);
    color: #ff4444;
    border: 1px solid #ff4444;
}

.btn-scammer:hover {
    background: #ff4444;
    color: #fff;
    box-shadow: 0 0 10px #ff4444;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 0 0 15px;
    transition: color 0.3s;
}

.toast-close:hover {
    color: #fff;
}

/* Animaciones */
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes pulse-red {
    0% { transform: scale(1); filter: drop-shadow(0 0 5px rgba(255,68,68,0.5)); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 15px rgba(255,68,68,0.8)); }
    100% { transform: scale(1); filter: drop-shadow(0 0 5px rgba(255,68,68,0.5)); }
}

/* Responsive para celulares */
@media (max-width: 500px) {
    .security-toast {
        bottom: 15px;
        right: 15px;
        left: 15px;
        width: auto;
        padding: 15px;
    }
}

/* ================================================================== */
/* 🔥 MODAL DE SEGURIDAD (POP-UP) */
/* ================================================================== */
.cyber-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 4, 10, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cyber-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cyber-modal-box {
    background: #050a19;
    width: 90%;
    max-width: 550px;
    border-radius: 12px;
    padding: 35px;
    position: relative;
    transform: scale(0.8) translateY(30px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    max-height: 90vh;
    overflow-y: auto;
}

.cyber-modal-overlay.active .cyber-modal-box {
    transform: scale(1) translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s, transform 0.3s;
}

.modal-close-btn:hover {
    color: #fff;
    transform: rotate(90deg);
}

/* Encabezados del Modal */
.modal-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 5px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.modal-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6rem;
    letter-spacing: 2px;
    margin: 0;
}

.modal-header i { font-size: 2rem; }

.cyan-glow h2, .cyan-glow i {
    color: var(--neon-cyan);
    text-shadow: 0 0 15px rgba(0, 234, 255, 0.5);
}

.red-glow h2, .red-glow i {
    color: #ff4444;
    text-shadow: 0 0 15px rgba(255, 68, 68, 0.5);
}

.modal-subtitle {
    color: var(--text-dim);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.list-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    color: #fff;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.text-red { color: #ff4444; }
.mt-4 { margin-top: 25px; }

/* Tarjetas de Contacto */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 25px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 8px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
}

.contact-card .number {
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 1px;
    font-family: 'Rajdhani', sans-serif;
}

/* Botón de Copiar Neón */
.copy-btn {
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 1.1rem;
    margin-left: auto;
    transition: color 0.3s, transform 0.2s;
}

.copy-btn:hover {
    color: var(--neon-cyan);
    transform: scale(1.1);
}

.copy-btn.copied {
    color: #00C851;
}

/* Estilos Dueño */
.owner-card {
    flex-direction: column;
    align-items: flex-start;
    background: linear-gradient(135deg, rgba(0, 234, 255, 0.1), transparent);
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 234, 255, 0.15);
    margin-bottom: 25px;
}

.owner-card .contact-info {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.owner-card .badge {
    background: var(--neon-cyan);
    color: #000;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.owner-card .contact-info i { color: var(--neon-cyan); font-size: 1.4rem; }
.owner-card .contact-info .number { color: #fff; font-size: 1.4rem; }

.official-card i { color: #00C851; font-size: 1.3rem; }
.official-card .number { color: #fff; }

/* Estilos Estafadores */
.scam-card {
    background: rgba(255, 68, 68, 0.05);
    border: 1px solid rgba(255, 68, 68, 0.3);
}

.scam-card i { color: #ff4444; font-size: 1.3rem; }
.scam-card .number { color: #ff4444; font-weight: bold; }

.scam-bank-card {
    background: rgba(255, 68, 68, 0.1);
    border: 1px dashed #ff4444;
    border-radius: 8px;
    padding: 15px;
}

.scam-detail {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.scam-detail:last-child { margin-bottom: 0; }
.scam-detail .label { font-size: 0.8rem; color: var(--text-dim); margin-bottom: 3px; }
.scam-detail .value { font-size: 1.05rem; color: #fff; font-weight: bold; font-family: monospace; letter-spacing: 1px; }

/* Fix de los botones del toast para que tengan cursor de manito */
button.btn-toast {
    cursor: pointer;
    font-family: inherit;
}

@media (max-width: 500px) {
    .cyber-modal-box { padding: 25px 20px; }
    .modal-header h2 { font-size: 1.3rem; }
    .owner-card .contact-info .number { font-size: 1.2rem; }
}

/* ================================================================== */
/* 🔥 BLOQUE DE COMUNIDAD OFICIAL (PANEL IZQUIERDO) */
/* ================================================================== */

/* Reducimos el logo para hacer espacio */
.logo-img.logo-img-small {
    max-width: 450px;
    margin-bottom: 20px;
}

.community-block {
    width: 100%;
    max-width: 320px;
    text-align: center;
    z-index: 10; /* Para que quede por encima del resplandor */
}

.community-title {
    font-family: 'Orbitron', sans-serif;
    color: var(--neon-cyan);
    font-size: 1.1rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(0, 234, 255, 0.5);
    border-bottom: 1px solid rgba(0, 234, 255, 0.3);
    padding-bottom: 10px;
}

.community-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-owner {
    background: linear-gradient(135deg, rgba(0, 234, 255, 0.1), transparent);
    color: #fff;
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 234, 255, 0.2);
}

.btn-owner i { color: var(--neon-cyan); font-size: 1.2rem; }

.btn-owner:hover {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 234, 255, 0.6);
}
.btn-owner:hover i { color: #000; }

.btn-group {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-group:hover {
    color: #fff;
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.community-sellers-preview {
    margin-top: 20px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px dashed rgba(0, 234, 255, 0.3);
    padding: 15px;
    border-radius: 8px;
}

.preview-title {
    display: block;
    color: var(--text-dim);
    font-size: 0.75rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.preview-numbers {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 10px;
}

.preview-numbers span {
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: bold;
}

.btn-view-all {
    background: transparent;
    border: none;
    color: var(--neon-cyan);
    cursor: pointer;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.btn-view-all:hover {
    color: #fff;
    text-shadow: 0 0 5px var(--neon-cyan);
}

/* Ajustes Responsive para el bloque nuevo */
@media (max-width: 900px) {
    .logo-img.logo-img-small {
        max-width: 150px !important; /* Forzamos tamaño perfecto */
        margin-bottom: 10px;
    }
    
    .community-block {
        max-width: 100%;
    }
}

/* ================================================================== */
/* 🔥 SECCIÓN DE PRECIOS COMPACTA (REFERENCIAL) */
/* ================================================================== */
.pricing-compact-wrapper {
    width: 100%;
    max-width: 1000px;
    background: rgba(5, 10, 25, 0.6);
    border: 1px solid rgba(0, 234, 255, 0.1);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
}

.compact-category-title {
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 20px;
    border-bottom: 1px dashed rgba(255,255,255,0.15);
    padding-bottom: 10px;
    letter-spacing: 1px;
}

.compact-category-title i {
    color: var(--neon-cyan);
    margin-right: 10px;
}

.mt-5 { margin-top: 45px; }

.pricing-compact-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.credits-grid {
    grid-template-columns: repeat(3, 1fr);
}

.compact-card {
    background: #0b1126;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 20px 10px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.compact-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 234, 255, 0.5);
    box-shadow: 0 5px 15px rgba(0, 234, 255, 0.1);
}

.compact-card h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #fff;
}

.compact-card .price {
    font-size: 1.6rem;
    font-weight: bold;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
}

.compact-card .price span {
    font-size: 0.8rem;
    color: var(--text-dim);
    font-weight: normal;
    font-family: 'Rajdhani', sans-serif;
}

.compact-card.highlighted {
    border-color: #b026ff;
    background: rgba(176, 38, 255, 0.05);
    transform: scale(1.05);
    z-index: 2;
}

.compact-card.highlighted:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 5px 20px rgba(176, 38, 255, 0.2);
}

.compact-card.elite {
    border-color: rgba(255, 68, 68, 0.2);
}

.tiny-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #b026ff;
    color: #fff;
    font-size: 0.65rem;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: bold;
    white-space: nowrap;
    box-shadow: 0 0 10px rgba(176, 38, 255, 0.5);
}

.credit-desc {
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1.4;
}

/* Colores Neón compactos */
.text-purple { color: #b026ff !important; text-shadow: 0 0 8px rgba(176, 38, 255, 0.5); }
.text-red { color: #ff4444 !important; text-shadow: 0 0 8px rgba(255, 68, 68, 0.5); }

/* Responsive */
@media (max-width: 900px) {
    .pricing-compact-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .compact-card.highlighted {
        transform: scale(1);
    }
}

@media (max-width: 600px) {
    .pricing-compact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .credits-grid {
        grid-template-columns: 1fr;
    }
    .pricing-compact-wrapper {
        padding: 20px;
    }
}

/* ================================================================== */
/* 🔥 BOTÓN FLOTANTE - VOLVER AL PORTAL */
/* ================================================================== */
.btn-back-portal {
    position: absolute;
    top: 30px;
    left: 30px;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    border-radius: 8px;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 0 10px rgba(0, 234, 255, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.btn-back-portal:hover {
    background: rgba(0, 234, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 234, 255, 0.5);
    transform: translateY(-2px);
    color: #fff;
}

/* Ajustes para pantallas de celular */
@media (max-width: 768px) {
    .btn-back-portal {
        top: 15px;
        left: 15px;
        padding: 8px 15px;
        font-size: 12px;
    }
}

/* ================================================================== */
/* 🔥 PANTALLA DE CARGA (PRELOADER) */
/* ================================================================== */
.lonely-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #02040a; /* Fondo oscuro sólido del portal */
    z-index: 999999; /* Por encima de absolutamente todo */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

/* Clase que aplicará JS para desaparecerlo suavemente */
.lonely-loader-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.spinner-container {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Aro de colores girando */
.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.05);
    border-top-color: #b026ff; /* Morado neón */
    border-left-color: var(--neon-cyan); /* Cyan neón */
    animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

/* Ícono central latiendo */
.loader-icon {
    font-size: 3rem;
    color: var(--neon-cyan);
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Texto de carga */
.loader-text {
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    color: #ffffff;
    font-size: 1.2rem;
    letter-spacing: 3px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.loading-dots {
    font-size: 0.9rem;
    color: var(--neon-cyan);
    letter-spacing: 4px;
}

/* Animación de los puntos suspensivos */
.loading-dots span {
    animation: dot-blink 1.4s infinite both;
}
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

/* Animaciones Clave */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse-glow {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(0, 234, 255, 0.4)); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 20px rgba(0, 234, 255, 0.8)); }
}

@keyframes dot-blink {
    0% { opacity: 0.2; }
    20% { opacity: 1; }
    100% { opacity: 0.2; }
}