/* Estilos combinados y finalizados de OrangeCream incluyendo el modal */

body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  background-image: url('assets/backgroundorange.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
  color: #000000;
}


/* Header con imagen de fondo */
.header {
  position: relative;
  text-align: center;
  padding: 100px 20px;
  background-image: url('assets/banner.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
  z-index: 10;
}
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 0;
}
.header * {
  position: relative;
  z-index: 1;
}
.logo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ff6600;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}
.estado-operacion {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  color: white;
  margin-top: 8px;
}
.texto-operacion {
  display: flex;
  align-items: center;
  padding: 0 4px;
}
.separador {
  width: 1px;
  height: 20px;
  background-color: rgba(241, 236, 236, 0.5);
  margin: 0 4px;
}

/* Búsqueda */
.busqueda-superpuesta {
  display: flex;
  justify-content: center;
  margin-top: -30px;
  margin-bottom: -12px;
  z-index: 10;
  position: relative;
}

.input-con-icono {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 500px;
}

.input-con-icono i {
  position: absolute;
  left: 20px;
  color: white;
  font-size: 18px;
  pointer-events: none;
}

.input-con-icono.i-activo i {
  animation: vibrar 0.4s infinite;
}

.busqueda-superpuesta input {
  width: 100%;
  max-width: 500px;
  padding: 12px 20px;
  padding-left: 48px; /* espacio para el ícono */
  font-size: 16px;
  border-radius: 30px;
  border: 3px solid black;
  background-color: #f2531d; /* Naranja correcto */
  color: white !important;
  outline: none;
  box-shadow: 0 4px 12px rgba(160, 213, 198, 0.6);
}

/* Placeholder blanco */
.busqueda-superpuesta input::placeholder {
  color: white;
  opacity: 1;
}

/* Sombra al enfocar */
.busqueda-superpuesta input:focus {
  border-color: black;
  box-shadow: 0 4px 12px rgba(160, 213, 198, 0.6);
}

/* Animación para vibrar */
@keyframes vibrar {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(4deg); }
  50% { transform: rotate(-4deg); }
  75% { transform: rotate(4deg); }
  100% { transform: rotate(0deg); }
}




/* Categorías */
.categorias-flotantes {
  display: flex;
  align-items: center;
  padding: 10px;
  margin: 0 auto;
  width: 100%; /* ✅ ocupa todo el ancho */
  background: #e2eceb;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  border-radius: 20px;
  margin-top: 30px;
  position: relative;
  z-index: 500;

  /* Scroll horizontal SIEMPRE */
  overflow-x: auto;
  flex-wrap: nowrap;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.categoria {
  flex: 0 0 auto;           /* ✅ cada item ocupa solo lo necesario */
  scroll-snap-align: start;
  padding: 10px 15px;
  margin: 0 5px;
  background-color: #fff;
  color: #000;
  font-weight: bold;
  border-radius: 12px;
  cursor: pointer;
  border: none;
  transition: background-color 0.3s;

  /* Centrado y saltos de línea */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: normal; 
  word-wrap: break-word;

  min-width: 90px;
  max-width: 140px;
}

.categoria:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.categoria.activa {
  background-color: #ff6600;
  color: white;
}

/* 🖥️ En PC no rompemos diseño, solo ajustamos tamaño */
@media (min-width: 1024px) {
  .categorias-flotantes {
    max-width: 1200px;   /* ✅ centrado */
    margin: 30px auto;
    overflow-x: auto;    /* ✅ sigue siendo scroll */
    flex-wrap: nowrap;   /* ✅ en fila */
    justify-content: flex-start; /* ✅ alineados al inicio */
  }

  .categoria {
    min-width: 110px;  /* ✅ un poco más grandes en PC */
    max-width: 150px;
    height: 55px;
    font-size: 14px;
  }
}



/* Secciones de categorías con títulos */
.titulo-categoria {
  margin-top: 2rem;
  font-size: 1.8rem;
  color: #ff8c00;
  text-shadow: 1px 1px 2px #00000070;
  border-bottom: 2px solid #ff8c00;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.grupo-productos {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}
 



.categoria {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 10px;
  padding: 10px 15px;
  background-color: #fff;
  border-radius: 10px;
  max-width: 100%;
  scroll-behavior: smooth;
}

.categoria::-webkit-scrollbar {
  height: 6px;
}

.categoria::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

.categoria::-webkit-scrollbar-track {
  background: transparent;
}

.categoria button {
  flex-shrink: 0;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 500;
  border: none;
  border-radius: 20px;
  background-color: #f2f2f2;
  color: #333;
  white-space: nowrap; /* evitar que el texto haga salto de línea */
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  text-align: center;
  min-width: fit-content;
}

.categoria button:hover {
  background-color: #ffd8a9;
  color: #000;
}

.categoria button.activa {
  background-color: #ff6b00;
  color: white;
  font-weight: bold;
}

/* Productos */
.productos-grid {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 20px;
  align-items: center;
  justify-items: center;
  margin: 0 auto;
}


/* Tarjeta de producto */
.producto {
  width: 220px;            /* Más ancho */
  height: 340px;           /* Más altura */
  padding: 10px;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 0 6px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  text-align: center;
}

.producto img {
  width: 100%;
  height: 200px;           /* Ajustamos a proporción del nuevo ancho */
  object-fit: cover;
  border-radius: 16px;     /* Esquinas redondeadas */
  padding: 8px;
  background-color: #fff;
  box-sizing: border-box;
}

/* Nombre del producto */
.producto h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 4px 0;
  line-height: 1.2;
  height: 40px; /* limita el espacio */
  overflow: hidden;
}

/* Precio del producto */
.producto p {
  font-size: 14px;
  margin: 0;
  color: #444;
}

/* Botón agregar al carrito */
.producto button {
  margin-top: 8px;
  padding: 8px 12px;
  background-color: #ff7c36;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.producto button:hover {
  background-color: #ff5712;
}



/* Botón del carrito */
/* Estilos del botón carrito expandido */
.carrito-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: white;
  color: #ff6600;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 22px;
  border: 2px solid #ff6600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  z-index: 5000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  white-space: nowrap;
  padding: 0;
}

