/* ==========================================================================
   CNI SMARTLINK — SMARTLINK EL RINCÓN
   Diseño de Experiencia Móvil de Alto Standing
   Laboratorio Privado · 2026
   ========================================================================== */

:root {
  --bg-core: #090e17;
  --bg-surface: #101726;
  --bg-surface-elevated: #162033;
  --bg-surface-card: #141c2e;
  --bg-surface-trans: rgba(16, 23, 38, 0.88);
  --border-subtle: rgba(220, 182, 107, 0.18);
  --border-glow: rgba(220, 182, 107, 0.45);
  --text-main: #f5f4ef;
  --text-muted: #9aa8be;
  --text-dim: #6c7c93;
  --gold-primary: #dcb66b;
  --gold-light: #f3d48d;
  --gold-dark: #b88f40;
  --gold-gradient: linear-gradient(135deg, #f7dfa4 0%, #dcb66b 50%, #af842f 100%);
  --gold-glow: 0 4px 20px rgba(220, 182, 107, 0.25);
  --accent-red: #e05252;
  --accent-green: #38b284;
  --accent-amber: #e6a23c;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.35);
  --font-serif: 'Cinzel', 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  background: #05080e;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------------------------------
   Top Lab Bar (Escritorio / Control de Pruebas)
   -------------------------------------------------------------------------- */
.lab-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 20px;
  background: #060a12;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.lab-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.lab-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-primary);
  box-shadow: 0 0 10px var(--gold-primary);
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.lab-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.lab-btn {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.lab-btn:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--gold-primary);
  color: var(--gold-light);
}

.lab-btn.active {
  background: var(--gold-primary);
  color: #090e17;
  border-color: var(--gold-primary);
  box-shadow: var(--gold-glow);
}

/* --------------------------------------------------------------------------
   App Viewport Wrapper (Phone Frame or Fullscreen)
   -------------------------------------------------------------------------- */
.app-container {
  height: calc(100vh - 49px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px;
  overflow: hidden;
}

.app-container.fullscreen {
  height: 100vh;
  padding: 0;
}

.phone-mockup {
  width: 100%;
  max-width: 390px;
  height: min(844px, calc(100vh - 65px));
  background: var(--bg-core);
  border-radius: 44px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.85), 0 0 0 9px #1c2433, 0 0 0 11px #2a354a;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(220, 182, 107, 0.3);
}

.app-container.fullscreen .phone-mockup {
  max-width: 100%;
  height: 100vh;
  border-radius: 0;
  box-shadow: none;
  border: none;
}

/* Phone Bezel Top */
.phone-notch-area {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--text-main);
  background: var(--bg-core);
  z-index: 100;
}

.phone-dynamic-island {
  width: 110px;
  height: 24px;
  background: #000;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--text-dim);
}

.phone-status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Mobile App Header
   -------------------------------------------------------------------------- */
.mobile-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--bg-surface-trans);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(220, 182, 107, 0.3));
}

.brand-text h1 {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.brand-text p {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mesa-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(220, 182, 107, 0.12);
  border: 1px solid var(--border-subtle);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-light);
  cursor: pointer;
  transition: var(--transition);
}

.mesa-pill:hover {
  background: rgba(220, 182, 107, 0.25);
  border-color: var(--gold-primary);
}

.header-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.header-btn:hover {
  border-color: var(--gold-primary);
  color: var(--gold-light);
  transform: translateY(-1px);
}

.header-btn svg {
  width: 17px;
  height: 17px;
}

.badge-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-primary);
  box-shadow: 0 0 6px var(--gold-primary);
}

/* --------------------------------------------------------------------------
   Allergen Global Warning Banner
   -------------------------------------------------------------------------- */
.allergen-warning-banner {
  background: linear-gradient(90deg, rgba(230, 162, 60, 0.15), rgba(220, 182, 107, 0.1));
  border-bottom: 1px solid rgba(230, 162, 60, 0.25);
  padding: 8px 16px;
  font-size: 11px;
  color: #ffdfa9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.allergen-warning-banner svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--accent-amber);
}

.allergen-warning-banner span {
  flex: 1;
  line-height: 1.35;
}

.allergen-btn-info {
  background: rgba(230, 162, 60, 0.2);
  color: #fff;
  border: 1px solid rgba(230, 162, 60, 0.4);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   App Main Stage
   -------------------------------------------------------------------------- */
.app-stage {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 84px; /* Space for bottom nav */
  position: relative;
}

.view-section {
  display: none;
  animation: fadeIn 0.28s ease;
}

.view-section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   Hero Carousel (Vista Inicio)
   -------------------------------------------------------------------------- */
.hero-slider-wrap {
  position: relative;
  width: 100%;
  height: 250px;
  background: #000;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 14, 23, 0.3) 0%, rgba(9, 14, 23, 0.85) 75%, var(--bg-core) 100%);
  pointer-events: none;
}

.hero-caption {
  position: absolute;
  bottom: 16px;
  left: 18px;
  right: 18px;
  z-index: 10;
}

.hero-kicker {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin-top: 4px;
}

.hero-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.slider-dots {
  position: absolute;
  top: 14px;
  right: 16px;
  display: flex;
  gap: 5px;
  z-index: 15;
}

.slider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transition: var(--transition);
}

