/* ==========================================================================
   RESTAURANT & CABAÑAS LA ROCA - CARTA DIGITAL PREMIUM
   Fondo Oscuro Unificado, Tipografía Gastronómica y Acentos Dorados
   ========================================================================== */

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

:root {
  /* Paleta Maestra Oscura Unificada */
  --bg-primary: #090c10;
  --bg-secondary: #0f141c;
  --bg-card: rgba(18, 24, 34, 0.78);
  --bg-card-hover: rgba(26, 35, 49, 0.88);
  --bg-card-border: rgba(212, 175, 55, 0.18);
  --bg-glass: rgba(15, 20, 29, 0.82);

  /* Acentos Dorados y Gastronómicos */
  --gold-300: #fae08f;
  --gold-400: #eec85a;
  --gold-500: #d4af37;
  --gold-600: #b89124;
  --gold-gradient: linear-gradient(135deg, #fae08f 0%, #d4af37 50%, #b89124 100%);
  --gold-glow: rgba(212, 175, 55, 0.25);

  /* Acentos de Alerta / Destacados */
  --accent-coral: #e0533c;
  --accent-amber: #f59e0b;
  --accent-green: #10b981;
  --whatsapp-green: #25d366;

  /* Textos y Contrastes */
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-gold: #f5d77f;

  /* Tipografías */
  --font-serif: 'Cinzel', serif;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Transiciones y Sombras */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.7);
  --shadow-gold: 0 0 25px rgba(212, 175, 55, 0.2);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(212, 175, 55, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(14, 165, 233, 0.04) 0%, transparent 45%),
    linear-gradient(180deg, #07090d 0%, #0d1219 50%, #07090d 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Enlaces y Botones */
a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ==========================================================================
   CABECERA PRINCIPAL (NAVBAR)
   ========================================================================== */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--bg-card-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  padding: 0.75rem 1.5rem;
  transition: var(--transition-smooth);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Brand Logo */
.brand-box {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px var(--gold-glow);
  flex-shrink: 0;
}

.brand-icon svg {
  width: 26px;
  height: 26px;
  fill: #0c0f14;
}

.brand-info h1 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 2.5px;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.brand-info span {
  font-family: var(--font-display);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  display: block;
}

/* Acciones en Cabecera */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

/* Switcher de Modos (Páginas vs Lista) */
.view-mode-switcher {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--bg-card-border);
}

.mode-btn {
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-xl);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.mode-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.mode-btn.active {
  background: var(--gold-gradient);
  color: #0c0f14;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.35);
}

/* Botón de Búsqueda */
.search-trigger-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-xl);
  font-size: 0.84rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
}

.search-trigger-btn:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: var(--gold-500);
  color: var(--gold-300);
}

/* Botón WhatsApp Cabecera */
.btn-whatsapp-header {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #ffffff;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-xl);
  font-size: 0.84rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  transition: var(--transition-fast);
}

.btn-whatsapp-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.btn-whatsapp-header svg {
  width: 17px;
  height: 17px;
  fill: #fff;
}

/* Botón Imprimir */
.btn-print {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.btn-print:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold-500);
  color: var(--gold-300);
}

.btn-print svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ==========================================================================
   BARRA DE BÚSQUEDA FLOTANTE / EXPANDIBLE
   ========================================================================== */
.search-drawer {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--bg-card-border);
  padding: 0.85rem 1.5rem;
  display: none;
  animation: slideDown 0.25s ease-out;
}

.search-drawer.open {
  display: block;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.search-input-wrapper {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-wrapper svg.search-icon {
  position: absolute;
  left: 1rem;
  width: 20px;
  height: 20px;
  fill: var(--gold-400);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 0.75rem 3rem 0.75rem 3rem;
  border-radius: var(--radius-xl);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--bg-card-border);
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-fast);
}

.search-input:focus {
  border-color: var(--gold-400);
  box-shadow: 0 0 16px var(--gold-glow);
}

.search-clear-btn {
  position: absolute;
  right: 1rem;
  color: var(--text-muted);
  padding: 4px;
}

.search-clear-btn:hover {
  color: #fff;
}