.carrito-btn .carrito-contenido {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 100%;
}

.carrito-icono {
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carrito-btn.expandido {
  width: 220px;
  padding: 0 20px;
  border-radius: 30px;
  animation: reboteGlow 0.6s ease-in-out;
  justify-content: start;
}

.carrito-btn:not(.expandido) .carrito-contenido {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.carrito-btn:not(.expandido) .carrito-icono {
  font-size: 22px;
}

.carrito-btn:not(.expandido) #textoCompletar {
  display: none;
}


#textoCompletar {
  opacity: 0;
  font-size: 14px;
  font-weight: bold;
  transition: opacity 0.3s ease;
}

.carrito-btn.expandido #textoCompletar {
  opacity: 1;
}

.carrito-btn span#contadorCarrito {
  background: red;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 12px;
  position: absolute;
  top: 5px;
  right: 5px;
  color: white;
}




/* Efecto de rebote y glow */
@keyframes reboteGlow {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0px rgba(255, 102, 0, 0.0);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 18px rgba(255, 102, 0, 0.6);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0px rgba(255, 102, 0, 0.0);
  }
}




/* Drawer del carrito */
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 350px;
  height: 100vh;
  background: #1e1e1e;
  color: white;
  padding: 20px;
  transition: transform 0.3s ease-in-out;
  transform: translateX(100%);
  z-index: 9999; /* Asegura que esté sobre todo */
  box-sizing: border-box;
  overflow-y: auto;
}
.drawer.open {
  transform: translateX(0%);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-header button {
  background: none;
  color: white;
  font-size: 24px;
  border: none;
  cursor: pointer;
}

.eliminar-btn {
  background: transparent;
  border: none;
  color: red;
  font-size: 16px;
  margin-left: 10px;
  cursor: pointer;
}

.total {
  font-size: 18px;
  margin: 10px 0;
}

.realizar-btn {
  background: #ff6600;
  color: white;
  border: none;
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
}

/* Responsive para móviles */
@media (max-width: 600px) {
  .drawer {
    max-width: 100%;
    padding: 16px;
  }
}


/* Modal */
.modal-donde-mister {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}
.modal-contenido {
  background: #fff;
  padding: 20px;
  border-radius: 20px;
  max-width: 400px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cerrar-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
}
.modal-info img {
  width: 100%;
  border-radius: 10px;
}
.opciones label {
  display: inline-block;
  background: #f0f0f0;
  padding: 6px 12px;
  margin: 4px;
  border-radius: 20px;
  cursor: pointer;
  transition: 0.2s;
}
.opciones input[type="checkbox"],
.opciones input[type="radio"] {
  display: none;
}
.opciones label.seleccionado {
  background-color: #64bdb0;
  color: white;
}
textarea#instrucciones {
  width: 100%;
  padding: 10px;
  border: 2px solid #64bdb0;
  border-radius: 10px;
  resize: vertical;
}
.modal-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.cantidad-control {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cantidad-control button {
  background: #64bdb0;
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  font-size: 20px;
  border-radius: 50%;
  cursor: pointer;
}
#modalAgregarBtn {
  background: #ff6600;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: bold;
  width: 100%;
  cursor: pointer;
}

/* Fondo */
.productos-fondo {
  background-image: url('../assets/backgroundorange.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; 
  background-color: #000;
  padding: 40px 20px 40px;
  min-height: auto;
  margin: 0;
  position: relative;
  z-index: 0;
}

/* Quitamos background-attachment: fixed para que el fondo no se mantenga fijo */
.productos-fondo::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: -1;
}

