:root {
    --bg-color: #0b0b14;
    --text-color: #ffffff;
    --primary-blue: #00f0ff;
    --primary-purple: #9d00ff;
    --primary-orange: #ff5e00;
    --glass: rgba(20, 20, 35, 0.7);
    --border-glass: rgba(255, 255, 255, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Outfit', sans-serif; scroll-behavior: smooth; }

body { background-color: var(--bg-color); color: var(--text-color); overflow-x: hidden; position: relative; }

/* Fondo 3D Fijo y sutil */
#bg-canvas { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    z-index: -1; opacity: 0.4; pointer-events: none; 
}

/* Navegación */
.navbar {
    display: flex; justify-content: space-between; align-items: center; padding: 15px 5%;
    position: fixed; width: 100%; top: 0; z-index: 1000;
    background: rgba(11, 11, 20, 0.95); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-glass);
}

/* Ajustes del Logo SVG */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo-container svg {
    /* Esto asegura que se vea nítido y responsivo */
    height: 45px; 
    width: auto;
    filter: drop-shadow(0 0 5px rgba(157, 0, 255, 0.3)); /* Brillo sutil */
}

.nav-links { display: flex; list-style: none; gap: 30px; }
.nav-links a { text-decoration: none; color: #e0e0e0; font-weight: 400; transition: 0.3s; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }
.nav-links a:hover { color: var(--primary-blue); }
.btn-contact-nav { border: 1px solid var(--primary-purple); padding: 8px 24px; border-radius: 50px; }
.btn-contact-nav:hover { background: var(--primary-purple); color: white !important; box-shadow: 0 0 15px rgba(157, 0, 255, 0.4); }

/* Hero Section */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 100px 20px; position: relative; z-index: 1; }
.hero h1 { font-size: 3.8rem; max-width: 1000px; line-height: 1.1; margin-bottom: 25px; font-weight: 700; }
.gradient-text { background: linear-gradient(90deg, var(--primary-blue), var(--primary-purple), var(--primary-orange)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 1.25rem; color: #b0b0cc; max-width: 750px; margin: 0 auto 45px; line-height: 1.6; }
.cta-group { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.btn-primary { padding: 15px 40px; background: linear-gradient(90deg, var(--primary-blue), var(--primary-purple)); color: white; border: none; border-radius: 50px; text-decoration: none; font-weight: 600; transition: 0.3s; letter-spacing: 1px; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 0 25px rgba(0, 240, 255, 0.3); }
.btn-secondary { padding: 15px 40px; border: 1px solid rgba(255,255,255,0.3); color: white; border-radius: 50px; text-decoration: none; font-weight: 600; transition: 0.3s; }
.btn-secondary:hover { background: white; color: var(--bg-color); border-color: white; }

/* Secciones Generales */
.section-padding { padding: 100px 5%; position: relative; z-index: 1; }
.section-title { font-size: 2.8rem; text-align: center; margin-bottom: 20px; color: white; }
.section-subtitle { text-align: center; color: #aaa; margin-bottom: 60px; font-size: 1.1rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.container { max-width: 1200px; margin: 0 auto; }

/* Nosotros */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text p { margin-bottom: 20px; color: #d0d0e0; line-height: 1.7; font-size: 1.05rem; }
.stat-card { background: rgba(255,255,255,0.03); padding: 30px; border-radius: 15px; border-left: 4px solid var(--primary-orange); margin-bottom: 20px; }
.stat-card h3 { font-size: 2.5rem; color: white; margin-bottom: 5px; }
.stat-card p { color: #aaa; font-size: 0.9rem; }

/* Servicios (Centrado) */
.services-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; }
.service-card { flex: 1 1 300px; max-width: 350px; background: #131320; padding: 40px 30px; border-radius: 20px; border: 1px solid var(--border-glass); transition: all 0.4s ease; text-align: center; cursor: default;}
.service-card h3 { margin: 15px 0; font-size: 1.3rem; }
.service-card p { color: #999; font-size: 0.95rem; line-height: 1.5; }
.icon-box { font-size: 2.5rem; margin-bottom: 20px; color: #555; transition: 0.4s; }

/* Hovers */
.service-card.dev:hover { border-color: var(--primary-blue); transform: translateY(-5px); }
.service-card.dev:hover .icon-box { color: var(--primary-blue); text-shadow: 0 0 15px var(--primary-blue); }
.service-card.auto:hover { border-color: var(--primary-purple); transform: translateY(-5px); }
.service-card.auto:hover .icon-box { color: var(--primary-purple); text-shadow: 0 0 15px var(--primary-purple); }
.service-card.cloud:hover { border-color: var(--primary-orange); transform: translateY(-5px); }
.service-card.cloud:hover .icon-box { color: var(--primary-orange); text-shadow: 0 0 15px var(--primary-orange); }
.service-card.bot:hover { border-color: #00ff88; transform: translateY(-5px); }
.service-card.bot:hover .icon-box { color: #00ff88; text-shadow: 0 0 15px #00ff88; }
.service-card.api:hover { border-color: #ff0055; transform: translateY(-5px); }
.service-card.api:hover .icon-box { color: #ff0055; text-shadow: 0 0 15px #ff0055; }

/* Beneficios */
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.benefit-card { text-align: center; padding: 40px 30px; background: rgba(255,255,255,0.02); border-radius: 20px; border: 1px solid rgba(255,255,255,0.05); transition: 0.3s; }
.benefit-card:hover { background: rgba(255,255,255,0.04); }
.benefit-card i { font-size: 2.2rem; color: var(--primary-blue); margin-bottom: 20px; }
.benefit-card h3 { margin-bottom: 15px; color: white; }
.benefit-card p { color: #aaa; line-height: 1.6; }

/* Formulario */
.form-container { max-width: 800px; margin: 0 auto; background: #131320; padding: 50px; border-radius: 24px; border: 1px solid var(--border-glass); box-shadow: 0 20px 50px rgba(0,0,0,0.2); }
.input-group { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
input, textarea { width: 100%; padding: 18px; background: #0b0b14; border: 1px solid #2a2a3a; border-radius: 10px; color: white; outline: none; transition: 0.3s; font-size: 1rem; }
input:focus, textarea:focus { border-color: var(--primary-blue); background: #0f0f1a; }
textarea { height: 150px; resize: none; margin-bottom: 25px; }
.btn-submit { width: 100%; padding: 18px; background: var(--primary-orange); color: white; border: none; border-radius: 10px; font-size: 1.1rem; cursor: pointer; font-weight: 700; transition: 0.3s; letter-spacing: 0.5px; }
.btn-submit:hover { background: #ff7b00; box-shadow: 0 0 20px rgba(255, 94, 0, 0.3); }
.captcha-box { margin-bottom: 25px; display: flex; gap: 15px; align-items: center; color: #ccc; background: rgba(0,0,0,0.2); padding: 10px; border-radius: 8px; width: fit-content; }
.captcha-box input { width: 100px; padding: 10px; }

/* Footer */
footer { background: #05050a; padding: 60px 5% 30px; text-align: center; border-top: 1px solid #1a1a1a; margin-top: 50px; }
.social-links { margin-bottom: 30px; }
.social-links a { display: inline-flex; justify-content: center; align-items: center; width: 50px; height: 50px; border-radius: 50%; background: #111; color: white; margin: 0 10px; transition: 0.3s; font-size: 1.2rem; text-decoration: none; }
.social-links a:hover { background: var(--primary-blue); color: #000; transform: translateY(-5px); }
.legal-links { margin-bottom: 30px; }
.legal-links a { color: #666; text-decoration: none; margin: 0 15px; font-size: 0.9rem; transition: 0.3s; }
.legal-links a:hover { color: var(--primary-orange); }

/* Utilities */
.whatsapp-float { position: fixed; bottom: 40px; right: 40px; background: #25d366; color: white; width: 65px; height: 65px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 35px; box-shadow: 0 5px 20px rgba(0,0,0,0.4); z-index: 2000; transition: 0.3s; }
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 0 25px #25d366; }

.popup-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); display: none; align-items: center; justify-content: center; z-index: 3000; backdrop-filter: blur(5px); }
.popup-content { background: #1a1a2e; padding: 50px; border-radius: 20px; text-align: center; border: 1px solid var(--primary-blue); max-width: 450px; animation: popIn 0.3s ease; box-shadow: 0 0 50px rgba(0,0,0,0.5); }
.popup-content i { font-size: 4rem; color: #00ff88; margin-bottom: 25px; }
.popup-content h3 { font-size: 1.8rem; margin-bottom: 15px; color: white; }
.popup-content p { color: #ccc; line-height: 1.6; margin-bottom: 30px; }
.popup-content button { padding: 12px 40px; background: var(--primary-blue); border: none; color: #000; font-weight: bold; cursor: pointer; border-radius: 50px; font-size: 1rem; transition: 0.3s; }
.popup-content button:hover { background: white; }

@keyframes popIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .nav-links { display: none; }
    .hamburger { display: block; color: white; font-size: 1.5rem; }
    .input-group, .about-grid { grid-template-columns: 1fr; }
    .form-container { padding: 30px 20px; }
}