html {
    box-sizing: border-box;
    scroll-behavior: smooth;
}
*, *::before, *::after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}

body {
    height: 100%;
    margin: 0;
    padding: 0;
    text-decoration: none;
    font-family: "Poppins", serif;
}

/* General */

a {
    text-decoration: none;
}


/* Header completo */


/* Navegación */
.nav {
    display: flex;
    padding-top: 15px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* background: transparent; Color de fondo */
    /* backdrop-filter: blur(10px); /* Desenfoque del contenido detrás */
    /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); Sombra para que se vea mejor */
    z-index: 1000; /* Asegura que esté sobre otros elementos */

    
}
.nav-logo {
    width: 200px; /*Tamaño del logo */
    height: 80px; /*Tamaño del logo */
    z-index: 2;
    object-fit: contain; /* Mantiene la proporción de la imagen */
} 

.nav-container {
    width: min(90%, 1200px);
    margin: 0 auto;

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

    height: 80px;
}


.button-menu {
    display: flex;
    flex-direction: column;
    width: 3rem;
    height: 3rem;
    border: 0;
    background: transparent;
    gap: 0.65rem;
    cursor: pointer;

    position: relative;
    z-index: 2;
}

.button-menu div {
    background: #FFDD00;
    height: 2px;
    width: 100%;
    border-radius: 5px;
    transition: all 0.5s;
    transform-origin: left;
}

.button-menu.active div:first-child {
    transform: rotate(45deg);
    background: #fff;
}
.button-menu.active div:nth-child(2) {
    opacity: 0;
}
.button-menu.active div:last-child {
    transform: rotate(-45deg);
    background: #fff;
}

.overlay {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.9);
    overflow-x: hidden;
    transition: 0.5s;
}

.overlay-content {
    position: relative;
    top: 25%;
    width: 100%;
    text-align: center;
    margin-top: 30px;
}

.overlay a {
    padding: 8px;
    text-decoration: none;
    font-size: 36px;
    color: #818181;
    display: block;
    transition: 0.3s;
}

.overlay a:hover, .overlay a:focus {
    color: #f1f1f1;
}

/* Bloquear scroll cuando el menú esté abierto */
body.menu-open {
    overflow: hidden;
}

/* Media queries generales para dispositivos móviles */
@media (max-width: 768px) {
    /* Header */
    /* header {
        height: 60vh; 
        padding: 20px;
        background-color: #000;
    } */
    .nav {
        display: flex;
        flex-direction: column;
        padding: 0;
        margin: 0;
    }
}

/* Media queries para pantallas aún más pequeñas (por ejemplo, teléfonos muy pequeños) */
@media (max-width: 480px) {
    h1 {
        font-size: 40px; /* Reducir tamaño de los títulos */
    }

    .nav-list-div {
        width: 100%;
        height: 100%;
    }
    .nav-list-div {
        position: fixed;
        inset: 0;
        
        padding: 1.5rem 5%;
        padding-top: 140px;
    }
    .nav-link {
        font-size: 27px;
    }

    .nav-logo {
        position: relative;
        width: 150px;
        height: auto;
        object-fit: contain;
        z-index: 1;
    }

    .nav-item {
        font-size: 20px; /* Reducir tamaño de los elementos de navegación */
    }
}