.slider-dot.active {
  width: 18px;
  border-radius: 4px;
  background: var(--gold-primary);
}

/* --------------------------------------------------------------------------
   Quick Links / Bento Grid (Inicio)
   -------------------------------------------------------------------------- */
.bento-section {
  padding: 18px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-head h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.section-head .head-subtitle {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold-primary);
  font-weight: 700;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.bento-card {
  position: relative;
  background: var(--bg-surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.bento-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-glow);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.bento-card.wide {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
}

.bento-img-wrap {
  position: relative;
  width: 100%;
  height: 110px;
  overflow: hidden;
}

.bento-card.wide .bento-img-wrap {
  width: 40%;
  height: 120px;
}

.bento-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.bento-card:hover .bento-img-wrap img {
  transform: scale(1.06);
}

.bento-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(9, 14, 23, 0.9) 100%);
}

.bento-body {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bento-tag {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 2px;
}

.bento-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.bento-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.3;
}

/* --------------------------------------------------------------------------
   Highlighted Dish of the Day Banner
   -------------------------------------------------------------------------- */
.dish-highlight-card {
  margin: 0 18px 18px;
  background: linear-gradient(145deg, #162033 0%, #101625 100%);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.dish-highlight-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(220, 182, 107, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.highlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(220, 182, 107, 0.15);
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.highlight-content {
  display: flex;
  gap: 14px;
  align-items: center;
}

.highlight-img {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
}

.highlight-info h4 {
  font-family: var(--font-serif);
  font-size: 16px;
  color: #fff;
  font-weight: 700;
  line-height: 1.2;
}

.highlight-info p {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.35;
}

.highlight-action {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-light);
  background: none;
  border: none;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Category Pills (Sticky Tab Sub-Navigation)
   -------------------------------------------------------------------------- */
.category-pills-bar {
  position: sticky;
  top: 61px;
  z-index: 80;
  background: rgba(9, 14, 23, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-pills-bar::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  flex: 1;
  background: var(--bg-surface-elevated);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  padding: 7px 4px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}

.cat-pill:hover {
  color: #fff;
  border-color: var(--gold-light);
  background: rgba(220, 182, 107, 0.12);
}

.cat-pill.active {
  background: linear-gradient(135deg, #e3c78a 0%, #dcb66b 50%, #b89246 100%);
  color: #090e17;
  font-weight: 800;
  border-color: var(--gold-primary);
  box-shadow: 0 2px 10px rgba(220, 182, 107, 0.35);
}

/* --------------------------------------------------------------------------
   Product List / Cards Grid
   -------------------------------------------------------------------------- */
.products-container {
  padding: 16px;
}

.category-header {
  margin: 18px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.category-header h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--gold-light);
  font-weight: 700;
}

.category-header span {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.dish-card {
  background: var(--bg-surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  display: flex;
  gap: 12px;
  padding: 12px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.dish-card:hover {
  border-color: var(--border-glow);
  background: var(--bg-surface-elevated);
  transform: translateY(-1px);
}

.dish-card-thumb {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: #090e17;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.dish-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dish-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.dish-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.dish-card-valencia {
  font-size: 11px;
  color: var(--gold-light);
  font-style: italic;
  margin-top: 1px;
}

.dish-card-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--gold-primary);
  white-space: nowrap;
}

.dish-card-brief {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.35;
  margin: 4px 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dish-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dish-allergens-mini {
  display: flex;
  align-items: center;
  gap: 4px;
}

.allergen-icon-mini {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: contain;
  background: #090e17;
  padding: 1px;
  border: 1px solid rgba(220, 182, 107, 0.2);
}

.dish-ver-mas {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 3px;
}

/* --------------------------------------------------------------------------
   Configurador Interactivo de Menú del Día
   -------------------------------------------------------------------------- */
.menu-builder-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin: 16px;
  box-shadow: var(--shadow-card);
}

.menu-builder-header {
  text-align: center;
  margin-bottom: 16px;
}

.menu-builder-header h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  color: #fff;
}

.menu-builder-header p {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.menu-conditions-badge {
  display: inline-block;
  background: rgba(220, 182, 107, 0.12);
  border: 1px solid var(--border-subtle);
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  margin-top: 8px;
}

.menu-step-group {
  margin-bottom: 18px;
}

.step-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--gold-light);
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.step-number {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold-primary);
  color: #090e17;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.menu-choices-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.menu-choice-item {
  background: var(--bg-surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  min-height: 60px;
  position: relative;
  overflow: hidden;
}

.menu-choice-item:hover {
  border-color: var(--border-glow);
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-1px);
}

.menu-choice-item.selected {
  background: rgba(220, 182, 107, 0.16);
  border-color: var(--gold-primary);
  box-shadow: 0 0 12px rgba(220, 182, 107, 0.25);
}

.menu-choice-item.selected::after {
  content: "✓";
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 11px;
  font-weight: 900;
  color: var(--gold-primary);
}

.menu-choice-img {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.menu-choice-body {
  flex: 1;
  min-width: 0;
}

.menu-choice-name {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.menu-selection-summary {
  background: var(--bg-core);
  border: 1px dashed var(--border-glow);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-top: 14px;
}

.summary-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold-primary);
  margin-bottom: 8px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 4px;
  color: var(--text-muted);
}

.summary-line strong {
  color: #fff;
}

/* --------------------------------------------------------------------------
   Esmorzaret Experience Section
   -------------------------------------------------------------------------- */
.esmorzaret-hero-card {
  margin: 16px;
  background: linear-gradient(180deg, #182338 0%, #101726 100%);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 18px;
  text-align: center;
}

.esmorzaret-hero-card h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--gold-light);
}

.esmorzaret-hero-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}

