/* =========================================================
   El Alba Restaurant — Design System & Custom Stylesheet
   - Paleta cromática: Dorado Alba (#D4A373), Verde Esmeralda (#1F3D2B),
     Negro Terciopelo (#080808 / #0D0D0D) y Crema Cálido (#F5E9DA).
   - Fondos oscuros con texturas, resplandores orgánicos y partículas.
   - Glassmorphism de lujo, tipografía refinada y micro-interacciones.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&display=swap');

:root {
  --alba-gold: #D4A373;
  --alba-gold-light: #F2D3B4;
  --alba-gold-glow: rgba(212, 163, 115, 0.25);
  --alba-green: #1F3D2B;
  --alba-green-dark: #122419;
  --alba-cream: #F5E9DA;
  --alba-bg-dark: #080808;
  --alba-bg-card: #0D0D0D;
  --alba-bg-elevated: #141414;
  --alba-ease: cubic-bezier(.16, 1, .3, 1);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Montserrat', system-ui, -apple-system, sans-serif;
}

/* --- Resets & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  scrollbar-width: thin;
  scrollbar-color: var(--alba-gold) var(--alba-bg-dark);
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--alba-bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--alba-gold);
  border-radius: 999px;
  border: 2px solid var(--alba-bg-dark);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--alba-gold-light);
}

body {
  background-color: var(--alba-bg-dark);
  color: var(--alba-cream);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

::selection {
  background: var(--alba-gold);
  color: var(--alba-green-dark);
}

/* --- Fondos Texturizados y Detalles para Negros Puros --- */

/* Canvas de Partículas Bokeh */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
}

/* Malla de Degradados y Luces Ambientales Orgánicas */
.bg-dark-textured {
  background-color: #080808;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(212, 163, 115, 0.07) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(31, 61, 43, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(13, 13, 13, 0.95) 0%, rgba(8, 8, 8, 1) 100%);
  position: relative;
}

.bg-dark-card {
  background-color: #0d0d0d;
  background-image: 
    radial-gradient(circle at 90% 10%, rgba(212, 163, 115, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(31, 61, 43, 0.1) 0%, transparent 40%);
}

/* Textura de grano fino para eliminar sensación plana */
.noise-overlay {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 2;
}

/* Divisores Dorados con Brillo de Metal */
.gold-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(212, 163, 115, 0.2) 20%, rgba(212, 163, 115, 0.8) 50%, rgba(212, 163, 115, 0.2) 80%, transparent 100%);
  position: relative;
  overflow: hidden;
}

.gold-divider::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  animation: shimmerGleam 4s infinite ease-in-out;
}

@keyframes shimmerGleam {
  0% { left: -50%; }
  30% { left: 120%; }
  100% { left: 120%; }
}

/* Glassmorphism Premium */
.glass-nav {
  background: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(212, 163, 115, 0.12);
}

.glass-card {
  background: rgba(15, 15, 15, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 163, 115, 0.15);
  transition: all 0.4s var(--alba-ease);
}

.glass-card:hover {
  border-color: rgba(212, 163, 115, 0.45);
  box-shadow: 0 12px 32px -8px rgba(212, 163, 115, 0.18), 0 0 0 1px rgba(212, 163, 115, 0.3);
  transform: translateY(-4px);
}

/* --- Tipografía --- */
.font-serif {
  font-family: var(--font-serif);
}

.font-sans {
  font-family: var(--font-sans);
}

.gold-gradient-text {
  background: linear-gradient(135deg, #F5E9DA 0%, #D4A373 50%, #B88350 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Componentes de UI Específicos --- */

/* Botón de Instagram de Alto Impacto */
.btn-instagram-luxury {
  position: relative;
  display: inline-flex;
  items-center: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  background-size: 200% 200%;
  box-shadow: 0 3px 14px rgba(220, 39, 67, 0.3), 0 0 0 2px rgba(212, 163, 115, 0.35);
  transition: all 0.5s var(--alba-ease);
  text-decoration: none;
  overflow: hidden;
}

.btn-instagram-luxury:hover {
  background-position: 100% 100%;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 30px rgba(220, 39, 67, 0.55), 0 0 20px rgba(212, 163, 115, 0.6);
  color: #ffffff;
}

.btn-instagram-luxury::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.btn-instagram-luxury:hover::before {
  opacity: 1;
}

/* Badge de Estado Abierto / Cerrado */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.status-pill.open {
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.4);
  color: #25D366;
}

.status-pill.open .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #25D366;
  box-shadow: 0 0 10px #25D366;
  animation: pulseDot 1.8s infinite;
}

