:root {
    --bg-dark: #090a0f;
    --accent-blue: #004cff;
    --accent-cyan: #00e5ff;
    --text-main: #ffffff;
    --text-muted: #9fa6b7;
    --card-bg: rgba(255, 255, 255, 0.02);
    --border-color: rgba(255, 255, 255, 0.06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
    scroll-behavior: smooth;
}

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

/* --- Navegación --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.8rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled {
    background: rgba(9, 10, 15, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.1rem 5%;
}

.logo { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.5px; }
.logo span { color: var(--accent-cyan); }

nav a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 1.5rem;
    font-weight: 600;
    transition: color 0.3s;
}

nav a:hover { color: var(--text-main); }

/* --- Botones --- */
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    color: white;
    padding: 1.1rem 2.6rem;
    border-radius: 50px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.2);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 229, 255, 0.35);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.7rem 1.6rem;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-secondary:hover { background: white; color: var(--bg-dark); border-color: white; }

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    position: relative;
    gap: 2rem;
}

.hero-content { max-width: 650px; z-index: 2; }

.badge-offer {
    background: rgba(0, 229, 255, 0.08);
    color: var(--accent-cyan);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    border: 1px solid rgba(0, 229, 255, 0.15);
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.15;
    margin: 1.8rem 0 1.2rem 0;
    font-weight: 800;
    letter-spacing: -1px;
}

.hero p { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 2.5rem; line-height: 1.6; }

/* Gráfico / Ondas de Sonido Animadas */
.hero-graphic { position: relative; width: 350px; height: 350px; display: flex; align-items: center; justify-content: center; }
.glow-orb {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 76, 255, 0.4) 0%, rgba(0,0,0,0) 70%);
    filter: blur(50px);
    z-index: 1;
}

.sound-wave { display: flex; align-items: center; gap: 10px; z-index: 2; height: 120px;}
.sound-wave span {
    display: block;
    width: 8px;
    background: linear-gradient(to top, var(--accent-blue), var(--accent-cyan));
    border-radius: 50px;
    animation: wave 1.2s infinite ease-in-out alternate;
}
.sound-wave span:nth-child(1) { height: 40px; animation-delay: 0.1s; }
.sound-wave span:nth-child(2) { height: 90px; animation-delay: 0.4s; }
.sound-wave span:nth-child(3) { height: 120px; animation-delay: 0.2s; }
.sound-wave span:nth-child(4) { height: 70px; animation-delay: 0.6s; }
.sound-wave span:nth-child(5) { height: 35px; animation-delay: 0.3s; }

@keyframes wave {
    0% { transform: scaleY(0.25); }
    100% { transform: scaleY(1.15); }
}

/* --- Grid de Características / Audiencia --- */
.features { padding: 8rem 10%; text-align: center; background: linear-gradient(180deg, var(--bg-dark) 0%, #0c0e17 100%); }
.features h2 { font-size: 2.5rem; margin-bottom: 4rem; font-weight: 800; letter-spacing: -0.5px;}
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2.5rem; }

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 3.5rem 2.2rem;
    border-radius: 28px;
    text-align: left;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s, background 0.4s;
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 229, 255, 0.3);
    background: rgba(255, 255, 255, 0.04);
}

.card h3 { font-size: 1.45rem; margin-bottom: 1.2rem; color: var(--accent-cyan); font-weight: 800;}
.card p { color: var(--text-muted); line-height: 1.65; font-size: 1.05rem;}