.ritual-steps-list {
  margin: 16px 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.ritual-step-item {
  background: var(--bg-surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: left;
  transition: var(--transition);
}

.ritual-step-item strong {
  display: block;
  font-size: 12px;
  color: var(--gold-light);
  margin-bottom: 3px;
}

.ritual-step-item span {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.25;
  display: block;
}

.ritual-step-item.featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(22, 32, 51, 0.95) 0%, rgba(16, 23, 38, 0.95) 100%);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 14px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.ritual-step-item.featured:hover {
  transform: translateY(-2px);
  border-color: var(--gold-light);
  box-shadow: 0 6px 20px rgba(220, 182, 107, 0.25);
}

.ritual-step-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.ritual-step-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold-primary);
  color: #090e17;
  font-weight: 800;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.ritual-step-content {
  flex: 1;
}

.ritual-step-title {
  display: block;
  font-size: 13.5px !important;
  color: #fff !important;
  font-weight: 800;
  margin-bottom: 4px;
}

.ritual-step-desc {
  font-size: 12px !important;
  color: #d1d9e6 !important;
  line-height: 1.45 !important;
}

.ritual-step-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ritual-meta-tag {
  font-size: 10.5px !important;
  color: var(--text-dim) !important;
  font-style: italic;
}

.ritual-link-btn {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: var(--gold-light) !important;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Beverages 58 Catalogue Grid (8 Families)
   -------------------------------------------------------------------------- */
.beverage-families-accordion {
  padding: 14px 16px;
}

.beverage-family-card {
  background: var(--bg-surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--transition);
}

.beverage-family-header {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: var(--bg-surface-elevated);
}

.beverage-family-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.family-thumb-mini {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-subtle);
}

.family-title-text h4 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.family-title-text span {
  font-size: 11px;
  color: var(--text-dim);
}

.family-arrow {
  color: var(--gold-primary);
  transition: transform 0.25s ease;
}

.beverage-family-card.open .family-arrow {
  transform: rotate(180deg);
}

.beverage-items-grid {
  display: none;
  padding: 12px;
  grid-template-columns: 1fr;
  gap: 10px;
  background: var(--bg-surface);
}

.beverage-family-card.open .beverage-items-grid {
  display: grid;
}

.beverage-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  background: var(--bg-surface-card);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.beverage-card:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--border-subtle);
}

.beverage-thumb {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
  background: #000;
}

.beverage-info {
  flex: 1;
}

.beverage-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.beverage-brief {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.25;
}

.beverage-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-primary);
}

/* --------------------------------------------------------------------------
   Bottom Navigation Bar
   -------------------------------------------------------------------------- */
.mobile-bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 68px;
  background: var(--bg-surface-trans);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 4px;
  z-index: 100;
}

.nav-tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  padding: 6px 4px;
  min-width: 52px;
}

.nav-tab-btn svg {
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
}

.nav-tab-btn:hover {
  color: var(--text-muted);
}

.nav-tab-btn.active {
  color: var(--gold-light);
  font-weight: 800;
}

.nav-tab-btn.active svg {
  transform: translateY(-2px);
  color: var(--gold-primary);
  filter: drop-shadow(0 2px 6px rgba(220, 182, 107, 0.4));
}

/* --------------------------------------------------------------------------
   Modals & Drawers
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 14, 0.46);
  backdrop-filter: blur(3.5px);
  -webkit-backdrop-filter: blur(3.5px);
  z-index: 500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border-radius: inherit;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.modal-sheet {
  background: var(--bg-surface);
  border: 1px solid var(--border-glow);
  border-bottom: none;
  border-radius: 24px 24px 0 0;
  width: 100%;
  max-width: 100%;
  max-height: 86%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  overscroll-behavior: contain;
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-sheet {
  transform: translateY(0);
}

.sheet-handle {
  width: 40px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  margin: 10px auto 4px;
}

.sheet-header {
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.sheet-header h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  color: #fff;
  font-weight: 700;
}

.sheet-close-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
}

.sheet-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

/* Detail Modal Specifics */
.detail-photo-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid var(--border-subtle);
}

