/* Sistema de Diseño Zen Moderno - Kaizen Sushi - Bar */
/* C. San Pedro, Tala, Jalisco, México */

/* --- IMPORTACIÓN DE FUENTES --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* --- VARIABLES Y TOKENS --- */
:root {
  /* Paleta de Colores HSL y Hex (Obsidiana y Amarillo Pastel de Kaizen) */
  --bg-deep: #000000;       /* Negro sólido del menú físico */
  --bg-surface: #0a0a0a;    /* Superficies profundas */
  --bg-card: #0f0f11;       /* Tarjetas elegantes oscuras */
  --bg-card-hover: #17171a; /* Hover de tarjetas */
  --bg-glass: rgba(0, 0, 0, 0.85);
  
  --text-main: #ffffff;     /* Blanco puro para alto contraste */
  --text-muted: #b3b3b3;    /* Gris claro secundario */
  --text-dark: #707070;     /* Gris oscuro */
  
  --primary: #fcd068;       /* Amarillo Pastel Oficial del menú Kaizen */
  --primary-glow: rgba(252, 208, 104, 0.25);
  --primary-hover: #fed885;
  
  --accent: #e53e3e;        /* Carmesí para alertas/botones secundarios */
  --accent-glow: rgba(229, 62, 62, 0.2);
  --accent-hover: #fc8181;
  
  --success: #38a169;
  --info: #3182ce;
  --warning: #dd6b20;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(252, 208, 104, 0.5);
  
  /* Fuentes */
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Sombras y Efectos */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 20px var(--primary-glow);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --border-radius-sm: 0px;
  --border-radius-md: 0px;
  --border-radius-lg: 0px;
}

/* --- TEMA CLARO KAIZEN (ALTO CONTRASTE Y RESPETO A LA GAMA DE COLORES) --- */
body.light-theme {
  --bg-deep: #ffffff;       /* Fondo blanco del menú físico */
  --bg-surface: #f9f9f9;    /* Superficies suaves en blanco */
  --bg-card: #ffffff;       /* Tarjetas blancas claras */
  --bg-card-hover: #f5f5f5; /* Hover suave */
  --bg-glass: rgba(255, 255, 255, 0.9);
  
  --text-main: #000000;     /* Texto negro sólido para contraste máximo */
  --text-muted: #4d4d4d;    /* Gris medio */
  --text-dark: #808080;     /* Detalles oscuros */
  
  --border-color: rgba(0, 0, 0, 0.12);
  --border-focus: rgba(252, 208, 104, 0.7);
  
  --primary: #fcd068;       /* Amarillo pastel */
  --primary-glow: rgba(252, 208, 104, 0.35);
  --primary-hover: #e5b94f;
  
  --accent: #c53030;
  --accent-glow: rgba(197, 48, 48, 0.2);
  --accent-hover: #9b2c2c;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
}

/* --- RESET Y ESTILOS GENERALES --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

/* Scrollbar para Webkit */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 600;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  display: block;
  object-fit: cover;
}

/* --- CLASES DE UTILIDAD --- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
}

.gold-gradient-text {
  background: linear-gradient(135deg, #f1d57e 0%, #d4af37 50%, #b8860b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glow-btn {
  background: linear-gradient(135deg, var(--primary) 0%, #b8860b 100%);
  color: #000;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--border-radius-sm);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-title);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.glow-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
  background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
}
.glow-btn:active {
  transform: translateY(1px);
}

.secondary-btn {
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  font-weight: 500;
  padding: 12px 28px;
  border-radius: var(--border-radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--text-muted);
}

.accent-btn {
  background: linear-gradient(135deg, var(--accent) 0%, #9b2c2c 100%);
  color: #fff;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--border-radius-sm);
  box-shadow: 0 4px 15px rgba(229, 62, 62, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-title);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.accent-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

/* --- HEADER Y NAVEGACIÓN --- */
.kaizen-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
  padding: 16px 0;
}
.kaizen-header.scrolled {
  padding: 10px 0;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-text {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-family: var(--font-title);
  color: #ffffff;
  transition: var(--transition);
}
.logo-link:hover .logo-text {
  color: var(--primary);
  text-shadow: 0 0 15px var(--primary-glow);
}
.logo-tagline {
  font-size: 0.65rem;
  color: #e0e0e0; /* Muted white like the physical menu cover */
  text-transform: uppercase;
  letter-spacing: 0.4em;
  display: block;
  margin-top: -2px;
  transition: var(--transition);
}
.logo-link:hover .logo-tagline {
  color: var(--primary);
}

.kaizen-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 4px;
  border-radius: var(--border-radius-sm); /* Blocky design */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition);
}

body.light-theme .kaizen-nav {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.nav-link {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px; /* Tamaño de cápsula cómodo y balanceado */
  border-radius: 24px; /* Botón de pastilla redondeada */
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  height: 100%;
}

.nav-link:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

body.light-theme .nav-link:hover {
  background: rgba(0, 0, 0, 0.02);
}

.nav-link.active {
  color: #000000 !important; /* Texto negro de alto contraste en el botón de color */
  background: var(--primary) !important; /* Fondo dorado Kaizen */
  box-shadow: 0 4px 12px var(--primary-glow); /* Resplandor dorado místico */
}

body.light-theme .nav-link.active {
  color: #ffffff !important; /* Texto blanco en el botón de color para tema claro */
  background: var(--primary) !important;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* --- BOTÓN DE CARRITO EN PÍLDORA ULTRA-MODERNO Y LLAMATIVO --- */
.cart-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(229, 193, 88, 0.12) 0%, rgba(229, 193, 88, 0.04) 100%);
  border: 1.5px solid var(--primary);
  padding: 8px 18px;
  border-radius: var(--border-radius-sm);
  color: var(--primary);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 15px rgba(229, 193, 88, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  height: 40px;
  cursor: pointer;
}

body.light-theme .cart-pill-btn {
  background: linear-gradient(135deg, rgba(205, 163, 44, 0.1) 0%, rgba(205, 163, 44, 0.02) 100%);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 4px 15px rgba(205, 163, 44, 0.05);
}

.cart-pill-btn:hover {
  transform: translateY(-2px) scale(1.03);
  background: var(--primary);
  color: #000000 !important;
  box-shadow: 0 6px 20px var(--primary-glow);
  border-color: var(--primary-hover);
}

body.light-theme .cart-pill-btn:hover {
  color: #ffffff !important; /* Texto blanco en el botón de color para tema claro */
}

.cart-pill-btn:active {
  transform: translateY(1px);
}

.cart-svg-icon {
  transition: transform 0.3s ease;
  stroke: currentColor;
}

.cart-pill-btn:hover .cart-svg-icon {
  transform: rotate(-10deg) scale(1.1);
}

.cart-pill-text {
  font-weight: 700;
  margin-top: 1px;
}

.cart-pill-count {
  background: var(--accent);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
  min-width: 20px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.cart-pill-btn:hover .cart-pill-count {
  background: #000000;
  color: var(--primary);
}

body.light-theme .cart-pill-btn:hover .cart-pill-count {
  background: #ffffff;
  color: var(--primary);
}

/* --- BOTÓN DE TEMA ULTRA-MODERNO SIN BORDES --- */
.theme-icon-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
  color: var(--text-muted);
}

body.light-theme .theme-icon-btn {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.06);
}

.theme-icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
  color: var(--primary);
  transform: scale(1.08) rotate(15deg);
  box-shadow: 0 0 12px rgba(229, 193, 88, 0.15);
}

body.light-theme .theme-icon-btn:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 12px rgba(205, 163, 44, 0.15);
}

.mobile-menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--text-main);
}

/* --- SECCIÓN HERO --- */
.hero-section {
  position: relative;
  min-height: 100vh;
  padding-top: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 80% 20%, rgba(229, 193, 88, 0.04) 0%, transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(229, 62, 62, 0.04) 0%, transparent 50%),
              url('https://images.unsplash.com/photo-1611143669185-af224c5e3252?auto=format&fit=crop&q=80&w=1600') no-repeat center center/cover;
}

@media (min-width: 1025px) {
  .hero-section {
    height: calc(100vh - 70px); /* Header fixed + Footer 70px = Encaje matemático perfecto sin scroll */
    min-height: 520px;
    padding-top: 74px;
    overflow: hidden;
  }
}

/* Adaptación premium para pantallas de escritorio de poca altura (ej. Laptops) */
@media (min-width: 1025px) and (max-height: 850px) {
  .hero-fancy-card {
    transform: scale(0.85);
    transform-origin: center center;
  }
}

@media (min-width: 1025px) and (max-height: 720px) {
  .hero-fancy-card {
    transform: scale(0.72);
    transform-origin: center center;
  }
  .hero-section {
    padding-top: 55px;
  }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(17, 19, 28, 0.4) 0%, rgba(10, 11, 14, 0.95) 80%);
  z-index: 1;
}

/* --- NUEVA DISTRIBUCIÓN CENTRADA Y FANCY PARA EL INICIO (HERO) --- */
.hero-centered-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-fancy-card {
  max-width: 840px;
  width: 100%;
  padding: 56px 64px;
  border-radius: 40px; /* Bordes extra redondeados y modernos */
  background: rgba(10, 11, 14, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  animation: fadeIn 0.8s ease;
}

body.light-theme .hero-fancy-card {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.06);
}