.search-results-count {
  text-align: center;
  font-size: 0.82rem;
  color: var(--gold-300);
  margin-top: 0.45rem;
}

/* ==========================================================================
   VISTA 1: MODO CARTA / PÁGINAS (SLIDE VIEW)
   ========================================================================== */
#slidesView {
  padding: 2.2rem 1rem 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.slide-controls-top {
  max-width: 860px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding: 0 0.5rem;
}

.page-indicator {
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: 2px;
  color: var(--gold-300);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page-indicator .page-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  background: rgba(212, 175, 55, 0.18);
  padding: 2px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gold-500);
}

.slide-nav-arrows {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-arrow-btn {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  color: var(--text-secondary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.nav-arrow-btn:hover:not(:disabled) {
  background: var(--gold-gradient);
  color: #0c0f14;
  box-shadow: 0 0 15px var(--gold-glow);
}

.nav-arrow-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.nav-arrow-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* El Marco Maestro de la Diapositiva */
.slide-frame-container {
  width: 100%;
  max-width: 860px;
  position: relative;
}

.slide-page {
  display: none;
  background: linear-gradient(175deg, #10151f 0%, #0d1219 45%, #0a0d13 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.8),
    0 0 35px rgba(212, 175, 55, 0.08),
    inset 0 0 40px rgba(0, 0, 0, 0.4);
  padding: 2.2rem 2.2rem 1.8rem;
  position: relative;
  overflow: hidden;
  animation: fadeInSlide 0.35s ease-out forwards;
}

.slide-page.active {
  display: block;
}

@keyframes fadeInSlide {
  from { opacity: 0; transform: scale(0.985); }
  to { opacity: 1; transform: scale(1); }
}

/* Filigranas decorativas en esquinas de la carta */
.slide-page::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 1px solid rgba(212, 175, 55, 0.14);
  border-radius: calc(var(--radius-lg) - 4px);
  pointer-events: none;
}

/* Encabezado de Diapositiva */
.slide-header {
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 1rem;
}

.slide-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 2px;
  background: var(--gold-gradient);
}

.slide-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold-300);
  background: rgba(212, 175, 55, 0.12);
  padding: 3px 12px;
  border-radius: var(--radius-xl);
  margin-bottom: 0.4rem;
  border: 1px solid rgba(212, 175, 55, 0.25);
}

.slide-header h2 {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #fff;
  line-height: 1.2;
}

.slide-header p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ==========================================================================
   ESTILOS DE ELEMENTOS DE LA CARTA (PÁGINA 1 A 9)
   ========================================================================== */

/* Diapositiva 1: Portada */
.cover-layout {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.cover-hero-img-box {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--bg-card-border);
  cursor: pointer;
  background: #06080c;
}

.cover-hero-img-box img {
  width: 100%;
  height: auto;
  aspect-ratio: 768 / 512;
  object-fit: contain;
  display: block;
  transition: transform 0.4s ease;
}

.cover-hero-img-box:hover img {
  transform: scale(1.02);
}

.cover-badge-overlay {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(12, 16, 22, 0.85);
  backdrop-filter: blur(8px);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-xl);
  font-family: var(--font-serif);
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  color: var(--gold-300);
  border: 1px solid var(--gold-500);
}

.cover-schedule-banner {
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--gold-500);
  border-radius: var(--radius-md);
  padding: 1rem 1.4rem;
  text-align: center;
  position: relative;
}

.cover-schedule-banner h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--gold-300);
  letter-spacing: 1px;
  margin-bottom: 0.25rem;
}

.cover-schedule-banner p {
  font-size: 0.95rem;
  color: #fff;
  font-weight: 600;
}

.cover-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.cover-thumb-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--bg-card-border);
  cursor: pointer;
}

.cover-thumb-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.cover-thumb-card:hover img {
  transform: scale(1.05);
}

.cover-thumb-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.85) 100%);
  padding: 0.6rem 0.85rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.cover-contact-box {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.12) 0%, rgba(18, 140, 126, 0.08) 100%);
  border: 1px solid rgba(37, 211, 102, 0.4);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cover-contact-text h4 {
  font-family: var(--font-serif);
  color: var(--whatsapp-green);
  font-size: 1rem;
}

