/* Estilos del botón de carrito de compras */
.cart-button {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #F57E23;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    font-size: 30px;
    color: white;
    transition: all 0.3s ease;
  }
  .cart-button:hover{
    transform: scale(1.1);
  }
  .cart-button:active{
    transform: scale(0.9); /* Efecto al presionar el botón */
  }
  


/* ============================================================================ */


.cart-counter {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff5733;
    color: white;
    border-radius: 50%;
    padding: 5px 10px;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease-in-out;
}

.cart-counter-animation {
    animation: counterAnimation 0.5s ease-in-out;
}

@keyframes counterAnimation {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.5);
    }
    100% {
        transform: scale(1);
    }
}


/* ============================================================================ */


  /* CODIGO PARA QUITAR EL FONDO AZUL AL PRECIONAR EN MOVIL */
  .cart-button { -webkit-tap-highlight-color: rgba(0,0,0,0); }
  @keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    50% { transform: translateX(10px); }
    75% { transform: translateX(-10px); }
    100% { transform: translateX(0); }
  }
  
  
  .skip-link {
    position: absolute;
    left: -9999px; /* Fuera de la pantalla */
  }
  .skip-link:focus {
    left: 0; /* Muestra el enlace cuando es enfocado */
    top: 0;
    background: #fff;
    padding: 10px;
    z-index: 1000;
  }
  
  
  .shake {
    animation: shake 0.5s ease;
  }
  /* Estilos para el elemento select */
  .quantity-select {
    padding: 5px;
    background-color: #e10700;
    font-size: 16px;
    color: #ffffff;
    font-weight: bold;
    margin-left: 10px;
    border-radius: 3em;
    border-color: #e00600;
    background-position: 0 0;
    background-size: 100%;
    transition: background 30ms ease-in-out;
    margin-right: 10px;
    margin-left: 0px;
    /* Espacio entre el nombre del ítem y el select */
  }
  
  .guarniciones-info{
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
  }
  
  
  /* Estilos del contador del carrito */
  .cart-counter {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #e7973c;
    color: white;
    border-radius: 50%;
    padding: 5px 10px;
    font-size: 16px;
    font-weight: bold;
    display: none;
    /* Se mostrará cuando haya artículos */
  }
  
  /* Estilos del Modal */
  .cart-modal {
    position: fixed;
    top: 0;
    right: -100%;
    width: 360px;
    height: 100%;
    backdrop-filter: blur(8px);
    box-shadow: -2px 0 15px rgba(0, 0, 0, 0.5);
    border-radius: 0 0 20px 20px;
    transition: right 0.3s ease;
    z-index: 999;
    overflow: hidden;
    background: repeating-linear-gradient(45deg, #2b2b2be0 0%, #2b2b2bb5 10%, #222222e6 0%, #222222e6 50%) 0 / 15px 15px;
  }
  
  /* Modal abierto */
  .cart-modal.open {
    right: 0;
    /* Se desplaza hacia la vista */
  }
  
  /* Contenido del Modal */
  .cart-modal-content {
    position: relative;
    padding: 15px; /* Reducido para pantallas pequeñas */
    height: auto; /* Ajusta la altura automáticamente */
    max-height: 80vh; /* Limitar altura máxima */
    overflow-y: auto; /* Habilita el scroll si el contenido es alto */
    color: #333;
    font-family: 'Arial', sans-serif; /* Fuente personalizada */
    z-index: 2;
    font-size: 16px;
    padding-bottom: 60px; /* Espacio en la parte inferior para el botón */
    margin: 0 auto; /* Centra el modal */
    max-width: 100%; /* Aumentar el ancho máximo */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Sombra para efecto visual */
    border-radius: 8px; /* Bordes redondeados */
  }
  
  /* Media query para dispositivos muy pequeños (teléfonos estrechos) */
  @media (max-width: 200px) {
    .cart-modal-content {
        padding: 20px 20px 0 0; /* Aumentar el ajuste */
        padding-bottom: 40px; /* Ajustar espacio inferior */
        max-width: 80%; /* Mejor uso del espacio */
        font-size: 14px; /* Tamaño de fuente legible */
    }
  }
  
  /* Media query para teléfonos pequeños */
  @media (min-width: 201px) and (max-width: 360px) {
    .cart-modal-content {
        padding: 15px; /* Padding cómodo */
        padding-bottom: 40px; /* Espacio inferior */
        max-width: 90%; /* Uso adecuado del espacio */
        font-size: 15px; /* Tamaño de fuente un poco mayor */
    }
  }
  
  /* Media query para tablets y dispositivos medianos */
  @media (min-width: 361px) and (max-width: 600px) {
    .cart-modal-content {
        padding: 15px; /* Padding adecuado */
        padding-bottom: 50px; /* Espacio inferior ajustado */
        max-width: 95%; /* Uso óptimo del espacio */
        font-size: 16px; /* Tamaño de fuente cómodo */
    }
  }
  
  /* Media query para pantallas grandes (escritorios) */
  @media (min-width: 601px) {
    .cart-modal-content {
        padding: 20px; /* Padding para pantallas grandes */
        padding-bottom: 60px; /* Espacio inferior más amplio */
        max-width: 600px; /* Ancho máximo para mejor legibilidad */
        font-size: 18px; /* Tamaño de fuente mayor */
    }
  }
  
  
  
  
  
  
  
  /* Estilos del título */
  .cart-modal-content h2 {
    margin: 0;
    padding: 10px 0;
    color: #fff;
    /* Texto blanco */
    text-align: center;
    font-size: 24px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    /* Línea decorativa */
  }
  
  /* Estilos para cerrar el modal */
  .close-modal {
    color: #fff;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
  }
  .close-modal{
    -webkit-tap-highlight-color: rgba(0,0,0,0); 
  }
  
  .close-modal:hover,
  .close-modal:focus {
    color: #f00;
    text-decoration: none;
  }
  
  .close-button {
    color: #ff0000;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
  }
  
  .close-button:hover,
  .close-button:focus {
    color: #f00;
    text-decoration: none;
  }
  
  /* Estilos para los elementos del carrito */
  .cart-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    justify-content: space-between;
  }
  
  
  .cart-item button {
    font-size: 10px;
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
  }
  .quantity-controls {
    display: flex;
    align-items: center;
    gap: 5px;
  }
  
  
  .quantity-controls button {
    background-color: #000000;
    color: white;
    border: none;
    padding: 3px 8px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
  }
  .cart-total {
    font-weight: bold;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding-bottom: 20px;
    text-align: center;
    font-size: 18px;
  }
  
  /* Estilos para los botones de compra */
  .purchase-buttons {
    position: fixed;
    left: 20px;
    top: 120px;
    /* Ajusta la distancia desde la parte superior de la pantalla */
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
  }
  
  /* Nuevo estilo para el botón de compra */
  .purchase-button {
    background-color: #f1871e;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    display: block;
    margin: 0px 20px 40px 50px;
    width: 185px;
    text-align: center;
  }
  
  #cart {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  
  
  
  
  
  
  /* Estilo para la ventana emergente */
  .product-options-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }
  .add-guarnicion-button{
    margin-right: 10px;
  }
  
  .product-options-modal .modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 20%;
    /* max-width: 90%; */
    height: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
  }
  
  
  .product-options-modal .modal-content h2 {
    margin-top: 0;
  }
  
 .product-options-modal .modal-content label {
    display: block;
    margin: 10px 0;
    color: #000;
    cursor: pointer;
    border-bottom: 1px solid #cbcbcb;
    margin-left: 8px !important;
  } 
  

  
  .product-options-modal .modal-content input[type="checkbox"] {
    margin-right: 8px;
  }
  
  button.confirm-button {
    width: 70px;
    height: 18px;
    color: #fff;
    border-radius: 5px;
    padding: 10px 25px;
    font-family: 'Lato', sans-serif;
    font-weight: 500;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    box-shadow: inset 2px 2px 2px 0px rgba(255, 255, 255, .5), 7px 7px 20px 0px rgba(0, 0, 0, .1), 4px 4px 5px 0px rgba(0, 0, 0, .1);
    outline: none;
  }
  
  .product-options-modal .modal-content .confirm-button {
    border: none;
    background: rgb(251, 33, 117);
    background: linear-gradient(0deg, rgb(255 0 0) 0%, rgb(234 76 76) 100%);
    color: #fff;
    overflow: hidden;
  }
  
  .product-options-modal .modal-content .confirm-button:hover {
    background-color: #ff5858;
  }
  
  #guarniciones-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  
  /*========= @ MEDIA QUERY MOBIL VISTA ===================== */
  
    .product-options-modal .modal-content {
        background: #fff;
        padding: 10px;
        border-radius: 8px;
        width: 60%;
        max-width: 90%;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        text-align: center;
    }
    #guarniciones-list {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
  
  
  /*========= ESTILOS DE MODAL DE OPCIONES =====================*//* Estilo para el modal de compra */
  /* Estilo para el modal de selección de tipo de pedido */
  .purchase-modal {
    display: none; /* Ocultar por defecto */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Fondo oscuro semi-transparente */
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Asegurarse de que el modal esté sobre otros elementos */
  }
  
  .purchase-modal-content {
    background: rgb(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 8px;
    max-width: 400px;
    width: 80%;
    position: relative;
  }
  .tip-plato{
    color: white;
    font-size: 25px;
    text-align: center;
    margin-top: -10px;
  
  }
  
  .btn-container{
    display: flex;
    justify-content: space-evenly;
  }
  
  .btn-container .btn{
    cursor: pointer;
    background: #E41800;
    color: white;
    font-size: 18px;
    padding: 8px;
    border: none;
    border-radius: 10px;
    width: 120px;
    font-family: Georgia, 'Times New Roman', Times, serif;
  }
  
  .btn-container .btn:hover{
    background: #e65242;
  
  }
  
  /* Estilo para el modal de delivery */
  .delivery-modal {
    display: none; /* Ocultar por defecto */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Fondo oscuro semi-transparente */
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Asegurarse de que el modal esté sobre otros elementos */
  }
  
  .delivery-modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    position: relative;
  }
  
  /* Estilo para el modal de selección de mesa */
  .mesa-modal {
    display: none; /* Ocultar por defecto */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Fondo oscuro semi-transparente */
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Asegurarse de que el modal esté sobre otros elementos */
  }
  
  .mesa-modal-content {
    background: rgb(0,0,0,0.8);
    justify-content: center;
    color: whitesmoke;
    padding: 20px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    position: relative;
  }
  
  .h2{
    text-align: center;
    font-size: 35px;
    text-shadow: 0 0 10px red;
    margin-top: -10px;
  
  }
  
  /* EFECTOS DE TITULO SHOP */
  p#titulo {
    text-align: center;
    font-size: 2em;
    margin-bottom: 0;
    margin-top: 0;
    line-height: 1;
    text-decoration: none;
    font-family: 'Vampiro One';
    background: linear-gradient(to right, red 50%, rgb(255, 252, 252) 50%);
    background-clip: text;
    color: transparent;
  }
  /* Botón de cerrar en el modal */
  .close-purchase-modal, .close-delivery-modal, .close-mesa-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 28px;
    font-weight: 600;
    color: #fff;
  }
  
  /* Opciones en el modal de mesa */
  .mesa-options {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
    
  
  }
  
  .mesa-button {
    display: block;
    margin: 10px 0;
    padding: 10px;
    background: #E20700;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    flex: 1 1 100px;
    box-sizing: border-box;
  }
  #mesa-details {
    margin-top: 20px;
  }
  
  #mesa-submit-order {
    padding: 10px 20px;
    background: #ff0000;
    color: #fff;
    border: solid black 3px;
    border-radius: 8px;
    cursor: pointer;
  }
  /* Estilos para el modal */
  .modal {
    display: none; /* Oculta el modal por defecto */
    position: fixed;
    z-index: 1000; /* Coloca el modal encima de otros elementos */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7); /* Fondo semi-transparente */
  }
  
  /* Estilos para el botón de cerrar */
  .close {
    color: #ff0000;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
  }
  .close:hover,
  .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
  }
  
  
  
  
  
  
  
  /*registro estilos*/
  
  
  /* Estilos del formulario dentro del modal */
  #registrationForm {
    background-color: white; /* Fondo blanco del formulario */
    border-radius: 8px; /* Bordes redondeados */
    padding: 20px; /* Espaciado interno */
    max-width: 300px; /* Ancho máximo del formulario */
    margin: auto; /* Centrado horizontal */
    text-align: left; /* Alineación del texto a la izquierda */
  }
  
  /* Etiquetas del formulario */
  #registrationForm label {
    display: block; /* Hace que la etiqueta ocupe toda la línea */
    font-weight: bold; /* Texto en negrita */
    color: black; /* Color del texto negro */
    margin-bottom: 8px; /* Espacio debajo de la etiqueta */
  }
  
  /* Campos de entrada del formulario */
  #registrationForm input[type="text"] {
    width: 200px; /* Ancho completo */
    padding: 10px; /* Espaciado interno */
    margin-bottom: 15px; /* Espacio debajo del campo de entrada */
    border: 2px solid red; /* Borde rojo */
    border-radius: 5px; /* Bordes redondeados */
    font-size: 16px; /* Tamaño de fuente */
    color: black; /* Color del texto negro */
    background-color: white; /* Fondo blanco */
  }
  
  /* Botón de registro */
  #registrationForm button[type="submit"] {
    background-color: red; /* Fondo rojo */
    color: white; /* Texto blanco */
    border: none; /* Sin borde adicional */
    padding: 10px 20px; /* Espaciado interno del botón */
    border-radius: 5px; /* Bordes redondeados */
    cursor: pointer; /* Cursor de mano al pasar el ratón */
    font-size: 16px; /* Tamaño de fuente */
    width: 250px; /* Ancho completo del botón */
    margin-top: 10px; /* Espacio arriba del botón */
  }
  
  /* Efecto hover para el botón */
  #registrationForm button[type="submit"]:hover {
    background-color: black; /* Fondo negro al pasar el ratón */
  }
  
  

  
  /*ESTILO DELIVERY*/
  
  
  .delivery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Fondo semi-transparente */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px); /* Efecto borroso en el fondo */
    display: none;
  }
  
  .delivery-modal-content {
    background: rgba(0, 0, 0, 0.7); /* Fondo semi-transparente y borroso */
    border: 2px solid #e41800; 
    border-radius: 10px; 
    padding: 10px; /* Reducido a la mitad */
    width: 80%; /* Reducido a la mitad del 90% original */
    max-width: 500px; /* Reducido a la mitad de 500px */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3); /* Reducido a la mitad */
    color: #fff; /* Texto en blanco */
    text-align: center; /* Centra el texto y los botones */
  }
  
  #submit-order {
    background: transparent; 
    border: 2px solid #e41800; 
    color: #e41800; 
    padding: 5px 10px; /* Reducido a la mitad */
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px; /* Reducido a la mitad */
    font-weight: bold;
    transition: background 0.3s, color 0.3s;
    margin: 10px auto; /* Centra el botón */
  }
  
  #submit-order:hover {
    background: #e41800; 
    color: #fff; 
  }
  
  .close-delivery-modal {
    cursor: pointer;
    font-size: 12px; /* Reducido a la mitad */
    color: #e41800; /* Color del ícono de cerrar */
    position: absolute;
    top: 10px;
    right: 10px;
  }
  
  form {
    color: #fff; /* Texto en blanco en el formulario */
  }
  
  label {
    display: block;
    margin-bottom: 5px; /* Reducido a la mitad */
  }
  
  #address{
    background: rgba(255, 255, 255, 0.1); /* Fondo transparente para los campos de entrada */
    border: 1px solid #e41800;
    color: #fff; /* Texto en blanco en los campos de entrada */
    padding: 5px; /* Reducido a la mitad */
    border-radius: 5px;
    width: 90%;
    margin-bottom: 5px; /* Reducido a la mitad */
  }
  #dni {
    background: rgba(255, 255, 255, 0.1); /* Fondo transparente para el campo de entrada */
    border: 1px solid #e41800;
    color: #fff; /* Texto en blanco en el campo de entrada */
    padding: 5px; /* Reducido a la mitad */
    border-radius: 5px;
    width: 90%;
    margin-bottom: 5px; /* Reducido a la mitad */
  }
  
  
  #address::placeholder,
  #dni::placeholder {
    color: #fff; /* Color del texto del placeholder */
  }
  
  .hidden {
    display: none; /* Oculta el elemento */
  }
  
  
  /*estilos pa los sin chamba(influencers)*/
  
  #discount-section {
    
    color: #fff; /* Texto blanco */
    border-radius: 5px;
    max-width: 400px;
    margin: 0 auto;
  }
  
  #discount-section label {
    display: block;
    margin-bottom: 10px;
    font-size: 1.2em;
    margin-left: 60px;
  }
  
  #discount-section input[type="text"] {
    margin-left: 50px;
    width: 200px; /* Ajusta el ancho considerando el padding y el border */
    padding: 10px;
    border: 2px solid #ff0000; /* Borde rojo */
    border-radius: 5px;
    background-color: #fff; /* Fondo blanco para el input */
    text-align: center;
  
  }
  
  #discount-section button {
    margin-left: 50px;
    background-color: #ff0000; /* Fondo rojo */
    color: #fff; /* Texto blanco */
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    margin-top: 5px;
    width: 185px;
  }
  
  
  
  /* Estilo para mostrar el total después de aplicar el descuento */
  #discounted-total {
  
    color: #fff; /* Texto blanco */
    padding: 10px;
    border-radius: 5px;
    margin-top: 20px;
    font-size: 1.2em;
  }
  
