/* ==========================================================================
   VARIABLES & SETUP (SILICON VALLEY PREMIUM AI ESTHETIC)
   ========================================================================== */
:root {
    /* Paleta Refinada */
    --primary: #00D4FF;
    --secondary: #6C4CFF;
    --bg-dark: #030509;
    --bg-card: rgba(10, 15, 25, 0.4); 
    --text-light: #F9FAFB;
    --text-muted: #8B949E;
    
    /* Variables de Bordes e Iluminación */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.15);
    --glow-primary: 0 8px 30px rgba(0, 212, 255, 0.25);
    
    /* Tipografía (Inter + Space Grotesk) */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Space Grotesk', system-ui, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; 
}

/* EFECTO DE FONDO PREMIUM
   Ruido SVG (Grain) + Halos Radiales Discretos 
*/
body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.75; /* Mejorada legibilidad vertical */
    letter-spacing: -0.01em; /* Ajuste sutil para texto de párrafo */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
}

/* Gradientes Ambientales (Halos) */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: 
        radial-gradient(circle at 15% 40%, rgba(108, 76, 255, 0.07), transparent 35%),
        radial-gradient(circle at 85% 60%, rgba(0, 212, 255, 0.05), transparent 35%);
    z-index: -2;
    pointer-events: none;
}

/* Ruido Digital Sutil (Noise) */
body::after {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
    z-index: -1;
    pointer-events: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

ul {
    list-style: none;
}

h1, h2, h3, .logo, .price, .badge {
    font-family: var(--font-display);
    letter-spacing: -0.03em;
}

p {
    margin-bottom: 1rem;
}

/* ==========================================================================
   UTILIDADES & COMPONENTES
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
}

/* Glassmorphism Premium */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    box-shadow: 
        0 4px 24px -1px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05); 
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

.gradient-text {
    background: linear-gradient(135deg, var(--text-light) 0%, var(--primary) 50%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.font-bold {
    font-weight: 700;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3.5rem;
    color: var(--text-light);
}

.grid-4, .grid-3 {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

/* ==========================================================================
   BOTONES SaaS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.75rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); /* Transición centralizada suave */
}

/* Estado Focus Accesible WCAG */
.btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
    box-shadow: var(--glow-primary);
}

.btn-primary {
    background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%), var(--bg-dark);
    color: var(--text-light);
    border: 1px solid var(--border-hover);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 2px 10px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 0;
}

.btn-primary:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), var(--glow-primary);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid transparent;
}

.btn-secondary:hover {
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.03);
}

.btn-large {
    padding: 1.1rem 2.5rem;
    font-size: 1.05rem;
}

.btn-block {
    width: 100%;
}

/* ==========================================================================
   HEADER PREMIUM & NAVEGACIÓN
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border: none;
    border-radius: 0;
    padding: 1rem 0;
    background: transparent;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled {
    background: rgba(3, 5, 9, 0.85);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
}

.nav-links {
    display: none;
}

.nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-dark);
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.nav-links a:not(.btn) {
    font-size: 0.95rem;
    color: var(--text-muted);
    position: relative; /* Base para hover elegante */
}

.nav-links a:not(.btn):hover {
    color: var(--text-light);
}

.mobile-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-light);
    transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   HERO SECTION 
   ========================================================================== */
