:root {
    --primary: #8b2fc9;        
    --primary-light: #c084fc; 
    --primary-dark: #581c87;
    --accent: #25D366; 
    --gradient-text: linear-gradient(135deg, #a855f7 0%, #d946ef 100%);
    --gradient-btn: linear-gradient(90deg, #7c3aed 0%, #d946ef 100%);
    --bg-body: #030305;        
    --bg-glass: rgba(20, 20, 25, 0.6);        
    --border: rgba(255, 255, 255, 0.08);
    --text-white: #ffffff;
    --text-gray: #9ca3af;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { 
    scroll-behavior: smooth; 
    scroll-padding-top: 80px;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    cursor: url('cursor-onsa.png') 16 16, auto;
}

a, button, .btn-glow, input[type="submit"], select, summary, .video-container {
    cursor: pointer; 
}

h1, h2, h3, h4, .brand-name { font-family: 'Space Grotesk', sans-serif; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: var(--primary-dark); border-radius: 4px; }

::selection { background: var(--primary); color: white; }

/* --- FONDO ANIMADO --- */
.background-fx {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -5; pointer-events: none; overflow: hidden;
}

.tech-grid {
    position: absolute; width: 200%; height: 200%; top: -50%; left: -50%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    transform: perspective(500px) rotateX(60deg);
    animation: moveGrid 20s linear infinite;
}

@keyframes moveGrid { 0% { transform: perspective(500px) rotateX(60deg) translateY(0); } 100% { transform: perspective(500px) rotateX(60deg) translateY(60px); } }

.glow-orb {
    position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.4;
    animation: float 10s infinite alternate ease-in-out;
}
.orb-1 { width: 400px; height: 400px; background: var(--primary); top: -100px; left: -100px; }
.orb-2 { width: 500px; height: 500px; background: #4c1d95; bottom: -100px; right: -100px; animation-delay: -5s; }

@keyframes float { 0% { transform: translate(0, 0); } 100% { transform: translate(30px, 30px); } }

/* --- TEXTO GIGANTE DE FONDO (NUEVO) --- */
.giant-bg-text {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 15vw; /* Tamaño responsivo enorme */
    color: rgba(255, 255, 255, 0.02); /* Muy transparente */
    z-index: -2; /* Detrás del contenido, enfrente del fondo */
    white-space: nowrap;
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: -5px;
    line-height: 1;
}

/* --- HEADER --- */
/* --- HEADER --- */
header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 8%;
    background: rgba(3, 3, 5, 0.8);
    border-bottom: 1px solid var(--border);
    position: fixed; 
    top: 0; 
    left: 0; /* 🔥 Ancla la barra a la izquierda */
    width: 100%; /* 🔥 Obliga a la barra a medir el 100% de la pantalla */
    box-sizing: border-box; /* 🔥 Evita que el padding del 8% desborde la pantalla */
    z-index: 1000;
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}

.logo-container { 
    display: flex; 
    align-items: center; 
    gap: 12px; /* Espacio entre logo y texto */
    text-decoration: none;
}

.logo-container img { 
    height: 40px; 
    width: auto; 
    object-fit: contain; 
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.5px;
}

nav ul { display: flex; gap: 40px; list-style: none; }
nav a { 
    color: var(--text-gray); font-size: 0.95rem; font-weight: 500; position: relative; transition: 0.3s; text-decoration: none;
}
nav a:hover { color: white; }
nav a::before {
    content: ''; position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%);
    width: 0; height: 2px; background: var(--primary-light); transition: 0.3s;
}
nav a:hover::before { width: 100%; }

.btn-glow {
    background: var(--gradient-btn); color: white; border: none;
    padding: 10px 28px; border-radius: 50px; font-weight: 600; font-size: 0.9rem;
    cursor: pointer; transition: 0.3s; box-shadow: 0 0 15px rgba(139, 47, 201, 0.3);
    text-decoration: none; display: inline-block; font-family: 'Poppins', sans-serif;
    white-space: nowrap;
}
.btn-glow:hover { transform: translateY(-2px); box-shadow: 0 0 25px rgba(139, 47, 201, 0.6); }

.menu-toggle { display: none; cursor: pointer; flex-direction: column; gap: 6px; padding: 5px; }
.bar { width: 28px; height: 3px; background: white; transition: 0.3s; border-radius: 2px; }

/* --- HERO --- */
.hero {
    text-align: center; padding: 180px 20px 120px;
    max-width: 1100px; margin: 0 auto;
    display: flex; flex-direction: column; align-items: center;
    position: relative;
}

.slogan-badge {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 20px;
    background: rgba(139, 47, 201, 0.1);
    border: 1px solid rgba(139, 47, 201, 0.3);
    border-radius: 50px;
    color: var(--primary-light);
    font-size: 0.8rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
    margin-bottom: 30px;
    backdrop-filter: blur(5px);
    animation: fadeInDown 1s ease-out;
    max-width: 90%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.slogan-badge::before {
    content: ''; width: 6px; height: 6px; min-width: 6px; background-color: var(--accent);
    border-radius: 50%; box-shadow: 0 0 8px var(--accent);
}

.hero h1 {
    font-size: 5rem; line-height: 1.1; margin-bottom: 25px; font-weight: 700; letter-spacing: -2px;
    animation: fadeInUp 1s ease-out 0.2s backwards;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5); /* Sombra para resaltar sobre el texto de fondo */
}
.gradient-text { 
    background: var(--gradient-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; 
}

.hero p {
    font-size: 1.15rem; color: var(--text-gray); margin-bottom: 40px; max-width: 600px;
    font-weight: 300; animation: fadeInUp 1s ease-out 0.4s backwards; padding: 0 10px;
}

.hero-btns { display: flex; gap: 15px; animation: fadeInUp 1s ease-out 0.6s backwards; flex-wrap: wrap; justify-content: center; }

.btn-outline {
    padding: 10px 28px; border-radius: 50px; font-weight: 600; font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,0.2); color: white; transition: 0.3s;
    background: rgba(0,0,0,0.3); text-decoration: none; font-family: 'Poppins', sans-serif;
    backdrop-filter: blur(4px);
}
.btn-outline:hover { border-color: white; background: rgba(255,255,255,0.1); }

/* --- SECCIONES GENERALES --- */
.section-padding { padding: 100px 8%; position: relative; z-index: 1; }

.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 15px; }
.section-header p { color: var(--text-gray); padding: 0 10px; }