/* Estilos del botón de carrito de compras */
.cart-button {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #F57E23;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    font-size: 30px;
    color: white;
    transition: all 0.3s ease;
}
.cart-button:hover{
    transform: scale(1.1);
}
.cart-button:active{
    transform: scale(0.9); /* Efecto al presionar el botón */
}

/* CODIGO PARA QUITAR EL FONDO AZUL AL PRECIONAR EN MOVIL */
.cart-button { -webkit-tap-highlight-color: rgba(0,0,0,0); }
@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    50% { transform: translateX(10px); }
    75% { transform: translateX(-10px); }
    100% { transform: translateX(0); }
}

.shake {
    animation: shake 0.5s ease;
}
/* Estilos para el elemento select */
.quantity-select {
    padding: 5px;
    background-color: #e10700;
    font-size: 16px;
    color: #ffffff;
    font-weight: bold;
    margin-left: 10px;
    border-radius: 3em;
    border-color: #e00600;
    background-position: 0 0;
    background-size: 100%;
    transition: background 30ms ease-in-out;
    margin-right: 10px;
    margin-left: 0px;
    /* Espacio entre el nombre del ítem y el select */
}

.guarniciones-info{
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
}


/* Estilos del contador del carrito */
.cart-counter {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #EB7E15;
    color: white;
    border-radius: 50%;
    padding: 5px 10px;
    font-size: 16px;
    font-weight: bold;
    display: none;
    /* Se mostrará cuando haya artículos */
}