.hero-fancy-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-glow);
  box-shadow: 0 30px 80px rgba(229, 193, 88, 0.15);
}

body.light-theme .hero-fancy-card:hover {
  box-shadow: 0 30px 80px rgba(205, 163, 44, 0.1);
}

/* Tipografía de Título Ultra-Fancy */
.hero-fancy-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.hero-sub1 {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.6rem;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  text-transform: uppercase;
  display: block;
}

.hero-main-brand {
  font-family: var(--font-title);
  font-size: 6rem; /* Aumento a tamaño majestuoso */
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
  display: block;
  text-transform: uppercase;
  margin: 6px 0;
  filter: drop-shadow(0 0 25px rgba(229, 193, 88, 0.25));
}

body.light-theme .hero-main-brand {
  filter: drop-shadow(0 0 25px rgba(205, 163, 44, 0.15));
}

.hero-sub2 {
  font-family: var(--font-title);
  font-size: 2.8rem;
  letter-spacing: 0.35em;
  font-weight: 600;
  color: #ffffff;
  display: block;
  text-transform: uppercase;
  text-indent: 0.35em; /* Compensación del spacing a la derecha */
}

body.light-theme .hero-sub2 {
  color: var(--text-main);
}

/* Descripción */
.hero-fancy-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.7;
  margin-bottom: 40px;
}

/* Botones Centrados */
.hero-fancy-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

.hero-btn-large {
  padding: 14px 36px !important;
  font-size: 0.92rem !important;
  border-radius: 30px !important;
}

.hero-btn-large-secondary {
  padding: 14px 36px !important;
  font-size: 0.92rem !important;
  border-radius: 30px !important;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

body.light-theme .hero-btn-large-secondary {
  background: rgba(0, 0, 0, 0.02);
  color: var(--text-main);
}

.hero-btn-large-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 4px 15px rgba(229, 193, 88, 0.1);
}

body.light-theme .hero-btn-large-secondary:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 4px 15px rgba(205, 163, 44, 0.1);
}

/* Responsividad para Móviles (Hero Fancy Card) */
@media (max-width: 768px) {
  .hero-fancy-card {
    padding: 36px 20px;
    border-radius: 28px;
    border-color: rgba(255, 255, 255, 0.05);
  }
  .hero-sub1 {
    font-size: 1rem;
    letter-spacing: 0.2em;
  }
  .hero-main-brand {
    font-size: 3.5rem;
  }
  .hero-sub2 {
    font-size: 1.6rem;
    letter-spacing: 0.25em;
    text-indent: 0.25em;
  }
  .hero-fancy-desc {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 24px;
  }
  .hero-fancy-buttons {
    flex-direction: column;
    gap: 12px;
  }
  .hero-btn-large, .hero-btn-large-secondary {
    width: 100%;
    justify-content: center;
    padding: 12px 24px !important;
  }
}

/* --- SECCIÓN: MENÚ INTERACTIVO --- */
.section {
  padding: 100px 0;
}
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-tag {
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 12px;
  display: block;
}
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.section-subtitle {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.menu-tabs-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
  overflow-x: auto;
  padding-bottom: 12px;
}
.menu-tab-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  color: var(--text-muted);
  font-weight: 500;
  font-family: var(--font-title);
  white-space: nowrap;
  margin: 0 6px;
  font-size: 0.9rem;
}
.menu-tab-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-muted);
  color: var(--text-main);
}
.menu-tab-btn.active {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
  box-shadow: 0 4px 15px var(--primary-glow);
  font-weight: 600;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 32px;
}

.menu-item-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 24px !important; /* Esquinas redondeadas gourmet estilo referencia */
  padding: 16px !important;
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.4s ease, 
              box-shadow 0.4s ease;
  height: auto !important; /* Altura dinámica y compacta sin áreas vacías excesivas */
  min-height: unset !important;
  overflow: hidden !important;
  cursor: pointer;
}
.menu-item-card.has-variants {
  height: auto !important;
  min-height: unset !important;
}

body.light-theme .menu-item-card {
  background: #ffffff !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.08);
}

.menu-item-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-glow);
  box-shadow: 0 20px 40px rgba(252, 208, 104, 0.18);
}

body.light-theme .menu-item-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

/* Contenedor de Imagen de Portada */
.menu-img-container {
  position: relative;
  width: 100%;
  height: 240px;
  margin-bottom: 16px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body.light-theme .menu-img-container {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.menu-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ocupa todo el ancho de la tarjeta sin barras negras a los lados */
  object-position: center;
  padding: 0;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Efecto de Viñeta Oscura Sutil en la Imagen */
.menu-img-container::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(10, 11, 14, 0.4) 100%);
  pointer-events: none;
  z-index: 2;
}

body.light-theme .menu-img-container::after {
  background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.1) 100%);
}

.menu-item-card:hover .menu-item-img {
  transform: scale(1.08);
}

/* Badges Premium Glassmorphic */
.card-badges-wrapper {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 5;
}

