/* src/css/pages/menu.css */
.categories {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 1rem 0;
  margin-bottom: 2rem;
  scrollbar-width: none; /* Firefox */
  width: 100%;
  -webkit-overflow-scrolling: touch;
}

.categories::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}

.category-btn {
  background: #ffffff !important;
  color: #4b5563 !important;
  border: 1px solid #e5e7eb !important;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  white-space: nowrap;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
}

.category-btn:hover {
  background: #f3f4f6 !important;
  color: #111827 !important;
}

.category-btn.active {
  background: #E4002B !important;
  border-color: #E4002B !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(228, 0, 43, 0.35) !important;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding-bottom: 6rem; /* Espacio para el carrito flotante */
}

@media (min-width: 600px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
  }
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  animation: menuCardFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.product-card:hover {
  border-color: rgba(228, 0, 43, 0.35) !important;
  box-shadow: 0 8px 25px rgba(228, 0, 43, 0.12) !important;
  transform: translateY(-4px);
}

.product-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 0.75rem;
  background: linear-gradient(110deg, #1a1a1a 8%, #262626 18%, #1a1a1a 33%);
  background-size: 200% 100%;
  animation: imageShimmer 1.8s linear infinite;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

@keyframes imageShimmer {
  to {
    background-position-x: -200%;
  }
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

@keyframes menuCardFadeIn {
  from {
    opacity: 0;
    transform: translateY(15px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.product-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.product-title {
  color: #111827 !important;
  font-size: 1rem;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.product-desc {
  color: #4b5563 !important;
  font-size: 0.75rem;
  flex: 1;
  margin-bottom: 1rem;
  line-height: 1.3;
  word-wrap: break-word;
}

.card-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  width: 100%;
}

.product-price {
  color: #E4002B !important;
  font-weight: 800 !important;
  font-size: 1.1rem;
}

.btn-add-round,
.add-to-cart-btn {
  background: linear-gradient(135deg, #E4002B 0%, #B8001F 100%);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.15);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(228, 0, 43, 0.35);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-add-round:hover,
.add-to-cart-btn:hover {
  background: linear-gradient(135deg, #ff2a51 0%, #E4002B 100%);
  box-shadow: 0 6px 16px rgba(228, 0, 43, 0.55);
}

.btn-add-round:active,
.add-to-cart-btn:active {
  transform: scale(0.92);
}

.qty-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  padding: 0.15rem 0.4rem;
  width: 95px;
  background: #f9fafb;
}

.qty-btn {
  background-color: transparent;
  color: #111827;
  border: none;
  font-size: 1.2rem;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.qty-btn:active {
  transform: scale(0.8);
}

.qty-number {
  font-weight: bold;
  font-size: 1rem;
  color: #22c55e;
}

.notes-container {
  margin-top: 0.75rem;
  width: 100%;
  display: none;
}

.notes-input {
  width: 100%;
  padding: 0.55rem;
  border-radius: 0.5rem;
  border: 1px solid #d1d5db !important;
  background-color: #f9fafb !important;
  color: #111827 !important;
  font-size: 0.8rem;
  font-family: inherit;
  outline: none;
  transition: all 0.3s ease;
}

.notes-input:focus {
  border-color: #E4002B !important;
  box-shadow: 0 0 0 3px rgba(228, 0, 43, 0.1) !important;
}

.notes-input::placeholder {
  color: #9ca3af;
}

@media (min-width: 600px) {
  .product-image { height: 180px; }
  .product-title { font-size: 1.25rem; }
  .product-price { font-size: 1.1rem; }
  .product-desc { font-size: 0.875rem; }
  .add-btn { padding: 0.75rem 1.5rem; font-size: 1rem; }
  .product-header { flex-direction: row; justify-content: space-between; }
}

/* Carrito Flotante (Burbuja Circular) */
.floating-cart {
  position: fixed;
  bottom: 24px;
  right: 24px;
  left: auto;
  width: 60px;
  height: 60px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
  transform: scale(0);
  transform-origin: center;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  user-select: none;
  border: none;
}

.floating-cart.visible {
  transform: scale(1);
}

/* Efecto de Borde de Llamas Sutil y Fluctuante (De abajo hacia arriba) */
.floating-cart::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  background: linear-gradient(0deg, #E4002B 0%, #ff2a51 40%, #ffcc00 80%, #E4002B 100%);
  background-size: 100% 200%;
  z-index: 1;
  filter: blur(1.5px);
  animation: flameRipple 1.8s infinite ease-in-out, riseGlow 2.5s infinite linear;
}

.fire-border {
  border-color: #E4002B;
  box-shadow: 0 0 10px rgba(228, 0, 43, 0.4);
}

@keyframes flameRipple {
  0%, 100% {
    transform: scale(1);
    filter: blur(1.2px) brightness(1);
  }
  50% {
    transform: scale(1.05, 1.08) translateY(-1px);
    filter: blur(2.2px) brightness(1.3);
  }
}

@keyframes riseGlow {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 0% -200%;
  }
}

/* Hover / Active Micro-animations */
.floating-cart:hover {
  transform: scale(1.08);
}

.floating-cart:active {
  transform: scale(0.94);
}

/* Círculo Negro Interno */
.cart-bubble-circle {
  width: 100%;
  height: 100%;
  background-color: #000000;
  border-radius: 50%;
  z-index: 2;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Icono del Carrito (Dentro del círculo negro) */
.cart-bubble-icon {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

/* Badge de cantidad de productos en la esquina superior derecha del círculo */
.cart-items-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #000000;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #E4002B;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  z-index: 3;
}

/* Contenedor de Humo (Sobre el botón del carrito) */
.smoke-container {
  position: absolute;
  bottom: 45px; /* Comienza justo encima del círculo */
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 60px;
  pointer-events: none;
  z-index: 0; /* Por detrás del badge, pero visible sobre el botón */
  overflow: visible;
}

/* Partícula de Humo */
.smoke-puff {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 16px;
  height: 16px;
  background: radial-gradient(circle, rgba(240, 240, 240, 0.75) 0%, rgba(220, 220, 220, 0.3) 50%, rgba(200, 200, 200, 0) 80%);
  border-radius: 50%;
  opacity: 0;
  transform: translateX(-50%) scale(1);
  filter: blur(2px);
}

/* Animaciones individuales con retrasos y duraciones desfasadas */
.puff-1 {
  animation: riseSmoke1 2.2s infinite ease-out;
}

.puff-2 {
  animation: riseSmoke2 2.6s infinite ease-out;
  animation-delay: 0.7s;
}

.puff-3 {
  animation: riseSmoke3 3.0s infinite ease-out;
  animation-delay: 1.4s;
}

/* Keyframes para que el humo suba, se disipe y derive a los lados */
@keyframes riseSmoke1 {
  0% {
    bottom: 0;
    transform: translateX(-50%) scale(0.6);
    opacity: 0;
  }
  15% {
    opacity: 0.75;
  }
  50% {
    transform: translateX(-80%) scale(2.2); /* Deriva a la izquierda */
    opacity: 0.55;
  }
  100% {
    bottom: 60px;
    transform: translateX(-120%) scale(4.5);
    opacity: 0;
    filter: blur(5px);
  }
}

@keyframes riseSmoke2 {
  0% {
    bottom: 0;
    transform: translateX(-50%) scale(0.6);
    opacity: 0;
  }
  15% {
    opacity: 0.7;
  }
  50% {
    transform: translateX(-20%) scale(2.4); /* Deriva ligeramente */
    opacity: 0.5;
  }
  100% {
    bottom: 65px;
    transform: translateX(30%) scale(5.0);
    opacity: 0;
    filter: blur(6px);
  }
}

@keyframes riseSmoke3 {
  0% {
    bottom: 0;
    transform: translateX(-50%) scale(0.5);
    opacity: 0;
  }
  15% {
    opacity: 0.75;
  }
  50% {
    transform: translateX(40%) scale(2.8); /* Deriva a la derecha */
    opacity: 0.55;
  }
  100% {
    bottom: 70px;
    transform: translateX(80%) scale(5.5);
    opacity: 0;
    filter: blur(7px);
  }
}

/* Partícula de Chispa (Pequeños puntos brillantes) */
.spark {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 4px;
  height: 4px;
  background-color: #ffcc00;
  border-radius: 50%;
  opacity: 0;
  z-index: 1;
  box-shadow: 0 0 5px #ff2a51, 0 0 10px #E4002B;
}

/* Animaciones de chispas desfasadas (suben rápido y zigzaguean) */
.spark-1 {
  animation: riseSpark1 1.2s infinite linear;
  animation-delay: 0.2s;
}

.spark-2 {
  animation: riseSpark2 1.5s infinite linear;
  animation-delay: 0.6s;
}

.spark-3 {
  animation: riseSpark3 1.0s infinite linear;
  animation-delay: 1.1s;
}

/* Keyframes para que las chispas suban rápido, zigzagueen y se apaguen */
@keyframes riseSpark1 {
  0% {
    bottom: 0;
    transform: translateX(-50%) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  50% {
    transform: translateX(12px) scale(0.8); /* Desvía a la derecha */
  }
  100% {
    bottom: 60px;
    transform: translateX(-15px) scale(0.2); /* Desvía a la izquierda y se apaga */
    opacity: 0;
  }
}

@keyframes riseSpark2 {
  0% {
    bottom: 0;
    transform: translateX(-50%) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  50% {
    transform: translateX(-14px) scale(0.9); /* Desvía a la izquierda */
  }
  100% {
    bottom: 70px;
    transform: translateX(12px) scale(0.1); /* Desvía a la derecha y se apaga */
    opacity: 0;
  }
}

@keyframes riseSpark3 {
  0% {
    bottom: 0;
    transform: translateX(-50%) scale(1.2);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  50% {
    transform: translateX(8px) scale(0.8);
  }
  100% {
    bottom: 50px;
    transform: translateX(-8px) scale(0.3);
    opacity: 0;
  }
}

/* Nuevas clases para evitar estilos en línea (spaghetti CSS) */
.catalog-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}


.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.checkout-delivery-group {
  margin-top: 1.5rem;
  margin-bottom: 0;
}

.checkout-delivery-label {
  color: var(--accent);
  font-weight: bold;
}

.checkout-delivery-select {
  font-size: 1rem;
  padding: 0.8rem;
}

.checkout-section-divider {
  border-top: 1px dashed #e5e7eb;
  padding-top: 1.5rem;
  margin-top: 1rem;
}

.checkout-section-title {
  margin-bottom: 1rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--accent);
}

.comprobante-upload-box {
  display: none;
  background: rgba(228, 0, 43, 0.05);
  border: 1px dashed var(--primary);
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
}

.comprobante-upload-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--accent);
  font-weight: bold;
}

.comprobante-file-input {
  padding: 0.5rem;
}

.comprobante-help-text {
  color: var(--text-muted);
  display: block;
  margin-top: 0.5rem;
}

.checkout-drawer-footer {
  padding: 1.2rem 1.5rem;
  padding-bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #e5e7eb;
}

.checkout-total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--accent);
}

.btn-confirm-checkout {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
}

/* Modales personalizados */
.modal-overlay {
  z-index: 1050;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
}

.modal-overlay-success {
  z-index: 1060;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
}

.modal-card,
.cust-modal-card,
.modal-content {
  background: #ffffff !important;
  color: #111827 !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2) !important;
}

.modal-card {
  max-width: 500px;
  width: 95%;
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay.open .modal-card {
  transform: scale(1);
}

.modal-card-success {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15) !important;
}

.modal-header-centered {
  text-align: center;
  border-bottom: 1px dashed #e5e7eb;
  padding-bottom: 1rem;
}

.modal-header-centered.no-border {
  border-bottom: none;
  padding-bottom: 0;
}

.modal-success-emoji {
  font-size: 3.5rem;
  margin-bottom: 0.8rem;
  filter: drop-shadow(0 4px 10px rgba(74, 222, 128, 0.3));
}

.modal-title {
  color: #111827 !important;
  font-family: var(--font-serif);
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.modal-title-success {
  color: #16a34a;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.modal-subtitle {
  color: #4b5563 !important;
  font-size: 0.9rem;
  margin: 0;
}

.modal-subtitle-success {
  color: #4b5563 !important;
  font-size: 0.95rem;
  margin: 0;
}

.modal-recibo-badge {
  font-family: monospace;
  background: rgba(228, 0, 43, 0.1);
  color: #E4002B;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  display: inline-block;
  margin-top: 1rem;
  border: 1px solid rgba(228, 0, 43, 0.25);
}

.modal-body-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: #111827 !important;
  font-size: 0.95rem;
}

.modal-footer-buttons {
  display: flex;
  gap: 1rem;
  border-top: 1px dashed #e5e7eb;
  padding-top: 1.5rem;
}

.modal-footer-buttons .btn-secondary,
.modal-footer-buttons .btn-primary {
  flex: 1;
  padding: 0.9rem;
}

.modal-recibo-details {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  font-size: 0.95rem;
  color: #111827 !important;
}

.btn-success-close {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  background: #22c55e;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

.btn-success-close:hover {
  background: #16a34a;
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.5);
}

/* Clases para HTML generado dinámicamente en JS (resumen del pedido) */
.confirm-resumen-box {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  padding: 1rem;
  border-radius: 8px;
}

.confirm-delivery-type {
  color: var(--primary);
  font-weight: bold;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.confirm-items-title {
  margin-bottom: 0.5rem;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 0.5rem;
}

.confirm-item-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #e5e7eb;
  padding: 0.5rem 0;
}

.confirm-item-notes {
  color: var(--accent);
}

.confirm-payment-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.confirm-total-box {
  display: flex;
  justify-content: space-between;
  font-size: 1.3rem;
  color: var(--accent);
  font-weight: bold;
  border-top: 1px solid #e5e7eb;
  padding-top: 0.5rem;
}

.recibo-accent-text {
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.recibo-item-dashed-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed #e5e7eb;
  padding-bottom: 0.3rem;
}

.recibo-divider-top {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid #e5e7eb;
}

.recibo-total-row {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  margin-top: 0.5rem;
  font-size: 1.1rem;
  color: var(--primary);
}

.checkout-breakdown {
  display: none;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
  border-bottom: 1px dashed var(--border);
  padding-bottom: 0.8rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.checkout-breakdown-row {
  display: flex;
  justify-content: space-between;
}

/* Botón de Eliminar del Carrito en Checkout */
.btn-eliminar-cart {
  background: transparent;
  border: none;
  color: #f87171;
  cursor: pointer;
  font-size: 1.25rem;
  padding: 0.5rem;
  margin-left: 0.75rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.btn-eliminar-cart:hover {
  color: #ef4444;
  background-color: rgba(239, 68, 68, 0.15);
  transform: scale(1.15);
}

.btn-eliminar-cart:active {
  transform: scale(0.9);
}

/* ==========================================
   SHOWCASE ESPECIALIDADES 3D
   ========================================== */
.showcase-especialidades-container {
    width: 100%;
    padding: 3rem 1rem 5rem 1rem;
    background: #f3f4f6 !important;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
    border-top: 1px solid #e5e7eb !important;
    border-bottom: 1px solid #e5e7eb !important;
    box-shadow: none !important;
    perspective: 1200px;
}

.showcase-header {
    text-align: center;
    margin-bottom: 3rem;
}

.showcase-title {
    color: #111827 !important;
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: none !important;
    margin-bottom: 0.5rem;
}

.showcase-subtitle {
    color: #4b5563 !important;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

/* 3D Carousel Setup */
.showcase-stage {
    width: 100%;
    height: 490px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
}

.carousel-pivot {
    width: 220px;
    height: 390px;
    transform-style: preserve-3d;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 220px;
    height: 390px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: grab;
    backface-visibility: visible;
    transform-style: preserve-3d;
}

.carousel-item:active {
    cursor: grabbing;
}

/* Estilos personalizados para la product-card dentro del carrusel 3D (Efecto Flip 3D) */
.carousel-item .product-card.flip-card {
    width: 100%;
    height: 100%;
    margin: 0;
    box-sizing: border-box;
    position: relative;
    z-index: 2; /* Renderizar por encima de la plataforma glowing */
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    perspective: 1000px;
    transform-style: preserve-3d;
    animation: none !important; /* Desactivar la animación de entrada */
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

/* Al pasar el cursor, voltea la tarjeta 180 grados y la eleva */
.carousel-item:hover .flip-card-inner {
    transform: rotateY(180deg) translateY(-10px);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 16px;
    padding: 1.2rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.flip-card-front {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    color: #111827 !important;
    justify-content: flex-start;
    align-items: center;
    pointer-events: auto;
    z-index: 2;
}

.flip-card-back {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 15px 40px rgba(228, 0, 43, 0.15) !important;
    color: #111827 !important;
    transform: rotateY(180deg);
    justify-content: flex-start;
    pointer-events: none;
    z-index: 1;
}

.carousel-item:hover .flip-card-front {
    pointer-events: none;
    z-index: 1;
}

.carousel-item:hover .flip-card-back {
    pointer-events: auto;
    z-index: 2;
}

/* Front element styles */
.flip-card-front .product-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
    filter: drop-shadow(0px 8px 16px rgba(0, 0, 0, 0.1));
    transform: translateZ(20px);
    transition: transform 0.4s ease;
}

.carousel-item:hover .flip-card-front .product-image {
    transform: translateZ(35px) scale(1.03);
}

.flip-card-front .product-title {
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 0.75rem;
    color: #111827 !important;
    transform: translateZ(25px);
}

.showcase-price-badge {
    background: rgba(228, 0, 43, 0.1) !important;
    border: 1px solid rgba(228, 0, 43, 0.25) !important;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 900;
    color: #E4002B !important;
    transform: translateZ(30px);
    box-shadow: 0 4px 12px rgba(228, 0, 43, 0.1) !important;
    margin-top: auto;
}

.flip-hint {
    font-size: 0.7rem;
    color: #6b7280 !important;
    margin-top: 0.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transform: translateZ(15px);
    animation: pulse-text 2s infinite alternate;
}

@keyframes pulse-text {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Back element styles */
.flip-card-back .product-image-back {
    width: 100%;
    height: 85px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(228, 0, 43, 0.2);
    transform: translateZ(15px);
}

.flip-card-back .product-title-back {
    color: #111827 !important;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    border-bottom: 1px dashed #e5e7eb !important;
    padding-bottom: 0.25rem;
}

.flip-card-back .product-desc-back {
    font-size: 0.72rem;
    color: #4b5563 !important;
    line-height: 1.35;
    margin-bottom: auto;
    overflow-y: auto;
    max-height: 60px; /* Reducido de 100px para dar espacio a la imagen trasera */
    padding-right: 4px;
}

/* Scrollbar personalizado para la descripción */
.flip-card-back .product-desc-back::-webkit-scrollbar {
    width: 3px;
}
.flip-card-back .product-desc-back::-webkit-scrollbar-thumb {
    background: rgba(228, 0, 43, 0.3);
    border-radius: 3px;
}

.flip-card-back .card-footer {
    margin-top: 1rem;
    border-top: 1px solid #e5e7eb !important;
    padding-top: 0.75rem;
}

.flip-card-back .notes-container {
    margin-top: 0.5rem;
}

.glowing-platform {
    width: 160px;
    height: 40px;
    background: radial-gradient(ellipse at center, rgba(228, 0, 43, 0.6) 0%, rgba(228, 0, 43, 0) 70%);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(228, 0, 43, 0.5), 0 10px 40px rgba(228, 0, 43, 0.2) inset;
    transform: rotateX(75deg) translateZ(-10px);
    position: absolute;
    bottom: -25px; /* Por debajo del borde inferior de la tarjeta */
    z-index: 1;
    animation: pulse-glow 3s infinite alternate;
    pointer-events: none;
}

@keyframes pulse-glow {
    0% { opacity: 0.6; box-shadow: 0 0 20px rgba(228, 0, 43, 0.4); }
    100% { opacity: 1; box-shadow: 0 0 40px rgba(228, 0, 43, 0.8), 0 0 10px #fff inset; }
}

@media (max-width: 768px) {
    .showcase-especialidades-container {
        padding: 2rem 1rem 3rem 1rem;
        margin-bottom: 1.5rem;
    }
    .showcase-stage {
        height: 360px;
    }
}

@media (max-width: 480px) {
    .showcase-especialidades-container {
        padding: 1.5rem 0.5rem 2rem 0.5rem;
        margin-bottom: 1rem;
    }
    .showcase-stage {
        height: 280px;
    }
    .showcase-title {
        font-size: 1.6rem;
        letter-spacing: 2px;
        margin-bottom: 0.25rem;
    }
    .showcase-subtitle {
        font-size: 0.8rem;
    }
}

/* ==========================================
   MODAL DE PERSONALIZACIÓN Y SELECCIONES
   ========================================== */
.cust-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cust-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cust-modal-card {
  max-width: 480px;
  width: 90%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  gap: 1.2rem;
  overflow-y: auto;
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2) !important;
}

.cust-modal-header {
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cust-modal-header h3 {
  margin: 0;
  color: #111827 !important;
}

.cust-modal-close-btn {
  font-size: 1.5rem;
  background: none;
  border: none;
  color: #111827 !important;
  cursor: pointer;
}

.cust-modal-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cust-modal-product-info {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.cust-modal-product-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.cust-modal-product-details {
  flex: 1;
}

.cust-modal-product-details h4 {
  margin: 0 0 0.2rem 0;
  font-size: 1.1rem;
  color: #111827 !important;
}

.cust-modal-product-details p {
  margin: 0 0 0.5rem 0;
  font-size: 0.85rem;
  color: #4b5563 !important;
  line-height: 1.4;
}

.cust-modal-product-details strong {
  font-size: 1.1rem;
  color: #E4002B !important;
}

.cust-modal-options-section {
  display: none;
  border-top: 1px solid #e5e7eb;
  padding-top: 1rem;
  flex-direction: column;
  gap: 0.8rem;
}

.cust-modal-options-section h5 {
  margin: 0 0 0.2rem 0;
  font-size: 0.9rem;
  color: #111827 !important;
  font-weight: bold;
}

.cust-modal-options-container {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.cust-option-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f9fafb;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.cust-option-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 0.9rem;
  cursor: pointer;
  user-select: none;
  margin-bottom: 0;
  color: #111827 !important;
}

.cust-opt-checkbox {
  transform: scale(1.2);
  accent-color: #E4002B;
  cursor: pointer;
}

.cust-opt-qty-container {
  margin: 0 !important;
  display: inline-flex !important;
  opacity: 0.9;
  transform: scale(0.85);
  background: #ffffff;
  padding: 0.2rem 0.4rem !important;
  border-radius: 50px;
  border: 1px solid #e5e7eb !important;
  width: 95px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
  transition: opacity 0.2s;
  justify-content: space-between;
}

.cust-opt-qty-container .qty-btn {
  width: 24px;
  height: 24px;
  font-size: 0.8rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111827;
}

.cust-opt-qty-val {
  color: #E4002B;
  padding: 0 0.5rem;
  font-size: 0.9rem;
  font-weight: bold;
  min-width: 15px;
  text-align: center;
}

.cust-modal-main-qty-section {
  border-top: 1px solid #e5e7eb;
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #111827 !important;
}

.cust-modal-main-qty-section span {
  font-weight: bold;
  font-size: 0.95rem;
  color: #111827 !important;
}

.cust-modal-notes-section {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.cust-modal-notes-section label {
  font-size: 0.85rem;
  font-weight: bold;
  color: #111827 !important;
}

.cust-modal-notes-section input {
  width: 100%;
  box-sizing: border-box;
  background: #f9fafb !important;
  color: #111827 !important;
  border: 1px solid #d1d5db !important;
  padding: 0.55rem;
  border-radius: 0.5rem;
}

.cust-modal-footer {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  border-top: 1px solid #e5e7eb;
  padding-top: 1rem;
}

.cust-modal-footer button {
  flex: 1;
}

.cust-plate-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.cust-plate-title {
  font-weight: bold;
  font-size: 0.85rem;
  color: #111827 !important;
  margin-top: 0.5rem;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 0.3rem;
}

.btn-edit-customization {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background-color: #f9fafb;
  color: #111827 !important;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  margin-top: 0.5rem;
}

.btn-edit-customization:hover {
  background-color: #f3f4f6;
  border-color: #d1d5db;
  color: #E4002B !important;
}

.btn-edit-customization:active {
  transform: scale(0.97);
}

/* Clases para reemplazar estilos inline */
.catalog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.catalog-logo-box {
  display: flex;
  align-items: center;
  gap: 1rem;
}

#menuUserInfo {
  color: var(--primary);
  font-weight: bold;
  font-size: 0.85rem;
}

.qty-pill-modal {
  margin: 0 !important;
}

.qty-btn-modal {
  padding: 0.4rem 0.8rem !important;
}

.qty-number-modal {
  font-size: 1.1rem !important;
  padding: 0 0.8rem !important;
}

.cart-item-checkout {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.cart-item-checkout img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.cart-item-checkout-info {
  flex: 1;
}

.cart-item-checkout-title {
  margin: 0;
  font-size: 1rem;
  color: #111827 !important;
}

.cart-item-checkout-notes {
  color: var(--accent);
  display: block;
  margin-top: 0.2rem;
}

.cart-item-checkout-price {
  font-weight: bold;
  font-size: 1.1rem;
  white-space: nowrap;
  color: #111827;
}

.checkout-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  color: #4b5563;
  margin-bottom: 0.3rem;
}

.checkout-summary-row-dashed {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  color: #4b5563;
  margin-bottom: 0.5rem;
  border-bottom: 1px dashed #e5e7eb;
  padding-bottom: 0.5rem;
}

.recibo-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #4b5563;
  margin-top: 0.5rem;
}

.recibo-summary-row-dashed {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #4b5563;
  margin-top: 0.2rem;
  border-bottom: 1px dashed #e5e7eb;
  padding-bottom: 0.4rem;
}

/* Visibilidad inicial predeterminada sin estilos inline */
#showcase-especialidades-3d {
  display: none;
}

#clienteBasicoFields {
  display: none;
}

#direccionFields {
  display: none;
}

#pagoSectionContainer {
  display: block;
}

.menu-loading-msg {
  grid-column: 1 / -1;
  color: var(--text-muted);
  padding: 2rem;
  text-align: center;
  width: 100%;
}

.card-footer > div[id^="btn-container-"].w-full {
  width: 100% !important;
}

/* Humo del Showcase posicionado sobre las tarjetas de 390px */
.showcase-smoke {
  bottom: 385px; /* Justo sobre el borde superior de la tarjeta (de 390px de alto) */
  left: 50%;
  transform: translateX(-50%) translateZ(10px); /* translateZ para que el humo flote en 3D en frente de la tarjeta */
  width: 220px; /* Ancho completo de la tarjeta */
  height: 80px;
  z-index: 10;
}

/* Distribuir 10 bocanadas de humo y chispas a lo ancho de la tarjeta con más intensidad y desfasados */
.showcase-smoke .puff-1 { left: 5%; animation: riseSmoke1 2.2s infinite ease-out; animation-delay: 0s; }
.showcase-smoke .puff-2 { left: 15%; animation: riseSmoke2 2.6s infinite ease-out; animation-delay: 0.3s; }
.showcase-smoke .puff-3 { left: 25%; animation: riseSmoke3 3.0s infinite ease-out; animation-delay: 0.6s; }
.showcase-smoke .puff-4 { left: 35%; animation: riseSmoke1 2.4s infinite ease-out; animation-delay: 0.9s; }
.showcase-smoke .puff-5 { left: 45%; animation: riseSmoke2 2.8s infinite ease-out; animation-delay: 1.2s; }
.showcase-smoke .puff-6 { left: 55%; animation: riseSmoke3 2.5s infinite ease-out; animation-delay: 1.5s; }
.showcase-smoke .puff-7 { left: 65%; animation: riseSmoke1 2.7s infinite ease-out; animation-delay: 1.8s; }
.showcase-smoke .puff-8 { left: 75%; animation: riseSmoke2 2.3s infinite ease-out; animation-delay: 2.1s; }
.showcase-smoke .puff-9 { left: 85%; animation: riseSmoke3 2.9s infinite ease-out; animation-delay: 2.4s; }
.showcase-smoke .puff-10 { left: 95%; animation: riseSmoke1 2.6s infinite ease-out; animation-delay: 2.7s; }

.showcase-smoke .spark-1 { left: 8%; animation: riseSpark1 1.2s infinite linear; animation-delay: 0.1s; }
.showcase-smoke .spark-2 { left: 18%; animation: riseSpark2 1.5s infinite linear; animation-delay: 0.4s; }
.showcase-smoke .spark-3 { left: 28%; animation: riseSpark3 1.0s infinite linear; animation-delay: 0.7s; }
.showcase-smoke .spark-4 { left: 38%; animation: riseSpark1 1.4s infinite linear; animation-delay: 1.0s; }
.showcase-smoke .spark-5 { left: 48%; animation: riseSpark2 1.3s infinite linear; animation-delay: 1.3s; }
.showcase-smoke .spark-6 { left: 58%; animation: riseSpark3 1.1s infinite linear; animation-delay: 1.6s; }
.showcase-smoke .spark-7 { left: 68%; animation: riseSpark1 1.5s infinite linear; animation-delay: 1.9s; }
.showcase-smoke .spark-8 { left: 78%; animation: riseSpark2 1.2s infinite linear; animation-delay: 2.2s; }
.showcase-smoke .spark-9 { left: 88%; animation: riseSpark3 1.4s infinite linear; animation-delay: 2.5s; }
.showcase-smoke .spark-10 { left: 93%; animation: riseSpark1 1.3s infinite linear; animation-delay: 2.8s; }

/* Logo de la burbuja del carrito */
.cart-bubble-logo {
  height: 3.6rem;
  width: auto;
  object-fit: contain;
  border-radius: 4px;
}

/* Tarjeta clickable (cambio de cursor a pointer) */
.clickable-card {
  cursor: pointer;
}



