.language-switch {
    width: 110px;
    height: 45px;
    background: linear-gradient(135deg, #000000, #2e2f31);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.4s ease-in-out;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
    margin: 20px auto;
    position: relative;
}

.flag-container {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
    padding: 0 10px;
}

.flag {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    border: 2px solid white;
}

.flag:hover {
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.switch-slider {
    position: absolute;
    z-index: 10;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    transition: transform 0.4s ease-in-out, background 0.3s ease-in-out;
}

/* Cuando está activado (se cambia de idioma) */
.language-switch.active .switch-slider {
    transform: translate(65px, -60%);
    
}

.language-switch:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

@media (max-width: 1028px) {
    .language-switch {
        width: 90px;
        height: 40px;
    }
    
    .flag {
        width: 24px;
        height: 24px;
    }
    
    .switch-slider {
        width: 40px;
        height: 40px;
    }
    
    .language-switch.active .switch-slider {
        transform: translate(50px, -50%);
    }
}

@media (max-width: 480px) {
    .language-switch {
        width: 85px;
        height: 38px;
    }
    
    .flag {
        width: 22px;
        height: 22px;
    }
    
    .switch-slider {
        width: 32px;
        height: 32px;
        left: 3px;
    }
    
    .language-switch.active .switch-slider {
        transform: translate(45px, -50%);
    }
}


/* Animación de entrada para .menu-item */



/* Responsivo */
@media (max-width: 768px) {
    .botonera {
        align-items: center;
    }

    .menu-bg {
        width: 100px;
        height: 100px;
    }
}


/*BOTON PRINCIPAL */
#btn-flotante {
    position: absolute;
    top: 30px; 
    right: 10px;
    transform: translateX(-50%);
    background-color: #000000;
    opacity: .5;
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0s ease-in-out;
}

/*BOTON BACK TO MENU*/
#btn-flotante:hover {
    opacity: 1;
}
#btn-flotante2 {
    position: fixed;
    bottom: 30px;
    right: 50px; /* Espaciado respecto al otro botón */
    background-color: #00000050;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-family: 'Roboto Mono', serif;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    opacity: 0;
    pointer-events: none;
    z-index: 100;
}

#btn-flotante2 svg{
    width: 30px;
    height: 30px;

}
#btn-flotante2:hover{
    background-color: #000000;
    
    
}
#btn-flotante2:hover svg{
    fill: white;
}


.menu-item.center{
    text-align: center;
    margin: 20px auto;
    max-width: 100px; /* Controla el ancho */
    position: relative;
    border-bottom: none;

}
.menu-item.center.visible{
    text-align: center;
    margin: 20px auto;
    max-width: 100px; /* Controla el ancho */
    position: relative;
    border-bottom: none;

}



/*------------------------*/
        body {
            font-family: 'Roboto Mono', serif;
            font-weight: 300;
            margin: 0;
            padding: 0;
            background-color: #ffffff;
            overflow-x: hidden;
        }
        .header {
            text-align: center;
            position: relative;
        }
        .header img {
            width: 100%;
            max-width: 700px;
            display: block;
            margin: auto;

        }


    



        .section-entrantes,
.section-hamburgesa-smash,
.section-bebidas,
.section-postres,
.section-hamburgesas,
.section-chips{
    text-align: center;
    color: white;
    height: 150px;
    width: 100%;
    margin-top: 30px;
    position: relative;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}
.section-entrantes::before {
    content: "";
    position: absolute;
    top: 0;
    left: -2%; /* Ajusta la posición */
    width: 100px; /* Tamaño de la imagen de fondo */
    height: 100%;
    background-image: url('/img1.png'); /* Imagen izquierda */
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 1; /* Ajusta la opacidad si lo necesitas */
}

.section-entrantes::after {
    content: "";
    position: absolute;
    top: -4%;
    right: -6%; /* Ajusta la posición */
    width: 100px; /* Tamaño de la imagen de fondo */
    height: 100%;
    background-image: url('/photo2.webp'); /* Imagen izquierda */
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.7; /* Ajusta la opacidad si lo necesitas */
}
.section-hamburgesa-smash::after {
    content: "";
    position: absolute;
    top: 0;
    right: -2%; /* Ajusta la posición */
    width: 90px; /* Tamaño de la imagen de fondo */
    height: 100%;
    background-image: url('/periodico.webp'); /* Imagen izquierda */
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.7; /* Ajusta la opacidad si lo necesitas */
}

