/* Estilos generales */
* {
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Kanit', sans-serif;
}

body {
    font-family: 'Kanit', sans-serif;
    background-image: url(Assets/Fondo\ sin\ margen.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(64, 1, 1, 0.3); /* Bordó oscuro con opacidad */
    z-index: -1;
}

/* Boton flotante Whastapp */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    animation: breathe 2s ease-in-out infinite;
  }
  
  /*Estilos solo al icono whatsapp*/
  .whatsapp-btn i {
    color: #fff;
    font-size: 24px;
    animation: beat 2s ease-in-out infinite;
    text-decoration: none;
  }
  
  /*Estilos con animation contorno respirando*/
  @keyframes breathe {
    0% {
      box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
      box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
      box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
  }
  
  /*Estilos de animacion del icono latiendo*/
  @keyframes beat {
    0% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.2);
    }
    100% {
      transform: scale(1);
    }
  }
  
/* HEADER / NAVBAR */
header {  
    background: #400101;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-top: solid 3px #f2bb13;
    border-bottom: solid 3px #f2bb13;
}

/* Contenedor del header */
.headermenu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 10px 20px;
}

/* Logo */
.logoencontacto {
    width: 65px;
    transition: transform 0.3s ease-in-out;
}

.logoencontacto:hover {
    transform: scale(1.07);
}

/* Barra de navegación */
.navlistmenu {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    margin: 0 auto;
}

.navlistmenu li {
    display: inline;
    margin: 5px;
    transition: 0.5s ease;
    margin: 0 auto;
}

.navlistmenu li:hover {
    color: black;
    background-color: #f2bb13;
    border-radius: 30px;
    border: 1px solid #f2bb13;
    padding: 7px;
}

.navlistmenu a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    padding: 15px;
    border-radius: 5px;
}

.navlistmenu a:hover {
    text-decoration: none;
    color: black;
}

li a:hover svg .cart {
    fill: black !important;
}  
/* BARRA DE NAVEGACIÓN con las categorias */
.navlist {
    border-bottom: solid 3px #f2bb13;
    text-align: center;
    list-style: none;
    padding: 10px;
    background: #730202;
}

.navlist li {
    display: inline;
    margin: 3px;
    transition: 0.5s ease;
    margin: 0 auto;
}


.navlist li:hover{
    color: black;
    background-color: #f2bb13;
    border-radius: 30px;
    border: 1px solid #f2bb13;
    padding: 3px;
}

.navlist a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    width: 155px;
}

.navlist a:hover{
    text-decoration: none;
    color: black;
}

#categoriaHamburguesas,
#categoriaLomitos,
#categoriaMilanesas,
#categoriaPapas,
#categoriaCombos,
#categoriaBebidas {
    text-align: center;
    color: white;
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 10px;
}

#nombreProducto{
    color: #f2bb13;
    font-size: 22px;
    padding-top: 5px;
    font-weight: 700;
    font-style: italic;
    width: 150px;
    text-align: center;
}

/* === CONTENEDORES DE CATEGORÍAS === *//*
.containerHamburguesas,
.containerLomitos,
.containerMilanesas,
.containerPapas,
.containerCombos {
    padding: 30px 20px;
    text-align: center;

}*/
.imagenesHamburguesas ,
.imagenesLomitos,
.imagenesMilanesas,
.imagenesPapas,
.imagenesCombos, 
.imagenesBebidas{
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}


/* === TÍTULOS DE SECCIONES === *//*
#categoriaHamburguesas,
#categoriaLomitos,
#categoriaMilanesas,
#categoriaPapas,
#categoriaCombos {
    font-size: 45px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
    border-top: 8px solid #f29b30;
    padding-left: 10px;
}

/* === GRID DE PRODUCTOS === *//*
.imagenesHamburguesas,
.imagenesLomitos,
.imagenesMilanesas,
.imagenesPapas,
.imagenesCombos {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 220px;
    gap: 20px;
    justify-content: center;
}


/* === CADA PRODUCTO === */
.hamburguesa-item {
    background-color: #730202;
    padding: 5px;
    border-radius: 20px;
    transition: transform 0.2s;
    box-shadow: 0 0 10px #40010188;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    max-width: fit-content;
}

.hamburguesa-item:hover {
    transform: scale(1.03);
}

.image-preview {
    width: 180px;
    height: 150px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 7px;
}


/* === BOTÓN AGREGAR === */
.hamburguesa-item button {
    background-color: #f2bb13;
    color: #400101;
    padding: 10px;
    font-size: 13px;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    margin-bottom: 5px;
    box-shadow: 0 0 10px #f2bb13aa;
}