.detail-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-price-tag {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(9, 14, 23, 0.85);
  border: 1px solid var(--border-glow);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 800;
  color: var(--gold-light);
}

.detail-title {
  font-family: var(--font-serif);
  font-size: 20px;
  color: #fff;
  font-weight: 700;
  line-height: 1.2;
}

.detail-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 8px;
}

.allergen-box {
  margin-top: 20px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
}

.allergen-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.allergen-box-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--gold-primary);
  letter-spacing: 0.8px;
}

/* Ficha de Producto: Solo Símbolos de Alérgenos (Sin letreros invasivos) */
.product-allergens-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 10px 14px;
  background: var(--bg-core);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.allergens-strip-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--gold-primary);
  letter-spacing: 0.8px;
  white-space: nowrap;
}

.allergens-badges-list {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.allergen-badge-item {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(220, 182, 107, 0.15);
  border: 1px solid var(--gold-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgba(220, 182, 107, 0.25);
  transition: transform 0.2s ease;
}

.allergen-badge-item:hover {
  transform: scale(1.1);
}

.allergen-badge-item img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}

.allergen-free-tag {
  font-size: 11px;
  color: #8ef0c2;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Modal Flotante de Plato: Menú del Día (Vista Previa Interactiva)
   -------------------------------------------------------------------------- */
.menu-floating-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 14, 0.46);
  backdrop-filter: blur(3.5px);
  -webkit-backdrop-filter: blur(3.5px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
  border-radius: inherit;
  overflow: hidden;
}

.menu-floating-overlay.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.menu-floating-card {
  width: 100%;
  max-width: 340px;
  max-height: 84%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  position: relative;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.menu-floating-overlay.active .menu-floating-card {
  transform: translateY(0) scale(1);
}

.menu-floating-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(9, 14, 23, 0.85);
  border: 1px solid var(--border-glow);
  color: #fff;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: var(--transition);
}

.menu-floating-close:hover {
  background: var(--gold-primary);
  color: #090e17;
}

.menu-floating-img-wrap {
  position: relative;
  width: 100%;
  height: 170px;
  overflow: hidden;
  background: #090e17;
}

.menu-floating-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.menu-floating-step-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(9, 14, 23, 0.85);
  border: 1px solid var(--border-glow);
  color: var(--gold-light);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 8px;
  border-radius: 12px;
  backdrop-filter: blur(6px);
}

.menu-floating-body {
  padding: 16px;
}

.menu-floating-title {
  font-family: var(--font-serif);
  font-size: 17px;
  color: #fff;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 8px;
}

.menu-floating-desc {
  font-size: 12.5px;
  color: #d1d9e6;
  line-height: 1.5;
  margin-bottom: 12px;
}

.menu-floating-allergens-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--bg-core);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 14px;
}

.menu-floating-allergens-label {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--gold-primary);
}

.menu-floating-allergens-icons {
  display: flex;
  gap: 5px;
  align-items: center;
}

.menu-floating-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu-floating-select-btn {
  width: 100%;
  background: var(--gold-gradient);
  color: #090e17;
  font-weight: 800;
  font-size: 13px;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.menu-floating-select-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.menu-floating-select-btn.selected {
  background: rgba(56, 178, 132, 0.25);
  border: 1px solid var(--accent-green);
  color: #8ef0c2;
}

.menu-floating-cancel-btn {
  width: 100%;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  padding: 8px;
  border: none;
  cursor: pointer;
  text-align: center;
}

.menu-floating-cancel-btn:hover {
  color: #fff;
}

/* --------------------------------------------------------------------------
   Módulo y Modal Historia La Nacional (Venta de Carretera desde los 60)
   -------------------------------------------------------------------------- */
.historia-nacional-card {
  margin: 18px 18px 0;
  background: var(--bg-surface-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.historia-nacional-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold-primary);
  box-shadow: 0 8px 24px rgba(220, 182, 107, 0.2);
}

.historia-nacional-img-wrap {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
}

.historia-nacional-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.historia-nacional-card:hover .historia-nacional-img-wrap img {
  transform: scale(1.03);
}

.historia-pill-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(9, 14, 23, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}

.historia-nacional-body {
  padding: 14px 16px 16px;
}

.historia-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold-light);
  display: block;
}

.historia-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  margin: 4px 0 8px;
  line-height: 1.25;
}

.historia-snippet {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 10px;
}

.historia-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 12px;
  color: var(--gold-light);
  background: rgba(220, 182, 107, 0.08);
  border-left: 3px solid var(--gold-primary);
  padding: 6px 10px;
  border-radius: 0 4px 4px 0;
  margin-bottom: 12px;
}