.productos-fondo > * {
  position: relative;
  z-index: 2;
}


/* Moto animada */
.moto-delivery {
  font-size: 36px;
  color: #ff6600;
  animation: moto-move 1.5s infinite linear;
  position: relative;
}
@keyframes moto-move {
  0% { left: 0; transform: rotate(0deg); }
  50% { left: 5px; transform: rotate(2deg); }
  100% { left: 0; transform: rotate(0deg); }
}

/* Pedido.html específico */
.formulario-pedido {
  max-width: 500px;
  margin: 60px auto;
  padding: 30px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.formulario-pedido h2 {
  text-align: center;
}
.formulario-pedido input,
.formulario-pedido select {
  padding: 12px;
  font-size: 16px;
  border: 2px solid #64bdb0;
  border-radius: 10px;
}
.formulario-pedido button {
  padding: 12px;
  background-color: #ff6600;
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  .grid-productos {
    grid-template-columns: repeat(2, 1fr);
    padding: 10px;
  }
  .categorias-flotantes {
    width: 90%;
    gap: 8px;
  }
  .drawer {
    width: 80%;
  }
  .logo {
    width: 80px;
    height: 80px;
  }
  .header {
    padding: 60px 15px;
  }
}

@media (max-width: 480px) {
  .modal-contenido {
    width: 95%;
    padding: 16px;
  }
  .drawer {
    width: 100%;
  }
  .carrito-btn {
    width: 50px;
    height: 50px;
    font-size: 16px;
  }
  .producto h3,
  .producto p {
    font-size: 14px;
  }
}

@media (max-width: 375px) {
  .categorias-flotantes {
    width: 95%;
    padding: 6px;
    gap: 4px;
  }
}

/* Secciones verticales para la categoría "Todos" */
.categoria-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

/* Título de cada categoría en 'Todos' */
.categoria-titulo {
  font-size: 1.8rem;
  color: #ff8c00;
  text-shadow: 1px 1px 2px #00000070;
  border-bottom: 2px solid #ff8c00;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  text-align: center;     /* 👈 Centra el texto */
  margin-left: auto;      /* 👈 Centra el elemento si tiene ancho */
  margin-right: auto;
  width: fit-content;     /* 👈 Evita que ocupe todo el ancho */
}



/* Contenedor de productos por categoría en 'Todos' */
.categoria-productos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 24px;
  justify-items: center;
  margin-bottom: 2rem;
  padding: 20px 0;
  position: relative;
  z-index: 1;
}


#modalProducto {
  position: fixed;
  z-index: 3000; /* Encima de todo */
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  display: none; /* Se muestra con JS al hacer display: flex */
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
}

#modalProducto .contenido-modal {
  background: #ffffff;
  padding: 20px 30px;
  border-radius: 20px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 0 20px rgba(255, 102, 0, 0.4);
  font-family: 'Segoe UI', sans-serif;
  color: #000;
}

#modalProducto .contenido-modal h2 {
  margin-top: 0;
  font-size: 24px;
  color: #ff6600;
}

#modalProducto .contenido-modal p {
  margin: 10px 0;
  font-size: 16px;
}

#modalProducto .btn-cerrar {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 20px;
  font-weight: bold;
  color: #ff6600;
  background: transparent;
  border: none;
  cursor: pointer;
}

#modalProducto {
  z-index: 9999; /* forzar que esté arriba de todo */
}


.aviso-cierre {
position: fixed;
top: 0;
left: 50%;
transform: translateX(-50%);
width: fit-content;
max-width: 90%;
background: linear-gradient(90deg, #ff6600, #ff9900);
color: white;
padding: 10px 20px;
border-radius: 30px;
box-shadow: 0 0 10px rgba(0,0,0,0.3);
font-weight: 600;
font-size: 16px;
z-index: 6000;
display: none;
animation: slideInDown 0.6s ease-out, glow 1.5s ease-in-out infinite alternate;
}

/* Animación de entrada */
@keyframes slideInDown {
from {
transform: translate(-50%, -100%);
opacity: 0;
}
to {
transform: translate(-50%, 0);
opacity: 1;
}
}

/* Animación suave de brillo */
@keyframes glow {
from {
box-shadow: 0 0 5px rgba(255, 102, 0, 0.3);
}
to {
box-shadow: 0 0 15px rgba(255, 102, 0, 0.6);
}
}

@media (max-width: 600px) {
.aviso-cierre {
font-size: 14px;
padding: 8px 16px;
border-radius: 24px;
max-width: 90vw;
text-align: center;
}
}

/* Animación de rebote para el botón del carrito */
@keyframes carritoBounce {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.2); }
  50%  { transform: scale(0.95); }
  70%  { transform: scale(1.05); }
  100% { transform: scale(1); }
}


.carrito-btn.animado {
  animation: carritoBounce 0.4s ease;
}

/* Loader estilo */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