.glass-badge {
  font-family: var(--font-title);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: 8px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.glass-badge-popular {
  background: rgba(229, 193, 88, 0.15);
  border: 1px solid var(--primary);
  color: var(--primary);
}

body.light-theme .glass-badge-popular {
  background: rgba(205, 163, 44, 0.12);
  color: #8c6a0c;
  border-color: rgba(205, 163, 44, 0.4);
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.glass-badge-spicy {
  background: rgba(229, 62, 62, 0.15);
  border: 1px solid var(--accent);
  color: var(--accent);
}

body.light-theme .glass-badge-spicy {
  background: rgba(197, 48, 48, 0.12);
  color: #a62a2a;
  border-color: rgba(197, 48, 48, 0.4);
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

/* Botón Elegantísimo Zoom Hover */
.image-zoom-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 11, 14, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 3;
}

.menu-img-container:hover .image-zoom-overlay {
  opacity: 1;
}

.zoom-overlay-btn {
  background: rgba(10, 11, 14, 0.85);
  color: var(--primary);
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1.5px solid var(--primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-title);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

body.light-theme .zoom-overlay-btn {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.zoom-overlay-btn:hover {
  background: var(--primary);
  color: #000 !important;
  box-shadow: 0 8px 24px var(--primary-glow);
  transform: scale(1.04);
}

body.light-theme .zoom-overlay-btn:hover {
  color: #fff !important;
  background: var(--primary);
  box-shadow: 0 8px 24px var(--primary-glow);
}

/* Ficha Técnica y Textos Centrados */
.menu-body {
  padding: 8px 16px 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  flex-grow: 1;
  background: transparent;
  gap: 8px;
}

.menu-title-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
}

.menu-item-title {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 800;
  text-align: center;
  color: var(--text-main);
  line-height: 1.3;
  transition: color 0.3s ease;
}

.menu-item-card:hover .menu-item-title {
  color: var(--primary);
}

/* Fila de Precios Separada */
.menu-item-price-row {
  margin-top: 2px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.menu-item-price {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
  text-shadow: 0 0 10px rgba(229, 193, 88, 0.1);
}

body.light-theme .menu-item-price {
  color: #000000 !important;
  text-shadow: none;
}

/* Descripción Legible de Alto Impacto */
.menu-item-desc {
  font-family: var(--font-body);
  font-size: 0.95rem; /* Tamaño más grande y cómodo de leer */
  color: var(--text-main);
  opacity: 0.92;
  text-align: center;
  line-height: 1.5;
  margin: 6px 0 14px;
  font-weight: 400;
  height: auto;
  max-height: 100px;
  overflow-y: auto;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

/* Fila de Compra e Interacción */
.menu-action-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: auto;
}


.menu-action {
  display: flex;
  align-items: center;
  gap: 12px;
}
.quantity-selector {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 4px;
}
.qty-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-weight: 600;
  color: var(--text-muted);
}
.qty-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}
.qty-val {
  width: 32px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
}
.add-to-cart-btn {
  flex-grow: 1;
  height: 42px;
  border-radius: var(--border-radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.add-to-cart-btn:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: #000;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.menu-item-card.unavailable {
  opacity: 0.6;
}
.menu-item-card.unavailable::before {
  content: 'AGOTADO';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-weight: 800;
  font-size: 1.5rem;
  font-family: var(--font-title);
  letter-spacing: 0.1em;
  pointer-events: none;
}

/* --- RESERVACIONES --- */
.reservations-section {
  position: relative;
  background: linear-gradient(to bottom, var(--bg-deep) 0%, var(--bg-surface) 100%);
}
.reservations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.res-info-tag {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.res-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 12px 0 24px;
}
.res-desc {
  color: var(--text-muted);
  margin-bottom: 40px;
}

.res-bullets {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.res-bullet-item {
  display: flex;
  gap: 16px;
}
.bullet-icon {
  background: rgba(229, 193, 88, 0.1);
  color: var(--primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.bullet-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.bullet-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.res-form-wrapper {
  padding: 40px;
}

.res-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.form-control {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  border-radius: var(--border-radius-sm);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}
.form-control:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 8px rgba(229, 193, 88, 0.15);
}
.form-control::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

select.form-control option {
  background: var(--bg-surface);
  color: #fff;
}

/* --- FOOTER MINIMALISTA Y MODERNO (KAIZEN CLEAN STYLE) --- */
.kaizen-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border-color);
  padding: 16px 0; /* Padding muy bajo para hacerlo ultra delgado */
  height: 70px;
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 10;
  position: relative;
  width: 100%;
}

body.light-theme .kaizen-footer {
  background: var(--bg-surface);
}

.footer-minimal-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 20px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-copyright {
  font-size: 0.78rem;
  color: var(--text-dark);
  font-family: var(--font-body);
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-contact-info {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-body);
}

.footer-social-link {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 600;
  font-family: var(--font-title);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.footer-social-link:hover {
  color: var(--primary-hover);
  text-shadow: 0 0 8px var(--primary-glow);
}

/* --- ACCESO ADMINISTRATIVO SUTIL EN FOOTER --- */
.footer-admin-link {
  font-size: 0.78rem;
  color: var(--text-dark);
  font-weight: 500;
  font-family: var(--font-title);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
  opacity: 0.5;
  cursor: pointer;
}

.footer-admin-link:hover {
  color: var(--primary);
  opacity: 1;
  text-shadow: 0 0 8px var(--primary-glow);
}

@media (max-width: 768px) {
  .kaizen-footer {
    height: auto;
    padding: 24px 0;
  }
  .footer-minimal-container {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  .footer-left {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
  .footer-right {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
}

/* --- SIDEBAR DE CARRITO (DRAWER) --- */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  display: none;
  transition: opacity 0.3s ease;
}
.cart-drawer-overlay.active {
  display: block !important;
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 440px;
  max-width: 100vw;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  z-index: 1200;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}
.cart-drawer-overlay.active .cart-drawer {
  transform: translateX(0);
}

.cart-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-title-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cart-title {
  font-size: 1.25rem;
  font-weight: 600;
}
.cart-close-btn {
  font-size: 24px;
  color: var(--text-muted);
}
.cart-close-btn:hover {
  color: #fff;
}

.cart-items-list {
  flex-grow: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cart-item {
  display: flex;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding-bottom: 16px;
}
.cart-item-img-thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
}
.cart-item-info {
  flex-grow: 1;
}
.cart-item-name {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 4px;
}
.cart-item-price {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
}
.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cart-qty-selector {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 4px;
}
.cart-qty-btn {
  width: 24px;
  height: 24px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-qty-val {
  width: 24px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
}
.cart-remove-item {
  color: var(--text-dark);
  font-size: 1.1rem;
}
.cart-remove-item:hover {
  color: var(--accent);
}

.cart-empty-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 80%;
  color: var(--text-muted);
  text-align: center;
  padding: 40px;
}
.cart-empty-icon {
  font-size: 3rem;
  opacity: 0.3;
}

.cart-footer {
  padding: 24px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-card);
}
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 12px;
  margin-bottom: 20px;
}
.checkout-btn {
  width: 100%;
  height: 48px;
  border-radius: var(--border-radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* --- MODALES GENERALES (MODAL DE CHECKOUT / LOGIN) --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}
.modal-overlay.active {
  display: flex !important;
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  width: 100%;
  max-width: 540px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateY(30px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}
.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
}
.modal-title {
  font-size: 1.35rem;
  font-weight: 600;
}
.modal-close-btn {
  font-size: 28px;
  color: var(--text-muted);
}
.modal-close-btn:hover {
  color: #fff;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
}

/* --- PANEL ADMINISTRATIVO (ESTILOS COMPLETOS) --- */
.admin-section {
  padding-top: 120px;
  min-height: 100vh;
  display: none; /* Se activa mediante JS */
}
.admin-section.active {
  display: block;
}

.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: start;
}

.admin-sidebar {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.admin-menu-heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dark);
  letter-spacing: 0.1em;
  margin: 16px 0 8px 12px;
}
.admin-nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--border-radius-sm);
  color: var(--text-muted);
  font-weight: 500;
  width: 100%;
  text-align: left;
  font-size: 0.9rem;
}
.admin-nav-btn:hover {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-main);
}
.admin-nav-btn.active {
  background: var(--primary-glow);
  color: var(--primary);
  border-left: 3px solid var(--primary);
  font-weight: 600;
}

.admin-content-view {
  display: none;
}
.admin-content-view.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

/* KPIs de Analytics */
.kpis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.kpi-card {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.kpi-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(229, 193, 88, 0.08);
  border: 1px solid rgba(229, 193, 88, 0.15);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.kpi-card:nth-child(2) .kpi-icon {
  background: rgba(49, 130, 206, 0.08);
  border-color: rgba(49, 130, 206, 0.15);
  color: var(--info);
}
.kpi-card:nth-child(3) .kpi-icon {
  background: rgba(56, 161, 105, 0.08);
  border-color: rgba(56, 161, 105, 0.15);
  color: var(--success);
}
.kpi-card:nth-child(4) .kpi-icon {
  background: rgba(229, 62, 62, 0.08);
  border-color: rgba(229, 62, 62, 0.15);
  color: var(--accent);
}
.kpi-info {
  display: flex;
  flex-direction: column;
}
.kpi-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.kpi-value {
  font-size: 1.6rem;
  font-weight: 700;
  font-family: var(--font-title);
  line-height: 1.1;
}

/* Gráficos del Dashboard */
.charts-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  margin-bottom: 32px;
}
.chart-card {
  padding: 24px;
  min-height: 380px;
}
.chart-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.chart-title-lbl {
  font-size: 1.1rem;
  font-weight: 600;
}
.chart-container {
  position: relative;
  height: 280px;
  width: 100%;
}

/* Tablas Administrativas */
.admin-card {
  padding: 24px;
  margin-bottom: 24px;
}
.admin-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.admin-card-title {
  font-size: 1.2rem;
  font-weight: 600;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}
.kaizen-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}
.kaizen-table th {
  padding: 16px;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.kaizen-table td {
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  vertical-align: middle;
}
.kaizen-table tr:hover td {
  background: rgba(255, 255, 255, 0.01);
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.status-badge-pending {
  background: rgba(221, 107, 32, 0.1);
  color: var(--warning);
}
.status-badge-preparing {
  background: rgba(49, 130, 206, 0.1);
  color: var(--info);
}
.status-badge-shipped {
  background: rgba(229, 193, 88, 0.1);
  color: var(--primary);
}
.status-badge-delivered {
  background: rgba(56, 161, 105, 0.1);
  color: var(--success);
}
.status-badge-cancelled {
  background: rgba(229, 62, 62, 0.1);
  color: var(--accent);
}

.action-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  margin-right: 6px;
}
.action-icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}
.action-icon-btn.btn-edit:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.action-icon-btn.btn-delete:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* CRUD del Menú */
.admin-product-thumb {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
}
.switch-control {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 22px;
}
.switch-control input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.1);
  transition: .3s;
  border-radius: 34px;
  border: 1px solid var(--border-color);
}
.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: var(--text-muted);
  transition: .3s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: var(--primary-glow);
  border-color: var(--primary);
}
input:checked + .slider:before {
  transform: translateX(22px);
  background-color: var(--primary);
}

/* SVG Chart styling */
.chart-line {
  fill: none;
  stroke: var(--primary);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 4px 10px rgba(229, 193, 88, 0.3));
}
.chart-grid-line {
  stroke: var(--border-color);
  stroke-width: 1;
}
.chart-dot {
  fill: var(--bg-surface);
  stroke: var(--primary);
  stroke-width: 3;
}
.chart-dot:hover {
  fill: var(--primary);
  r: 6;
  cursor: pointer;
}
.chart-axis-lbl {
  fill: var(--text-dark);
  font-size: 11px;
  font-family: var(--font-body);
}

/* Login Panel styles */
.login-wrapper {
  max-width: 400px;
  margin: 100px auto;
  padding: 40px;
}
.login-title-row {
  text-align: center;
  margin-bottom: 32px;
}
.login-logo {
  font-size: 3rem;
  margin-bottom: 12px;
}
.login-title {
  font-size: 1.8rem;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.login-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- ANIMACIONES KEYFRAMES --- */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(229, 62, 62, 0.5); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(229, 62, 62, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(229, 62, 62, 0); }
}

