/* =========================================
   VARIABLES GLOBALES (NUEVA PALETA NEÓN)
   ========================================= */
:root {
    --primary: #00F0FF;     /* Cyan Neón intenso (la luz principal) */
    --secondary: #0066cc;   /* Azul tecnológico medio para contraste */
    --accent: #ffffff;      /* Blanco puro para destacar */
    --dark-bg: #020812;     /* Fondo negro azulado profundo */
    --card-bg: rgba(2, 10, 25, 0.6); /* Tarjetas semitransparentes */
    --text: #d0f0ff;        /* Texto blanco con tinte azulado */
    --font-main: 'Montserrat', sans-serif;
    --font-code: 'Fira Code', monospace;
}

/* =========================================
   RESETS Y ESTILOS BASE
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--dark-bg);
    color: var(--text);
    font-family: var(--font-main);
    overflow-x: hidden;
}

/* Reducir copia de texto (no afecta inputs/textarea) */
body {
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

input, textarea, select, button {
    -webkit-user-select: auto;
    -moz-user-select: auto;
    user-select: auto;
}

/* =========================================
   FONDO ANIMADO (MATRIX)
   ========================================= */
canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -9999; /* Al fondo absoluto */
    background: var(--dark-bg);
}

/* Eliminamos el overlay sólido para que brillen las letras */
.overlay { display: none; }

/* =========================================
   BARRA DE NAVEGACIÓN
   ========================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: rgba(2, 8, 18, 0.95); /* Fondo muy oscuro */
    border-bottom: 1px solid var(--secondary);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.logo { display: flex; align-items: center; gap: 15px; }

/* ESTILO DEL LOGO (Corrección para JPG con fondo gris) */
.logo-img { 
    height: 90px;           /* Tamaño aumentado */
    width: 90px;            /* Cuadrado para que el círculo sea perfecto */
    object-fit: cover;
    border-radius: 50%;     /* Lo convierte en círculo */
    border: 2px solid var(--primary);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.5); /* Brillo Cyan */
}

.brand-text { display: flex; flex-direction: column; }
.company { font-weight: 700; font-size: 1.2rem; color: var(--accent); letter-spacing: 1px; }
.tagline { font-size: 0.6rem; color: var(--primary); letter-spacing: 2px; }

.nav-links { list-style: none; display: flex; gap: 30px; }
.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: 0.3s;
}
.nav-links a:hover { color: var(--primary); text-shadow: 0 0 8px var(--primary); }

/* =========================================
   HERO SECTION (ENCABEZADO)
   ========================================= */
.hero {
    min-height: 100vh; /* Asegura que ocupe toda la pantalla */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px 20px; /* Padding superior para compensar la imagen */
}

/* IMAGEN DEL HACKER (FLOTANTE) */
.hacker-main {
    display: block;
    margin: 0 auto 20px;   /* Centrado y separado del texto */
    height: 250px;         /* Altura controlada */
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.3)); /* Sombra de luz neón */
    animation: float 6s ease-in-out infinite;
}


/* Animación de flotación */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

h1 { 
    font-size: 3.5rem; 
    color: var(--accent); 
    margin-bottom: 10px; 
    font-weight: 800;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

h2 { font-size: 1.5rem; color: var(--primary); font-weight: 300; margin-bottom: 30px; letter-spacing: 1px; }

/* TEXTO DE CONSOLA (CYAN) */
.console-text {
    font-family: var(--font-code);
    color: var(--primary); /* AHORA ES CYAN NEÓN */
    min-height: 1.5em;
    font-size: 1.1rem;
    margin-bottom: 40px;
    text-shadow: 0 0 5px var(--primary);
}

.hero-btns { display: flex; gap: 20px; justify-content: center; }

.btn-primary {
    padding: 12px 30px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    background: var(--primary);
    color: #000; /* Texto negro para contraste con el cyan brillante */
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
    transition: 0.3s;
}

.btn-secondary {
    padding: 12px 30px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    border: 1px solid var(--accent);
    color: var(--accent);
    transition: 0.3s;
}

.btn-primary:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.8); 
    background: #fff;
}