/* Estilos del Modal */
.cart-modal {
    position: fixed;
    top: 0;
    right: -100%;
    width: 360px;
    height: 100%;
    backdrop-filter: blur(8px);
    box-shadow: -2px 0 15px rgba(0, 0, 0, 0.5);
    border-radius: 0 0 20px 20px;
    transition: right 0.3s ease;
    z-index: 999;
    overflow: hidden;
    background: repeating-linear-gradient(45deg, #2b2b2be0 0%, #2b2b2bb5 10%, #222222e6 0%, #222222e6 50%) 0 / 15px 15px;
}

/* Modal abierto */
.cart-modal.open {
    right: 0;
    /* Se desplaza hacia la vista */
}

/* Contenido del Modal */
.cart-modal-content {
    position: relative;
    padding: 15px; /* Reducido para pantallas pequeñas */
    height: auto; /* Ajusta la altura automáticamente */
    max-height: 80vh; /* Limitar altura máxima */
    overflow-y: auto; /* Habilita el scroll si el contenido es alto */
    color: #333;
    font-family: 'Arial', sans-serif; /* Fuente personalizada */
    z-index: 2;
    font-size: 16px;
    padding-bottom: 60px; /* Espacio en la parte inferior para el botón */
    margin: 0 auto; /* Centra el modal */
    max-width: 100%; /* Aumentar el ancho máximo */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Sombra para efecto visual */
    border-radius: 8px; /* Bordes redondeados */
}

/* Media query para dispositivos muy pequeños (teléfonos estrechos) */
@media (max-width: 200px) {
    .cart-modal-content {
        padding: 20px 20px 0 0; /* Aumentar el ajuste */
        padding-bottom: 40px; /* Ajustar espacio inferior */
        max-width: 80%; /* Mejor uso del espacio */
        font-size: 14px; /* Tamaño de fuente legible */
    }
}

/* Media query para teléfonos pequeños */
@media (min-width: 201px) and (max-width: 360px) {
    .cart-modal-content {
        padding: 15px; /* Padding cómodo */
        padding-bottom: 40px; /* Espacio inferior */
        max-width: 90%; /* Uso adecuado del espacio */
        font-size: 15px; /* Tamaño de fuente un poco mayor */
    }
}

/* Media query para tablets y dispositivos medianos */
@media (min-width: 361px) and (max-width: 600px) {
    .cart-modal-content {
        padding: 15px; /* Padding adecuado */
        padding-bottom: 50px; /* Espacio inferior ajustado */
        max-width: 95%; /* Uso óptimo del espacio */
        font-size: 16px; /* Tamaño de fuente cómodo */
    }
}

/* Media query para pantallas grandes (escritorios) */
@media (min-width: 601px) {
    .cart-modal-content {
        padding: 20px; /* Padding para pantallas grandes */
        padding-bottom: 60px; /* Espacio inferior más amplio */
        max-width: 600px; /* Ancho máximo para mejor legibilidad */
        font-size: 18px; /* Tamaño de fuente mayor */
    }
}







/* Estilos del título */
.cart-modal-content h2 {
    margin: 0;
    padding: 10px 0;
    color: #fff;
    /* Texto blanco */
    text-align: center;
    font-size: 24px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    /* Línea decorativa */
}

/* Estilos para cerrar el modal */
.close-modal {
    color: #000000;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.close-modal{
    -webkit-tap-highlight-color: rgba(0,0,0,0); 
}

.close-modal:hover,
.close-modal:focus {
    color: #f00;
    text-decoration: none;
}

.close-button {
    color: #ff0000;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
}

.close-button:hover,
.close-button:focus {
    color: #f00;
    text-decoration: none;
}

/* Estilos para los elementos del carrito */
.cart-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    justify-content: space-between;
}