.historia-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 10px;
}

.historia-gallery-count {
  font-size: 11px;
  color: var(--text-dim);
}

.historia-btn-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-primary);
  transition: var(--transition);
}

.historia-nacional-card:hover .historia-btn-link {
  color: #fff;
}

.local-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.local-gallery-item {
  background: var(--bg-core);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
}

.local-gallery-item.wide {
  grid-column: span 2;
}

.local-gallery-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.local-gallery-item.wide img {
  height: 160px;
}

.local-gallery-item span {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  padding: 6px 8px;
  text-align: center;
  background: rgba(9, 14, 23, 0.9);
}

/* --------------------------------------------------------------------------
   Modal ¡Oído Cocina! (Comanda de Menú enviada a fogones)
   -------------------------------------------------------------------------- */
.oido-cocina-sheet {
  max-height: 88%;
  background: var(--bg-surface-sheet);
  border-top: 2px solid var(--gold-primary);
  box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(220, 182, 107, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.oido-cocina-hero {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.oido-cocina-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.oido-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 14, 23, 0.2) 0%, rgba(9, 14, 23, 0.9) 100%);
}

.oido-badge-chip {
  position: absolute;
  bottom: 12px;
  left: 14px;
  background: rgba(220, 38, 38, 0.9);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(220, 38, 38, 0.5);
  animation: pulseFire 2s infinite ease-in-out;
}

@keyframes pulseFire {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.03); opacity: 0.9; }
}

.oido-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(9, 14, 23, 0.7);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.oido-body {
  padding: 16px 18px 24px;
}

.oido-title-wrap {
  text-align: center;
  margin-bottom: 16px;
}

.oido-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-light);
  display: block;
}

.oido-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.5px;
  margin: 2px 0 6px;
  text-shadow: 0 2px 10px rgba(220, 182, 107, 0.4);
}

.oido-subtitle {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
  max-width: 380px;
  margin: 0 auto;
}

.comanda-ticket-card {
  background: #101622;
  border: 1px dashed var(--gold-primary);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin: 16px 0;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.ticket-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ticket-header strong {
  display: block;
  font-size: 13px;
  letter-spacing: 0.5px;
  color: var(--gold-light);
}

.ticket-header span {
  font-size: 11px;
  color: var(--text-dim);
}

.ticket-time {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
}

.ticket-divider {
  height: 1px;
  background: dashed rgba(220, 182, 107, 0.3);
  margin: 10px 0;
  border-bottom: 1px dashed rgba(220, 182, 107, 0.25);
}

.ticket-items-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ticket-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 12.5px;
}

.ticket-step {
  color: var(--text-muted);
  font-weight: 500;
  min-width: 70px;
}

.ticket-dish {
  color: #fff;
  font-weight: 700;
  text-align: right;
  flex: 1;
}

.ticket-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: var(--text-dim);
  padding-top: 4px;
}

.ticket-status-pill {
  color: #38b2ac;
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.5px;
}

.oido-accept-btn {
  margin-top: 4px;
  width: 100%;
  font-size: 14px;
}

/* Modal Selector de Formato (Entero / Medio) */
.modal-formats-wrap {
  margin: 12px 0 14px;
  background: var(--bg-core);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
}

.modal-formats-title {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 8px;
}

.modal-formats-pills {
  display: flex;
  gap: 10px;
}

.modal-format-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  background: var(--bg-surface-elevated);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  gap: 2px;
}

.modal-format-btn span {
  font-size: 12px;
  font-weight: 600;
}

.modal-format-btn strong {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}

.modal-format-btn:hover {
  border-color: var(--gold-primary);
}

.modal-format-btn.active {
  background: rgba(220, 182, 107, 0.2);
  border-color: var(--gold-primary);
  box-shadow: 0 0 12px rgba(220, 182, 107, 0.3);
}

.modal-format-btn.active span {
  color: var(--gold-light);
}

.modal-format-btn.active strong {
  color: var(--gold-light);
}

/* Bocadillos: Selección y Muestra de Formatos Entero / Medio */
.bocadillo-sizes-row {
  display: flex;
  gap: 6px;
  margin: 6px 0 8px;
  flex-wrap: wrap;
}

.size-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 12px;
  transition: var(--transition);
}

.size-pill strong {
  color: #fff;
  font-weight: 700;
}

.size-pill.active {
  background: rgba(220, 182, 107, 0.16);
  border-color: var(--gold-primary);
  color: var(--gold-light);
}

.size-pill.active strong {
  color: var(--gold-light);
}

/* Módulo Exclusivo: Cremaet Tradicional con Historia */
.cremaet-featured-card {
  margin: 18px 0;
  background: linear-gradient(145deg, #181d28 0%, #101520 100%);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.cremaet-featured-card:hover, .cremaet-featured-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--gold-light);
  box-shadow: 0 12px 30px rgba(220, 182, 107, 0.25);
  outline: none;
}

.cremaet-img-wrap {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #090e17;
}

.cremaet-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.cremaet-featured-card:hover .cremaet-img-wrap img {
  transform: scale(1.04);
}

.cremaet-pill-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(9, 14, 23, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-glow);
  color: var(--gold-light);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}