#loader {
  position: fixed;
  inset: 0;
  background: url("assets/fondoorange.png") no-repeat center center; 
  background-size: cover;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s;
  overflow: hidden;
}

#ingredientes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.logo-spinner {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  animation: girarLogo 3s linear infinite;
  z-index: 2;
  border: #da6c23;
}

@keyframes girarLogo {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.texto-carga {
  color: white;
  font-size: 1.5rem;
  margin-top: 20px;
  z-index: 2;
}

.ingrediente {
  position: absolute;
  top: -50px;
  font-size: 24px;
  animation: caer 5s linear forwards;
  opacity: 0.8;
  z-index: 1;
}

@keyframes caer {
  0% {
    transform: translateY(-50px) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: translateY(110vh) rotate(360deg);
    opacity: 0;
  }
}



@keyframes girar {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.texto-carga {
  margin-top: 16px;
  font-size: 20px;
  font-weight: bold;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  border-right: 3px solid white;
}

/* Estilos combinados y finalizados de OrangeCream incluyendo el modal */

/* ... (todo tu código original intacto) ... */

/* Al final del archivo añade este bloque para responsive en el modal */
@media (max-width: 480px) {
  .modal-contenido {
    width: 95%;
    padding: 16px 12px;
    border-radius: 16px;
    gap: 16px;
  }
  .cerrar-modal {
    top: 10px;
    right: 10px;
    font-size: 22px;
  }
  .modal-info img {
    max-height: 180px;
    object-fit: cover;
  }
  .opciones label {
    font-size: 14px;
    padding: 6px 10px;
  }
  textarea#instrucciones {
    font-size: 14px;
  }
  .cantidad-control {
    gap: 10px;
  }
  .cantidad-control button {
    width: 28px;
    height: 28px;
    font-size: 18px;
  }
  #modalAgregarBtn {
    padding: 10px;
    font-size: 15px;
  }
}

.volver-btn {
  display: inline-block;
  background-color: #ff6600;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin-top: 30px;
}

.volver-btn:hover {
  background-color: #e65c00;
  transform: translateY(-2px);
}

.volver-btn:active {
  transform: scale(0.97);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.resumen-titulo {
  font-size: 22px;
  font-weight: bold;
  margin-top: 30px;
  color: #ff6600;
  text-align: center;
}

.resumen-lista {
  list-style: none;
  padding: 0;
  margin: 20px auto;
  max-width: 500px;
  background: #fff4ea;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
  font-size: 16px;
}

.resumen-lista li {
  padding: 12px 16px;
  border-bottom: 1px solid #ffe0c2;
}

.resumen-lista li:last-child {
  border-bottom: none;
}

.resumen-total {
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-top: 10px;
  background: #fff0d9;
  padding: 10px;
  border-radius: 8px;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

/* Asegura que el fondo esté en el fondo */


/* Asegura que la grilla esté por encima */


/* Oculta productos no activos */
.producto.oculto {
  display: none !important;
}

.descripcion-producto {
  font-size: 14px;
  color: #444;
  margin: 8px 0;
}

.select-sabor-helado {
  width: 100%;
  margin-top: 6px;
  padding: 6px 10px;
  font-size: 14px;
  border: 2px solid #ffa500; /* Naranja suave */
  border-radius: 8px;
  background-color: #1f1f1f; /* Fondo oscuro */
  color: white;
  appearance: none;
  position: relative;
  transition: border-color 0.3s ease;
}

.select-sabor-helado:focus {
  outline: none;
  border-color: #ff7f00;
  box-shadow: 0 0 4px rgba(255, 165, 0, 0.5);
}

.select-sabor-helado option {
  background-color: #262626;
  color: white;
}

.item-carrito {
  position: relative;
  padding: 12px;
  padding-right: 48px;
  border-bottom: 1px solid #ddd;
  background: rgb(2, 2, 2);
  border-radius: 12px;
  margin-bottom: 8px;
}

.eliminar-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background-color: #ff6600;
  color: white;
  border: none;
  font-size: 14px;
  padding: 4px 10px;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}

.eliminar-btn:hover {
  background-color: #e05500;
}

/* Carrusel principal */
/* Carrusel general */
.carrusel-loop {
  width: 100%;
  max-width: 800px;
  height: 220px;
  overflow: hidden;
  border-radius: 20px;
  margin: 20px auto;
  position: relative;
  background: transparent;
  z-index: 5;
}

.carrusel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carrusel-track img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 20px;
}

@media (max-width: 768px) {
  .carrusel-loop {
    height: 140px;
    max-width: 90%;
  }

  .carrusel-track img {
    height: 140px;
  }
}

footer {
  background: linear-gradient(135deg, #ff6600, #ff9933);
  color: white;
  padding: 60px 30px 60px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  font-family: 'Arial', sans-serif;
  z-index: 1000;
  position: relative;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.2);
  border-top: 5px solid #ffcc80;
}

