/* Estilos generales */

@font-face {
    font-family: 'Gill Sans';
    src: url('../data/Gill Sans.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Gill Sans', sans-serif;
}

/* Barra de navegación */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-image: url('../img/leaf2.png');
    background-size: cover;
    background-position: center;
    padding: 15px 0;
    font-weight: 700;
    z-index: 9999;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(101, 200, 109, 0.712);
    backdrop-filter: blur(5px);
    z-index: 1;
}

/* Contenedor de la barra de navegación */
.container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.logo {
    height: 100px;
    width: auto;
    margin-left: 0px;
}

/* Enlaces de la navegación */
.nav-links {
    display: flex;
    list-style: none;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
    flex: 1;
    gap: 10px;
    margin: 0;
}

.nav-links li {
    margin: 5px;
    text-align: center;
}

.nav-links li a {
    text-decoration: none;
    color: white;
    font-size: 16px;
    padding: 8px 12px;
    transition: background 0.3s, color 0.3s;
    font-weight: 500;
    border-radius: 5px;
    display: inline-block;
}

.nav-links li a:hover {
    background-color: rgba(101, 200, 109, 0.6);
    border-radius: 5px;
    color: #232255;
    transition: background 0.3s ease-in-out;
}

/* Icono hamburguesa */
.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger-menu .bar {
    width: 30px;
    height: 4px;
    background-color: white;
    border-radius: 2px;
}

/* Media Queries para pantallas pequeñas */
@media screen and (max-width: 968px) {
    .container {
        justify-content: center;
        text-align: center;
    }

    .logo {
        margin: 0 0 10px 0;
        height: 70px;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        display: none; /* Ocultamos los enlaces por defecto */
        flex-direction: column;
        gap: 15px;
    }

    .nav-links.active {
        display: flex; /* Mostramos los enlaces cuando se activa */
    }

    .hamburger-menu {
        display: flex; /* Mostramos el icono hamburguesa en pantallas pequeñas */
    }
}

/* Para pantallas más pequeñas */
@media screen and (max-width: 768px) {
    .nav-links li a {
        font-size: 14px;
        padding: 6px 8px;
    }
}