.cart-item button {
    font-size: 10px;
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 5px;
}


.quantity-controls button {
    background-color: #000000;
    color: white;
    border: none;
    padding: 3px 8px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
}
.cart-total {
    font-weight: bold;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding-bottom: 20px;
    text-align: center;
    font-size: 18px;
}

/* Estilos para los botones de compra */
.purchase-buttons {
    position: fixed;
    left: 20px;
    top: 120px;
    /* Ajusta la distancia desde la parte superior de la pantalla */
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

/* Nuevo estilo para el botón de compra */
.purchase-button {
    background-color: #f57e23;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    display: block;
    margin: 0px 20px 40px 50px;
    width: 185px;
    text-align: center;
}

#cart {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}







/* Estilo para la ventana emergente */
.product-options-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.add-guarnicion-button{
    margin-right: 10px;
}

.product-options-modal .modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 20%;
    /* max-width: 90%; */
    height: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
}


.product-options-modal .modal-content h2 {
    margin-top: 0;
}

.product-options-modal .modal-content label {
    display: block;
    margin: 10px 0;
    cursor: pointer;
    border-bottom: 1px solid #cbcbcb;
}

.product-options-modal .modal-content input[type="checkbox"] {
    margin-right: 8px;
}

button.confirm-button {
    width: 70px;
    height: 18px;
    color: #fff;
    border-radius: 5px;
    padding: 10px 25px;
    font-family: 'Lato', sans-serif;
    font-weight: 500;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    box-shadow: inset 2px 2px 2px 0px rgba(255, 255, 255, .5), 7px 7px 20px 0px rgba(0, 0, 0, .1), 4px 4px 5px 0px rgba(0, 0, 0, .1);
    outline: none;
}

