@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;500;600;700;800;900&display=swap');
:root {
  --primary-color: #9BD201;
  --second-color: #00239B;
  --third-color: #FA6605;
}
body.menu-open {
    overflow: hidden;
}

a {
    color: black;
    text-decoration-line: none;
}
.nav__link {
    color: white;
}
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 90;
}

.head {
    display: flex;
    width: 95%;
    justify-content: space-between;
    margin-top: 30px;
    padding: 10px;
    border-radius: 10em;

    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}


.head a, .line_bottom {
    position: relative;
    font-weight: 400;
    transition: font-weight 0.25s ease;
}

.head a::after, .line_bottom::after {
    content: "";
    position: absolute;
    bottom: -4px;
    height: 2px;
    width: 0;
    background-color: currentColor;
    transition: width 0.3s ease;
}

#menu_galeria::after {
    left: 0;
}

#menu_galeria:hover::after {
    width: 100%;
}

#menu_aconsEntrades::after, .line_bottom::after {
    left: 50% !important;
    transform: translateX(-50%);
}

#menu_aconsEntrades:hover::after, .line_bottom:hover::after {
    width: 100%;
}

#menu_collecio::after {
    right: 0;
}

#menu_collecio:hover::after {
    width: 100%;
}

.menu_completo {
    position: fixed;
    inset: 0;
    background-color: var(--second-color);

    z-index: 100;

    display: flex;
    justify-content: center;
    flex-direction: column;

    transform: translateY(-100%);
    transition: transform 0.5s ease;
}

.menu_completo.active {
    transform: translateY(0);
}


.menu_completo.active {
    transform: translateY(0);
}


.nav__list {
    display: grid;
    place-content: center;
    gap: 2rem;
    text-align: center;
}

.nav__item {
    list-style: none;
}

.menu-btn {
    position: fixed;
    top: 35px;
    left: 3%;
    z-index: 110;
    background: transparent;
    border: none;
    cursor: pointer;
}

.menu-icon .line {
    stroke: black;
    stroke-width: 2;
    stroke-linecap: round;
    transition: all 0.35s ease;
    transform-origin: center;
}

/* Posición inicial: hamburguesa */
.line.top {
    transform: translateY(-6px);
}
.line.middle {
    transform: translateY(0);
}
.line.bottom {
    transform: translateY(6px);
}

.leng_select {
    color: black;
    background: none;
    border: none;
    cursor: pointer;
}
.leng_select option {
    color: black;
}

/* Estado activo: flecha hacia arriba */
.menu-btn.active .top {
    transform: translateY(0) rotate(-45deg) scaleX(0.9);
    stroke: white;
}
.menu-btn.active .middle {
    transform: translateY(-2px) rotate(0deg) scaleX(0);
    stroke: white;
    opacity: 0;
}
.menu-btn.active .bottom {
    transform: translateY(0) rotate(45deg) scaleX(0.9);
    stroke: white;
}

@media (max-width: 480px) {
    #menu_galeria, #menu_aconsEntrades, #menu_collecio {
        display: none;
    }
}