@keyframes pulse-success {
  0% { box-shadow: 0 0 0 0 rgba(56, 161, 105, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(56, 161, 105, 0); }
  100% { box-shadow: 0 0 0 0 rgba(56, 161, 105, 0); }
}

@keyframes pulse-error {
  0% { box-shadow: 0 0 0 0 rgba(229, 62, 62, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(229, 62, 62, 0); }
  100% { box-shadow: 0 0 0 0 rgba(229, 62, 62, 0); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- RESPONSIVIDAD (MEDIA QUERIES) --- */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-badge {
    margin: 0 auto 24px;
  }
  .hero-title {
    font-size: 3rem;
  }
  .hero-desc {
    margin: 0 auto 40px;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-showcase {
    order: -1;
  }
  
  .reservations-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    flex-direction: row;
    overflow-x: auto;
    padding: 8px;
    border-bottom: 1px solid var(--border-color);
  }
  .admin-menu-heading {
    display: none;
  }
  .admin-nav-btn {
    width: auto;
    white-space: nowrap;
  }
  
  .charts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .kaizen-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .hero-plate-img {
    width: 280px;
  }
  .hero-circle-backdrop {
    width: 300px;
    height: 300px;
  }
  .section {
    padding: 60px 0;
  }
  .section-title {
    font-size: 2rem;
  }
}

/* ==========================================================================
   NUEVO TABLERO DE PEDIDO (EXPANDIDO Y REUBICADO)
   ========================================================================== */

.menu-order-board {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  width: 100%;
}

/* --- CONTENEDOR DEL CARRUSEL DE CATEGORÍAS (STICKY & OPACADO) --- */
.categories-carousel-container {
  position: sticky;
  top: 78px; /* Altura perfecta por debajo del header */
  background: var(--bg-deep);
  z-index: 100;
  padding: 12px 48px; /* Espacio extra en los costados para alojar las flechas */
  margin-bottom: 36px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  width: 100%;
  transition: var(--transition);
}

body.light-theme .categories-carousel-container {
  background: var(--bg-deep); /* Garantizar que sea opaco en tema claro */
}

/* Modificamos la barra interna para que no sea sticky por sí misma pero conserve scroll suave */
.sticky-categories-bar {
  width: 100%;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none; /* Ocultar scrollbar en Firefox */
  scroll-behavior: smooth;
  padding: 4px 0;
  justify-content: flex-start; /* Permitir scroll a la izquierda */
  transition: var(--transition);
}
.sticky-categories-bar::-webkit-scrollbar {
  display: none; /* Ocultar scrollbar en Chrome/Safari */
}

/* Flechas de Navegación de Categorías - Visibles en todos los dispositivos */
.categories-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1.5px solid var(--primary);
  color: var(--primary);
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), 0 0 10px var(--primary-glow);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 105;
  user-select: none;
  line-height: 1;
  padding-bottom: 4px; /* Centrado fino del glifo de flecha */
  opacity: 1 !important;
  pointer-events: auto !important;
}

body.light-theme .categories-nav-arrow {
  background: #ffffff;
  border-color: #000000;
  color: #000000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.categories-nav-arrow.prev {
  left: 6px;
}
.categories-nav-arrow.next {
  right: 6px;
}
.categories-nav-arrow:hover {
  background: var(--primary) !important;
  color: #000000 !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 16px var(--primary-glow);
  transform: translateY(-50%) scale(1.1);
}

body.light-theme .categories-nav-arrow:hover {
  background: var(--primary) !important;
  color: #000000 !important;
  border-color: #000000 !important;
}

.categories-nav-arrow:active {
  transform: translateY(-50%) scale(0.92);
}

@media (max-width: 768px) {
  .categories-carousel-container {
    top: 74px; /* Adaptar si el header móvil es ligeramente más bajo */
    padding: 10px 42px;
  }
  .categories-nav-arrow {
    width: 34px;
    height: 34px;
    font-size: 1.5rem;
    display: flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  .categories-nav-arrow.prev {
    left: 4px;
  }
  .categories-nav-arrow.next {
    right: 4px;
  }
}

/* Ocultar barra lateral anterior en todo dispositivo */
.menu-sidebar {
  display: none !important;
}

.menu-sidebar-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--border-radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-weight: 600;
  font-family: var(--font-title);
  font-size: 0.85rem;
  white-space: nowrap;
  transition: var(--transition);
  cursor: pointer;
}
.menu-sidebar-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}
.menu-sidebar-btn.active {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
  box-shadow: 0 4px 15px var(--primary-glow);
}

/* --- COLUMNA CENTRAL: SECCIONES DE PLATOS (SCROLLABLE) --- */
.menu-dishes-content {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.category-section {
  scroll-margin-top: 110px;
}
.category-section-title {
  font-size: 2.3rem;
  font-weight: 900;
  color: #e53e3e; /* Rojo vibrante gourmet estilo la página de referencia */
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 28px;
  padding: 0;
  border: none;
  display: block;
  font-family: var(--font-title);
  text-shadow: 0 4px 15px rgba(229, 62, 62, 0.2);
}

body.light-theme .category-section-title {
  color: #d9383a;
  text-shadow: none;
}

/* Rejilla de Platos de Ancho Completo (2 Columnas en Desktop) */
.compact-dishes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

@media (max-width: 1200px) {
  .compact-dishes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

/* Tarjeta Compacta de Platillo (Sushi Factory Style) */
.compact-menu-card {
  display: flex;
  gap: 16px;
  padding: 16px;
  align-items: center;
  transition: var(--transition);
  height: 140px;
}
.compact-menu-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-glow);
  box-shadow: var(--shadow-md);
}
.compact-card-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  overflow: hidden;
}
.compact-card-title-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.compact-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.compact-card-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 4px;
  height: 32px;
}
.compact-card-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}
.compact-card-price {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
}
.compact-card-action {
  display: flex;
  align-items: center;
}
.compact-add-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 600;
  transition: var(--transition);
}
.compact-add-btn:hover {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}
.compact-qty-selector {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2px;
}
.compact-qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}
.compact-qty-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}
.compact-qty-val {
  width: 20px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
}
.compact-card-img-thumb {
  width: 100px;
  height: 100px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.compact-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- COLUMNA DERECHA: SIDEBAR DE CARRITO ESTÁTICO (STICKY) --- */
.menu-cart-sidebar {
  display: none !important;
}

/* --- BARRA DE COMPRA FLOTANTE PARA MÓVILES --- */
.mobile-sticky-cart-bar {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  height: 60px;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--primary) 0%, #b8860b 100%);
  color: #000 !important;
  display: none;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(229, 193, 88, 0.4);
  cursor: pointer;
  border: 1px solid var(--primary-hover);
}
.mobile-sticky-cart-bar:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
  box-shadow: 0 12px 35px rgba(229, 193, 88, 0.6);
}
.mobile-cart-badge {
  background: #000;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 12px;
}

/* --- RESPONSIVIDAD PARA EL ORDER BOARD Y CARRITO FLOTANTE --- */
.mobile-sticky-cart-bar.active {
  display: flex !important;
}

@media (min-width: 851px) {
  .mobile-sticky-cart-bar {
    left: auto !important;
    right: 24px !important;
    width: 320px !important;
  }
}

@media (max-width: 850px) {
  .menu-sidebar {
    display: none !important;
  }
  .menu-cart-sidebar {
    display: none !important;
  }
  .compact-dishes-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .menu-img-container {
    height: 210px !important;
  }
  .menu-item-card {
    border-radius: 20px !important;
    padding: 12px !important;
  }
  .menu-item-desc {
    font-size: 0.9rem;
  }
}


/* ==========================================================================
   MODAL DE CARRUSEL DE IMÁGENES & TEMA CLARO
   ========================================================================== */

/* --- Estilos del Carrusel --- */
.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: var(--transition);
  z-index: 1000;
}
.carousel-nav-btn:hover {
  background: rgba(229, 193, 88, 0.25);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}
.carousel-nav-btn.prev {
  left: 16px;
}
.carousel-nav-btn.next {
  right: 16px;
}

.carousel-counter {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.7);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-title);
  border: 1px solid rgba(229, 193, 88, 0.3);
  letter-spacing: 0.05em;
  z-index: 1000;
}

.carousel-dots-container {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 14px 0;
  background: rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid var(--border-color);
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
body.light-theme .carousel-dot {
  background: rgba(0, 0, 0, 0.15);
}
.carousel-dot:hover {
  background: var(--primary-hover);
}
.carousel-dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary-glow);
}

/* Hover e interacción del modal de carrusel con zoom interactivo */
#carousel-main-img {
  transition: opacity 0.2s ease;
  transform-origin: center center;
  cursor: zoom-in;
}
#carousel-main-img.zoomed {
  transform: scale(2.2);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
}

/* Modales para Tema Claro (Corrección de inputs y fuentes) */
body.light-theme .modal-header {
  background: var(--bg-surface);
}
body.light-theme .form-control {
  background: #ffffff;
  color: #141519;
  border-color: rgba(0, 0, 0, 0.12);
}
body.light-theme .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 8px var(--primary-glow);
}
body.light-theme .form-control::placeholder {
  color: rgba(0, 0, 0, 0.35);
}
body.light-theme select.form-control option {
  background: #ffffff;
  color: #141519;
}

/* Correcciones de visibilidad para elementos específicos */
body.light-theme .menu-sidebar-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: #000000;
  color: #000000;
}
body.light-theme .menu-sidebar-btn.active {
  background: var(--primary) !important;
  color: #000000 !important;
  border-color: #000000 !important;
  box-shadow: 0 4px 12px var(--primary-glow) !important;
}
body.light-theme .compact-add-btn {
  background: #000000 !important;
  color: #ffffff !important;
}
body.light-theme .compact-qty-selector {
  background: #ffffff !important;
  border-color: #000000 !important;
}
body.light-theme .quantity-selector {
  background: #ffffff !important;
  border-color: #000000 !important;
}
body.light-theme .cart-qty-selector {
  background: #ffffff !important;
  border-color: #000000 !important;
}