.cover-contact-text p {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.btn-contact-action {
  background: var(--whatsapp-green);
  color: #0c0f14;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-xl);
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: var(--transition-fast);
}

.btn-contact-action:hover {
  background: #2fe674;
  transform: scale(1.04);
}

/* ==========================================================================
   SECCIONES Y FILAS DE PLATOS (MENU ITEMS)
   ========================================================================== */
.menu-section-block {
  margin-bottom: 1.8rem;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.4rem;
  position: relative;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.section-title-row h3 {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  letter-spacing: 1.5px;
  color: var(--gold-300);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-subtitle-tag {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Galería de fotos en sección */
.section-inline-photos {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
  overflow-x: auto;
  padding-bottom: 4px;
}

.section-photo-item {
  width: 110px;
  height: 85px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--bg-card-border);
  flex-shrink: 0;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
  background: rgba(0, 0, 0, 0.4);
}

.section-photo-item:hover {
  transform: scale(1.05);
  border-color: var(--gold-400);
}

.section-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Lista de Platos */
.menu-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.menu-item-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: var(--transition-fast);
  padding: 0.35rem 0.45rem;
  border-radius: var(--radius-sm);
}

.menu-item-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.menu-item-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  position: relative;
}

.dish-name {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

.dish-dots {
  flex-grow: 1;
  border-bottom: 1px dotted rgba(212, 175, 55, 0.3);
  margin: 0 0.5rem;
  height: 1px;
}

.dish-price {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold-300);
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.dish-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  padding-left: 0.2rem;
}

/* Platos con porciones múltiples (Para 2 y Para 4 personas) */
.portions-container {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.4rem;
  flex-wrap: wrap;
}

.portion-pill {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: var(--radius-xl);
  padding: 0.3rem 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
}

.portion-label {
  color: var(--text-secondary);
}

.portion-price {
  font-weight: 700;
  color: var(--gold-400);
}

/* Avisos y Notas Destacadas */
.menu-notice-box {
  background: rgba(212, 175, 55, 0.07);
  border-left: 3px solid var(--gold-500);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin-top: 0.85rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.menu-notice-box.warning-red {
  background: rgba(224, 83, 60, 0.1);
  border-left-color: var(--accent-coral);
  color: #ff9b8c;
  font-weight: 600;
}

/* Miniaturas de diapositivas inferiores */
.slide-thumbnails-bar {
  max-width: 900px;
  width: 100%;
  margin-top: 1.5rem;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.5rem;
  scrollbar-width: thin;
}

.thumb-btn {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  color: var(--text-muted);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.thumb-btn:hover {
  border-color: var(--gold-400);
  color: #fff;
}

.thumb-btn.active {
  background: var(--gold-gradient);
  color: #0c0f14;
  border-color: var(--gold-500);
  box-shadow: 0 0 12px var(--gold-glow);
}

/* ==========================================================================
   VISTA 2: MODO LISTA CONTINUO & CATEGORÍAS (LIST VIEW)
   ========================================================================== */
#listView {
  display: none;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem 4rem;
}

/* Barra de categorías horizontal adhesiva */
.sticky-categories-bar {
  position: sticky;
  top: 68px;
  z-index: 950;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--bg-card-border);
  padding: 0.65rem 0.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.sticky-categories-bar::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  padding: 0.45rem 1.05rem;
  border-radius: var(--radius-xl);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--bg-card-border);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cat-pill:hover {
  border-color: var(--gold-400);
  color: var(--gold-300);
}

.cat-pill.active {
  background: var(--gold-gradient);
  color: #0c0f14;
  border-color: var(--gold-500);
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.35);
}

/* Cuadrícula de tarjetas de categoría en modo lista */
.list-category-section {
  margin-bottom: 3rem;
  scroll-margin-top: 140px;
}

.list-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.4rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding-bottom: 0.6rem;
}

.list-section-header h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--gold-300);
  letter-spacing: 1px;
}

.list-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.2rem;
}

.list-dish-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.list-dish-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-400);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-md);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.card-price {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gold-300);
  white-space: nowrap;
}