.product-options-modal .modal-content .confirm-button {
    border: none;
    background: rgb(251, 33, 117);
    background: linear-gradient(0deg, rgb(255 0 0) 0%, rgb(234 76 76) 100%);
    color: #fff;
    overflow: hidden;
}

.product-options-modal .modal-content .confirm-button:hover {
    background-color: #ff5858;
}

#guarniciones-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/*========= @ MEDIA QUERY MOBIL VISTA ===================== */

    .product-options-modal .modal-content {
        background: #fff;
        padding: 10px;
        border-radius: 8px;
        width: 60%;
        max-width: 90%;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        text-align: center;
    }
    #guarniciones-list {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }


/*========= ESTILOS DE MODAL DE OPCIONES =====================*//* Estilo para el modal de compra */
/* Estilo para el modal de selección de tipo de pedido */
.purchase-modal {
    display: none; /* Ocultar por defecto */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Fondo oscuro semi-transparente */
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Asegurarse de que el modal esté sobre otros elementos */
}

.purchase-modal-content {
    background: rgb(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 8px;
    max-width: 400px;
    width: 80%;
    position: relative;
}
.tip-plato{
    color: white;
    font-size: 25px;
    text-align: center;
    margin-top: -10px;

}

.btn-container{
    display: flex;
    justify-content: space-evenly;
}

.btn-container .btn{
    cursor: pointer;
    background: #E41800;
    color: white;
    font-size: 18px;
    padding: 8px;
    border: none;
    border-radius: 10px;
    width: 120px;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

.btn-container .btn:hover{
    background: #e65242;

}

/* Estilo para el modal de delivery */
.delivery-modal {
    display: none; /* Ocultar por defecto */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Fondo oscuro semi-transparente */
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Asegurarse de que el modal esté sobre otros elementos */
}

.delivery-modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    position: relative;
}

/* Estilo para el modal de selección de mesa */
.mesa-modal {
    display: none; /* Ocultar por defecto */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Fondo oscuro semi-transparente */
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Asegurarse de que el modal esté sobre otros elementos */
}

.mesa-modal-content {
    background: rgb(0,0,0,0.8);
    justify-content: center;
    color: whitesmoke;
    padding: 20px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    position: relative;
}

.h2{
    text-align: center;
    font-size: 35px;
    text-shadow: 0 0 10px red;
    margin-top: -10px;

}

/* EFECTOS DE TITULO SHOP */
p#titulo {
    text-align: center;
    font-size: 2em;
    margin-bottom: 0;
    margin-top: 0;
    line-height: 1;
    text-decoration: none;
    font-family: 'Vampiro One';
    background: linear-gradient(to right, rgb(218, 142, 35) 50%, rgb(255, 252, 252) 50%);
    background-clip: text;
    color: transparent;
}
/* Botón de cerrar en el modal */
.close-purchase-modal, .close-delivery-modal, .close-mesa-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 28px;
    font-weight: 600;
    color: #fff;
}