.americana::after{
    content: "";
    position: absolute;
    top: -40px;
    right: 1px; /* Ajusta la posición */
    width: 70px; /* Tamaño de la imagen de fondo */
    height: 100%;
    background-image: url('/img3.png'); /* Imagen izquierda */
    background-position: top;
    background-repeat: no-repeat;
    background-size: contain;
}



.section-postres::before {
    content: "";
    position: absolute;
    top: 0;
    left: -1%; /* Ajusta la posición */
    width: 100px; /* Tamaño de la imagen de fondo */
    height: 100%;
    background-image: url('/photo3.webp'); /* Imagen izquierda */
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.7; /* Ajusta la opacidad si lo necesitas */
}
/* Imagen de fondo a la izquierda */
.section-bebidas::before {
    content: "";
    position: absolute;
    top: 0;
    left: -2%; /* Ajusta la posición */
    width: 100px; /* Tamaño de la imagen de fondo */
    height: 100%;
    background-image: url('/img6.png'); /* Imagen izquierda */
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.7; /* Ajusta la opacidad si lo necesitas */
}

/* Imagen de fondo a la derecha */
.section-bebidas::after {
    content: "";
    position: absolute;
    top: 0;
    right: -2%; /* Ajusta la posición */
    width: 100px; /* Tamaño de la imagen de fondo */
    height: 100%;
    background-image: url('/img5.png'); /* Imagen derecha */
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.7; /* Ajusta la opacidad si lo necesitas */
}


.section-entrantes {
    background-image: url('/entrantes.webp');
}

.section-hamburgesa-smash {
    background-image: url('/smash.webp');
}

.section-hamburgesas {
    background-image: url('/burger.webp');
}

.section-postres {
    background-image: url('/postres.webp');
}

.section-bebidas {
    background-image: url('/bebidas.webp');
   
 
}
.section-chips {
    background-image: url('/chips.png');
   
 
}
.menu-container {
    max-width: 800px;
    margin: auto;
    padding: 20px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.9); /* Fondo base para mejorar legibilidad */
}

/* Capa de fondo con opacidad */
.menu-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
}

      

    .menu-item.visible {
            transform: translateX(0);
            opacity: 1;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: .5px solid #000000;
            padding: 15px 0;
    }

        .menu-item.hidden{
            opacity: 0;
            transform: translateX(200px);
            transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
        }
        .menu-item {
        
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid #ccc;
            padding: 15px 0;
            opacity: 0;
            transform: translateY(50px);
            transition: opacity 0.8s ease-out, transform 0.8s ease-out;
            will-change: opacity, transform;
        }
  
        .menu-item h1 {
            font-weight: 300;
            text-transform: uppercase;
            margin: 0;
            font-size: 1.2em;
            margin-bottom: 20px;
        }
        .menu-item p {
            margin: 5px 0 0;
            font-size: 1em;
        }
        .price {
            border: .4px solid black;
            border-radius: 15px;
            padding: 5px;
            font-size: 1.2em;
            font-weight: bold;
        }

        .cerveza-match {
            text-align: center;
            margin: 50px auto 20px auto;
            max-width: 600px; /* Controla el ancho */
            position: relative;
        }
        
        /* Imagen arriba */
        .cerveza-match img {
            height: 30%;
            width: 44%; /* Ajusta el tamaño según necesites */
            display: block;
            margin: 0 auto 20px auto; /* Centrada arriba */
        }
        
        .cerveza-match p {
            font-size: 1.2em;
            margin: 5px 0;
        }
        
        .cerveza-match b {
            font-size: 1.2em;
        }
        
        
        
        @media (max-width: 1024px) {
    .section-entrantes,
    .section-hamburgesas,
    .section-hamburgesa-smash,
    .section-bebidas,
    .section-postres,
    .section-starters,
    .section-drinks,
    .section-desserts,
    .section-smash-zone,
    .section-burger ,
    .section-chips{
        height: 120px;
        font-size: 1.5em;
    }
}

