/* Añade esto al inicio de tu CSS (antes de :root) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #ff4757; /* Rojo vibrante */
    --primary-dark: #ff0000;
    --secondary-color: #101114; /* Gris oscuro */
    --dark-color: #000000; /* Negro azulado */
    --medium-dark: #07090c;
    --medium-color: #000000;
    --light-color: #f1f2f6;
    --text-color: #ffffff;
    --text-light: #dfe4ea;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius: 8px;
    --font-primary: 'Poppins', sans-serif; /* Añade esta nueva variable */

}

body {
    font-family: var(--font-primary);
}

/* NAVEGACIÓN OSCURA */
.dark-nav {
    background-color: var(--dark-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

/* LOGO */
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    z-index: 1002;
}

.logo-img {
    height: 42px;
    width: auto;
    transition: var(--transition);
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -0.5px;
    transition: var(--transition);
}

.brand-accent {
    color: var(--primary-color);
}

/* ENLACES DE NAVEGACIÓN */
.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    transition: var(--transition);
}

.links-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* BOTÓN CERRAR MENÚ */
.close-menu-btn {
    display: none;
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
    transition: var(--transition);
}

.close-menu-btn:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.close-menu-btn svg {
    width: 24px;
    height: 24px;
}

/* BOTONES DE AUTENTICACIÓN */
.auth-buttons {
    display: flex;
    gap: 1rem;
    margin-left: 1rem;
}

.btn {
    padding: 0.6rem 1.4rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: none;
}

.btn-login {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--medium-color);
}

.btn-login:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--text-color);
    transform: translateY(-2px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.btn-register {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
}

.btn-register:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 71, 87, 0.5);
}

/* MENÚ DESPLEGABLE */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    position: relative;
}

.dropdown-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.dropdown:hover .dropdown-btn::after {
    width: 100%;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--secondary-color);
    min-width: 220px;
    box-shadow: var(--shadow);
    z-index: 100;
    border-radius: var(--border-radius);
    max-height: 0;
    overflow: hidden;
    top: 100%;
    left: 0;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-content a {
    color: var(--text-light);
    padding: 0.8rem 1.2rem;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--primary-color);
    padding-left: 1.4rem;
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
    display: block;
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
    overflow-y: auto;
}

.dropdown-arrow {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--text-color);
    transition: var(--transition);
}

.dropdown:hover .dropdown-arrow,
.dropdown:focus-within .dropdown-arrow {
    transform: rotate(180deg);
    border-top-color: var(--primary-color);
}

/* MENÚ HAMBURGUESA */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
}

.hamburger-line {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: var(--transition);
    border-radius: 3px;
}

/* VERSIÓN MÓVIL - MENÚ PANTALLA COMPLETA */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 1.5rem;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
    
    .links-container {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 1.2rem;
        height: 70px;
    }
    
    .hamburger {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--dark-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 2rem;
        gap: 2rem;
        z-index: 1000;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s ease;
    }
    
    .nav-links.active {
        opacity: 1;
        pointer-events: all;
    }
    
    .close-menu-btn {
        display: block;
    }
    
    .links-container {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 1.5rem;
    }
    
    .nav-link, .dropdown-btn {
        font-size: 1.2rem;
        padding: 0.8rem 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-link::after, .dropdown-btn::after {
        display: none;
    }
    
    .auth-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 250px;
        margin: 2rem 0 0;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        text-align: center;
        padding: 1rem;
        font-size: 1rem;
    }
    
    .dropdown {
        width: 100%;
        text-align: center;
    }
    
    .dropdown-content {
        position: static;
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
        box-shadow: none;
        border-radius: var(--border-radius);
        max-height: 0;
        opacity: 1;
        transform: none;
        transition: max-height 0.4s ease;
        border: none;
        margin-top: 0.5rem;
    }
    
    .dropdown.active .dropdown-content {
        max-height: 500px;
    }
    
    .dropdown-btn {
        justify-content: center;
    }
    
    /* Animación hamburguesa a X */
    .hamburger.active .hamburger-line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background-color: var(--primary-color);
    }
    
    .hamburger.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .hamburger-line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background-color: var(--primary-color);
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .logo-img {
        height: 36px;
    }
    
    .brand-name {
        font-size: 1.3rem;
    }
    
    .nav-links {
        padding: 2rem 1rem;
    }
    
    .nav-link, .dropdown-btn {
        font-size: 1.1rem;
    }
}