.glass-card {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 35px;
    transition: all 0.4s ease;
    backdrop-filter: blur(12px);
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; height: 100%;
}

.glass-card:hover { transform: translateY(-10px); border-color: var(--primary); }

/* --- MISION Y VISION --- */
.mv-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 30px; 
    margin-top: 50px;
}

.mv-title {
    font-size: 1.5rem; color: var(--primary-light); margin-bottom: 15px; 
    display: flex; align-items: center; gap: 10px;
}

/* --- VIDEO --- */
.video-container {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    background: #000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    aspect-ratio: 16/9; 
}

video {
    width: 100%; height: 100%; object-fit: cover; display: block;
}

.about-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 50px; align-items: center; max-width: 1200px; margin: 0 auto; }
.stat-row { display: flex; gap: 30px; margin-top: 30px; }
.stat-item h3 { font-size: 2.5rem; color: var(--primary-light); font-weight: 700; margin-bottom: 0; }
.stat-item span { font-size: 0.9rem; color: var(--text-gray); }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto; }

.demos-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); 
    gap: 30px; 
    max-width: 1200px; 
    margin: 0 auto; 
}

.icon-box {
    width: 55px; height: 55px; border-radius: 14px; background: rgba(139, 47, 201, 0.15);
    display: flex; align-items: center; justify-content: center; color: var(--primary-light);
    margin-bottom: 20px; font-size: 1.5rem; transition: 0.3s;
}

.contact-container { max-width: 600px; margin: 0 auto; }
.form-glass {
    background: linear-gradient(180deg, rgba(20,20,25,0.8), rgba(10,10,12,0.95));
    padding: 40px; border-radius: 24px; border: 1px solid var(--border);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

input, select, textarea {
    width: 100%; padding: 15px; margin-bottom: 20px;
    background: rgba(255,255,255,0.05); 
    border: 1px solid #333; border-radius: 10px;
    color: white; font-family: 'Poppins', sans-serif; font-size: 0.95rem; transition: 0.3s;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    cursor: pointer;
}
select option { background-color: #050505; color: white; padding: 10px; }

input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--primary); background: rgba(255,255,255,0.08);
    box-shadow: 0 0 0 3px rgba(139, 47, 201, 0.1);
}

