/* ============================================================
   tienda.css - Estilos tienda (cards, carrito, personalización)
   El Bocadón · Hamburguesería
   VERSIÓN CON CARRITO MEJORADO (FONDO DORADO, TIPOGRAFÍA NEGRA, ALINEACIÓN)
   ============================================================ */

/* ============================================================
   MODAL DE ÉXITO
   ============================================================ */
   .carrito-total span{font-weight:bold!important; font-size:1.2rem;}
   .carrito-total div span {font-weight:bold!important;; font-size:1.2rem;}
.exito-content {
  text-align: center;
}
.exito-icono {
  font-size: 4rem;
  color: #27ae60;
  margin-bottom: 0.5rem;
}
.exito-content h2 {
  font-family: 'Bangers', cursive;
  font-size: 2rem;
  color: var(--color-marca);
  margin-bottom: 0.5rem;
}
.exito-numero {
  font-size: 1.2rem;
  color: #555;
}
.exito-numero strong {
  color: var(--color-marca);
  font-size: 1.6rem;
}
.exito-mensaje {
  color: #666;
  margin: 0.8rem 0;
}
.exito-tiempo {
  font-weight: 600;
  color: var(--color-marca-oscuro);
  background: #fef9f0;
  padding: 0.4rem 1.2rem;
  border-radius: 40px;
  display: inline-block;
  margin: 0.5rem 0 1.5rem;
}
.exito-botones {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.exito-botones .btn-primary,
.exito-botones .btn-secondary {
  padding: 0.8rem 2rem;
  border-radius: 60px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s;
  min-width: 150px;
}
.exito-botones .btn-primary {
  background: var(--color-marca);
  color: #fff;
}
.exito-botones .btn-primary:hover {
  background: var(--color-marca-oscuro);
}
.exito-botones .btn-secondary {
  background: #f0e6d8;
  color: #3e2a21;
}
.exito-botones .btn-secondary:hover {
  background: #e0d5c0;
}

@media (max-width: 480px) {
  .exito-botones {
    flex-direction: column;
    align-items: center;
  }
  .exito-botones .btn-primary,
  .exito-botones .btn-secondary {
    width: 100%;
    min-width: auto;
  }
}

/* ---------- CONTENEDOR ---------- */
.tienda-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  padding-bottom: 8rem;
}

.tienda-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.tienda-header h1 {
  font-size: 2.8rem;
  color: var(--color-texto);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.tienda-header h1 i {
  color: var(--color-marca);
}
.tienda-header p {
  font-size: 1.2rem;
  color: var(--color-marca-claro);
  margin-top: 0.5rem;
}

/* ============================================================
   CATEGORÍAS (BOTONES REDONDEADOS - ESTILO ORIGINAL)
   ============================================================ */
.categorias-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.cat-btn {
  padding: 1rem 1.8rem;
  border: 2px solid var(--color-borde);
  background: var(--color-blanco);
  border-radius: 50px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-texto);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  min-width: 120px;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.cat-btn i {
  font-size: 1.3rem;
}

.cat-btn.active {
  background: var(--color-marca);
  color: var(--color-texto-claro);
  border-color: var(--color-marca);
  box-shadow: 0 4px 14px rgba(139, 90, 43, 0.3);
}

.cat-btn:hover:not(.active) {
  background: var(--color-fondo);
  border-color: var(--color-marca-claro);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px var(--color-sombra);
}

/* ---------- PRODUCTOS ---------- */
.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.8rem;
}

.producto-card {
  background: var(--color-blanco);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 4px 16px var(--color-sombra);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.6s ease forwards;
  opacity: 0;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.producto-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px var(--color-sombra);
}

.producto-card .card-header {
  padding-top: 200px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  transition: 0.3s;
  cursor: pointer;
}

.producto-card .producto-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--color-boton);
  color: var(--color-texto-claro);
  padding: 0.2rem 0.8rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  z-index: 2;
}

