/* ═══════════════════════════════════════
   Pizzeria da Fra — Estilos complementarios
   ═══════════════════════════════════════ */

/* ── Scrollbar oculto para tabs ── */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ── Animaciones ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50% { opacity: .6; }
}

.animate-fade-up { animation: fadeUp 0.5s ease-out both; }
.animate-fade-in { animation: fadeIn 0.3s ease-out both; }
.animate-slide-down { animation: slideDown 0.3s ease-out both; }
.animate-pulse-soft { animation: pulse-soft 1.5s ease-in-out infinite; }

/* ── Glassmorphism ── */
.glass {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}
.glass-dark {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

/* ── Tab activa ── */
.tab-active {
  background-color: #DC2626 !important;
  color: #FFFFFF !important;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35);
}

/* ── Tarjetas de plato ── */
.card-dish {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card-dish:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* ── Insignia de alérgeno ── */
.allergen-badge {
  font-size: 0.625rem;
  letter-spacing: 0.03em;
}

/* ── Reveal (IntersectionObserver) ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Hero overlay ── */
.hero-overlay {
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 100%);
}

/* ── Modal backdrop ── */
.modal-backdrop {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* ── Toggle switch ── */
.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: #D1D5DB;
  cursor: pointer;
  transition: background 0.2s;
}
.toggle-switch.active {
  background: #22C55E;
}
.toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}
.toggle-switch.active::after {
  transform: translateX(20px);
}

/* ── Toast notification ── */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 12px 24px;
  border-radius: 12px;
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast.success { background: #22C55E; }
.toast.error   { background: #EF4444; }
.toast.info    { background: #3B82F6; }

/* ── Skeleton loader ── */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 8px;
}
@keyframes skeleton-loading {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Reseña card ── */
.review-card {
  transition: transform 0.25s ease;
}
.review-card:hover {
  transform: translateY(-2px);
}
