:root {
    /* Paleta Tech-Green Sostenible */
    --primary-neon: #69db2b;
    /* Verde neón premium brillante */
    --primary-soft: rgba(105, 219, 42, 0.1);
    --bg: #EAEAEA;
    /* Oscuro profundo refinado, mejor que #333 para tech */
    --bg-header: #333;
    /* Fondo translúcido tipo Apple/Awwwards */
    --text-pure: #fff;
    --text-muted: #fff;
    /* Gris premium */

    /* Animación fluida de alta fidelidad */
    --cb-transition: cubic-bezier(0.25, 1, 0.5, 1);
    --fast-transition: all 0.4s var(--cb-transition);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    color: var(--text-pure);
    line-height: 1.6;
    padding-top: 50px;
    /* Evita que el contenido quede oculto debajo del header fijo */
}

/* ===== HORIZONTAL HEADER STYLES ===== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(160deg, #333 0%, #131621 60%, #333 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: var(--fast-transition);
}

.header-container {
    max-width: 1440px;
    height: 100%;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: right;
    justify-content: space-between;
    /* Distribución perfecta: Izq, Centro, Der */
}



/* Navegación Centrada */
.main-nav {
    height: 100%;
}

.nav-list {
    display: flex;
    align-items: right;
    justify-content: right;
    height: 100%;
    list-style: none;
    gap: 35px;

    /* Espaciado amplio como el de la imagen */
}

.nav-item {
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 300;
    font-size: 9px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 10px 4px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    transition: var(--fast-transition);
}

.nav-link:hover {
    color: var(--text-pure);
    font-weight: 300;
}

.nav-link.active {
    color: var(--text-pure);
    font-weight: 600;
}

/* Indicador de Línea Inferior Next-Gen */
.nav-indicator {
    position: absolute;
    bottom: 14px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--primary-neon);
    box-shadow: 0 0 8px var(--primary-neon);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--cb-transition);
}

.nav-link:hover .nav-indicator,
.nav-link.active .nav-indicator {
    transform: scaleX(1);
    transform-origin: left;
}

/* Acciones de la Derecha (Socials/Buttons) */
.header-actions {
    display: flex;
    align-items: center;
}

.social-grid {
    display: flex;
    gap: 8px;
}

.social-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--fast-transition);
}

.social-btn:hover {
    background: var(--text-pure);
    color: #111215;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

/* ===== RESPONSIVO / MENÚ MÓVIL ===== */
.mobile-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    gap: 6px;
    padding: 10px;
}

.mobile-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-pure);
    transition: var(--fast-transition);
}

@media (max-width: 1024px) {
    .header-container {
        padding: 0 24px;
    }

    .main-nav {
        position: fixed;
        top: 85px;
        left: 0;
        width: 100%;
        height: calc(100vh - 85px);
        background: var(--bg);
        padding: 40px;
        transform: translateY(-100%);
        opacity: 0;
        transition: var(--fast-transition);
        pointer-events: none;
    }

    /* Clase que activarías con JS para desplegarlo */
    .main-nav.mobile-active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 24px;
    }

    .nav-link {
        font-size: 20px;
        /* Tipografía grande en móvil */
    }

    .nav-indicator {
        bottom: 0;
    }

    .header-actions {
        display: none;
        /* Escondemos las redes en el top móvil para limpiar */
    }

    .mobile-toggle {
        display: flex;
    }
}