.status-pill.closed {
  background: rgba(212, 163, 115, 0.1);
  border: 1px solid rgba(212, 163, 115, 0.3);
  color: var(--alba-gold);
}

.status-pill.closed .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--alba-gold);
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

/* Pestañas del Menú */
.menu-tab-btn {
  padding: 0.65rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border-radius: 4px;
  border: 1px solid rgba(31, 61, 43, 0.4);
  background: rgba(13, 13, 13, 0.6);
  color: rgba(245, 233, 218, 0.6);
  transition: all 0.3s var(--alba-ease);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.menu-tab-btn:hover {
  border-color: rgba(212, 163, 115, 0.5);
  color: var(--alba-cream);
  background: rgba(31, 61, 43, 0.3);
  transform: translateY(-1px);
}

.menu-tab-btn.active {
  border-color: var(--alba-gold);
  background: rgba(212, 163, 115, 0.15);
  color: var(--alba-gold);
  box-shadow: 0 4px 15px -3px rgba(212, 163, 115, 0.3);
}

/* Tarjeta de Plato del Menú */
.dish-card {
  background: #0D0D0D;
  border: 1px solid rgba(31, 61, 43, 0.35);
  border-radius: 6px;
  padding: 1.5rem;
  transition: all 0.35s var(--alba-ease);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dish-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--alba-gold), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.dish-card:hover {
  border-color: rgba(212, 163, 115, 0.6);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px -5px rgba(0,0,0,0.8), 0 0 20px -5px rgba(212, 163, 115, 0.2);
}

.dish-card:hover::before {
  opacity: 1;
}

/* Tags de Plato */
.badge-tag {
  display: inline-block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
  font-weight: 600;
}

.badge-tag.gold {
  background: rgba(212, 163, 115, 0.2);
  color: var(--alba-gold);
  border: 1px solid rgba(212, 163, 115, 0.4);
}

.badge-tag.green {
  background: rgba(31, 61, 43, 0.3);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.3);
}

/* Modal de Detalle */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: #0d0d0d;
  border: 1px solid rgba(212, 163, 115, 0.3);
  max-width: 600px;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s var(--alba-ease);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.9), 0 0 30px rgba(212, 163, 115, 0.15);
}

.modal-backdrop.active .modal-container {
  transform: scale(1) translateY(0);
}

/* --- Layout Utility Classes --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Marquee Infinito */
.marquee-container {
  overflow: hidden;
  user-select: none;
  display: flex;
  gap: 1.75rem;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

.marquee-track {
  display: flex;
  gap: 1.75rem;
  width: max-content;
  animation: marqueeScroll 45s linear infinite;
}

.marquee-container:hover .marquee-track {
  animation-play-state: paused;
}

.gallery-item {
  position: relative;
  width: 22rem;
  height: 15rem;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(212, 163, 115, 0.18);
  box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.75);
  transition: border-color 0.4s var(--alba-ease), box-shadow 0.4s var(--alba-ease), transform 0.4s var(--alba-ease);
}

.gallery-item:hover {
  border-color: rgba(212, 163, 115, 0.6);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.85), 0 0 24px -6px rgba(212, 163, 115, 0.25);
  transform: translateY(-6px);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--alba-ease), filter 0.8s ease;
  filter: saturate(1.02);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(8, 8, 8, 0.85) 100%);
  pointer-events: none;
}

@media (max-width: 640px) {
  .gallery-item {
    width: 16rem;
    height: 11.5rem;
  }
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Utility Animations for Scroll Reveal */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.8s var(--alba-ease), transform 0.8s var(--alba-ease);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .dish-card {
    padding: 1.25rem;
  }
}