/* --- Sección de Métricas Dinámicas --- */
.metrics-section { padding: 8rem 10%; background: #06070a; text-align: center; }
.metrics-header h2 { font-size: 2.6rem; font-weight: 800; margin-bottom: 0.5rem; letter-spacing: -0.5px;}
.metrics-header p { color: var(--text-muted); font-size: 1.1rem; }

.metrics-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
    gap: 2.5rem; 
    margin: 4.5rem 0; 
}
.metric-box {
    background: rgba(0, 76, 255, 0.02);
    border: 1px solid rgba(0, 76, 255, 0.12);
    padding: 3rem 1.5rem;
    border-radius: 24px;
    transition: all 0.3s ease;
}
.metric-box:hover {
    border-color: var(--accent-blue);
    background: rgba(0, 76, 255, 0.05);
}
.big-number { font-size: 3.6rem; font-weight: 800; color: #fff; display: block; margin-bottom: 0.5rem; letter-spacing: -1px;}
.metric-label { color: var(--accent-cyan); font-size: 0.95rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;}

/* --- Lead Magnet Form Box --- */
.lead-magnet-box {
    background: linear-gradient(145deg, #0e111d, #06070a);
    border: 1px solid rgba(0, 76, 255, 0.4);
    padding: 4rem 2.5rem;
    border-radius: 32px;
    max-width: 750px;
    margin: 0 auto 6rem auto;
    box-shadow: 0 25px 60px rgba(0, 76, 255, 0.12);
}
.lead-magnet-box h3 { font-size: 1.75rem; margin-bottom: 0.8rem; font-weight: 800;}
.lead-magnet-box p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 2.5rem; line-height: 1.6;}

.inline-form { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap;}
.inline-form input {
    padding: 1.1rem 1.8rem;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(0,0,0,0.4);
    color: white;
    width: 320px;
    outline: none;
    font-size: 1rem;
    transition: border-color 0.3s;
}
.inline-form input:focus { border-color: var(--accent-cyan); }

/* Alertas de PHP */
.alert {
    padding: 1.1rem;
    border-radius: 14px;
    margin-bottom: 2rem;
    font-weight: 600;
    font-size: 1rem;
    text-align: left;
}
.alert.success {
    background: rgba(37, 211, 102, 0.12);
    color: #26d366;
    border: 1px solid rgba(37, 211, 102, 0.25);
}
.alert.error {
    background: rgba(255, 74, 74, 0.12);
    color: #ff4a4a;
    border: 1px solid rgba(255, 74, 74, 0.25);
}

.sub-title { font-size: 2rem; margin: 4.5rem 0 2.5rem 0; color: #fff; font-weight: 800;}
.products-grid .card h4 { font-size: 1.35rem; margin-bottom: 1rem; color: #fff; font-weight: 700;}

/* --- Contacto e Historial Técnico (Footer) --- */
.contact-section { padding: 8rem 10% 4rem 10%; text-align: center; background: #090a0f; position: relative;}
.contact-card { 
    background: var(--card-bg); 
    border: 1px solid var(--border-color);
    padding: 4.5rem 2.5rem; 
    border-radius: 32px; 
    max-width: 650px; 
    margin: 0 auto 5rem auto;
}
.contact-card p { font-size: 1.1rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 2rem;}
.executives p { margin: 0.6rem 0; font-size: 1.1rem;}
.executives strong { color: var(--accent-cyan); }

.footer-end { color: #525966; font-size: 0.95rem; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 3rem; }

/* --- WhatsApp Flotante Nivel Premium --- */
.wa-float {
    position: fixed;
    bottom: 35px;
    right: 35px;
    background-color: #25d366;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.35);
    z-index: 9999;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.wa-float:hover { transform: scale(1.06) translateY(-2px); }
.wa-icon { width: 26px; height: 26px; fill: white; }

/* --- Animaciones por Intersección --- */
.hidden-section { opacity: 0; transform: translateY(40px); transition: all 1s cubic-bezier(0.16, 1, 0.3, 1); }
.show-section { opacity: 1; transform: translateY(0); }

@media(max-width: 900px) {
    .hero { flex-direction: column; justify-content: center; text-align: center; gap: 4rem; padding-top: 8rem; min-height: auto; padding-bottom: 4rem;}
    .hero-content { max-width: 100%; }
    nav { display: none; }
}