/* =========================================
   SERVICIOS (EFECTO CRISTAL)
   ========================================= */
.services { 
    padding: 80px 10%; 
    background: rgba(2, 8, 18, 0.6); /* Fondo semi-transparente */
    backdrop-filter: blur(5px);
}
.section-header { text-align: center; margin-bottom: 60px; }
.line-break { width: 60px; height: 3px; background: var(--primary); margin: 15px auto; box-shadow: 0 0 10px var(--primary); }

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* TARJETAS GLASSMORPHISM */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(10px); /* Desenfoque del fondo */
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 240, 255, 0.1);
    border-top: 1px solid rgba(0, 240, 255, 0.3);
    padding: 30px;
    border-radius: 10px;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
}

.icon-box { font-size: 2.5rem; color: var(--primary); margin-bottom: 20px; text-shadow: 0 0 10px var(--primary); }
.card h3 { font-size: 1.1rem; margin-bottom: 20px; color: #fff; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px; }

.service-list { list-style: none; text-align: left; }
.service-list li {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #ccc;
    padding-left: 15px;
    position: relative;
}
.service-list li::before {
    content: '>';
    position: absolute; left: 0; color: var(--primary); font-family: var(--font-code);
}

/* =========================================
   CONTACTO Y PIE DE PÁGINA
   ========================================= */
.about, .contact { 
    padding: 80px 10%; 
    background: rgba(2, 8, 18, 0.8);
}

.stats { display: flex; justify-content: space-around; margin-top: 40px; text-align: center; }
.number { display: block; font-size: 2.5rem; font-weight: bold; color: var(--primary); text-shadow: 0 0 15px var(--primary); }

.contact-container { display: flex; flex-wrap: wrap; gap: 50px; justify-content: center; }
.contact-info { flex: 1; min-width: 300px; }
.info-item { display: flex; gap: 15px; margin-bottom: 20px; align-items: flex-start; }
.info-item i { color: var(--primary); margin-top: 5px; }

.tech-form {
    flex: 1; min-width: 300px;
    background: rgba(10, 20, 30, 0.8);
    padding: 30px;
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 10px;
    font-family: var(--font-code);
}
.form-header { border-bottom: 1px solid #333; padding-bottom: 10px; margin-bottom: 20px; color: #888; font-size: 0.8rem; }
.status-dot { height: 10px; width: 10px; background: var(--primary); border-radius: 50%; display: inline-block; margin-right: 5px; box-shadow: 0 0 5px var(--primary); }

input, select, textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    padding: 12px;
    color: #fff;
    margin-bottom: 15px;
    font-family: var(--font-main);
    border-radius: 4px;
}
input:focus, textarea:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 5px rgba(0, 240, 255, 0.3); }

button {
    width: 100%; padding: 12px;
    background: transparent; border: 1px solid var(--primary); color: var(--primary);
    cursor: pointer; font-weight: bold; transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}