.hero {
    padding-top: 10rem;
    padding-bottom: 6rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    z-index: 2;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-illustration {
    position: relative;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cyber-container {
    position: relative;
    width: 280px;
    height: 280px;
}

.cyber-ring {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.outer-ring {
    width: 100%; height: 100%;
    border-top: 1px solid var(--primary);
    border-bottom: 1px solid transparent;
    animation: spin 20s linear infinite;
    box-shadow: inset 0 0 40px rgba(0, 212, 255, 0.05);
}

.middle-ring {
    width: 70%; height: 70%;
    border-left: 1px solid var(--secondary);
    border-right: 1px solid transparent;
    animation: spin 15s linear infinite reverse;
}

.cyber-core {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 40px; height: 40px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 40px 10px rgba(108, 76, 255, 0.4), 0 0 80px 20px rgba(0, 212, 255, 0.2);
    animation: pulse 4s ease-in-out infinite;
}

.floating-node {
    position: absolute;
    width: 6px; height: 6px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 15px 2px #fff;
}

.node-1 { top: 15%; left: 15%; animation: float 5s ease-in-out infinite; }
.node-2 { bottom: 20%; right: 15%; animation: float 6s ease-in-out infinite reverse; }
.node-3 { top: 30%; right: -5%; animation: float 7s ease-in-out infinite; }

/* ==========================================================================
   BENEFICIOS SECTION
   ========================================================================== */
.card {
    padding: 2.5rem 2rem;
    text-align: left;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 12px 40px -10px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(108, 76, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.8rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover .card-icon {
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.15);
    transform: scale(1.05);
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--text-light);
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================================================
   PRODUCTO SECTION 
   ========================================================================== */
.producto {
    position: relative;
    z-index: 1;
}

.producto::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100%; max-width: 800px; height: 100%;
    background: radial-gradient(ellipse at center, rgba(108, 76, 255, 0.08) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

.product-box {
    max-width: 460px;
    margin: 0 auto;
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), inset 0 1px 0 rgba(108, 76, 255, 0.4);
    border-color: rgba(108, 76, 255, 0.2);
}

.product-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.badge {
    background: rgba(108, 76, 255, 0.15);
    color: #C0B3FF;
    border: 1px solid rgba(108, 76, 255, 0.3);
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.product-header h2 {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.price {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--text-light);
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
    color: #D1D5DB;
    font-size: 0.95rem;
}

.product-footer {
    margin-top: 3rem;
    text-align: center;
}

.secure-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* ==========================================================================
   TESTIMONIOS SECTION
   ========================================================================== */
.testimonial-card {
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stars {
    color: #FBBF24;
    margin-bottom: 1.2rem;
    letter-spacing: 3px;
    font-size: 1.1rem;
}

.testimonial-text {
    color: #D1D5DB;
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.7;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 1.5rem;
}

.avatar {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-light);
}

.user-info span {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.95rem;
}

/* ==========================================================================
   CTA FINAL 
   ========================================================================== */
.cta-final {
    position: relative;
    padding: 8rem 0;
}

.cta-box {
    text-align: center;
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
    background: rgba(3, 5, 9, 0.8);
    border: 1px solid var(--border-subtle);
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 70%; height: 300px;
    background: radial-gradient(ellipse at top, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.cta-title {
    font-size: 3rem;
    margin-bottom: 1.2rem;
}

.cta-text {
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    border-top: 1px solid var(--border-subtle);
    padding: 4rem 0 3rem 0;
    background: #000; 
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.copyright {
    color: #4B5563; 
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--text-light);
}

/* ==========================================================================
   ANIMACIONES CLAVE
   ========================================================================== */
@keyframes spin {
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.05); opacity: 0.7; box-shadow: 0 0 60px 15px rgba(108, 76, 255, 0.6); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.reveal {
    opacity: 0;
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.fade-up { transform: translateY(30px); }
.fade-in { transform: translateY(0); }
.scale-in { transform: scale(0.97); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVE ALIGNMENT & SCALING)
   ========================================================================== */
@media (min-width: 768px) {
    .section-title { font-size: 2.8rem; }
    
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    
    .hero-buttons {
        flex-direction: row;
    }
    
    .hero-title { font-size: 4rem; }
    
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    
    .footer-links {
        justify-content: flex-end;
    }
}

/* Desktop Base */
@media (min-width: 1024px) {
    .mobile-toggle { display: none; }
    
    .nav-links {
        display: flex;
        flex-direction: row;
        position: static;
        width: auto;
        background: transparent;
        padding: 0;
        border: none;
        align-items: center;
        gap: 2.5rem; /* Ajuste preciso del espacio entre enlaces */
    }
    
    .nav-links a:not(.btn) {
        font-size: 0.95rem;
        font-weight: 500;
        padding: 0.5rem 0;
    }

    /* Efecto hover elegante para enlaces del menú */
    .nav-links a:not(.btn)::after {
        content: '';
        position: absolute;
        bottom: 0; left: 0; width: 0%; height: 2px;
        background: var(--text-light);
        transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        opacity: 0.8;
    }

    .nav-links a:not(.btn):hover::after {
        width: 100%;
    }

    /* CTA Separación Estratégica */
    .nav-links .btn {
        margin-left: auto; /* Empuja el botón a la derecha, separándolo */
    }

    /* Mejora de la composición del Hero */
    .hero-container {
        grid-template-columns: 1.15fr 0.85fr; /* Desplaza el centro de masa para balancear */
        gap: 2rem; /* Reduce el espacio vacío */
    }
    
    .hero-illustration {
        height: 500px;
    }
    
    /* Ilustración reducida ~15% */
    .cyber-container {
        width: 380px; height: 380px; 
    }

    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Desktop Extra Grande (Ultrawide scaling) */
@media (min-width: 1280px) {
    .hero-container {
        gap: 4rem; /* Devuelve el respiro natural en pantallas muy anchas */
    }
}