@media (max-width: 768px) {
    .section-entrantes,
    .section-hamburgesas,
    .section-hamburgesa-smash,
    .section-bebidas,
    .section-postres,
    .section-starters,
    .section-drinks,
    .section-desserts,
    .section-burger ,
    .section-smash-zone
    .section-chips{
        height: 80px;
        font-size: 1.2em;
    }
    .section-entrantes::after,.section-entrantes::before{
        height: 70px;
    } 
}

@media (max-width: 460px) {
    .section-entrantes,
    .section-hamburgesas,
    .section-hamburgesa-smash,
    .section-smash-zone
    .section-bebidas,
    .section-postres,
    .section-starters,
    .section-drinks,
    .section-desserts,
    .section-burger ,
    .section-chips{
        height: 60px;
        font-size: 1em;
    }

    .section-entrantes::after,.section-entrantes::before{
        height: 40px;
    } 
    .section-starters::after,.section-starters::before{
        height: 250px;
    } 
}

    

/* footer*/

footer {
    margin-top: 40px;
    border-top: 2px solid #000000;
    font-family: 'Roboto Mono', serif; /* Fuente de máquina de escribir */
    background-color: #ffffff;
    color: rgb(2, 0, 0);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin-bottom: 15px;
}

.footer-logo img {
    width: 120px; /* Ajusta el tamaño del logo */
    margin-left: 20px;
}

.footer-info {
    text-align: right;

}

.footer-info a {
    color: #ff4400;
    text-decoration: none;
    font-size: 1.2em;
    margin-left: 15px;
    transition: color 0.3s;
}

.footer-info a:hover {
    color: #000000;
}
.footer-end{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin-bottom: 5px;
}

.footer a  {
    color: #000000;
    text-decoration: none;
    margin-top: 60px ;
    max-width: 1200px;
    font-size: 0.9em;
    padding-top: 10px;
}







/*MENU ENGLISH*/


.section-starters,
.section-drinks,
.section-desserts,
.section-smash-zone,
.section-burger,
.section-chips{
    text-align: center;
    color: white;
    height: 150px;
    width: 100%;
    margin-top: 30px;
    position: relative;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}
.section-starters::before {
    content: "";
    position: absolute;
    top: 0;
    left: -2%; /* Ajusta la posición */
    width: 100px; /* Tamaño de la imagen de fondo */
    height: 100%;
    background-image: url('/img1.png'); /* Imagen izquierda */
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 1; /* Ajusta la opacidad si lo necesitas */
}

.section-starters::after {
    content: "";
    position: absolute;
    top: -4%;
    right: -6%; /* Ajusta la posición */
    width: 100px; /* Tamaño de la imagen de fondo */
    height: 100%;
    background-image: url('/photo2.webp'); /* Imagen izquierda */
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.7; /* Ajusta la opacidad si lo necesitas */
}



.section-desserts::before {
    content: "";
    position: absolute;
    top: 0;
    left: -1%; /* Ajusta la posición */
    width: 100px; /* Tamaño de la imagen de fondo */
    height: 100%;
    background-image: url('/photo3.webp'); /* Imagen izquierda */
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.7; /* Ajusta la opacidad si lo necesitas */
}
/* Imagen de fondo a la izquierda */
.section-drinks::before {
    content: "";
    position: absolute;
    top: 0;
    left: -2%; /* Ajusta la posición */
    width: 100px; /* Tamaño de la imagen de fondo */
    height: 100%;
    background-image: url('/img6.png'); /* Imagen izquierda */
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.7; /* Ajusta la opacidad si lo necesitas */
}

/* Imagen de fondo a la derecha */
.section-drinks::after {
    content: "";
    position: absolute;
    top: 0;
    right: -2%; /* Ajusta la posición */
    width: 100px; /* Tamaño de la imagen de fondo */
    height: 100%;
    background-image: url('/img5.png'); /* Imagen derecha */
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.7; /* Ajusta la opacidad si lo necesitas */
}


.section-starters {
    background-image: url('/STARTERS.webp');
    background-size: 210px;
}


.section-smash-zone {
    background-image: url('/smash-zone.webp');
}

.section-desserts {
    background-image: url('/desserts.webp');
    background-size: 160px;
}

.section-drinks {
    background-image: url('/drink.webp');
    background-size: 140px;
   
 
}
.section-burger {
    background-image: url('/burger.webp');
   
 
}
.section-chips {
    background-image: url('/chips.png');
   
 
}