button:hover { background: var(--primary); color: #000; box-shadow: 0 0 15px var(--primary); }

footer { text-align: center; padding: 20px; font-size: 0.8rem; color: #666; border-top: 1px solid #111; background: #000; }

/* --- MEJORA DE ESPACIADO EN CONTACTO --- */

/* 1. Separación entre el subtítulo y las direcciones */
.contact-info p {
    margin-bottom: 40px; /* Aquí está el espacio extra que pediste */
    color: #b0c4de;      /* Color gris azulado suave */
    font-size: 1rem;
}

/* 2. Separación interna entre las líneas de direcciones */
/* Esto hace que Ciudad de México, Monterrey y Guadalajara no se vean pegados */
.contact-info .info-item div {
    line-height: 2.2; /* Aumenta la altura entre cada renglón */
}

/* Opcional: Color diferente para las ciudades para destacar */
.contact-info strong {
    color: var(--primary); /* Pone las ciudades en Cyan Neón */
    margin-right: 5px;
}
/* =========================================
   DISEÑO RESPONSIVO (ADAPTABLE A CELULARES)
   ========================================= */

/* Tablets y Pantallas Pequeñas (hasta 768px) */
@media (max-width: 768px) {
    
    /* 1. Menú de Navegación: Se apila verticalmente */
    .navbar {
        flex-direction: column;
        padding: 15px;
    }
    
    .logo { margin-bottom: 20px; }
    
    .nav-links {
        gap: 15px;
        font-size: 0.8rem;
        flex-wrap: wrap; /* Permite que los links bajen si no caben */
        justify-content: center;
    }

    /* 2. Hero Section (Portada): Ajuste de textos e imagen */
    .hero {
        height: auto;       /* Ya no forzamos la altura completa */
        min-height: 100vh;  /* Pero aseguramos que cubra al menos la pantalla */
        padding-top: 180px; /* Espacio para que el menú no tape la imagen */
    }

    .hacker-main {
        height: 180px; /* Imagen más pequeña en móviles */
        margin-bottom: 20px;
    }

    h1 {
        font-size: 2.2rem; /* Título más pequeño para que no se corte */
    }

    h2 {
        font-size: 1rem;
    }

    .hero-btns {
        flex-direction: column; /* Botones uno encima del otro */
        width: 100%;
        gap: 15px;
    }

    .btn-primary, .btn-secondary {
        width: 100%; /* Botones anchos para tocar fácil con el dedo */
    }

    /* 3. Servicios y Contacto: Todo en una sola columna */
    .services, .about, .contact {
        padding: 60px 5%; /* Menos relleno a los lados */
    }

    .contact-container {
        flex-direction: column; /* Formulario debajo de la info */
        gap: 40px;
    }

    .contact-info, .tech-form {
        min-width: 100%; /* Ocupan todo el ancho */
    }
}

/* Celulares muy pequeños (hasta 480px) */
@media (max-width: 480px) {
    .logo-img {
        height: 60px;
        width: 60px;
    }

    .company { font-size: 1rem; }
    
    h1 { font-size: 1.8rem; } /* Título aún más ajustado */
    
    .hacker-main { height: 140px; }
}
/* --- BOTÓN WHATSAPP FLOTANTE (IZQUIERDA) --- */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    left: 30px; /* AQUI ESTÁ EL CAMBIO: Ahora se alinea a la izquierda */
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 35px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-btn:hover {
    background-color: #128c7e;
    transform: scale(1.1);
}

/* Animación de pulso */
.whatsapp-btn::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #25d366;
    border-radius: 50%;
    z-index: -1;
    animation: pulse 2s infinite;
}

/* --- NOTIFICACION DE DERECHOS DE AUTOR --- */
.copy-notice {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(2, 8, 18, 0.95);
    color: var(--primary);
    border: 1px solid rgba(0, 240, 255, 0.4);
    padding: 12px 16px;
    border-radius: 6px;
    font-family: var(--font-code);
    font-size: 0.85rem;
    box-shadow: 0 0 18px rgba(0, 240, 255, 0.2);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 10001;
}

.copy-notice.show {
    opacity: 1;
    transform: translateY(0);
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.6); opacity: 0; }
}
@keyframes pulse {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.6); opacity: 0; }
}
/* =========================================
   IMAGEN SEPARADORA (ENTRE SECCIONES)
   ========================================= */

.separator-container {
    width: 100%;
    display: flex;
    justify-content: center; /* Centra la imagen horizontalmente */
    padding: 40px 0;         /* Espacio arriba y abajo para que no se pegue al texto */
    background: transparent; /* Fondo transparente */
    position: relative;
    z-index: 5;
}

.cyber-divider {
    height: 250px;           /* Un poco más chica que la principal (ajusta a tu gusto) */
    width: auto;
    object-fit: contain;
    
    /* EL MISMO EFECTO DE LA PORTADA: */
    filter: drop-shadow(0 0 15px rgba(0, 240, 255, 0.4)); /* Brillo Neón Cyan */
    animation: float 6s ease-in-out infinite; /* Misma flotación */
}

/* Ajuste para móviles (para que no se vea enorme en el cel) */
@media (max-width: 768px) {
    .cyber-divider {
        height: 100px;
        padding: 20px 0;
    }
}