.cremaet-body {
  padding: 16px;
}

.cremaet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.cremaet-kicker {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 2px;
}

.cremaet-title {
  font-family: var(--font-serif);
  font-size: 18px;
  color: #fff;
  font-weight: 700;
  line-height: 1.2;
}

.cremaet-price {
  background: rgba(220, 182, 107, 0.15);
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  font-size: 15px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 14px;
  white-space: nowrap;
}

.cremaet-story {
  font-size: 12.5px;
  color: #d1d9e6;
  line-height: 1.55;
  margin-bottom: 12px;
}

.cremaet-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
}

.cremaet-meta {
  color: var(--text-dim);
  font-style: italic;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cremaet-btn-ver {
  color: var(--gold-light);
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.allergen-legal-note {
  font-size: 11px;
  color: #ffca80;
  background: rgba(230, 162, 60, 0.1);
  border: 1px solid rgba(230, 162, 60, 0.3);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  line-height: 1.35;
}

/* Service / Mesa Call Modal Specifics */
.waiter-options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 14px 0;
}

.waiter-opt-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}

.waiter-opt-btn:hover {
  background: rgba(220, 182, 107, 0.15);
  border-color: var(--gold-primary);
}

.waiter-opt-btn.selected {
  background: rgba(220, 182, 107, 0.2);
  border-color: var(--gold-primary);
  color: var(--gold-light);
}

.primary-action-btn {
  width: 100%;
  background: var(--gold-gradient);
  color: #090e17;
  border: none;
  padding: 13px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: var(--gold-glow);
  transition: var(--transition);
}

.primary-action-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

/* ==========================================================================
   Calculadora de División de Cuenta SmartLink (Modal Pedir Cuenta)
   ========================================================================== */
.bill-calculator-card {
  background: linear-gradient(145deg, #131b2c 0%, #0c121e 100%);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  margin: 12px 0 16px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

.bill-calc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(220, 182, 107, 0.15);
}

.bill-calc-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--gold-light);
}

.calc-badge-icon {
  font-size: 13px;
}

.calc-mode-pill {
  font-size: 10px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2px 7px;
  border-radius: 10px;
}

.bill-calc-math-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  background: rgba(9, 14, 23, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
}

.calc-math-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 1;
}

.calc-col-label {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.calc-col-total {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}

.calc-math-op {
  font-size: 18px;
  font-weight: 800;
  color: var(--gold-primary);
  opacity: 0.85;
  user-select: none;
  padding: 0 1px;
}

.calc-stepper-col {
  flex: 1.2;
}

.calc-stepper-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.calc-btn-step {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glow);
  color: var(--gold-light);
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
  padding: 0;
}

.calc-btn-step:hover, .calc-btn-step:focus-visible {
  background: rgba(220, 182, 107, 0.25);
  border-color: var(--gold-light);
  transform: scale(1.08);
  outline: none;
}

.calc-btn-step:active {
  transform: scale(0.95);
}

.calc-diner-num {
  font-size: 16px;
  font-weight: 900;
  color: #fff;
  min-width: 18px;
  text-align: center;
}

.calc-result-col {
  flex: 1.3;
  background: rgba(220, 182, 107, 0.12);
  border: 1px solid var(--gold-primary);
  border-radius: 6px;
  padding: 5px 4px;
  box-shadow: 0 0 12px rgba(220, 182, 107, 0.2);
}

.calc-result-col .calc-col-label {
  color: var(--gold-light);
  font-size: 9px;
  margin-bottom: 2px;
}

.calc-result-number {
  font-size: 17px;
  font-weight: 900;
  color: var(--gold-light);
  letter-spacing: -0.3px;
}

.calc-didactic-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 10px;
  background: rgba(220, 182, 107, 0.08);
  border: 1px solid rgba(220, 182, 107, 0.2);
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  line-height: 1.35;
  color: #d1d9e6;
}

.didactic-icon {
  font-size: 13px;
  flex-shrink: 0;
}

.didactic-text strong {
  color: var(--gold-light);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Mobile Bottom Navigation Bar
   -------------------------------------------------------------------------- */
.mobile-bottom-nav {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(9, 14, 23, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px));
  z-index: 95;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.6);
  flex-shrink: 0;
}

.nav-tab-btn {
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-dim);
  cursor: pointer;
  padding: 6px 2px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  flex: 1;
  max-width: 62px;
}

.nav-tab-btn svg {
  width: 19px;
  height: 19px;
  stroke: var(--text-dim);
  transition: transform 0.2s ease, stroke 0.2s ease;
}

.nav-tab-btn span {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.1px;
  white-space: nowrap;
}

.nav-tab-btn:hover {
  color: var(--gold-light);
}

