/* =========================================
   VARIABLES Y SISTEMA DE DISEÑO
   ========================================= */
:root {
    /* Paleta de Colores */
    --bg-color: #05070A;
    --bg-secondary: #0A0F1A;
    --text-primary: #FFFFFF;
    --text-secondary: #A0ABC0;
    
    /* Acentos */
    --neon-purple: #8A2BE2;
    --electric-cyan: #00F0FF;
    --accent-glow: rgba(0, 240, 255, 0.4);
    
    /* Estado / Utilidades */
    --warning-color: #FFB020;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    
    /* Tipografía */
    --font-main: 'Outfit', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Fondo Animado (Orbes de luz) */
.ambient-light {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.5;
    animation: pulse 8s infinite alternate;
}
.light-1 {
    top: -10%; left: -10%;
    width: 50vw; height: 50vw;
    background: radial-gradient(circle, rgba(138,43,226,0.2) 0%, rgba(0,0,0,0) 70%);
}
.light-2 {
    top: 40%; right: -20%;
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, rgba(0,240,255,0.15) 0%, rgba(0,0,0,0) 70%);
    animation-delay: 2s;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.3; }
    100% { transform: scale(1.2); opacity: 0.6; }
}

/* =========================================
   UTILIDADES
   ========================================= */
.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
.font-bold { font-weight: 800; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-gradient {
    background: linear-gradient(90deg, var(--electric-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.glass-card:hover, .hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 240, 255, 0.1);
    border-color: rgba(0, 240, 255, 0.3);
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: 50px;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(90deg, var(--electric-cyan), var(--neon-purple));
    color: #000;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.6);
    transform: scale(1.05);
    color: #fff;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--electric-cyan);
}

.btn-secondary:hover {
    background: rgba(0, 240, 255, 0.1);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Animaciones Scroll (AOS Vanilla) */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* =========================================
   SECCIONES ESPECÍFICAS
   ========================================= */

/* Nav */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 100;
    background: rgba(5, 7, 10, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav-links {
    display: flex;
    gap: 32px;
}
.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}
.nav-links a:hover {
    color: var(--electric-cyan);
}

/* Hero Section */
.hero {
    padding-top: 180px;
    padding-bottom: 100px;
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}
.hero .badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(138,43,226,0.15);
    border: 1px solid rgba(138,43,226,0.4);
    border-radius: 20px;
    color: var(--neon-purple);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 24px;
    box-shadow: 0 0 15px rgba(138,43,226,0.2);
}
.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}
.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 48px auto;
}
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Dashboard Mockup (Visual) */
.hero-mockup {
    margin-top: 80px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%);
    padding: 10px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 40px rgba(138,43,226,0.2);
    position: relative;
    text-align: left;
}

/* Secciones Generales */
.section-padding {
    padding: 100px 0;
}
.section-header {
    text-align: center;
    margin-bottom: 80px;
}
.section-header h2 {
    font-size: 3rem;
    margin-bottom: 16px;
}
.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Grid 3 */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.icon-box {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(0, 240, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--electric-cyan);
}
.icon-box.purple {
    background: rgba(138, 43, 226, 0.1);
    color: var(--neon-purple);
}
.icon-box.warning {
    background: rgba(255, 176, 32, 0.1);
    color: var(--warning-color);
}
.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
}
.feature-card p {
    color: var(--text-secondary);
}

/* Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: relative;
    padding: 20px 0;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--electric-cyan), var(--neon-purple));
    opacity: 0.3;
}
.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}
.timeline-content {
    width: 45%;
}
.timeline-dot {
    width: 32px;
    height: 32px;
    background: var(--bg-color);
    border: 3px solid var(--electric-cyan);
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 15px var(--electric-cyan);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(180deg, var(--bg-color) 0%, rgba(138,43,226,0.1) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--glass-border);
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 40px 0;
    text-align: center;
    color: var(--text-secondary);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}
.modal-overlay.active .modal-content {
    transform: translateY(0);
}
.close-modal {
    position: absolute;
    top: 20px; right: 20px;
    background: none; border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 5px;
    display: flex;
}
.close-modal:hover { color: var(--text-primary); }
.form-group { margin-bottom: 20px; text-align: left; }
.form-group label { display: block; margin-bottom: 8px; color: var(--text-secondary); font-size: 0.9rem;}
.form-group input {
    width: 100%; padding: 12px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px; color: #fff;
    font-family: var(--font-main);
    outline: none; transition: border-color 0.3s;
}
.form-group input:focus { border-color: var(--electric-cyan); }

/* Spin Anim for Button loader */
@keyframes spin { 100% { transform: rotate(360deg); } }
.spin { animation: spin 1s linear infinite; }

/* =========================================
   RESPONSIVE DESIGN 
   ========================================= */
@media (max-width: 992px) {
    .hero h1 { font-size: 3.2rem; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.1rem; }
    .hero-buttons { flex-direction: column; }
    .grid-3 { grid-template-columns: 1fr; }
    
    .timeline::before { left: 20px; }
    .timeline-item { flex-direction: column !important; align-items: flex-start; padding-left: 50px; position: relative; }
    .timeline-content { width: 100%; margin-bottom: 30px; }
    .timeline-dot { position: absolute; left: 6px; top: 0; }
    
    .hero-mockup { display: none; } /* On mobile, the mockup might be too complex */
}