/* Opciones en el modal de mesa */
.mesa-options {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
    

}

.mesa-button {
    display: block;
    margin: 10px 0;
    padding: 10px;
    background: #E20700;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    flex: 1 1 100px;
    box-sizing: border-box;
}
#mesa-details {
    margin-top: 20px;
}

#mesa-submit-order {
    padding: 10px 20px;
    background: #ff0000;
    color: #fff;
    border: solid black 3px;
    border-radius: 8px;
    cursor: pointer;
}
/* Estilos para el modal */
.modal {
    display: none; /* Oculta el modal por defecto */
    position: fixed;
    z-index: 1000; /* Coloca el modal encima de otros elementos */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7); /* Fondo semi-transparente */
}

/* Estilos para el botón de cerrar */
.close {
    color: #ff0000;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}




/* Estilo para mostrar el total después de aplicar el descuento */
#discounted-total {

    color: #fff; /* Texto blanco */
    padding: 10px;
    border-radius: 5px;
    margin-top: 20px;
    font-size: 1.2em;
}



   /* Animación de aparición del modal */
   @keyframes fadeIn {
    0% { opacity: 0; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

/* Estilo general del modal */
.modal {
    background-color: rgba(0, 0, 0, 0.5) ; /* Fondo semitransparente */
}

.modal-content {
    position: absolute !important;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) !important;
    max-width: 100%;
    width: 90% !important; /* Ancho máximo del 90% para móviles */
    background-color: #fff !important; /* Fondo blanco */
    border-radius: 8px; /* Bordes redondeados */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Sombra */
    padding: 20px;
    overflow: hidden;
    box-sizing: border-box;

    
}




/* Ajuste en pantallas grandes */
@media (min-width: 768px) {
    .modal-content {
        width: 50%; /* Ancho del 50% en pantallas más grandes */
        max-width: 30%;
    }
}

/* Mejora en la apariencia de los campos */
.form-control, .form-select {
    padding: 10px;
    font-size: 1rem;
}

/* Estilo del botón de cerrar */
.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
}



  @media (min-width: 1024px) {
    #bacgradient {
        background-size: contain !important; /* Mantiene toda la imagen visible, ideal para pantallas grandes */
    }
}