/* Botones interactivos del menú en tema claro (Alto Contraste Estilo Menú Físico) */
body.light-theme .add-to-cart-btn {
  background: #000000 !important;
  color: #ffffff !important;
  border-color: #000000 !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-weight: 700;
}
body.light-theme .add-to-cart-btn:hover {
  background: var(--primary) !important;
  color: #000000 !important;
  border-color: var(--primary) !important;
  box-shadow: 0 4px 15px rgba(252, 208, 104, 0.45);
}
body.light-theme .qty-btn {
  background: #000000 !important;
  color: #ffffff !important;
  border-radius: 0px !important;
}
body.light-theme .qty-btn:hover {
  background: var(--primary) !important;
  color: #000000 !important;
}

/* Sombras en el tema claro */
body.light-theme .glass-panel {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

/* Ajustes de contraste en las tablas del Panel Admin */
body.light-theme .kaizen-table tr:hover td {
  background: rgba(0, 0, 0, 0.01);
}
body.light-theme .admin-nav-btn:hover {
  background: rgba(0, 0, 0, 0.02);
}
body.light-theme .admin-nav-btn.active {
  background: rgba(212, 175, 55, 0.15);
}

/* --- AJUSTES DE CABECERA EN TEMA CLARO --- */
body.light-theme .kaizen-header:not(.scrolled) .logo-text {
  color: #ffffff; /* Sigue siendo blanca en el hero oscuro */
}
body.light-theme .kaizen-header:not(.scrolled) .nav-link {
  color: rgba(255, 255, 255, 0.8);
}
body.light-theme .kaizen-header:not(.scrolled) .nav-link:hover {
  color: #ffffff;
}
body.light-theme .kaizen-header:not(.scrolled) .theme-toggle-btn,
body.light-theme .kaizen-header:not(.scrolled) .cart-icon-btn {
  color: #ffffff;
  border-color: rgba(255,255,255,0.15) !important;
}

body.light-theme .kaizen-header.scrolled .logo-text {
  color: var(--text-main);
}
body.light-theme .kaizen-header.scrolled .logo-tagline {
  color: var(--text-muted);
}
body.light-theme .kaizen-header.scrolled .nav-link {
  color: var(--text-muted);
}
body.light-theme .kaizen-header.scrolled .nav-link:hover {
  color: var(--text-main);
}
body.light-theme .kaizen-header.scrolled .theme-toggle-btn,
body.light-theme .kaizen-header.scrolled .cart-icon-btn {
  color: var(--text-main);
  border-color: var(--border-color) !important;
}
body.light-theme .kaizen-footer .logo-text {
  color: var(--text-main);
}

/* ==========================================================================
   TARJETAS INTERACTIVAS DE SELECCIÓN DE SERVICIO (CHECKOUT)
   ========================================================================== */

.service-selector-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 6px;
}

.service-card {
  border: 2px solid var(--border-color);
  background: var(--bg-card);
  padding: 16px;
  border-radius: var(--border-radius-md);
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  user-select: none;
}

.service-card:hover {
  border-color: var(--primary-glow);
  transform: translateY(-2px);
}

.service-card.active {
  border-color: var(--primary) !important;
  background: rgba(229, 193, 88, 0.08) !important;
  box-shadow: 0 4px 15px rgba(229, 193, 88, 0.15);
}

body.light-theme .service-card.active {
  background: rgba(205, 163, 44, 0.08) !important;
  box-shadow: 0 4px 15px rgba(205, 163, 44, 0.05);
}

.service-card-icon {
  font-size: 1.8rem;
  transition: transform 0.3s ease;
}

.service-card:hover .service-card-icon {
  transform: scale(1.15);
}

.service-card-title {
  font-weight: 700;
  font-family: var(--font-title);
  font-size: 0.9rem;
  color: var(--text-main);
}

.service-card-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* ==========================================================================
   ESTILOS ADICIONALES PARA EL MÓDULO CONTABLE
   ========================================================================== */

.accounting-tabs-bar {
  border-bottom: 2px solid var(--border-color);
}

.accounting-tab-btn {
  background: transparent;
  border: none;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dark);
  padding: 12px 24px;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}

.accounting-tab-btn:hover {
  color: var(--text-main);
}

.accounting-tab-btn.active {
  color: var(--primary) !important;
  border-bottom-color: var(--primary) !important;
}

body.light-theme .accounting-tab-btn.active {
  color: var(--primary) !important;
}

.accounting-input-table {
  background: rgba(255,255,255,0.01);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-main);
  padding: 6px 10px;
  width: 100%;
  font-family: monospace;
  font-size: 0.9rem;
}

.accounting-input-table:focus {
  border-color: var(--primary);
  background: rgba(255,255,255,0.03);
  outline: none;
}

body.light-theme .accounting-input-table {
  background: #ffffff;
  color: #141519;
  border-color: rgba(0, 0, 0, 0.15);
}

/* Optimización para Impresión (Print Styles - Ticket POS 80mm & Reportes) */
@media print {
  @page {
    size: 80mm auto;
    margin: 0;
  }

  html, body {
    background: #ffffff !important;
    color: #000000 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body * {
    visibility: hidden !important;
  }

  /* 1. Ticket Térmico POS 80mm */
  #printable-ticket, #printable-ticket * {
    visibility: visible !important;
  }
  #printable-ticket {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 76mm !important;
    margin: 0 auto !important;
    padding: 4mm 2mm !important;
    font-family: 'Courier New', Courier, monospace !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
    color: #000000 !important;
    background: #ffffff !important;
  }

  /* 2. Modal Recibo */
  #receipt-modal-content, #receipt-modal-content * {
    visibility: visible !important;
  }
  #receipt-modal-content {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 76mm !important;
    padding: 4mm 2mm !important;
    font-family: 'Courier New', Courier, monospace !important;
    color: #000000 !important;
    background: #ffffff !important;
  }

  /* 3. Reportes de Contabilidad */
  #accounting-printable-report, #accounting-printable-report * {
    visibility: visible !important;
  }
  #accounting-printable-report {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    border: none !important;
    box-shadow: none !important;
    background: #ffffff !important;
    color: #000000 !important;
    padding: 0 !important;
  }
}

/* --- INVENTARIO SEMANAL & COMPRAS --- */
.staff-inventory-section {
  position: relative;
  background: var(--bg-body);
}

.area-tab-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 12px 18px;
  border-radius: var(--border-radius-sm);
  color: var(--text-muted);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.area-tab-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border-color: var(--primary);
}

.area-tab-btn.active {
  background: var(--primary-glow);
  color: var(--primary) !important;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(229, 193, 88, 0.15);
}

body.light-theme .area-tab-btn {
  background: #ffffff;
  color: #555;
  border-color: rgba(0,0,0,0.1);
}

body.light-theme .area-tab-btn.active {
  background: rgba(229, 193, 88, 0.1);
  color: var(--primary) !important;
  border-color: var(--primary);
}

.inventory-staff-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-radius: var(--border-radius-sm);
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.inventory-staff-card:hover {
  border-color: rgba(229, 193, 88, 0.3);
  background: rgba(255, 255, 255, 0.02);
  transform: translateY(-2px);
}

body.light-theme .inventory-staff-card {
  background: #ffffff;
  border-color: rgba(0,0,0,0.08);
}

body.light-theme .inventory-staff-card:hover {
  background: rgba(0, 0, 0, 0.01);
  border-color: rgba(229, 193, 88, 0.4);
}

.inventory-item-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 4px;
}

.inventory-item-subtitle {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.inventory-staff-input-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.inventory-staff-input {
  width: 90px;
  height: 44px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: monospace;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  color: var(--primary);
}

.inventory-staff-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(229, 193, 88, 0.2);
}

body.light-theme .inventory-staff-input {
  background: #f7f9fa;
  color: #141519;
  border-color: rgba(0,0,0,0.15);
}

.inventory-unit-tag {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  width: 45px;
}

/* Propuesta modificable en la tabla del manager */
.manager-order-input {
  width: 70px;
  text-align: center;
  padding: 4px 6px;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--primary);
  font-weight: 700;
  font-family: monospace;
}

.manager-order-input:focus {
  outline: none;
  border-color: var(--primary);
}

body.light-theme .manager-order-input {
  background: #ffffff;
  color: #141519;
  border-color: rgba(0,0,0,0.15);
}

/* --- ESTILOS CRUD PROVEEDORES --- */
.supplier-maps-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 700;
  transition: var(--transition);
  text-decoration: none;
}

.supplier-maps-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.clabe-copy-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(229, 193, 88, 0.08);
  border: 1px solid rgba(229, 193, 88, 0.2);
  color: var(--primary);
  border-radius: 4px;
  font-family: monospace;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.clabe-copy-badge:hover {
  background: rgba(229, 193, 88, 0.15);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.invoice-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(56, 161, 105, 0.08);
  border: 1px solid rgba(56, 161, 105, 0.15);
  color: var(--success);
}

/* --- ESTILOS RECETARIO Y COSTEO --- */
.foodcost-kpi-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: monospace;
}