footer .columna {
  flex: 1 1 250px;
  margin-top: auto;
  min-width: 220px;
  z-index: 10000;
}

footer h4 {
  margin-bottom: 20px;
  font-size: 1.4rem;
  color: #ffe0b2;
  border-bottom: 2px solid #ffcc80;
  padding-bottom: 8px;
}

footer ul {
  list-style: none;
  padding: 0;
}

footer ul li {
  margin-bottom: 12px;
}

footer ul li a {
  color: white;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

footer ul li a:hover {
  color: #ffcc80;
}

footer .social-icons {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

footer .social-icons i {
  font-size: 24px;
  color: white;
  transition: transform 0.3s, color 0.3s;
}

footer .social-icons i:hover {
  color: #ffe0b2;
  transform: scale(1.3);
}

footer .logo-footer {
  width: 80px;
  height: auto;
  margin-bottom: 20px;
}

footer .copyright {
  width: 100%;
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  font-size: 0.9rem;
  color: #f5f5f5;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Estilo general para opciones tipo píldora */
.opciones {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.checkbox-opcion {
  display: flex;
  align-items: center;
  background: #f0f0f0;
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
}

.checkbox-opcion input {
  margin-right: 6px;
}

.checkbox-opcion:hover {
  background: #e0e0e0;
}

/* 🌟 Contenedor compacto de cada adición */
.adicion-cantidad-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  margin: 4px 0;
  border-radius: 16px;
  background: #fcfcfc;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: background 0.2s;
  flex-wrap: wrap;
}

.adicion-cantidad-item:hover {
  background: #f4f4f4;
}

/* ✅ Etiqueta con checkbox */
.adicion-cantidad-item .checkbox-opcion {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  white-space: nowrap;
}

/* ➕➖ Botones de cantidad compactos */
.controles-adicion {
  display: flex;
  align-items: center;
  gap: 8px;
}

.controles-adicion button {
  background: linear-gradient(145deg, #ffa500, #ff7300);
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  font-size: 16px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  transition: transform 0.15s;
}

.controles-adicion button:hover {
  transform: scale(1.08);
}

/* Cantidad */
.controles-adicion span {
  font-size: 15px;
  font-weight: bold;
  min-width: 20px;
  text-align: center;
  color: #222;
}

/* 🍨 Select de sabor */
.select-sabor-helado {
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background-color: white;
  font-size: 13px;
  font-weight: 500;
  color: #333;
}

/* Estilo de los sabores en forma de píldora */
.checkbox-sabor {
  display: inline-block;
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 6px 12px;
  margin: 4px 6px;
  font-weight: 500;
  font-size: 14px;
  color: #333;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.07);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.checkbox-sabor:hover {
  background-color: #f0f0f0;
}

.checkbox-sabor input {
  margin-right: 6px;
}

/* Estado visual cuando está seleccionado */
.checkbox-sabor.seleccionado {
  background-color: #ffe8cc;
  box-shadow: 0 2px 8px rgba(255, 140, 0, 0.25);
}

/* Contenedor de todas las adiciones */
#contenedor-adiciones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
}

/* Cada adición como tarjeta ordenada */
.adicion-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fafafa;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  transition: all 0.2s ease;
}

/* Estado seleccionado */
.adicion-item.adicion-seleccionada {
  border-color: #ff9800;
  background: #fff3e0;
  box-shadow: 0 0 8px rgba(255, 152, 0, 0.4);
}

/* Nombre y precio */
.adicion-left {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-weight: bold;
}

.precio-adicion {
  font-size: 0.85em;
  color: #777;
  font-weight: normal;
}

/* Controles centrados */
.adicion-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Botones + y - */
.btn-incrementar-adicion,
.btn-decrementar-adicion {
  width: 28px;
  height: 28px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  line-height: 26px;
  border: 1px solid #ccc;
  border-radius: 50%;
  background: #fff;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-incrementar-adicion:hover,
.btn-decrementar-adicion:hover {
  background: #ff9800;
  color: white;
  border-color: #ff9800;
}

/* Cantidad */
.cantidad-adicion {
  min-width: 20px;
  text-align: center;
  font-weight: bold;
  font-size: 15px;
}

/* Select sabor helado */
.select-sabor-adicion {
  margin-top: 6px;
  padding: 4px 6px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  width: 100%;
}

/* Móvil: una sola columna */
@media (max-width: 480px) {
  #contenedor-adiciones {
    grid-template-columns: 1fr;
  }
}

/* Ajusta estos selectores según el id/clase real de tu botón */
#precioFinalBtn,
.precio-final-btn,
.button-agregar,
.boton-agregar {
  position: relative;      /* que pueda recibir z-index */
  z-index: 9999 !important;/* lo ponemos arriba de todo */
  pointer-events: auto !important; /* asegurar que reciba clicks */
}


.promo-miercoles-msg {
  background: linear-gradient(135deg, #ff9a3c, #ffcc70);
  color: #fff;
  font-weight: bold;
  padding: 10px;
  margin-top: 8px;
  border-radius: 8px;
  text-align: center;
  font-size: 14px;
  animation: aparecerPromo 0.6s ease-out;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

@keyframes aparecerPromo {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

#avisos-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-top: 8px;
  z-index: 6000;
  position: relative;
}

.aviso-cierre {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: #ff7b00;
  color: white;
  font-weight: 600;
  font-size: 14px;
  padding: 6px 18px;
  border-radius: 20px;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  white-space: nowrap;
}



@media (max-width: 600px) {
  .aviso-cierre {
    font-size: 14px;
    padding: 8px 10px;
    white-space: normal; /* en móviles que sí pueda saltar de línea */
    max-width: 90%;
  }
}

.promo-banner {
  display: inline-block;
  margin: 10px auto;
  background: #ffd966;
  color: #000;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 14px;
  text-align: center;
  z-index: 1000;
  position: relative;
}

@media (max-width: 600px) {
  .aviso-cierre, .promo-banner {
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 16px;
  }
}


#modal-donde-mister {
  z-index: 9999 !important; /* siempre por encima */
}

.promo-texto {
  display: inline-block;
  background: linear-gradient(90deg, #ffecd2, #fcb69f);
  color: #d9534f;
  font-weight: bold;
  font-size: 0.9rem;
  padding: 4px 8px;
  border-radius: 8px;
  margin-top: 4px;
  animation: parpadeo 1.5s infinite;
}

.promo-texto::before {
  content: "🎉 ";
}

@keyframes parpadeo {
  0%   { opacity: 1; }
  50%  { opacity: 0.7; }
  100% { opacity: 1; }
}

#promociones-dia {
  display: none;
}


/* ...todo tu CSS actual... */

/* 🚀 Estilo mejorado para la X de cierre */
.cerrar-modal,
#modalProducto .btn-cerrar {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #ff7b00, #ff4d00);
  border-radius: 50%;
  border: none;
  color: white;
  font-size: 20px;
  font-weight: bold;
  line-height: 34px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: transform 0.2s ease, background 0.3s ease, box-shadow 0.2s ease;
  z-index: 10;
}

.cerrar-modal:hover,
#modalProducto .btn-cerrar:hover {
  background: linear-gradient(135deg, #ff944d, #ff6600);
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.cerrar-modal:active,
#modalProducto .btn-cerrar:active {
  transform: scale(0.95);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

/* 🎨 Modal estilizado y responsive */
.modal-contenido {
  background: #fff;
  padding: 24px;
  border-radius: 18px;
  max-width: 420px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px; /* separación entre elementos */
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  animation: modalAparecer 0.3s ease-out;
}

/* Animación suave de entrada */
@keyframes modalAparecer {
  from {
    transform: translateY(-15px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Imagen del producto */
.modal-info img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Opciones tipo píldora */
.opciones label {
  display: inline-block;
  background: #f9f9f9;
  padding: 8px 14px;
  margin: 4px;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border: 1px solid #ddd;
}
.opciones label:hover {
  background-color: #ffefd9;
}

/* 🌟 Separación extra para instrucciones */
textarea#instrucciones {
  width: 100%;
  padding: 10px;
  border: 2px solid #64bdb0;
  border-radius: 10px;
  resize: vertical;
  min-height: 70px;
  margin-top: 12px; /* <-- separación extra */
}

/* Footer del modal */
.modal-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

/* Botón agregar al carrito */
#modalAgregarBtn {
  background: linear-gradient(135deg, #ff7b00, #ff4d00);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: bold;
  width: 100%;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, background 0.3s ease;
}
#modalAgregarBtn:hover {
  transform: scale(1.03);
  background: linear-gradient(135deg, #ff944d, #ff6600);
}

/* 📱 Responsive en móviles */
@media (max-width: 480px) {
  .modal-contenido {
    padding: 18px;
    border-radius: 14px;
    gap: 14px;
  }
  .opciones label {
    font-size: 14px;
    padding: 6px 10px;
  }
textarea#instrucciones {
  width: 90%;              /* un poco más estrecha */
  max-width: 350px;        /* límite máximo */
  margin: 0 auto;          /* centrado horizontal */
  display: block;
  padding: 10px;
  font-size: 15px;
  border: 2px solid #ff6600;
  border-radius: 10px;
  resize: vertical;
} 
}

/* 🍨 Opciones de sabores y No agregar */
.opciones {
  display: flex;
  flex-wrap: wrap; /* permite que salten de línea si no caben */
  gap: 10px;
  justify-content: center; /* centrado horizontal */
}

.opciones label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  padding: 8px 14px;
  border-radius: 20px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  text-align: center;
}

.opciones label:hover {
  background-color: #ffefe0;
}

.opciones input[type="checkbox"],
.opciones input[type="radio"] {
  display: none;
}

/* Estado seleccionado */
.opciones label.seleccionado {
  background-color: #ff8c00;
  border-color: #ff8c00;
  color: white;
  box-shadow: 0 3px 8px rgba(255, 140, 0, 0.4);
}

/* 🛑 Estilo especial para "No agregar" */
.opciones label.no-agregar {
  background-color: #f0f0f0;
  color: #555;
  border: 1px solid #ccc;
}

.opciones label.no-agregar.seleccionado {
  background-color: #ffcccc;
  border-color: #ff4d4d;
  color: #a30000;
}

/* 📱 En móviles mantiene el estilo horizontal */
@media (max-width: 480px) {
  .opciones {
    justify-content: center;
  }
  .opciones label {
    min-width: auto;
    padding: 8px 12px;
    font-size: 13px;
  }
}

/* 💰 Precio dentro del modal */
#modalPrecio {
  font-size: 20px;
  font-weight: bold;
  color: #000000; /* Naranja corporativo */
  margin: 6px 0;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

/* 📝 Descripción dentro del modal */
.descripcion-producto {
  font-size: 14px;
  line-height: 1.5;
  color: #555; /* Gris suave */
  margin-top: 6px;
  text-align: justify;
}

/* 📏 Imagen del modal igual que la de los productos */
#modalImagen {
  width: 100%;
  height: 200px; /* Igual que en .producto img */
  object-fit: cover;
  border-radius: 16px;
  padding: 8px;
  background-color: #fff;
  box-sizing: border-box;
}

/* 📱 Ajuste para móvil */
@media (max-width: 480px) {
  #modalImagen {
    height: 200px; /* Mantiene altura fija como el producto */
  }
}


/* 🎯 Zoom suave al pasar el mouse */
.producto img,
#modalImagen {
  transition: transform 0.4s ease, box-shadow 0.3s ease;
}