.producto-card .card-body {
  padding: 1.2rem 1.2rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.producto-card h3 {
  font-size: 1.3rem;
  color: var(--color-texto);
  margin-bottom: 0.3rem;
}

.producto-card .producto-desc {
  color: var(--color-marca-claro);
  font-size: 0.9rem;
  flex-grow: 1;
  margin-bottom: 0.8rem;
}

.producto-card .producto-precio {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-marca);
  margin-bottom: 0.8rem;
}

.producto-card .card-footer {
  display: flex;
  gap: 0.5rem;
  padding: 0 1.2rem 1.2rem;
}

.btn-personalizar {
  background: var(--color-fondo);
  color: var(--color-texto);
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.9rem;
}

.btn-personalizar:hover {
  background: var(--color-borde);
}

.btn-comprar {
  background: var(--color-boton);
  color: var(--color-texto-claro);
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 30px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.9rem;
}

.btn-comprar:hover {
  background: var(--color-marca-oscuro);
}

/* ---------- CARRITO FLOTANTE (MEJORADO) ---------- */
.carrito-flotante {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
}

.carrito-toggle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--color-marca);
  color: var(--color-texto-claro);
  border: none;
  font-size: 2rem;
  cursor: pointer;
  box-shadow: 0 6px 25px var(--color-sombra);
  transition: 0.3s;
  position: relative;
}

.carrito-toggle:hover {
  transform: scale(1.08);
}

.carrito-contador {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #c0392b;
  color: white;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carrito-panel {
  position: fixed;
  bottom: 90px;
  right: 2rem;
  width: 420px;
  max-width: calc(100vw - 2rem);
  max-height: 75vh;
  background: var(--color-blanco);
  border-radius: 28px;
  box-shadow: 0 20px 60px var(--color-sombra);
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--color-borde);
}

.carrito-panel.open {
  display: flex;
}

/* ----- CABECERA CON FONDO DORADO ----- */
.carrito-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem;
  border-bottom: none;
  background: #d4af37; /* color dorado */
  color: #000; /* texto en negro */
}

.carrito-header h3 {
  font-size: 1.3rem;
  color: #000; /* negro */
  font-weight: 700;
  margin: 0;
}

.carrito-header h3 i {
  color: #000;
}

.carrito-cerrar {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #000; /* negro */
  transition: 0.2s;
}

.carrito-cerrar:hover {
  color: #000;
  transform: rotate(90deg);
}

/* ----- CUERPO DEL CARRITO ----- */
.carrito-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
  max-height: 320px;
}

.carrito-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--color-borde);
}

.carrito-item .item-info {
  flex: 1;
}

.carrito-item .item-nombre {
  font-weight: 600;
  color: var(--color-texto);
  font-size: 0.95rem;
}

.carrito-item .item-detalle {
  font-size: 0.8rem;
  color: var(--color-marca-claro);
}

.carrito-item .item-precio {
  font-weight: 700;
  color: var(--color-marca);
  margin-right: 0.8rem;
}

.carrito-item .btn-eliminar {
  background: none;
  border: none;
  color: #ccc;
  cursor: pointer;
  transition: 0.2s;
}

.carrito-item .btn-eliminar:hover {
  color: #c0392b;
}

/* ----- PIE DEL CARRITO CON FONDO DORADO ----- */
.carrito-footer {
  padding: 0.8rem;
  border-top: none;
  background: #d4af37; /* dorado */
  border-radius: 0 0 28px 28px;
}

.carrito-total {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.95rem; /* tamaño más pequeño */
  font-weight: 500; /* menos grueso */
  color: #000; /* negro */
  margin-bottom: 0.8rem;
}

/* Cada línea de total */
.carrito-total .linea-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.1rem 0;
}

.carrito-total .linea-total .etiqueta {
  font-weight: 500;
  color: #000;
  min-width: 100px; /* alinear los dos puntos */
  text-align: left;
}

.carrito-total .linea-total .valor {
  font-weight: 500;
  color: #000;
  text-align: right;
}

