* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* FUENTE DE LETRAS : NEW ROCKER*/
.new-rocker-regular {
    font-family: "New Rocker", system-ui;
    font-weight: 400;
    font-style: normal;
}



.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* el fondo */
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('assets/suburbia.jpg');
    background-size: cover;               /* esto hace que la imagen cubra todo */
    background-position: center;        
}

header {
    position: absolute;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px; 
    z-index: 10;
}

nav {
    margin: 0; 
    position: absolute; /* Lo sacamos del flujo para centrarlo respecto a la pantalla */
    left: 50%;
    transform: translateX(-50%);
}

nav ul {
    display: flex;          /* pone las secciones en horizontal */
    list-style: none;       /* Quita los puntitos negros de la lista */
    gap: 20px;           
}

nav ul li a {
    text-decoration: none;  /* saca el subrayado azul clásico */
    color: rgba(241, 201, 22, 0.87);           /* color de las letras */
    font-family: sans-serif; 
    font-weight: bold;
    text-transform: uppercase; 
}

/* AJUSTES RESPONSIVOS GLOBALES */

/* Para Tablets y Celulares */
/* --- ESTILOS PARA EL MENÚ CELULAR --- */

/* 1. Escondemos el botón y el sidebar por defecto (para que no se vean en PC) */
.menu-btn, .sidebar {
    display: none;
}

@media (max-width: 768px) {
    /* 2. Escondemos el nav horizontal de PC */
    nav {
        display: none;
    }

    /* 3. Mostramos el botón de hamburguesa */
    .menu-btn {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        z-index: 20; /* Por encima de todo */
    }

    .bar {
        width: 30px;
        height: 4px;
        background-color: #f1c916; /* Tu dorado */
        border-radius: 2px;
    }

    /* 4. Estilo del Sidebar */
    .sidebar {
        display: block;
        position: fixed;
        top: 0;
        right: -100%; /* Empezamos afuera de la pantalla */
        width: 70%;   /* Ocupa el 70% del ancho */
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.95);
        z-index: 100;
        padding: 50px 30px;
        transition: 0.4s ease; /* Animación de entrada */
        border-left: 2px solid #f1c916;
    }

    /* Clase que activaremos con JS para mostrarlo */
    .sidebar.active {
        right: 0;
    }

    .close-sidebar {
        font-size: 3rem;
        color: #f1c916;
        position: absolute;
        top: 10px;
        right: 20px;
        cursor: pointer;
    }

    .sidebar-links {
        list-style: none;
        margin-top: 50px;
    }

    .sidebar-links li {
        margin-bottom: 30px;
    }

    .sidebar-links li a {
        color: white;
        text-decoration: none;
        font-size: 1.5rem;
        font-family: 'New Rocker', sans-serif;
        text-transform: uppercase;
    }
}