.producto img:hover,
#modalImagen:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

/* ✨ Animación de entrada en el modal */
#modalImagen {
  animation: zoomInModal 0.4s ease;
}

@keyframes zoomInModal {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fadeSlideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-contenido {
  animation: fadeSlideUp 0.3s ease;
}

@keyframes zoomInSoft {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-contenido {
  animation: zoomInSoft 0.25s ease-out;
}

/* ✨ Animación suave de aparición de productos */
.producto {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.producto.mostrar {
  opacity: 1;
  transform: translateY(0);
}

/* Botón flotante Mis Pedidos - pegado al borde derecho */
.pedidos-btn {
  position: fixed;
  top: 20px; /* pegado arriba */
  right: 10px; /* pegado al borde derecho */
  background: #ff914d;
  color: white;
  padding: 10px 16px;
  border: none;
  border-radius: 50px;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 1001; /* por encima del contenido pero debajo del drawer cuando se abra */
}

.pedidos-btn:hover {
  background: #e67e22;
}

.pedidos-contenido i {
  font-size: 16px;
}

/* Drawer Mis Pedidos */
#pedidosDrawer {
  position: fixed;
  top: 0; /* empieza desde arriba */
  right: -350px; /* oculto */
  width: 300px;
  height: 100vh; /* ocupa toda la pantalla */
  background: white;
  box-shadow: -2px 0 10px rgba(0,0,0,0.3);
  transition: right 0.3s ease;
  z-index: 1002; /* por encima del botón */
  display: flex;
  flex-direction: column;
}

#pedidosDrawer.open {
  right: 0;
}

#pedidosDrawer .drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: #ff914d;
  color: white;
}

