/* =========================================================
   LEGACY FX PRO - MAIN STYLES (COMPLETE VERSION)
   Theme: Dark Premium / Tech / Minimal
   ========================================================= */

/* --- 1. FUENTES Y VARIABLES --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap');

:root {
    /* Paleta de Colores (Modo Oscuro NOA) */
    --bg-color: #050505;        /* Negro Profundo */
    --text-main: #FFFFFF;       /* Blanco Puro */
    --text-muted: #9CA3AF;      /* Gris Medio */
    --accent-color: #3B82F6;    /* Azul Eléctrico */
    
    /* Superficies y Bordes */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --border-glass: rgba(255, 255, 255, 0.1);
    
    /* Configuración */
    --font-main: 'Inter', sans-serif;
    --transition: 0.3s ease;
    --container-width: 1280px;
}

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

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-color) !important; /* Forzar Negro */
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden; /* Evitar scroll lateral */
}

/* Ocultar elementos hasta que cargue JS */
.hidden { display: none !important; }

/* --- 3. PRELOADER (PANTALLA DE CARGA) --- */
#block-screen {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: #000000; /* Fondo sólido para tapar todo */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin { 100% { transform: rotate(360deg); } }

/* --- 4. TIPOGRAFÍA --- */
h1, h2, h3, h4 {
    color: var(--text-main);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

h1 { font-size: clamp(2.5rem, 7vw, 5.5rem); margin-bottom: 1.5rem; }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 1rem; }
h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.5rem; }
p { color: var(--text-muted); font-size: 1.1rem; max-width: 60ch; }

.text-gradient {
    background: linear-gradient(to right, #FFFFFF 20%, #6B7280 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-center { text-align: center; }

/* --- 5. UTILIDADES DE LAYOUT --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.section-spacing { padding: 100px 0; }

.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* --- 6. BOTONES --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 100px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-size: 1rem;
    gap: 10px;
}

.btn-primary {
    background-color: var(--text-main);
    color: var(--bg-color);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(5px);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--text-main);
}

.full-width { width: 100%; }
.small-btn { padding: 10px 20px; font-size: 0.9rem; }

/* --- 7. HEADER (Navegación) --- */
.main-header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

/* Clase que JS agrega al hacer scroll */
.main-header.scrolled {
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-glass);
    padding: 15px 0;
}

.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 800; letter-spacing: -1px; color: #fff; text-decoration: none; }

/* --- 8. HERO SECTION (Estilo NOA/Cosmic) --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
    
    /* FONDO DEGRADADO COMPLEXO (Tu Paleta) */
    background: 
        /* Destello superior izquierdo (Luz ambiental) */
        radial-gradient(circle at 20% 0%, rgba(0, 153, 255, 0.15) 0%, transparent 40%),
        /* Destello superior derecho (Luz ambiental) */
        radial-gradient(circle at 80% 0%, rgba(0, 68, 204, 0.15) 0%, transparent 40%),
        /* Fondo base profundo */
        #000208;
}

/* Esfera Digital Inferior (Efecto Planeta) */
.hero::after {
    content: '';
    position: absolute;
    bottom: -30vh; /* La mitad oculta abajo */
    left: 50%;
    transform: translateX(-50%);
    width: 120vw;
    height: 60vh;
    border-radius: 50% 50% 0 0;
    
    /* El brillo del planeta */
    background: radial-gradient(circle at 50% 0%, rgba(0, 153, 255, 0.4) 0%, rgba(0, 68, 204, 0.1) 40%, transparent 70%);
    filter: blur(40px);
    opacity: 0.8;
    z-index: 1;
    pointer-events: none;
}

/* Video o Imagen de fondo (Sutil) */
.hero-video-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
    opacity: 0.4; /* Más sutil para que resalte el texto */
    mix-blend-mode: screen; /* Se funde con el negro */
}

/* Contenido del Hero */
.hero-content {
    position: relative;
    z-index: 2; /* Encima del planeta */
    text-align: center;
    max-width: 900px;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem); /* Gigante */
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(to bottom, #FFFFFF 40%, #A1A1AA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5); /* Sombra para despegar del fondo */
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: #cbd5e1;
    margin: 0 auto 40px;
    max-width: 700px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* Botones Hero */
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

/* Ajuste del Logo Flotante */
.floating-logo {
    margin-bottom: 40px;
    filter: drop-shadow(0 0 30px rgba(0, 153, 255, 0.4)); /* Resplandor más fuerte */
}

/* --- 9. ELEMENTOS VISUALES ESPECÍFICOS --- */
/* Tarjeta destacada (CTA en Grid) */
.highlight-card {
    background: rgba(59, 130, 246, 0.08) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
}

.icon-box {
    width: 60px; height: 60px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 25px;
}

.icon-box.filled {
    background: var(--text-main);
    color: var(--bg-color);
}

/* --- 10. FOOTER --- */
.main-footer {
    border-top: 1px solid var(--border-glass);
    padding: 80px 0 40px;
    background: #000;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo { margin-bottom: 20px; display: inline-block; }

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: 0.2s; }
.footer-links a:hover { color: var(--accent-color); }

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.85rem;
    color: #555;
}