.hamburguesa-item button:hover {
    background-color: #f29b30;
    box-shadow: 0 0 15px #f2bb13aa;
    transform: scale(1.05);
}

/* === MODAL === */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    transition: opacity 0.2s ease;
    opacity: 0;
}

.modal.active {
    display: flex;
}

.modal.show {
    opacity: 1;
}


.modal-content {
    background-color: #f2bb13;
    color: #400101;
    padding: 20px;
    border-radius: 15px;
    width: 80%;
    max-width: 400px;
    text-align: center;
    position: relative;
    box-shadow: 0 0 20px #f29b30;
    justify-content: center;
    align-items: center;
}

.modal-content .close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #400101;
}

/* INICIO FOOTER */
footer {
    background: #400101;
    border-top: solid 3px #f2bb13;
    color: white;
    padding: 10px;
    text-align: center;
    bottom: 0;
    width: 100%;
}

/* Palabra JR en negrita */
.texto_JR_Burguesia {
    margin-right: 1px;
}

#derechos {
    text-align: center;
    color: gray;
}

/* FIN FOOTER */



.agregar-carrito {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px; /* Espacio entre los elementos */
    margin-top: 10px;
}

.variantes {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
    color: #f2bb13;
    font-size: 12px;
}

.cantidad-control {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  /* Botones */
  .btn-restar,
  .btn-sumar {
    width: 36px;
    height: 30px;
    background-color: #f2bb13;
    border: none;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    position: relative;
    top: -4px;
  }
  
  .btn-restar:hover,
  .btn-sumar:hover {
    background-color: #f29b30;
  }
  
  /* Wrapper que le da el estilo al input */
.cantidad-wrapper {
    width: 40px;
    height: 40px;
    border: 1px solid #f29b30;
    border-radius: 8px;
    background-color: #f2bb13;
    display: flex;
    justify-content: center;
    align-items: center;
}
  
  /* Input centrado al 100% */
.cantidad-input {
    width: 100%;
    height: 100%;
    font-size: 20px;
    border: none;
    background: transparent;
    outline: none;
    pointer-events: none;
    font-weight: 700;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-confirmacion {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    pointer-events: none;
  }
  
  .modal-confirmacion.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
  }
  
  .modal-content-confirmacion {
    background-color: rgb(122, 207, 111);
    color: #400101;
    padding: 30px;
    border-radius: 15px;
    width: 80%;
    max-width: 400px;
    text-align: center;
    position: relative;
    box-shadow: 0 0 20px #f29b30;
    transform: scale(0.95);
    transition: transform 0.3s ease;
  }
  
  .modal-confirmacion.active .modal-content-confirmacion {
    transform: scale(1);
  }
  
  .close-confirmacion {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
  }

  .modal-error {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    pointer-events: none;
  }
  
  .modal-error.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
  }
  
  .modal-content-error {
    background-color: #bf0404;
    color: white;
    padding: 30px;
    border-radius: 15px;
    width: 80%;
    max-width: 400px;
    text-align: center;
    position: relative;
    box-shadow: 0 0 20px #f29b30;
    transform: scale(0.95);
    transition: transform 0.3s ease;
  }
  
  .modal-error.active .modal-content-error {
    transform: scale(1);
  }
  
  .close-error {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
  }
  
  /*
@media (max-width: 768px) {

    #navlist {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .left-section,
    .right-section {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .left-section {
        justify-content: flex-start;
    }

    .right-section {
        justify-content: flex-end;
    }

    .logoArriba,
    .contacto {
        font-size: 18px;
    }

    #imgLogo,
    #carrito {
        width: 40px;
        height: 40px;
    }

    /* BARRA DE CATEGORÍAS *//*
    #barraCategorias {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        justify-items: center;
    }

    #barraCategorias a {
        font-size: 24px;
        padding: 8px 16px;
    }

    /* TÍTULOS DE SECCIONES *//*
    #categoriaHamburguesas,
    #categoriaLomitos,
    #categoriaMilanesas,
    #categoriaPapas,
    #categoriaCombos {
        font-size: 32px;
        text-align: center;
        border-left: none;
        padding-left: 0;
    }

    /* GRID DE PRODUCTOS *//*
    .imagenesHamburguesas,
    .imagenesLomitos,
    .imagenesMilanesas,
    .imagenesPapas,
    .imagenesCombos {
        display: flex;
        flex-direction: column;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hamburguesa-item {
        width: 90%;
        margin: 0 auto;
        min-height: unset;
        padding: 20px;
    }

    .image-preview {
        width: 100%;
        height: auto;
        max-width: 300px;
    }

    .hamburguesa-item button {
        font-size: 16px;
        padding: 10px 20px;
    }
}