.foodcost-good {
  background: rgba(56, 161, 105, 0.08);
  border: 1px solid rgba(56, 161, 105, 0.2);
  color: var(--success) !important;
}

.foodcost-warning {
  background: rgba(221, 107, 32, 0.08);
  border: 1px solid rgba(221, 107, 32, 0.2);
  color: var(--warning) !important;
}

.foodcost-danger {
  background: rgba(229, 62, 62, 0.08);
  border: 1px solid rgba(229, 62, 62, 0.2);
  color: var(--accent) !important;
}

.recipe-step-item {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  align-items: start;
}

.recipe-step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-glow);
  border: 1px solid var(--primary);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: var(--font-title);
  flex-shrink: 0;
  font-size: 0.85rem;
}

.recipe-step-text {
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-main);
}

/* ==========================================================================
   ESTILOS DEL CHECKLIST OPERATIVO DE ACTIVIDADES
   ========================================================================== */

/* Tabla tipo Excel en Admin */
.checklist-table th {
  text-align: center;
  font-weight: 700;
}
.checklist-table th:first-child {
  text-align: left;
}
.checklist-table td {
  padding: 12px;
  vertical-align: middle;
}
.checklist-table td:first-child {
  font-weight: 600;
  color: var(--text-main);
}

/* Indicadores de Completado */
.badge-check {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(56, 161, 105, 0.15);
  border: 1.5px solid var(--success);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  margin: 0 auto;
  box-shadow: 0 2px 8px rgba(56, 161, 105, 0.1);
}
.badge-empty {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  border: 1.5px dashed var(--text-dark);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  margin: 0 auto;
}
body.light-theme .badge-empty {
  border-color: rgba(0, 0, 0, 0.15);
  color: rgba(0, 0, 0, 0.15);
}

.checklist-direct-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--success);
  margin: 0 auto;
  display: block;
}

/* Caja de observaciones en la planilla */
.checklist-obs-input {
  width: 100%;
  height: 32px;
  padding: 4px 8px;
  font-size: 0.8rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-main);
  transition: var(--transition);
}
.checklist-obs-input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(0, 0, 0, 0.4);
}
body.light-theme .checklist-obs-input {
  background: #ffffff;
  color: #141519;
  border-color: rgba(0, 0, 0, 0.15);
}

/* Tarjetas Táctiles del Staff */
.checklist-staff-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
  user-select: none;
}
.checklist-staff-card:hover {
  transform: translateY(-2px);
  border-color: rgba(229, 193, 88, 0.4);
}
.checklist-staff-card.active {
  border-color: var(--primary);
  background: rgba(229, 193, 88, 0.03);
  box-shadow: 0 4px 15px rgba(229, 193, 88, 0.08);
}
body.light-theme .checklist-staff-card {
  background: #ffffff;
  border-color: rgba(0,0,0,0.1);
}
body.light-theme .checklist-staff-card.active {
  background: rgba(229, 193, 88, 0.05);
  border-color: var(--primary);
}

.checklist-staff-card-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-grow: 1;
  min-width: 0;
  padding-right: 16px;
}
.checklist-staff-card-title {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}
.checklist-staff-card-obs {
  font-size: 0.75rem;
  color: var(--primary);
  font-style: italic;
}

.checklist-staff-card-status {
  flex-shrink: 0;
}
.checklist-staff-card-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: transparent;
}
.checklist-staff-card.active .checklist-staff-card-circle {
  border-color: var(--primary);
  background: var(--primary);
  color: #000;
  font-weight: 800;
}

/* Pastillas de Selección de Día */
.day-pill-btn {
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: var(--transition);
}
.day-pill-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}
.day-pill-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #000;
  box-shadow: 0 4px 15px rgba(229, 193, 88, 0.2);
}
body.light-theme .day-pill-btn {
  background: #f7f9fa;
  border-color: rgba(0,0,0,0.1);
  color: #718096;
}
body.light-theme .day-pill-btn.active {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
}

/* --- HORARIOS & COBERTURA DE PERSONAL --- */
.schedules-tabs-bar .schedules-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 10px 20px;
  color: var(--text-muted);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
}

.schedules-tabs-bar .schedules-tab-btn:hover {
  color: var(--text-main);
}

.schedules-tabs-bar .schedules-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  text-shadow: 0 0 8px var(--primary-glow);
}

body.light-theme .schedules-tabs-bar .schedules-tab-btn.active {
  color: #cda22b;
  border-bottom-color: #cda22b;
}

/* Matriz de Turnos y Selectores */
.schedules-grid-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

.schedules-grid-table th {
  text-align: center;
  background: rgba(0, 0, 0, 0.2);
}

.schedules-grid-table td {
  padding: 10px 8px;
  text-align: center;
  position: relative;
}

/* Píldora de Rol de Empleado */
.employee-role-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  margin-top: 4px;
}