.card-desc {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ==========================================================================
   MODAL LIGHTBOX (VISOR DE FOTOS EN ALTA RESOLUCIÓN)
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2000;
  background: rgba(5, 7, 11, 0.92);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lightbox-modal.open {
  display: flex;
  animation: modalFadeIn 0.25s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox-content {
  position: relative;
  max-width: 850px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gold-500);
  box-shadow: 0 0 35px var(--gold-glow);
  max-height: 75vh;
}

.lightbox-img-wrapper img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  display: block;
}

.lightbox-caption {
  margin-top: 1rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-family: var(--font-display);
}

.lightbox-close-btn {
  position: absolute;
  top: -45px;
  right: 0;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.lightbox-close-btn:hover {
  background: var(--accent-coral);
}

.lightbox-close-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ==========================================================================
   BOTONES FLOTANTES (WHATSAPP & SCROLL TOP)
   ========================================================================== */
.floating-actions {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.floating-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition-fast);
}

.floating-whatsapp {
  background: var(--whatsapp-green);
  color: #fff;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  background: #2fe674;
}

.floating-whatsapp svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.floating-scrolltop {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  color: var(--gold-300);
  opacity: 0;
  pointer-events: none;
}

.floating-scrolltop.visible {
  opacity: 1;
  pointer-events: auto;
}

.floating-scrolltop:hover {
  background: var(--gold-gradient);
  color: #0c0f14;
}

.floating-scrolltop svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ==========================================================================
   PIE DE PÁGINA (FOOTER)
   ========================================================================== */
.main-footer {
  background: #06080c;
  border-top: 1px solid var(--bg-card-border);
  padding: 2.5rem 1.5rem 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  letter-spacing: 2px;
  color: var(--gold-300);
}

.footer-details {
  display: flex;
  gap: 2.2rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.footer-details span,
.footer-details .footer-item {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.footer-details svg {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  max-width: 20px;
  max-height: 20px;
  fill: var(--gold-400) !important;
  color: var(--gold-400) !important;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.45));
}

.footer-details strong {
  color: var(--gold-300);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.footer-admin-row {
  margin-top: 1.25rem;
  display: flex;
  justify-content: center;
}

.btn-footer-admin {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #64748b;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-xl);
  font-size: 0.74rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.25s ease;
  cursor: pointer;
  opacity: 0.6;
}

.btn-footer-admin:hover {
  border-color: rgba(212, 175, 55, 0.35);
  color: var(--gold-300);
  background: rgba(212, 175, 55, 0.08);
  opacity: 1;
}

.btn-footer-admin svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

/* ==========================================================================
   RESPONSIVE (MÓVILES Y TABLETS)
   ========================================================================== */
@media (max-width: 768px) {
  .header-container {
    flex-wrap: wrap;
  }
  
  .brand-info h1 {
    font-size: 1.2rem;
    letter-spacing: 1.5px;
  }

  .brand-info span {
    font-size: 0.65rem;
  }

  .slide-page {
    padding: 1.4rem 1rem;
  }

  .slide-header h2 {
    font-size: 1.4rem;
  }

  .cover-hero-img-box img {
    height: auto;
    aspect-ratio: 768 / 512;
  }

  .cover-bottom-grid {
    grid-template-columns: 1fr;
  }

  .cover-contact-box {
    flex-direction: column;
    text-align: center;
  }

  .dish-name {
    font-size: 0.9rem;
    white-space: normal;
  }

  .dish-price {
    font-size: 0.95rem;
  }

  .list-cards-grid {
    grid-template-columns: 1fr;
  }
  
  .sticky-categories-bar {
    top: 60px;
  }
}

/* ==========================================================================
   BOTÓN ADMINISTRAR EN HEADER
   ========================================================================== */
.mode-btn.mode-btn-admin {
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--gold-300);
}

.mode-btn.mode-btn-admin:hover {
  background: rgba(212, 175, 55, 0.2);
  color: #fff;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.mode-btn.mode-btn-admin.active {
  background: var(--gold-gradient);
  color: #090c10;
  font-weight: 700;
  box-shadow: var(--shadow-gold);
}

/* ==========================================================================
   PANEL DE ADMINISTRACIÓN (ADMIN VIEW)
   ========================================================================== */
.admin-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 6rem;
  animation: fadeIn 0.4s ease-out;
}