#listaMisPedidos {
  list-style: none;
  padding: 12px;
  margin: 0;
  flex: 1;
  overflow-y: auto;
}

.pedido-item {
  padding: 8px;
  border-bottom: 1px solid #eee;
}

.pedido-item a {
  color: #b6401b;
  text-decoration: none;
  font-weight: bold;
}

.pedido-item a:hover {
  text-decoration: underline;
}

/* 🔹 Badge AGOTADO para productos sin stock */
.badge-agotado {
  position: absolute;
  top: 8px;
  left: 8px;
  background: red;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.9; }
  100% { transform: scale(1); opacity: 1; }
}

/* 🔹 Botón de instalar en el header */
.instalar-header-btn {
  margin: 10px auto; /* centrado en medio */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ff6600;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

/* Efecto hover */
.instalar-header-btn:hover {
  background: #e65500;
  transform: scale(1.05);
}

/* Ícono dentro del botón */
.instalar-header-btn i {
  font-size: 16px;
}


/* Para pruebas, siempre visible */
#botonInstalar {
  display: flex !important; 
}

.carrusel-loop {
  position: relative;
  width: 100%;
  max-width: 900px; /* ajusta al ancho que quieras */
  margin: 20px auto;
  overflow: hidden;
  border-radius: 15px;
}

.carrusel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carrusel-track img {
  width: 100%;
  flex-shrink: 0;
  border-radius: 15px;
}

