/* ==========================================================================
   LA TEQUILA - LA COCINA DE MÉXICO
   Estilos de Alta Gama & Diseño Editorial Gastronómico
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700;800&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-display: 'Cinzel', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Colores Tema Claro: Crema Cantera & Oro Agave */
  --bg-primary: #FAF7F2;
  --bg-secondary: #F3ECE1;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FCFAF7;
  --text-primary: #181916;
  --text-secondary: #575752;
  --text-muted: #87867F;
  --accent-gold: #B88939;
  --accent-gold-light: #D4AF37;
  --accent-gold-muted: rgba(184, 137, 57, 0.15);
  --border-subtle: rgba(184, 137, 57, 0.22);
  --border-card: rgba(0, 0, 0, 0.07);
  --nav-bg: rgba(250, 247, 242, 0.92);
  --shadow-luxury: 0 20px 45px -15px rgba(35, 25, 15, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --badge-bg: #EFE6D8;
}

html.dark {
  /* Colores Tema Oscuro: Obsidiana Nocturna, Agave & Oro Pulido */
  --bg-primary: #0A0C0B;
  --bg-secondary: #121514;
  --bg-card: #161A18;
  --bg-card-hover: #1D2320;
  --text-primary: #FAF7F2;
  --text-secondary: #C8C5BE;
  --text-muted: #8E928F;
  --accent-gold: #C5A059;
  --accent-gold-light: #E4C885;
  --accent-gold-muted: rgba(197, 160, 89, 0.18);
  --border-subtle: rgba(197, 160, 89, 0.25);
  --border-card: rgba(255, 255, 255, 0.08);
  --nav-bg: rgba(10, 12, 11, 0.92);
  --shadow-luxury: 0 25px 50px -12px rgba(0, 0, 0, 0.65);
  --glass-bg: rgba(22, 26, 24, 0.85);
  --badge-bg: rgba(197, 160, 89, 0.12);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-x: hidden;
}

.font-serif-luxury {
  font-family: var(--font-serif);
}

.font-display-luxury {
  font-family: var(--font-display);
}

/* Texturas sutiles */
.texture-overlay {
  background-image: radial-gradient(rgba(197, 160, 89, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* Gradientes de oro fino */
.text-gold-gradient {
  background: linear-gradient(135deg, #ECC880 0%, #C5A059 50%, #9A7632 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-gold-gradient {
  background: linear-gradient(135deg, #DFBE77 0%, #C5A059 50%, #A67E33 100%);
}

.border-gold-subtle {
  border-color: var(--border-subtle);
}

/* Efectos de Blur Glass */
.glass-header {
  background-color: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.luxury-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-luxury);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.luxury-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-gold);
  box-shadow: 0 30px 60px -15px rgba(184, 137, 57, 0.18);
}

/* Líneas ornamentales editoriales */
.editorial-line {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.editorial-line::before,
.editorial-line::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
}

/* Animaciones al hacer scroll */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* Efecto Parallax en imágenes */
.parallax-img-container {
  overflow: hidden;
}

.parallax-img-container img {
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

.parallax-img-container:hover img {
  transform: scale(1.06);
}

/* Indicador de Espacio de Video */
.video-reserved-box {
  position: relative;
  background: radial-gradient(circle at center, rgba(197, 160, 89, 0.15) 0%, rgba(10, 12, 11, 0.85) 100%);
  border: 1px dashed var(--accent-gold);
  backdrop-filter: blur(8px);
}

/* Pestañas de menú */
.menu-tab-btn {
  position: relative;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-display);
  font-size: 0.825rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: all 0.3s ease;
  border-radius: 9999px;
  border: 1px solid transparent;
}

.menu-tab-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.menu-tab-btn.active {
  color: #FFFFFF;
  background: linear-gradient(135deg, #C5A059 0%, #9A7632 100%);
  box-shadow: 0 4px 20px rgba(197, 160, 89, 0.35);
  border-color: transparent;
}

/* Menú de Publicidad Impresa */
.print-badge {
  background: rgba(197, 160, 89, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(197, 160, 89, 0.3);
  backdrop-filter: blur(4px);
}

/* Lightbox Modal */
.lightbox-modal {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-gold);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold-light);
}

/* Suavizado tipográfico */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Animación sutil de pulso en reserva */
@keyframes subtle-glow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.2);
  }
  50% {
    box-shadow: 0 0 30px rgba(197, 160, 89, 0.5);
  }
}

.btn-glow {
  animation: subtle-glow 4s infinite ease-in-out;
}