.admin-hero {
  background: linear-gradient(135deg, rgba(26, 35, 49, 0.95) 0%, rgba(15, 20, 29, 0.98) 100%);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-lg), 0 0 30px rgba(212, 175, 55, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .admin-hero {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.admin-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--gold-400);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 0.6rem;
}

.admin-hero h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--gold-300);
  margin-bottom: 0.5rem;
}

.admin-hero p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.5;
}

.admin-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-admin-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.88rem;
  transition: var(--transition-fast);
  cursor: pointer;
}

.btn-admin-action svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.btn-admin-action.primary {
  background: var(--gold-gradient);
  color: #090c10;
  border: none;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-admin-action.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.45);
}

.btn-admin-action.secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

.btn-admin-action.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.btn-admin-action.download {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

.btn-admin-action.download:hover {
  background: rgba(16, 185, 129, 0.3);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.btn-admin-action.danger {
  background: rgba(224, 83, 60, 0.12);
  border: 1px solid rgba(224, 83, 60, 0.3);
  color: #fca5a5;
}

.btn-admin-action.danger:hover {
  background: rgba(224, 83, 60, 0.25);
  color: #fff;
  transform: translateY(-2px);
}

.btn-admin-action.logout {
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #cbd5e1;
}

.btn-admin-action.logout:hover {
  background: rgba(148, 163, 184, 0.25);
  color: #fff;
  transform: translateY(-2px);
}

/* Estadísticas Rápidas */
.admin-stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.admin-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  box-shadow: var(--shadow-sm);
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--gold-300);
}

.stat-number.warning {
  color: var(--accent-coral);
}

.stat-number.status-ok {
  color: var(--accent-green);
  font-size: 1.3rem;
  margin-top: 0.4rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* Barra de Filtros en Admin */
.admin-filters-bar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .admin-filters-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.admin-search-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(9, 12, 16, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.85rem;
  flex: 1;
  max-width: 500px;
}

.admin-search-wrapper svg {
  width: 18px;
  height: 18px;
  fill: var(--gold-400);
}

.admin-search-wrapper input {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.9rem;
  width: 100%;
  outline: none;
}

.admin-category-select-wrapper {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.admin-category-select-wrapper select {
  background: rgba(9, 12, 16, 0.8);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  outline: none;
  font-size: 0.85rem;
}

/* Contenedor de Categorías en Admin */
.admin-category-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.admin-category-header {
  background: rgba(15, 20, 29, 0.9);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-category-title-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-category-title-box h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--gold-300);
}

.admin-category-count {
  font-size: 0.75rem;
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-400);
  padding: 2px 8px;
  border-radius: 12px;
}

.admin-dishes-table {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.admin-dish-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-fast);
}

.admin-dish-row:last-child {
  border-bottom: none;
}

.admin-dish-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.admin-dish-row.is-out-of-stock {
  background: rgba(224, 83, 60, 0.04);
  opacity: 0.85;
}

@media (min-width: 768px) {
  .admin-dish-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.admin-dish-info {
  flex: 1;
  min-width: 0;
}

.admin-dish-title-line {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.admin-dish-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
}

.admin-dish-row.is-out-of-stock .admin-dish-name {
  text-decoration: line-through;
  color: var(--text-muted);
}

.admin-dish-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  line-height: 1.4;
}