.nav-tab-btn:hover svg {
  stroke: var(--gold-light);
}

.nav-tab-btn.active {
  color: var(--gold-primary);
}

.nav-tab-btn.active svg {
  stroke: var(--gold-primary);
  transform: translateY(-2px);
  filter: drop-shadow(0 2px 8px rgba(220, 182, 107, 0.5));
}

.nav-tab-btn.active span {
  font-weight: 800;
  color: var(--gold-light);
}

/* --------------------------------------------------------------------------
   Responsive adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 600px) {
  .lab-topbar {
    display: none; /* Auto-clean on actual phones */
  }
  .app-container {
    padding: 0;
  }
  .phone-mockup {
    max-width: 100%;
    height: 100vh;
    border-radius: 0;
    box-shadow: none;
    border: none;
  }
  .phone-notch-area {
    display: none;
  }
}

/* ==========================================================================
   SMARTLINK FASE 1 · CABECERA MAESTRA LA NACIONAL (DIRECCIÓN CNI)
   Rediseño rojo "rótulo" · Emil Design Eng + Impeccable (layout / typeset)
   Alcance: SOLO la cabecera. IDs y comportamiento intactos.
   ========================================================================== */
.mobile-header.master-header-fase1 {
  --lnr-rojo-alto: #b72420;
  --lnr-rojo-bajo: #a01b19;
  --lnr-blanco: #f8f0df; /* blanco roto del rótulo */
  --lnr-oro: #f0c95f;
  --lnr-oro-linea: rgba(240, 201, 95, 0.5);
  --lnr-oro-filete: #d4ad60;
  --lnr-hueco: rgba(58, 6, 6, 0.34);
  --lnr-ease: cubic-bezier(0.23, 1, 0.32, 1);

  /* Dimensiones del bloque derecho (única fuente de verdad) */
  --lnr-flag-w: 32px;
  --lnr-ctl: 30px;
  --lnr-gap: 7px;

  position: sticky;
  top: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 14px;
  width: 100%;
  flex-shrink: 0;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px;
  background: linear-gradient(180deg, var(--lnr-rojo-alto) 0%, var(--lnr-rojo-bajo) 100%);
  border-bottom: 1px solid var(--lnr-oro-filete);
}

/* La franja de estado del marco de escritorio hereda el rojo de la cabecera */
.phone-notch-area {
  background: var(--lnr-rojo-alto, #b81f25);
  color: rgba(255, 255, 255, 0.92);
}

/* --------------------------------------------------------------------------
   Bloque izquierdo: lockup de marca (LA NACIONAL + RESTAURANTE-ASADOR)
   Ambas líneas comparten ancho exacto (unidades de contenedor): el lockup
   se comporta como una pieza única y ocupa la zona libre con márgenes iguales.
   -------------------------------------------------------------------------- */
.master-header-fase1 .brand-block {
  container-type: inline-size;
  min-width: 0;
  display: flex;
  align-items: center;
}

.master-header-fase1 .brand-text {
  --lnr-ancho: min(100cqw, 15rem);
  width: var(--lnr-ancho);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: calc(var(--lnr-ancho) * 0.045);
}

.master-header-fase1 .brand-title {
  margin: 0;
  padding: 0;
  font-family: 'Anton', 'Oswald', 'Arial Narrow', Impact, sans-serif;
  font-weight: 400;
  font-size: calc(var(--lnr-ancho) / 5.018);
  line-height: 0.92;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--lnr-blanco);
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: var(--lnr-blanco);
  text-shadow: 0 1px 0 rgba(60, 4, 8, 0.45);
}

.master-header-fase1 .brand-subtitle {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: calc(var(--lnr-ancho) / 13.832);
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--lnr-oro);
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Bloque derecho: banderas arriba, acciones de sala debajo (misma anchura)
   -------------------------------------------------------------------------- */
.master-header-fase1 .header-right-cluster {
  display: grid;
  grid-template-columns: max-content;
  justify-items: stretch;
  row-gap: var(--lnr-gap);
}

/* Banderas: cuatro marcos 3:2, repartidos de borde a borde del bloque */
.master-header-fase1 .header-flags-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.master-header-fase1 .lang-flag-btn {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: var(--lnr-flag-w);
  aspect-ratio: 3 / 2;
  padding: 0;
  margin: 0;
  background: #fff;
  border: 0;
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  line-height: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3);
  transition: transform 160ms var(--lnr-ease), box-shadow 160ms var(--lnr-ease);
}

/* Zona táctil ampliada sin alterar la marca visual.
   Banderas y acciones se reparten el hueco vertical sin solaparse (3px + 4px = gap). */
.master-header-fase1 .lang-flag-btn::after,
.master-header-fase1 .mesa-pill::after,
.master-header-fase1 .header-btn::after {
  content: "";
  position: absolute;
  inset: -8px -3px -3px;
}
.master-header-fase1 .mesa-pill::after,
.master-header-fase1 .header-btn::after {
  inset: -4px -3px -6px;
}

