/* ==========================================================================
   DIGITAL21 - CRITICAL CSS (Above The Fold)
   Inlineado en el <head> para eliminar el bloqueo de render.
   Contiene SOLO los estilos necesarios para pintar el primer viewport.
   El resto de los estilos se carga en style.css de forma asíncrona.
   ========================================================================== */

/* --- VARIABLES GLOBALES (necesarias para todo) --- */
:root {
    --bg-base: #030305;
    --aurora-1: #FF2E93;
    --aurora-2: #00E5FF;
    --aurora-3: #4338CA;
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.85);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-display: 'Poppins', sans-serif;
    --font-body: 'Poppins', sans-serif;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- RESET BÁSICO --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- FONDO AURORA (visible de inmediato) --- */
.aurora-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-base);
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.5;
    animation: drift 20s infinite alternate ease-in-out;
}

.blob-1 {
    width: 50vw;
    height: 50vw;
    background: var(--aurora-1);
    top: -10%;
    left: -10%;
    animation-duration: 25s;
}

.blob-2 {
    width: 60vw;
    height: 60vw;
    background: var(--aurora-3);
    bottom: -20%;
    right: -10%;
    animation-duration: 30s;
    animation-delay: -5s;
}

.blob-3 {
    width: 40vw;
    height: 40vw;
    background: var(--aurora-2);
    top: 40%;
    left: 30%;
    animation-duration: 22s;
    animation-delay: -10s;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(15%, 15%) scale(1.3);
    }
}

/* --- CONTENEDORES --- */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

h1,
h2,
h3,
h4,
.logo {
    font-family: var(--font-display);
}

i {
    font-style: italic;
    color: var(--aurora-1);
}

.text-accent {
    color: var(--aurora-1) !important;
}

/* --- NAVEGACIÓN (visible en el primer viewport) --- */
.navbar {
    position: fixed;
    top: 30px;
    width: 100%;
    z-index: 2000;
}

.nav-glass {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 15, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 12px 32px;
    border-radius: 100px;
    position: relative;
    z-index: 3000;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    color: white;
    text-decoration: none;
}

.logo-accent {
    color: transparent;
    -webkit-text-stroke: 1px white;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: 0.3s;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a i {
    color: var(--aurora-1);
    font-size: 1.1rem;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    position: relative;
    z-index: 2100;
}

.nav-social {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-left: 20px;
}

.nav-social a {
    color: white;
    font-size: 1.4rem;
    transition: all 0.3s var(--ease-out-expo);
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-social a i {
    color: white !important;
}

/* --- HERO (First Contentful Paint) --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 15vh;
}

.hero-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    min-width: 320px;
}

.hero-title {
    font-size: 5.5vw;
    line-height: 0.9;
    letter-spacing: -0.04em;
    font-weight: 800;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    font-weight: 300;
    margin-bottom: 48px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
}

.dot-pulse {
    width: 8px;
    height: 8px;
    background-color: var(--aurora-1);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--aurora-1);
}

/* --- BOTONES (visibles en Hero) --- */
.btn-solid,
.btn-ghost {
    border-radius: 100px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s var(--ease-out-expo);
}

.btn-solid {
    background: white;
    color: var(--bg-base);
    padding: 20px 48px;
    font-size: 0.9rem;
}

.btn-solid i {
    color: inherit;
    font-style: normal;
    margin-left: 8px;
    font-size: 1.2rem;
}

.btn-solid:hover {
    background: var(--aurora-1);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(255, 46, 147, 0.4);
}

.btn-ghost {
    background: transparent;
    color: white;
    padding: 20px 48px;
    font-size: 0.9rem;
    border: 1px solid var(--glass-border);
}

.btn-ghost:hover {
    background: var(--glass-bg);
    border-color: white;
}

/* --- RESPONSIVE CRÍTICO (móvil hero) --- */
@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    .navbar {
        top: 15px;
    }

    .nav-glass {
        padding: 10px 20px;
    }

    .logo {
        font-size: 1.4rem;
    }

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .nav-social {
        display: none;
    }

    .hero-layout {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .hero-title {
        font-size: clamp(2.5rem, 10vw, 5rem);
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .container {
        padding: 0 20px;
    }
}