/* ================= VARIABLES ================= */
:root {
  --azul: #1209ed;
  --azul-claro: #4c45ff;
  --rojo: #de0e0b;
  --amarillo: #e9e812;
  --gris-oscuro: #111;
  --gris-claro: #f4f4f4;
  --blanco: #ffffff;
}

/* ================= HEADER GENERAL ================= */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;

    background: transparent;

    height: 100px;
    display: flex;
    align-items: center;

    z-index: 9999;

    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* ================= CONTAINER ================= */
.container-header {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0 20px;
}

/* ================= LOGO ================= */
.logo img {
    height: 90px; /* 🔥 corregido (antes estaba gigante) */
    transition: 0.3s ease;
}

/* ================= NAV DESKTOP ================= */
.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

/* 🔥 FIX COMPLETO LINKS */
.nav-links li a {
    color: var(--blanco);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;

    transition: color 0.3s ease, transform 0.3s ease;
}

/* evitar colores raros */
.nav-links li a:visited,
.nav-links li a:active,
.nav-links li a:focus {
    color: var(--blanco);
}

/* hover */
.nav-links li a:hover {
    color: var(--amarillo);
    transform: scale(1.05);
}

/* ================= BOTONES MÓVILES ================= */
#menu-toggle,
#menu-close {
    display: none;
    font-size: 2.5rem;
    background: none;
    border: none;
    color: var(--blanco);
    cursor: pointer;
}

#menu-toggle {
    margin-left: auto;
}

/* ================= HEADER SCROLL ================= */
#site-header.scrolled {
    background: var(--azul);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* ================= MOBILE ================= */
@media (max-width: 1024px){

    #site-header {
        height: 110px;
    }

    /* 🔥 mantener logo visible (mejor UX) */
    .logo img {
        height: 70px;
    }

    /* animación menú */
    .nav-links li {
        opacity: 0;
        transform: translateY(20px);
        transition: 0.3s;
    }

    #main-nav.active .nav-links li {
        opacity: 1;
        transform: translateY(0);
    }

    /* botón hamburguesa */
    #menu-toggle {
        display: block;
        font-size: 2.2rem;
    }

    /* NAV FULLSCREEN */
    #main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;

        background: var(--azul);

        display: flex;
        justify-content: center;
        align-items: center;

        transform: translateX(100%);
        transition: transform 0.35s ease;

        z-index: 1001;
    }

    #main-nav.active {
        transform: translateX(0);
    }

    /* links mobile */
    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 35px;
    }

    .nav-links li a {
        font-size: 2rem;
        font-weight: 500;
    }

    /* botón cerrar */
    #menu-close {
        position: absolute;
        top: 30px;
        right: 25px;

        font-size: 3rem;
        color: var(--blanco);

        display: none;
    }

    #main-nav.active #menu-close {
        display: block;
    }

    #main-nav.active #menu-toggle {
        display: none;
    }
}

/* ================= FIX TOTAL LINKS HEADER ================= */

#site-header .nav-links li a,
#site-header .nav-links li a:visited,
#site-header .nav-links li a:active,
#site-header .nav-links li a:focus {
    color: var(--blanco) !important;
    text-decoration: none;
}

/* hover limpio */
#site-header .nav-links li a:hover {
    color: var(--amarillo) !important;
}
/* ===== FIX DEFINITIVO NAV LINKS ===== */

#site-header a,
#site-header a:visited,
#site-header a:active,
#site-header a:focus {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* hover */
#site-header a:hover {
    color: #e9e812 !important;
}