.selector-parpadea {
  animation: parpadeoNaranja 1s infinite;
  border: 2px solid orange;
  box-shadow: 0 0 5px orange;
}
@keyframes parpadeoNaranja {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

.btn-finalizar.desactivado {
  pointer-events: none;
  opacity: 0.5;
  cursor: not-allowed;
}

.boton-agregar {
  background: #d1e78b;
  color: #2e7d32;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
}

.boton-reducir {
  background: radial-gradient(ellipse at center, rgba(241, 111, 92, 1) 0%, rgba(248, 80, 50, 1) 29%, rgba(246, 41, 12, 1) 51%, rgba(240, 47, 23, 1) 71%, rgba(231, 56, 39, 1) 100%);
  color: #c62828;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
}

.boton-eliminar {
  background: #cbcaca;
  color: #000;
  border: none;
  font-size: 14px;
  cursor: pointer;
  padding: 5px;
}

.resumen-carrito-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.resumen-carrito-contenido {
  background: #fff;
  padding: 5px;
  border-radius: 10px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  position: relative;
  max-height: 80vh;
  overflow-y: auto;
}

.resumen-carrito-contenido h3 {
  margin-top: 0;
}

.resumen-carrito-contenido ul {
  list-style: none;
  padding: 0;
}

.resumen-carrito-contenido li {
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.grupo-sucursal {
  background: #ebd9d5;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 5px;
  margin-bottom: 20px;
}

.grupo-sucursal h4 {
  margin: 0 0 10px;
  font-size: 16px;
  color: #333;
  border-bottom: 1px solid #8d8a8a;
  padding-bottom: 5px;
}

.btn-finalizar {
  display: block;
  margin-top: 20px;
  background: radial-gradient(ellipse at center, rgba(241, 111, 92, 1) 0%, rgba(248, 80, 50, 1) 29%, rgba(246, 41, 12, 1) 51%, rgba(240, 47, 23, 1) 71%, rgba(231, 56, 39, 1) 100%);
  color: white;
  padding: 10px;
  text-align: center;
  border-radius: 6px;
  text-decoration: none;
}

.btn-cerrar-resumen {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

.carrito-flotante {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  cursor: move;
  animation: deslizar 1.5s infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  touch-action: none;
  transition: transform 0.2s ease;
}

.carrito-flotante img {
  width: 60px;
  pointer-events: none;
}

.carrito-contador {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #e53935;
  color: white;
  font-size: 14px;
  font-weight: bold;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 3px rgba(0,0,0,0.3);
  z-index: 1001;
  transition: transform 0.2s ease;
}

.carrito-contador.pulse {
  animation: pulse 0.3s ease;
}

@keyframes pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.3); }
  100% { transform: scale(1); }
}

@keyframes deslizar {
  0%   { transform: translateX(0); }
  50%  { transform: translateX(10px); }
  100% { transform: translateX(0); }
}

.selector-parpadea {
  animation: parpadeo 1s infinite;
  outline: 2px solid #f00;
}

@keyframes parpadeo {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

    .btn-pasar-opciones-animado {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(90deg, #d32f2f 0%, #b71c1c 100%);
  color: #fff;
  font-weight: bold;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 8px rgba(0,0,0,0.2);
  transition: transform 0.2s ease;
}

.btn-pasar-opciones-animado:hover {
  transform: scale(1.05);
}

.btn-pasar-opciones-animado::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.3), rgba(255,255,255,0));
  animation: brilloDeslizante 2.5s infinite;
}

@keyframes brilloDeslizante {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}