/* Línea del total final con mayor énfasis */
.carrito-total .linea-total.total-final {
  border-top: 2px solid #000;
  padding-top: 0.4rem;
  margin-top: 0.2rem;
  font-weight: 700;
  font-size: 1.05rem;
}

.carrito-total .linea-total.total-final .etiqueta,
.carrito-total .linea-total.total-final .valor {
  font-weight: 700;
}

/* Botón de pedir */
.btn-pedir {
  width: 100%;
  padding: 0.9rem;
  background: #000; /* negro para contrastar */
  color: #fff;
  border: none;
  border-radius: 60px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-pedir:hover {
  background: #333;
  transform: scale(1.02);
}

.btn-pedir:active {
  transform: scale(0.97);
}

/* ---------- MODAL PERSONALIZAR ---------- */
#modalPersonalizar .modal-content {
  max-height: 90vh;
  overflow-y: auto;
}

.ingredientes-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.ingrediente-btn {
  padding: 0.4rem 1.2rem;
  border: 2px solid var(--color-borde);
  background: var(--color-blanco);
  border-radius: 20px;
  cursor: pointer;
  transition: 0.2s;
  font-size: 0.9rem;
  color: var(--color-texto);
}

.ingrediente-btn:hover {
  border-color: var(--color-marca);
}

.ingrediente-btn.eliminado {
  background: var(--color-borde);
  border-color: #ccc;
  color: #999;
  text-decoration: line-through;
}

.salsas-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.salsa-btn {
  padding: 0.4rem 1.2rem;
  border: 2px solid var(--color-borde);
  background: var(--color-blanco);
  border-radius: 20px;
  cursor: pointer;
  transition: 0.2s;
  font-size: 0.9rem;
  color: var(--color-texto);
}

.salsa-btn:hover {
  border-color: var(--color-marca);
}

.salsa-btn.seleccionada {
  background: var(--color-marca);
  color: var(--color-texto-claro);
  border-color: var(--color-marca);
}

.bebidas-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bebida-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0.8rem;
  background: var(--color-fondo);
  border-radius: 12px;
}

.bebida-control {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.bebida-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--color-borde);
  background: var(--color-blanco);
  cursor: pointer;
  font-weight: 700;
  transition: 0.2s;
  color: var(--color-texto);
}

.bebida-btn:hover {
  border-color: var(--color-marca);
  color: var(--color-marca);
}

.bebida-cantidad {
  font-weight: 600;
  min-width: 1.5rem;
  text-align: center;
  color: var(--color-texto);
}