footer {
    background: #020202; border-top: 1px solid var(--border); padding: 60px 8% 30px; margin-top: 50px;
    position: relative; z-index: 10;
}
.footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; max-width: 1200px; margin: 0 auto; }
.footer-brand p { max-width: 300px; color: #666; margin-top: 15px; font-size: 0.9rem; }
.footer-links h4 { color: white; margin-bottom: 15px; }
.footer-links ul li { margin-bottom: 8px; list-style: none; }
.footer-links a { color: var(--text-gray); text-decoration: none; transition: 0.3s; font-size: 0.9rem; }

.copyright { text-align: center; margin-top: 50px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.05); font-size: 0.8rem; color: #555; }

.whatsapp-float {
    position: fixed; bottom: 20px; right: 20px; width: 55px; height: 55px;
    background: #25D366; color: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); z-index: 999;
    transition: 0.3s;
}

@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(40px); transition: 0.8s all ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

@media (max-width: 768px) {
    header { padding: 15px 5%; background: rgba(3,3,5,0.95); }
    .mobile-hide { display: none; }
    .menu-toggle { display: flex; z-index: 1002; }
    
    nav {
        position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
        background: #050505; flex-direction: column; justify-content: center;
        align-items: center; transition: 0.4s; z-index: 1001;
    }
    nav.active { right: 0; }
    nav ul { flex-direction: column; text-align: center; gap: 30px; }
    nav a { font-size: 1.4rem; }
    
    .hero { padding: 130px 20px 60px; }
    .hero h1 { font-size: 2.8rem; }
    .giant-bg-text { font-size: 20vw; top: 30%; } /* Ajuste para movil */

    .section-padding { padding: 60px 5%; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .mv-grid { grid-template-columns: 1fr; }
    .demos-grid { grid-template-columns: 1fr; }
    
    .form-glass { padding: 25px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    
    .footer-content { flex-direction: column; gap: 30px; }
}

/* ==========================================================================
   🔥 MENÚ DESPLEGABLE (DROPDOWN)
   ========================================================================== */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    display: flex !important;
    align-items: center;
    gap: 5px;
}

/* La caja flotante de cristal */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-glass);
    min-width: 220px;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 100;
    overflow: hidden;
    padding: 8px 0;
}

/* Los enlaces dentro del menú */
.dropdown-content a {
    color: var(--text-gray);
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    transition: background 0.3s, color 0.3s;
    font-size: 0.9rem;
    font-weight: 500;
}

.dropdown-content a:hover {
    background: var(--surface-hover);
    color: var(--text-white);
}

/* 💻 Comportamiento en Computadora (Aparece al pasar el mouse) */
@media (min-width: 769px) {
    .dropdown:hover .dropdown-content {
        display: block;
        animation: dropFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
}

/* 📱 Comportamiento en Celular (Se integra a la lista vertical) */
@media (max-width: 768px) {
    .dropdown-content {
        position: static;
        display: none;
        background: transparent;
        box-shadow: none;
        border: none;
        border-left: 2px solid rgba(139, 47, 201, 0.3);
        border-radius: 0;
        padding-left: 10px;
        margin-left: 15px;
        margin-top: 10px;
    }
    .dropdown.active .dropdown-content {
        display: block;
    }
}

/* Animación de entrada */
@keyframes dropFadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   🔥 CABECERAS DE LAS SUBPÁGINAS (Hero Section)
   ========================================================================== */
.page-header {
    width: 100%;
    /* El padding-top es grande para que el texto no quede debajo de la barra de navegación flotante */
    padding: 160px 20px 100px 20px; 
    box-sizing: border-box; /* 👈 CRÍTICO: Evita que el padding ensanche la caja y rompa la página */
    text-align: center;
    background: radial-gradient(circle at top center, rgba(139, 47, 201, 0.15), transparent 70%);
    border-bottom: 1px solid var(--border);
    position: relative; /* Para poder posicionar resplandores u otros efectos dentro */
    overflow: hidden; /* Evita que los efectos visuales se salgan de esta sección */
    z-index: 1;
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px; /* Junta un poco las letras para darle un toque moderno */
}

.page-header p {
    font-size: 1.2rem;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
}

/* Ajuste para celulares */
@media (max-width: 768px) {
    .page-header {
        padding: 120px 20px 60px 20px;
    }
    .page-header h1 {
        font-size: 2.5rem;
    }
}
        .content-section {
            padding: 80px 20px;
            max-width: 1200px;
            margin: 0 auto;
        }
        .features-list {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 40px;
            margin-top: 50px;
        }
        .feature-item {
            background: var(--bg-glass);
            border: 1px solid var(--border);
            padding: 30px;
            border-radius: 20px;
            backdrop-filter: blur(10px);
        }
        .feature-item i {
            font-size: 2.5rem;
            color: var(--primary-light);
            margin-bottom: 20px;
            display: inline-block;
        }
.shopping-products {
    padding: 80px 20px;
    max-width: 1200px;
    margin:0 auto;
}

/* --- BRILLO AZUL/CIAN PARA TODAS LAS TARJETAS (HOVER GLOBAL) --- */
.glass-card:hover, 
.feature-item:hover, 
.step-card:hover, 
.product-card:hover {
    transform: translateY(-5px);
    border-color: #22d3ee !important; 
    box-shadow: 0 10px 30px rgba(34, 211, 238, 0.15) !important; 
    transition: all 0.3s ease;
}

/* Para los iconos dentro de las tarjetas cuando pasas el ratón */
.glass-card:hover i, 
.feature-item:hover i, 
.step-card:hover i, 
.product-card:hover i {
    color: #22d3ee !important;
    transition: color 0.3s ease;
}