.admin-dish-controls {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

/* Input editable de precio en vivo */
.admin-price-wrapper {
  display: inline-flex;
  align-items: center;
  background: rgba(9, 12, 16, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.6rem;
  transition: var(--transition-fast);
}

.admin-price-wrapper:focus-within {
  border-color: var(--gold-400);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.admin-price-wrapper.updated-pulse {
  animation: pulseGreen 0.8s ease-out;
}

@keyframes pulseGreen {
  0% { border-color: #10b981; box-shadow: 0 0 12px rgba(16, 185, 129, 0.6); }
  100% { border-color: rgba(212, 175, 55, 0.35); }
}

.admin-price-prefix {
  color: var(--gold-400);
  font-weight: 600;
  font-size: 0.85rem;
  margin-right: 4px;
}

.admin-price-input {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  width: 90px;
  outline: none;
  font-family: var(--font-display);
}

/* Botón estado: Disponible / Agotado */
.btn-status-toggle {
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  border: 1px solid transparent;
}

.btn-status-toggle.available {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}

.btn-status-toggle.available:hover {
  background: rgba(16, 185, 129, 0.25);
}

.btn-status-toggle.out-of-stock {
  background: rgba(224, 83, 60, 0.15);
  border-color: rgba(224, 83, 60, 0.4);
  color: #fca5a5;
}

.btn-status-toggle.out-of-stock:hover {
  background: rgba(224, 83, 60, 0.25);
}

/* Botones de acción (Editar y Eliminar) */
.btn-dish-action {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  transition: var(--transition-fast);
  cursor: pointer;
}

.btn-dish-action svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.btn-dish-action:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-dish-action.delete:hover {
  background: rgba(224, 83, 60, 0.2);
  border-color: rgba(224, 83, 60, 0.4);
  color: #ff8c8c;
}

/* Insignias de Agotado en la Carta del Cliente */
.badge-agotado {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: rgba(224, 83, 60, 0.25);
  border: 1px solid rgba(224, 83, 60, 0.5);
  color: #fca5a5;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 6px;
  text-transform: uppercase;
}

.dish-out-of-stock-card {
  opacity: 0.55 !important;
  filter: grayscale(0.2);
}

/* Modales de Administración */
.admin-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.admin-modal.open {
  opacity: 1;
  visibility: visible;
}

.admin-modal-card {
  background: linear-gradient(145deg, #131923 0%, #0d121a 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg), 0 0 35px rgba(212, 175, 55, 0.15);
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.admin-modal.open .admin-modal-card {
  transform: scale(1);
}

.admin-modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-modal-header h3 {
  font-family: var(--font-serif);
  color: var(--gold-300);
  font-size: 1.3rem;
}

.admin-modal-close {
  font-size: 1.8rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
}

.admin-modal-close:hover {
  color: #fff;
}

.admin-modal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(9, 12, 16, 0.8);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold-400);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.25);
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-group-toggle label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--gold-300);
}

.portions-edit-box {
  background: rgba(9, 12, 16, 0.5);
  border: 1px dashed rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-sm);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1rem;
}

.btn-modal-cancel {
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
  cursor: pointer;
}

.btn-modal-cancel:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.btn-modal-save {
  padding: 0.6rem 1.3rem;
  border-radius: var(--radius-sm);
  background: var(--gold-gradient);
  color: #090c10;
  font-weight: 700;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.btn-modal-save:hover {
  box-shadow: var(--shadow-gold);
}

/* Notificaciones Toast */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: rgba(18, 24, 34, 0.95);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--text-primary);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateY(20px);
  opacity: 0;
  animation: toastIn 0.3s forwards ease;
}

.toast.success {
  border-color: rgba(16, 185, 129, 0.5);
  background: rgba(15, 29, 23, 0.95);
  color: #a7f3d0;
}

.toast.error {
  border-color: rgba(224, 83, 60, 0.5);
  background: rgba(36, 16, 16, 0.95);
  color: #fecaca;
}

@keyframes toastIn {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ==========================================================================
   MODO IMPRESIÓN (PRINT STYLESHEET)
   ========================================================================== */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
  }

  .main-header,
  .slide-controls-top,
  .slide-thumbnails-bar,
  .sticky-categories-bar,
  .floating-actions,
  .search-drawer,
  .btn-print,
  #adminView,
  .admin-modal,
  .toast-container {
    display: none !important;
  }

  #slidesView, #listView {
    display: block !important;
    padding: 0 !important;
  }

  .slide-page {
    display: block !important;
    page-break-after: always;
    border: 1px solid #ddd !important;
    background: #fff !important;
    box-shadow: none !important;
    color: #111 !important;
    padding: 1.5cm !important;
  }

  .slide-page::before {
    display: none;
  }

  .slide-header h2, .section-title-row h3, .dish-price {
    color: #946914 !important;
  }

  .dish-name {
    color: #111 !important;
  }

  .menu-section-block {
    background: transparent !important;
    border: 1px solid #ccc !important;
  }
}