/* ----- Sección de pago ----- */
.pago-section {
  margin: 1.5rem 0;
}
.pago-section h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-texto);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.opciones-pago {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.opcion-pago {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 0.5rem;
  background: var(--color-blanco);
  border: 2px solid var(--color-borde);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.opcion-pago:hover {
  border-color: var(--color-marca-claro);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}
.opcion-pago input[type="radio"] {
  display: none;
}
.opcion-pago .pago-icono {
  font-size: 2.2rem;
  color: var(--color-marca-claro);
  margin-bottom: 0.3rem;
  transition: color 0.25s;
}
.opcion-pago .pago-nombre {
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-texto);
}
.opcion-pago:has(input:checked) {
  border-color: var(--color-marca);
  background: var(--color-fondo);
  box-shadow: 0 4px 12px var(--color-sombra);
}
.opcion-pago:has(input:checked) .pago-icono {
  color: var(--color-marca);
}
.switch-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-fondo);
  padding: 0.8rem 1.2rem;
  border-radius: 60px;
  margin-bottom: 1rem;
  border: 1px solid var(--color-borde);
}
.switch-label {
  font-weight: 500;
  color: var(--color-texto);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.switch-label i {
  color: var(--color-marca);
}
.switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 30px;
  flex-shrink: 0;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ccc;
  transition: 0.3s;
  border-radius: 30px;
}
.slider:before {
  content: "";
  position: absolute;
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 4px;
  background: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.switch input:checked + .slider {
  background: var(--color-marca);
}
.switch input:checked + .slider:before {
  transform: translateX(22px);
}
.cambio-botones {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.btn-cambio {
  flex: 1;
  min-width: 70px;
  padding: 0.8rem 0.2rem;
  background: var(--color-blanco);
  border: 2px solid var(--color-borde);
  border-radius: 60px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-texto);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.btn-cambio:hover {
  border-color: var(--color-marca-claro);
  background: var(--color-fondo);
}
.btn-cambio.seleccionado {
  border-color: var(--color-marca);
  background: var(--color-marca);
  color: var(--color-texto-claro);
  box-shadow: 0 4px 12px var(--color-sombra);
}
.efectivo-justo-texto {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem;
  background: #e8f5e9;
  border-radius: 60px;
  color: #2e7d32;
  font-weight: 500;
  margin-top: 0.5rem;
  border: 1px solid #a5d6a7;
}
.efectivo-justo-texto i {
  font-size: 1.2rem;
}

/* ============================================================
   MODAL PRODUCTO DETALLE
   ============================================================ */
.producto-detalle-content {
  padding: 0 !important;
  overflow: hidden !important;
}

.producto-detalle-wrapper {
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: row;
}

.producto-detalle-imagen {
  flex: 1;
  height: 100vh;
  overflow: hidden;
  background: #f0e6d8;
}

.producto-detalle-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.producto-detalle-info {
  flex: 1;
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
  background: white;
}

.producto-detalle-info h2 {
  font-family: 'Bangers', cursive;
  font-size: 2.8rem;
  color: var(--color-marca);
  margin-bottom: 0.5rem;
}

.producto-detalle-desc {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.producto-detalle-ingredientes {
  font-size: 1rem;
  color: #333;
  margin-bottom: 1.5rem;
}

.producto-detalle-ingredientes strong {
  color: var(--color-marca);
}

.producto-detalle-precio {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-marca-oscuro);
  margin-bottom: 2rem;
}

.producto-detalle-acciones {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.producto-detalle-acciones .btn-personalizar,
.producto-detalle-acciones .btn-comprar {
  flex: 1;
  min-width: 140px;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 60px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.producto-detalle-acciones .btn-personalizar {
  background: var(--color-fondo);
  color: var(--color-texto);
}

.producto-detalle-acciones .btn-personalizar:hover {
  background: var(--color-borde);
}

.producto-detalle-acciones .btn-comprar {
  background: var(--color-boton);
  color: var(--color-texto-claro);
}

.producto-detalle-acciones .btn-comprar:hover {
  background: var(--color-marca-oscuro);
}

@media (max-width: 768px) {
  .producto-detalle-wrapper {
    flex-direction: column;
  }
  .producto-detalle-imagen {
    height: 40vh;
    flex: none;
  }
  .producto-detalle-info {
    padding: 1.5rem;
    height: 60vh;
  }
  .producto-detalle-info h2 {
    font-size: 2rem;
  }
  .producto-detalle-precio {
    font-size: 1.5rem;
  }
  .producto-detalle-acciones {
    flex-direction: column;
  }
  .producto-detalle-acciones .btn-personalizar,
  .producto-detalle-acciones .btn-comprar {
    min-width: auto;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .producto-detalle-imagen {
    height: 30vh;
  }
  .producto-detalle-info {
    padding: 1rem;
    height: 70vh;
  }
  .producto-detalle-info h2 {
    font-size: 1.6rem;
  }
  .producto-detalle-desc {
    font-size: 0.9rem;
  }
}

/* ============================================================
   CATEGORÍAS CON SCROLL HORIZONTAL (UNIFICADO Y CORREGIDO)
   ============================================================ */

/* Contenedor principal */
.categorias-tabs-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  width: 100%;
  overflow: visible;
  padding: 0 10px;
}

/* Contenedor scrollable */
.categorias-tabs-scroll {
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding: 0.2rem 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  scroll-padding: 0 30px;
}

/* Barra de scroll personalizada */
.categorias-tabs-scroll::-webkit-scrollbar {
  height: 4px;
}
.categorias-tabs-scroll::-webkit-scrollbar-track {
  background: #f5f0eb;
  border-radius: 10px;
}
.categorias-tabs-scroll::-webkit-scrollbar-thumb {
  background: #d4af37;
  border-radius: 10px;
}
.categorias-tabs-scroll::-webkit-scrollbar-thumb:hover {
  background: #b8942f;
}
.categorias-tabs-scroll {
  scrollbar-width: thin;
  scrollbar-color: #d4af37 #f5f0eb;
}

/* Los botones dentro del scroll mantienen su estilo redondeado */
.categorias-tabs-scroll .cat-btn {
  flex: 0 0 auto;
  white-space: nowrap;
  margin: 0;
  border-radius: 50px !important;
}

/* ===== FLECHAS DE NAVEGACIÓN ===== */
.cat-scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: rgba(255, 255, 255, 0.85) !important;
  border: none !important;
  border-radius: 50% !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  width: 34px;
  height: 34px;
  font-size: 1.6rem;
  color: #8B5A2B;
  cursor: pointer;
  padding: 0;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.categorias-tabs-wrapper.show-flechas .cat-scroll-btn {
  display: flex !important;
}

#catScrollLeft {
  left: 0;
  margin-left: 2px;
}
#catScrollRight {
  right: 0;
  margin-right: 2px;
}

.cat-scroll-btn:hover {
  background: rgba(255, 255, 255, 0.95) !important;
  color: #5C3A1A;
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
}
.cat-scroll-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.cat-scroll-btn.hidden {
  display: none !important;
}

/* ===== BOTÓN "MOSTRAR TODAS" ===== */
.btn-mostrar-todas-categorias {
  display: none;
  width: 100%;
  text-align: center;
  padding: 0.7rem 1.2rem;
  margin: 0.0rem 0px 1rem;
  background: #fef9f0;
  border: 2px dashed #d4af37;
  border-radius: 50px;
  color: #8B5A2B;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-mostrar-todas-categorias:hover {
  background: #fef3e2;
  border-color: #8B5A2B;
  color: #5C3A1A;
}
.btn-mostrar-todas-categorias i {
  margin-right: 8px;
}

.categorias-tabs-wrapper.show-boton .btn-mostrar-todas-categorias {
  display: block;
}

/* ===== ESTADO COLAPSADO ===== */
.categorias-tabs-wrapper:not(.expanded) .categorias-tabs-scroll {
  overflow-x: auto;
  white-space: nowrap;
  flex-wrap: nowrap;
}

/* ===== ESTADO EXPANDIDO ===== */
.categorias-tabs-wrapper.expanded .categorias-tabs-scroll {
  overflow-x: visible;
  overflow-y: visible;
  white-space: normal;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.categorias-tabs-wrapper.expanded .categorias-tabs-scroll .cat-btn {
  flex: 0 1 auto;
}

.categorias-tabs-wrapper.expanded .cat-scroll-btn {
  display: none !important;
}

.categorias-tabs-wrapper.expanded .btn-mostrar-todas-categorias::after {
  content: " (ocultar)";
  font-weight: 400;
  color: #888;
}

/* ============================================================
   RESPONSIVE - CATEGORÍAS TABS
   ============================================================ */
@media (max-width: 992px) {
  .cat-btn {
    padding: 1rem 1.6rem;
    font-size: 1.05rem;
    min-height: 52px;
    min-width: 110px;
  }
  .cat-btn i {
    font-size: 1.25rem;
  }
  .categorias-tabs-wrapper {
    padding: 0 8px;
  }
  .cat-scroll-btn {
    width: 36px;
    height: 36px;
    font-size: 1.6rem;
  }
}

@media (max-width: 768px) {
  .categorias-tabs-wrapper {
    padding: 0 6px;
  }
  .cat-scroll-btn {
    width: 38px;
    height: 38px;
    font-size: 1.8rem;
    background: rgba(255, 255, 255, 0.9) !important;
  }
  #catScrollLeft {
    left: 0;
    margin-left: 0;
  }
  #catScrollRight {
    right: 0;
    margin-right: 0;
  }
  .cat-btn {
    padding: 0.9rem 1.6rem;
    font-size: 1rem;
    min-height: 52px;
    min-width: 100px;
    gap: 8px;
  }
  .cat-btn i {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .categorias-tabs-wrapper {
    padding: 0 4px;
  }
  .cat-scroll-btn {
    width: 36px;
    height: 36px;
    font-size: 1.6rem;
    background: rgba(255, 255, 255, 0.92) !important;
  }
  .cat-btn {
    padding: 0.8rem 1.3rem;
    font-size: 0.95rem;
    min-height: 48px;
    min-width: 90px;
    border-radius: 30px;
    gap: 6px;
  }
  .cat-btn i {
    font-size: 1.1rem;
  }
}

@media (max-width: 380px) {
  .cat-scroll-btn {
    width: 34px;
    height: 34px;
    font-size: 1.5rem;
  }
  .cat-btn {
    padding: 0.7rem 1.1rem;
    font-size: 0.9rem;
    min-height: 44px;
    min-width: 80px;
    gap: 4px;
  }
  .cat-btn i {
    font-size: 1rem;
  }
}

@media (min-width: 700px) and (max-width: 900px) and (orientation: landscape) {
  .cat-btn {
    padding: 0.8rem 1.4rem;
    font-size: 0.95rem;
    min-height: 48px;
    min-width: 90px;
  }
  .cat-scroll-btn {
    width: 36px;
    height: 36px;
    font-size: 1.6rem;
  }
  .categorias-tabs-wrapper {
    padding: 0 6px;
  }
}

/* ============================================================
   SALSAS EXTRA - MISMO TAMAÑO Y ESPACIO QUE INGREDIENTES
   ============================================================ */

.salsas-extra-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.3rem;
}

.salsa-extra-btn {
    padding: 0.6rem 1.2rem;
    border: 2px solid #f0e6d8;
    background: #ffffff;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #3e2a21;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    flex: 0 1 auto;
    min-width: 70px;
    text-align: center;
}

.salsa-extra-btn:hover {
    border-color: #d4af37;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

.salsa-extra-btn.seleccionado {
    background: #d4af37;
    border-color: #d4af37;
    color: #2c1810;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    transform: scale(1.02);
}

.salsa-extra-btn .extra-precio {
    font-size: 0.7rem;
    opacity: 0.8;
    font-weight: 400;
}

/* Para móviles, aumentar el tamaño táctil */
@media (max-width: 480px) {
    .salsa-extra-btn {
        padding: 0.7rem 1.2rem;
        font-size: 1rem;
        min-height: 48px;
        min-width: 80px;
        border-radius: 40px;
    }
}

/* ============================================================
   SALSAS INCLUIDAS - MISMO TAMAÑO Y ESPACIO QUE INGREDIENTES
   ============================================================ */

.salsas-incluidas-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.3rem;
}

.salsa-incluida-btn {
    padding: 0.6rem 1.2rem;
    border: 2px solid #27ae60;
    background: #eafaf1;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #1e8449;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.salsa-incluida-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.2);
}

.salsa-incluida-btn.eliminada {
    border-color: #e74c3c;
    background: #fdedec;
    color: #c0392b;
    text-decoration: line-through;
    opacity: 0.6;
}

.salsa-incluida-btn i.fa-times {
    font-size: 0.6rem;
    opacity: 0.7;
}

/* Para móviles */
@media (max-width: 480px) {
    .salsa-incluida-btn {
        padding: 0.7rem 1.2rem;
        font-size: 1rem;
        min-height: 48px;
        min-width: 80px;
        border-radius: 40px;
    }
}