.role-barrafria { background: rgba(49, 130, 206, 0.15); color: #63b3ed; }
.role-barracaliente { background: rgba(221, 107, 32, 0.15); color: #f6ad55; }
.role-bartender { background: rgba(159, 122, 234, 0.15); color: #b794f4; }
.role-mesero { background: rgba(56, 161, 105, 0.15); color: #68d391; }
.role-repartidor { background: rgba(229, 62, 62, 0.15); color: #fc8181; }
.role-cajero { background: rgba(74, 85, 104, 0.15); color: #cbd5e0; }

body.light-theme .role-barrafria { background: rgba(49, 130, 206, 0.1); color: #2b6cb0; }
body.light-theme .role-barracaliente { background: rgba(221, 107, 32, 0.1); color: #b7791f; }
body.light-theme .role-bartender { background: rgba(159, 122, 234, 0.1); color: #6b46c1; }
body.light-theme .role-mesero { background: rgba(56, 161, 105, 0.1); color: #276749; }
body.light-theme .role-repartidor { background: rgba(229, 62, 62, 0.1); color: #9b2c2c; }
body.light-theme .role-cajero { background: rgba(74, 85, 104, 0.1); color: #4a5568; }

/* Selector de Turno Estilizado */
.schedules-select {
  width: 100%;
  max-width: 95px;
  height: 34px;
  padding: 0 8px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.78rem;
  border: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-main);
  text-align: center;
  text-align-last: center;
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}

.schedules-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 6px var(--primary-glow);
}

body.light-theme .schedules-select {
  background: #ffffff;
  border-color: rgba(0,0,0,0.1);
  color: #141519;
}

/* Colores de turnos en el select */
.schedules-select.shift-TC {
  background: rgba(56, 161, 105, 0.15) !important;
  color: #48bb78 !important;
  border-color: rgba(56, 161, 105, 0.3) !important;
}
.schedules-select.shift-TM {
  background: rgba(49, 130, 206, 0.15) !important;
  color: #4299e1 !important;
  border-color: rgba(49, 130, 206, 0.3) !important;
}
.schedules-select.shift-TV {
  background: rgba(159, 122, 234, 0.15) !important;
  color: #a779e9 !important;
  border-color: rgba(159, 122, 234, 0.3) !important;
}
.schedules-select.shift-D {
  background: rgba(255, 255, 255, 0.03) !important;
  color: var(--text-dark) !important;
  border-color: var(--border-color) !important;
}

body.light-theme .schedules-select.shift-TC {
  background: rgba(56, 161, 105, 0.1) !important;
  color: #22543d !important;
  border-color: rgba(56, 161, 105, 0.2) !important;
}
body.light-theme .schedules-select.shift-TM {
  background: rgba(49, 130, 206, 0.1) !important;
  color: #2b6cb0 !important;
  border-color: rgba(49, 130, 206, 0.2) !important;
}
body.light-theme .schedules-select.shift-TV {
  background: rgba(159, 122, 234, 0.1) !important;
  color: #553c9a !important;
  border-color: rgba(159, 122, 234, 0.2) !important;
}
body.light-theme .schedules-select.shift-D {
  background: #f4f1ea !important;
  color: #718096 !important;
  border-color: rgba(0,0,0,0.1) !important;
}

/* Badges de Vacaciones/Permisos Fijos */
.schedule-fixed-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 95px;
  height: 34px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  box-sizing: border-box;
}

.schedule-fixed-badge.vac-approved {
  background: rgba(159, 122, 234, 0.2);
  color: #d6bcfa;
  border: 1px solid rgba(159, 122, 234, 0.4);
}

.schedule-fixed-badge.perm-approved {
  background: rgba(221, 107, 32, 0.2);
  color: #fbd38d;
  border: 1px solid rgba(221, 107, 32, 0.4);
}

body.light-theme .schedule-fixed-badge.vac-approved {
  background: rgba(159, 122, 234, 0.15);
  color: #553c9a;
  border-color: rgba(159, 122, 234, 0.3);
}

body.light-theme .schedule-fixed-badge.perm-approved {
  background: rgba(221, 107, 32, 0.15);
  color: #b7791f;
  border-color: rgba(221, 107, 32, 0.3);
}

/* Alertas de Cobertura Diaria en el Tfoot */
.coverage-footer-row {
  background: rgba(0, 0, 0, 0.4) !important;
  font-weight: 700;
  border-top: 2px solid var(--border-color);
}

.coverage-footer-title-cell {
  text-align: left !important;
  color: var(--text-main) !important;
  font-family: var(--font-title);
  font-size: 0.85rem;
  padding: 16px !important;
}

.coverage-day-cell {
  padding: 12px 6px !important;
  vertical-align: top !important;
}

.coverage-indicator-pill {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 8px;
  font-size: 0.72rem;
  line-height: 1.3;
  min-height: 54px;
  text-align: center;
  transition: var(--transition);
}

.coverage-indicator-pill.ok {
  background: rgba(56, 161, 105, 0.12);
  color: #48bb78;
  border: 1px solid rgba(56, 161, 105, 0.25);
}

.coverage-indicator-pill.warn {
  background: rgba(221, 107, 32, 0.12);
  color: #f6ad55;
  border: 1px solid rgba(221, 107, 32, 0.25);
}

.coverage-indicator-pill.danger {
  background: rgba(229, 62, 62, 0.12);
  color: #fc8181;
  border: 1px solid rgba(229, 62, 62, 0.25);
}

.coverage-indicator-pill.closed {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-dark);
  border: 1px solid var(--border-color);
}

body.light-theme .coverage-footer-row {
  background: #eae6db !important;
  border-top-color: rgba(0,0,0,0.1);
}

body.light-theme .coverage-indicator-pill.ok {
  background: rgba(56, 161, 105, 0.1);
  color: #22543d;
  border-color: rgba(56, 161, 105, 0.2);
}

body.light-theme .coverage-indicator-pill.warn {
  background: rgba(221, 107, 32, 0.1);
  color: #7b341e;
  border-color: rgba(221, 107, 32, 0.2);
}

body.light-theme .coverage-indicator-pill.danger {
  background: rgba(229, 62, 62, 0.1);
  color: #9b2c2c;
  border-color: rgba(229, 62, 62, 0.2);
}

body.light-theme .coverage-indicator-pill.closed {
  background: #e4e1d7;
  color: #718096;
  border-color: rgba(0,0,0,0.1);
}

/* --- CONCILIACIÓN BANCARIA (DROPZONE & KPIS) --- */
.dropzone-reconciliation {
  border: 2px dashed rgba(229, 193, 88, 0.2) !important;
  padding: 30px 20px;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  background: rgba(0, 0, 0, 0.15);
  transition: var(--transition);
}

.dropzone-reconciliation:hover, .dropzone-reconciliation.dragover {
  border-color: var(--primary) !important;
  background: rgba(229, 193, 88, 0.05) !important;
  box-shadow: 0 0 15px rgba(229, 193, 88, 0.1);
  transform: scale(1.01);
}

body.light-theme .dropzone-reconciliation {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(205, 162, 43, 0.3) !important;
}

body.light-theme .dropzone-reconciliation:hover, body.light-theme .dropzone-reconciliation.dragover {
  background: rgba(205, 162, 43, 0.04) !important;
  border-color: #cda22b !important;
}

/* --- MÓDULO DE NÓMINA & PROPINAS --- */
.payroll-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-main);
  padding: 6px 10px;
  width: 90px;
  font-size: 0.85rem;
  text-align: right;
  transition: all 0.2s ease;
}

.payroll-input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(229, 193, 88, 0.1);
  box-shadow: 0 0 8px rgba(229, 193, 88, 0.2);
}

body.light-theme .payroll-input {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.15);
  color: #2d3748;
}

body.light-theme .payroll-input:focus {
  background: #ffffff;
  border-color: #cda22b;
  box-shadow: 0 0 8px rgba(205, 162, 43, 0.25);
}

.status-badge-lost {
  background: rgba(229, 62, 62, 0.15) !important;
  color: #feb2b2 !important;
  border: 1px solid rgba(229, 62, 62, 0.3) !important;
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-block;
}

body.light-theme .status-badge-lost {
  background: rgba(229, 62, 62, 0.1) !important;
  color: #9b2c2c !important;
  border-color: rgba(229, 62, 62, 0.2) !important;
}

.payroll-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.payroll-summary-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.payroll-summary-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

body.light-theme .payroll-summary-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
}

.payroll-summary-val {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 6px;
}

body.light-theme .payroll-summary-val {
  color: #cda22b;
}

.payroll-summary-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ticket-receipt-item {
  border-bottom: 1px dashed #e2e8f0;
  padding: 12px 0;
  font-family: 'Courier New', Courier, monospace;
}

.ticket-receipt-item:last-child {
  border-bottom: none;
}

/* --- MÓDULO DE DECISIONES & ESTRATEGIAS --- */
.decisions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media(min-width: 992px) {
  .decisions-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.strategy-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 16px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: var(--transition);
}

.strategy-card:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.04);
}

body.light-theme .strategy-card {
  background: #ffffff;
  border-color: rgba(0,0,0,0.08);
}

body.light-theme .strategy-card:hover {
  background: rgba(0, 0, 0, 0.01);
}

.strategy-icon {
  font-size: 1.5rem;
  background: rgba(229, 193, 88, 0.1);
  color: var(--primary);
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

body.light-theme .strategy-icon {
  background: rgba(205, 162, 43, 0.08);
  color: #cda22b;
}

.strategy-info h5 {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 6px;
}

.strategy-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}


/* ===================================================== */
/* ROLES & PERMISOS — SIDEBAR BADGES + CONFIG VIEW       */
/* ===================================================== */

/* Badge de rol en el sidebar */
.sidebar-role-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 2px;
}

.role-badge-superadmin {
  background: linear-gradient(135deg, rgba(229,193,88,0.2), rgba(212,175,55,0.15));
  color: var(--primary);
  border: 1px solid rgba(229,193,88,0.3);
}

.role-badge-gerente {
  background: rgba(49,130,206,0.15);
  color: #63b3ed;
  border: 1px solid rgba(49,130,206,0.3);
}

.role-badge-staff {
  background: rgba(72,187,120,0.15);
  color: #68d391;
  border: 1px solid rgba(72,187,120,0.3);
}

/* Tarjeta de configuración de rol */
.role-config-card {
  padding: 20px;
  border-radius: var(--border-radius-md);
  transition: var(--transition);
}

.role-config-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Lista de permisos dentro de la tarjeta */
.role-permissions-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.role-permissions-list li {
  font-size: 0.82rem;
  padding: 5px 10px;
  border-radius: 6px;
}

.role-permissions-list .perm-allowed {
  color: #68d391;
  background: rgba(72,187,120,0.08);
}

.role-permissions-list .perm-denied {
  color: var(--text-dark);
  background: rgba(255,255,255,0.02);
  text-decoration: line-through;
  opacity: 0.6;
}

/* Ajuste visual: Admin nav headings con emojis */
.admin-menu-heading {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dark);
  padding: 14px 4px 6px;
  display: block;
  margin-top: 4px;
  border-top: 1px solid var(--border-color);
}

.admin-menu-heading:first-of-type {
  border-top: none;
  padding-top: 4px;
}


/* ============================================= */
/* SECCIÓN PLATILLOS — GALERÍA DE CATEGORÍAS     */
/* ============================================= */

.categories-mosaic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.category-mosaic-card {
  position: relative;
  border-radius: 4px; /* Sharp corners like the physical menu blocks */
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s;
}

.category-mosaic-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
  border-color: var(--primary);
}

.category-mosaic-img-wrap {
  position: absolute;
  inset: 0;
}

.category-mosaic-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.category-mosaic-card:hover .category-mosaic-img {
  transform: scale(1.06);
}

.category-mosaic-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.75;
  transition: opacity 0.3s;
}

.category-mosaic-card:hover .category-mosaic-overlay {
  opacity: 0.85;
}

.category-mosaic-info {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
  z-index: 2;
}

.category-mosaic-icon {
  font-size: 2.2rem;
  line-height: 1;
  margin-bottom: 4px;
  transition: transform 0.3s ease;
}

.category-mosaic-card:hover .category-mosaic-icon {
  transform: scale(1.15);
}

.category-mosaic-name {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

.category-mosaic-count {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* ============================================= */
/* SECCIÓN PLATILLOS — CATÁLOGO POR CATEGORÍA   */
/* ============================================= */

.dishes-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.dish-catalog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

body.light-theme .dish-catalog-card {
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.dish-catalog-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(229,193,88,0.15);
}

.dish-catalog-img-wrap {
  position: relative;
  overflow: hidden;
  height: 230px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dish-catalog-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  padding: 0;
  display: block;
  transition: transform 0.4s ease;
}

.dish-catalog-card:hover .dish-catalog-img {
  transform: scale(1.07);
}

.dish-catalog-img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s;
}

.dish-catalog-card:hover .dish-catalog-img-overlay {
  opacity: 1;
}

.dish-catalog-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary);
  color: #000;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.03em;
}

.dish-catalog-body {
  padding: 12px 6px 4px 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.dish-catalog-name {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  text-align: center;
  margin: 0;
  line-height: 1.3;
}

.dish-catalog-desc {
  font-size: 0.92rem;
  color: var(--text-main);
  opacity: 0.9;
  text-align: center;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.dish-catalog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
  gap: 8px;
  flex-wrap: wrap;
}

.dish-catalog-price {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  font-family: var(--font-title);
}

.dish-catalog-order-btn {
  background: var(--primary);
  color: #000;
  border: none;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-title);
  transition: var(--transition);
  white-space: nowrap;
}