/* Imagen original sin modificar: solo se recorta el margen blanco del archivo */
.master-header-fase1 .lang-flag-btn img {
  position: absolute;
  display: block;
  max-width: none;
  width: var(--zw, 100%);
  height: var(--zh, 100%);
  left: var(--zx, 0);
  top: var(--zy, 0);
  object-fit: fill;
}

.master-header-fase1 .lang-flag-btn[data-lang="es"] img { --zw: 100%; --zh: 100%; --zx: 0; --zy: 0; }
/* VA (1,54:1) → marco 3:2: se conserva el ornamento izquierdo */
.master-header-fase1 .lang-flag-btn[data-lang="va"] img { object-fit: cover; object-position: left center; --zw: 100%; --zh: 100%; --zx: 0; --zy: 0; }
/* EN y FR traen margen blanco en el archivo: recorte al borde real de la bandera */
.master-header-fase1 .lang-flag-btn[data-lang="en"] img { --zw: 112.9%; --zh: 119.6%; --zx: -6.5%; --zy: -10.3%; }
.master-header-fase1 .lang-flag-btn[data-lang="fr"] img { --zw: 102.9%; --zh: 154.5%; --zx: -1.1%; --zy: -25.5%; }

.master-header-fase1 .lang-flag-btn.active {
  box-shadow: 0 0 0 2px var(--lnr-oro);
}

.master-header-fase1 .lang-flag-btn:active {
  transform: scale(0.95);
  transition-duration: 100ms;
}

/* Acciones de sala: Mesa 04 · Camarero · Cuenta */
.master-header-fase1 .header-actions-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--lnr-gap);
}

.master-header-fase1 .mesa-pill,
.master-header-fase1 .header-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  height: var(--lnr-ctl);
  margin: 0;
  background: var(--lnr-hueco);
  border: 1px solid var(--lnr-oro-linea);
  color: var(--lnr-oro);
  cursor: pointer;
  transition: transform 160ms var(--lnr-ease), background-color 160ms var(--lnr-ease), border-color 160ms var(--lnr-ease);
}

.master-header-fase1 .mesa-pill {
  gap: 5px;
  padding: 0 10px 0 9px;
  border-radius: calc(var(--lnr-ctl) / 2);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}

/* El punto se dibuja (no es un glifo de texto) */
.master-header-fase1 .mesa-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lnr-oro);
  font-size: 0;
  line-height: 0;
  flex: 0 0 auto;
}

.master-header-fase1 .header-btn {
  width: var(--lnr-ctl);
  padding: 0;
  border-radius: 50%;
}

.master-header-fase1 .header-btn svg {
  width: 16px;
  height: 16px;
}

@media (hover: hover) and (pointer: fine) {
  .master-header-fase1 .mesa-pill:hover,
  .master-header-fase1 .header-btn:hover {
    background: rgba(52, 4, 8, 0.5);
    border-color: var(--lnr-oro);
    transform: none;
  }
  .master-header-fase1 .lang-flag-btn:hover:not(.active) {
    box-shadow: 0 0 0 1px rgba(240, 201, 95, 0.9);
  }
}

.master-header-fase1 .mesa-pill:active,
.master-header-fase1 .header-btn:active {
  transform: scale(0.96);
  transition-duration: 100ms;
}

.master-header-fase1 .lang-flag-btn:focus-visible,
.master-header-fase1 .mesa-pill:focus-visible,
.master-header-fase1 .header-btn:focus-visible {
  outline: 2px solid var(--lnr-blanco);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .master-header-fase1 .lang-flag-btn,
  .master-header-fase1 .mesa-pill,
  .master-header-fase1 .header-btn {
    transition-property: background-color, border-color, box-shadow;
  }
  .master-header-fase1 .lang-flag-btn:active,
  .master-header-fase1 .mesa-pill:active,
  .master-header-fase1 .header-btn:active {
    transform: none;
  }
}

/* Pantallas muy estrechas (≤ 340px): el bloque derecho se compacta */
@media (max-width: 340px) {
  .mobile-header.master-header-fase1 {
    --lnr-flag-w: 29px;
    --lnr-ctl: 28px;
    --lnr-gap: 6px;
    column-gap: 12px;
    padding-inline: 12px;
  }
  .master-header-fase1 .mesa-pill {
    padding: 0 9px 0 8px;
    font-size: 11px;
  }
  .master-header-fase1 .header-btn svg {
    width: 15px;
    height: 15px;
  }
}


/* CNI 27-10-2026 | encaje de la cabecera roja en móviles: recuperar el viewport completo.
   Misma corrección que la fuente original de Claude (Fase 1, 8110). */
@media (max-width: 600px) {
  .app-container {
    height: 100vh;
    height: 100dvh;
    align-items: flex-start;
    padding: 0;
  }
  .phone-mockup {
    height: 100vh;
    height: 100dvh;
  }
}
