/* ==========================================================================
   premium-ui.css - Mejoras Visuales e Interactivas de Vanguardia (UI/UX)
   Diseñado por: agency-ui-designer para Kaizen Sushi - Bar
   ========================================================================== */

:root {
  --gold-primary: #d4af37;
  --gold-light: #f5e7a9;
  --gold-glow: 0 0 25px rgba(212, 175, 55, 0.35);
  --gold-grad: linear-gradient(135deg, #d4af37 0%, #aa820a 100%);
  --gold-glass: rgba(212, 175, 55, 0.12);
  --obsidian-deep: #08090b;
  --obsidian-surface: #12141a;
  --obsidian-card: #161922;
  --glass-blur: blur(16px) saturate(180%);
}

/* --- HERO SECTION REDISEÑADO E INTERACTIVO --- */
.hero-centered-container {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 40px !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 40px 20px !important;
}

@media (max-width: 992px) {
  .hero-centered-container {
    flex-direction: column !important;
    text-align: center !important;
    gap: 30px !important;
  }
}

.hero-fancy-card {
  flex: 1 1 50% !important;
  text-align: left !important;
}

@media (max-width: 992px) {
  .hero-fancy-card {
    text-align: center !important;
  }
}

/* Contenedor del Platillo Insignia 3D Interactivo */
.hero-interactive-showcase {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  perspective: 1200px;
}

.hero-dish-aura {
  position: absolute;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.28) 0%, rgba(212, 175, 55, 0.05) 50%, transparent 70%);
  border-radius: 50%;
  filter: blur(20px);
  animation: pulseAura 4s infinite alternate ease-in-out;
  pointer-events: none;
  z-index: 1;
}

@keyframes pulseAura {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.15); opacity: 1; }
}

.hero-dish-wrapper {
  position: relative;
  z-index: 2;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-style: preserve-3d;
  cursor: grab;
}

.hero-dish-wrapper:active {
  cursor: grabbing;
}

.hero-dish-img {
  width: 320px;
  height: 320px;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.85)) drop-shadow(0 0 35px rgba(212,175,55,0.4));
  transition: filter 0.3s ease;
  user-select: none;
  -webkit-user-drag: none;
}

/* Micro-etiquetas flotantes de ingredientes (3D Tags) */
.dish-floating-tag {
  position: absolute;
  background: rgba(16, 18, 23, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
  pointer-events: none;
  white-space: nowrap;
  animation: floatTag 3s infinite ease-in-out;
  z-index: 3;
}

.dish-floating-tag.tag-1 {
  top: 15px;
  left: -20px;
  animation-delay: 0s;
}

.dish-floating-tag.tag-2 {
  bottom: 30px;
  right: -25px;
  animation-delay: 1.5s;
}

.dish-floating-tag.tag-3 {
  top: 45%;
  right: -45px;
  animation-delay: 0.8s;
}

@keyframes floatTag {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Tarjeta flotante interactiva de compra rápida del Hero */
.hero-dish-action-card {
  margin-top: 18px;
  background: rgba(18, 20, 26, 0.9);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 14px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  z-index: 4;
}

.hero-dish-badge-name {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gold-light);
}

.hero-dish-badge-price {
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
}

.hero-dish-quick-add {
  background: var(--gold-grad);
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 800;
  font-size: 0.8rem;
  color: #000;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.hero-dish-quick-add:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

/* --- ANIMACIÓN PARTÍCULA HACIA EL CARRITO --- */
.cart-fly-particle {
  position: fixed;
  z-index: 99999;
  font-size: 24px;
  pointer-events: none;
  transition: all 0.65s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.9));
}

.cart-pulse-bounce {
  animation: cartPulse 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes cartPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); box-shadow: 0 0 25px rgba(212, 175, 55, 0.8); }
  100% { transform: scale(1); }
}

/* --- BARRA DE META: ENVÍO GRATIS EN CARRITO --- */
.cart-free-shipping-goal {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 12px 16px 6px 16px;
}

.shipping-goal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #ddd;
  margin-bottom: 8px;
}

.shipping-goal-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.shipping-goal-fill {
  height: 100%;
  background: var(--gold-grad);
  border-radius: 10px;
  transition: width 0.4s ease, background 0.4s ease;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

.shipping-goal-fill.completed {
  background: linear-gradient(135deg, #2ecc71, #27ae60) !important;
  box-shadow: 0 0 14px rgba(46, 204, 113, 0.8) !important;
}

/* --- QUICK ADD COMPLEMENTOS EN EL CARRITO --- */
.cart-quick-addons {
  padding: 10px 16px 4px 16px;
  border-top: 1px dashed rgba(255,255,255,0.08);
}

.quick-addons-title {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}

.quick-addons-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.quick-addons-scroll::-webkit-scrollbar {
  display: none;
}

.addon-chip {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 0.75rem;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.addon-chip:hover, .addon-chip:active {
  background: rgba(212, 175, 55, 0.18);
  border-color: var(--gold-primary);
  transform: translateY(-1px);
}

/* --- BARRA DE NAVEGACIÓN INFERIOR PARA MÓVILES --- */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(13, 15, 18, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    justify-content: space-around;
    align-items: center;
    z-index: 998;
    padding: 0 6px;
  }

  .mobile-nav-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 0.7rem;
    font-weight: 600;
    text-decoration: none;
    background: none;
    border: none;
    gap: 3px;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: color 0.2s;
  }

  .mobile-nav-tab.active, .mobile-nav-tab:active {
    color: var(--gold-primary);
  }

  .mobile-nav-tab span.tab-icon {
    font-size: 1.15rem;
  }

  /* Ajustar espacio inferior para que el contenido no quede oculto por la barra */
  body {
    padding-bottom: 65px;
  }
}