.dish-catalog-order-btn:hover {
  background: var(--primary-hover);
  transform: scale(1.05);
}

.dish-catalog-unavailable {
  font-size: 0.75rem;
  color: var(--text-dark);
  font-weight: 600;
}

.dish-catalog-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(229,193,88,0.08);
  border: 1px solid rgba(229,193,88,0.2);
  border-radius: 20px;
  padding: 3px 10px;
}

.dish-qty-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.dish-qty-btn:hover { color: var(--primary-hover); }

.dish-qty-val {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  min-width: 16px;
  text-align: center;
}

@media (max-width: 640px) {
  .categories-mosaic-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .category-mosaic-name { font-size: 0.95rem; }
  .dishes-catalog-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
}

@media (max-width: 400px) {
  .categories-mosaic-grid,
  .dishes-catalog-grid { grid-template-columns: 1fr; }
}

/* --- ESTILOS DEL MODAL DE DETALLE Y CARRUSEL --- */
.carousel-viewport {
  position: relative;
  width: 100%;
  height: 320px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.carousel-info-panel {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg-card);
}

.carousel-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.carousel-title-col {
  flex-grow: 1;
  min-width: 0;
}

.carousel-price-col {
  text-align: right;
  flex-shrink: 0;
}

#carousel-product-name {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

#carousel-product-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  max-height: 72px;
  overflow-y: auto;
  padding-right: 4px;
}

#carousel-product-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-title);
  white-space: nowrap;
}

/* Responsividad para móviles del carrusel de platillo */
@media (max-width: 768px) {
  .carousel-viewport {
    height: 230px !important; /* Altura más baja en móviles para ahorrar espacio vertical */
  }
  .carousel-dots-container {
    padding: 8px 0 !important; /* Reducir padding de los puntos */
  }
  .carousel-info-panel {
    padding: 16px !important; /* Reducir padding interno */
    gap: 10px !important; /* Gaps más pequeños */
  }
  .carousel-title-row {
    flex-direction: column !important;
    gap: 6px !important;
  }
  .carousel-title-col {
    width: 100% !important;
  }
  .carousel-price-col {
    text-align: left !important;
    width: 100% !important;
    margin-top: 4px !important;
  }
  #carousel-product-name {
    font-size: 1.25rem !important; /* Título más pequeño en móviles */
    margin-bottom: 4px !important;
  }
  #carousel-product-desc {
    font-size: 0.82rem !important;
    margin-bottom: 2px !important;
  }
  #carousel-product-price {
    font-size: 1.15rem !important; /* Precio más pequeño en móviles */
    font-weight: 700 !important;
  }
  #carousel-variants-container {
    max-height: 220px !important; /* Mayor altura para ver variantes cómodamente */
  }
  #carousel-standard-action-row {
    margin-top: 4px !important;
    padding-top: 12px !important;
  }
}

/* ==========================================================================
   OPTIMIZACIÓN RESPONSIVA MÓVIL UNIVERSAL (HONOR, SAMSUNG, IPHONE, XIAOMI)
   ========================================================================== */

/* Prevenir desplazamiento horizontal no deseado */
html, body {
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}

*, *:before, *:after {
  box-sizing: border-box !important;
}

@media screen and (max-width: 768px) {
  /* Optimización GPU móvil: desactivar backdrop-filter en capas fijas para evitar cuadro negro y tirones */
  .modal-overlay,
  .cart-drawer-overlay,
  .glass-panel,
  .mobile-bottom-nav,
  .header,
  .dish-floating-tag {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .modal-overlay {
    background: rgba(8, 9, 12, 0.95) !important;
  }

  .cart-drawer-overlay {
    background: rgba(8, 9, 12, 0.92) !important;
  }

  .mobile-bottom-nav {
    background: #0b0d10 !important;
  }

  /* Barra Sticky de Categorías en Celulares */
  .categories-carousel-container {
    position: sticky !important;
    top: 56px !important;
    padding: 8px 10px !important;
    margin-bottom: 20px !important;
    z-index: 100 !important;
    background: #08090c !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  .categories-nav-arrow {
    display: none !important; /* Ocultar flechas en móvil para no tapar los botones */
  }

  .sticky-categories-bar {
    padding: 0 !important;
    gap: 8px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }

  .sticky-categories-bar::-webkit-scrollbar {
    display: none !important;
  }

  .menu-sidebar-btn {
    padding: 8px 14px !important;
    font-size: 0.82rem !important;
    min-height: 40px !important;
    border-radius: 20px !important;
    flex-shrink: 0 !important;
  }

  /* Prevenir zoom automático de iOS/Android al presionar inputs */
  input[type="text"],
  input[type="number"],
  input[type="email"],
  input[type="tel"],
  input[type="password"],
  input[type="date"],
  input[type="time"],
  select,
  textarea {
    font-size: 16px !important;
  }

  /* Ajustes de contenedores en pantallas móviles */
  .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Navbar superior */
  .navbar-container {
    padding: 6px 12px !important;
    height: 56px !important;
  }

  .nav-logo-img {
    max-height: 32px !important;
  }

  .nav-actions {
    gap: 6px !important;
  }

  /* Hero Section */
  .hero-section {
    padding-top: 80px !important;
    padding-bottom: 20px !important;
    min-height: auto !important;
  }

  .hero-title {
    font-size: clamp(1.5rem, 6vw, 2.1rem) !important;
    line-height: 1.25 !important;
    text-align: center !important;
  }

  .hero-subtitle {
    font-size: 0.85rem !important;
    text-align: center !important;
    margin-bottom: 16px !important;
  }

  .hero-cta-group {
    flex-direction: column !important;
    width: 100% !important;
    gap: 10px !important;
  }

  .hero-cta-group .glow-btn,
  .hero-cta-group .secondary-btn {
    width: 100% !important;
    justify-content: center !important;
    height: 46px !important;
    font-size: 0.88rem !important;
  }

  /* Categorías en carrusel horizontal táctil */
  .categories-pills-container,
  .category-tabs-wrapper,
  .categories-scroll-wrapper {
    display: flex !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding-bottom: 6px !important;
    margin-bottom: 14px !important;
    gap: 8px !important;
  }

  .categories-pills-container::-webkit-scrollbar,
  .category-tabs-wrapper::-webkit-scrollbar,
  .categories-scroll-wrapper::-webkit-scrollbar {
    display: none !important;
  }

  .category-pill, .category-tab-btn {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    padding: 8px 14px !important;
    font-size: 0.8rem !important;
    min-height: 40px !important;
    border-radius: 20px !important;
  }

  /* Mosaico de Categorías */
  .categories-mosaic-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  /* Parrilla de Platillos en Móvil (Honor, Samsung, iPhone) */
  .dishes-catalog-grid,
  .menu-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .menu-item-card, .dish-catalog-card {
    border-radius: 12px !important;
    padding: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
  }

  .menu-img-container, .dish-catalog-img {
    height: 130px !important;
    width: 100% !important;
    object-fit: cover !important;
  }

  .menu-item-info, .dish-catalog-body {
    padding: 8px 10px 10px 10px !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    justify-content: space-between !important;
  }

  .menu-item-title, .dish-catalog-title {
    font-size: 0.84rem !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    margin-bottom: 4px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    height: 2.5em !important;
  }

  .menu-item-desc, .dish-catalog-desc {
    display: none !important; /* Ocultar descripciones largas en vista miniatura para limpieza visual */
  }

  .menu-item-price, .dish-catalog-price {
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    color: var(--primary) !important;
    margin-top: 4px !important;
    margin-bottom: 6px !important;
  }

  .add-to-cart-btn, .quick-add-btn {
    height: 38px !important;
    font-size: 0.78rem !important;
    padding: 0 8px !important;
    width: 100% !important;
    margin-top: 4px !important;
    border-radius: 8px !important;
    justify-content: center !important;
  }

  /* Drawer del Carrito en Móvil */
  .cart-drawer {
    width: 100vw !important;
    max-width: 100vw !important;
    right: 0 !important;
    height: 100vh !important;
    height: 100dvh !important;
    border-radius: 0 !important;
  }

  .cart-drawer-header {
    padding: 12px 14px !important;
  }

  .cart-drawer-footer {
    padding: 12px 14px 75px 14px !important;
  }

  /* Modales Móviles */
  .modal-content {
    width: 94vw !important;
    max-width: 94vw !important;
    max-height: 85vh !important;
    margin: auto !important;
    padding: 16px 12px !important;
    border-radius: 14px !important;
    overflow-y: auto !important;
  }

  /* Pestaña Formulario de Checkout / Pedido */
  .checkout-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .checkout-section-panel {
    padding: 14px !important;
  }

  /* Margen inferior para barra de navegación móvil */
  body {
    padding-bottom: 72px !important;
  }
}

/* Pantallas súper compactas (< 360px) */
@media screen and (max-width: 360px) {
  .dishes-catalog-grid,
  .menu-grid {
    grid-template-columns: 1fr !important;
  }
  .menu-img-container, .dish-catalog-img {
    height: 160px !important;
  }
}