/* Botones */
.carrusel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: white;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  z-index: 1000;
}

.carrusel-btn.prev {
  left: 10px;
}

.carrusel-btn.next {
  right: 10px;
}

/* Contenedor de productos */
#listaProductos,
.grupo-productos {
  display: grid;
  grid-template-columns: repeat(1, 1fr); /* 📱 Móvil: 1 columna */
  gap: 20px;
  margin-top: 20px;
  justify-items: center; /* Centra las tarjetas */
}

/* ===== Modal Mister ===== */
#modalMister {
  display: none; /* visible solo cuando se abre */
  position: fixed;
  inset: 0; /* top:0, right:0, bottom:0, left:0 */
  background: rgba(0, 0, 0, 0.6); /* fondo oscuro */
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 1rem;
}

#modalMister .modal-contenido {
  background: #fff;
  border-radius: 16px;
  max-width: 450px;
  width: 100%;
  max-height: 95vh;
  overflow-y: auto;
  padding: 1.5rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  animation: fadeInUp 0.3s ease-out;
}

/* Título */
#modalMister h2 {
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: #333;
}

/* Imagen del producto */
#modalMister img {
  width: 100%;
  max-height: 240px;
  object-fit: cover; /* o 'contain' si prefieres sin recorte */
  border-radius: 12px;
  display: block;
  margin: 0 auto 1rem auto;
}

/* Descripción */
#modalDescripcion {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.4;
  text-align: center;
  margin-bottom: 1rem;
}

/* Sección de sabores / adiciones */
#opcionesSabores,
#opcionesAdiciones,
#opcionesNoEchar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  justify-content: center;
}

.checkbox-sabor,
.checkbox-adicion,
.checkbox-noechar {
  background: #f8f8f8;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.checkbox-sabor input,
.checkbox-adicion input,
.checkbox-noechar input {
  margin-right: 0.3rem;
}

.seleccionado {
  background: #ffecb3;
  border-color: #fbc02d;
}

/* Cantidad + botones */
.cantidad-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cantidad-container button {
  background: #fbc02d;
  border: none;
  padding: 0.5rem 0.9rem;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.cantidad-container button:hover {
  background: #f9a825;
}

/* Botón final */
#precioFinalBtn {
  display: block;
  width: 100%;
  background: #f57c00;
  color: #fff;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.8rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease;
}

#precioFinalBtn:hover {
  background: #ef6c00;
}

/* Animación de entrada */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Estado base (sin seleccionar) */
.opciones label {
  display: inline-block;
  padding: 8px 20px;
  margin: 5px;
  border-radius: 999px; /* Botón píldora */
  background-color: #fff; /* Blanco */
  color: #333; /* Texto oscuro */
  font-weight: 500;
  border: 2px solid #ccc; /* Borde gris */
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

/* Hover para dar feedback */
.opciones label:hover {
  border-color: #ff9800; /* Naranja */
  transform: scale(1.05);
}

/* Estado seleccionado */
.opciones label.seleccionado {
  background-color: #ff9800; /* Fondo naranja */
  color: #fff; /* Texto blanco */
  border-color: #ff9800; /* Borde naranja */
  box-shadow: 0 0 8px rgba(255, 152, 0, 0.4);
  transform: scale(1.1);
}

.soporte-btn {
  position: fixed;
  bottom: 20px;   /* distancia desde abajo */
  left: 20px;     /* ahora pegado a la izquierda */
  background-color: #25D366; /* verde WhatsApp */
  color: white;
  border: none;
  border-radius: 50px;
  padding: 12px 18px;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 1000;
  transition: transform 0.2s;
}

.soporte-btn:hover {
  transform: scale(1.05);
  background-color: #20b358;
}

.soporte-btn i {
  font-size: 20px;
}

.radio-opcion {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.radio-opcion input[type="radio"] {
  accent-color: #ff6600; /* color del radio */
}

.img-producto {
  width: 120px;
  height: 120px;
  object-fit: cover;   /* recorta la imagen para que no se deforme */
  border-radius: 8px;  /* esquinas redondeadas */
  margin-bottom: 8px;
}

/* Botón Recoger en punto de venta dentro del carrito */
#carritoDrawer .btn-recoger {
  display: block;
  width: 100%;              /* ✅ ocupa el mismo ancho que el botón naranja */
  text-align: center;
  margin-top: 10px;
  background-color: #77C2B7; /* verde corporativo */
  color: #fff !important;
  font-weight: bold;
  padding: 10px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 15px;
  transition: background 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;   /* ✅ evita que se desborde */
}

#carritoDrawer .btn-recoger:hover {
  background-color: #218838;
  transform: scale(1.02);
}

/* ✅ Responsive para pantallas pequeñas */
@media (max-width: 480px) {
  #carritoDrawer .btn-recoger {
    font-size: 14px;
    padding: 9px;
    border-radius: 5px;
  }
}
