/* ====================================================================
   VORAN MARKETING · SISTEMA DE DISEÑO RESPONSIVO (MOBILE-FIRST)
   Menú Digital Autoadministrable + Cotizador de Taquizas y Eventos
   ==================================================================== */

:root {
  --color-primary: #b82e16;        /* Rojo Salsa Asada Tradicional */
  --color-primary-dark: #8e200e;
  --color-primary-light: #fef1ed;
  --color-accent: #e67e22;         /* Naranja Trompo al Pastor */
  --color-accent-light: #fef5ea;
  --color-gold: #f39c12;
  --color-dark: #1f1917;           /* Carbón Suave para lectura */
  --color-muted: #6e6460;
  --color-border: #ede4df;
  --color-bg: #faf6f3;             /* Fondo cálido crema */
  --color-card: #ffffff;
  --color-success: #27ae60;
  --color-danger: #c0392b;

  --shadow-sm: 0 2px 8px rgba(31, 25, 23, 0.05);
  --shadow-md: 0 4px 16px rgba(31, 25, 23, 0.08);
  --shadow-lg: 0 10px 30px rgba(31, 25, 23, 0.12);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 50px;

  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-dark);
  line-height: 1.5;
  padding-bottom: 7rem; /* Espacio para barras flotantes inferiores */
  overflow-x: hidden;
  max-width: 100vw;
}

/* Scroll suave universal y márgenes para navegación */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100vw;
}
section[id], div[id] {
  scroll-margin-top: 80px;
}

/* ====================================================================
   BANNER SUPERIOR DE CONCEPTO Y MODO DEMO
   ==================================================================== */
.demo-topbar {
  background: linear-gradient(135deg, #1f1917 0%, #2f2522 100%);
  color: #ffffff;
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 480px) {
  .demo-topbar {
    padding: 0.5rem 0.75rem;
  }
  .demo-text {
    display: none; /* Oculta el texto largo en celulares para no amontonar */
  }
  .btn-demo-switch {
    padding: 0.32rem 0.65rem;
    font-size: 0.72rem;
  }
}

.demo-topbar-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.demo-tag {
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.demo-text {
  font-weight: 500;
  color: #e5dfdc;
}

.btn-demo-switch {
  background: #ffffff;
  color: var(--color-dark);
  border: none;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-demo-switch:hover {
  background: var(--color-accent-light);
  color: var(--color-primary);
  transform: translateY(-1px);
}

/* ====================================================================
   HERO / ENCABEZADO DEL RESTAURANTE
   ==================================================================== */
.restaurant-hero {
  background: linear-gradient(rgba(31, 25, 23, 0.75), rgba(31, 25, 23, 0.88)),
              url('https://images.unsplash.com/photo-1555396273-367ea4eb4db5?auto=format&fit=crop&w=1400&q=80') center/cover no-repeat;
  color: #ffffff;
  padding: 2.2rem 1.2rem 1.8rem;
  text-align: center;
}

.hero-badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(39, 174, 96, 0.25);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.4);
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}
.status-dot {
  width: 7px;
  height: 7px;
  background-color: #2ecc71;
  border-radius: 50%;
  box-shadow: 0 0 8px #2ecc71;
}

.restaurant-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 0.3rem;
  line-height: 1.2;
}

.restaurant-slogan {
  font-size: 0.9rem;
  color: #e2d9d4;
  margin-bottom: 0.8rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.restaurant-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  font-size: 0.8rem;
  color: #cec1ba;
}
.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* Banner de Promoción Activa */
.promo-strip {
  background: linear-gradient(90deg, #b82e16 0%, #e67e22 100%);
  color: #ffffff;
  padding: 0.6rem 1rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.3px;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.1);
}

/* ====================================================================
   PESTAÑAS PRINCIPALES: MENÚ MESA VS COTIZADOR EVENTOS
   ==================================================================== */
.main-nav-tabs {
  max-width: 600px;
  margin: 1rem auto;
  padding: 0 1rem;
}

.segmented-control {
  background: #ede4df;
  border-radius: var(--radius-pill);
  padding: 4px;
  display: flex;
  gap: 4px;
}

.segment-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.7rem 0.5rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-muted);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.segment-btn.active {
  background: #ffffff;
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

/* ====================================================================
   CONTENIDO: VISTA DE MENÚ EN MESA
   ==================================================================== */
.menu-view-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Buscador de platillos */
.search-wrapper {
  margin-bottom: 1rem;
}
.search-input {
  width: 100%;
  padding: 0.75rem 1.1rem;
  font-size: 0.9rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: #ffffff;
  color: var(--color-dark);
  outline: none;
  transition: border-color 0.2s;
}
.search-input:focus {
  border-color: var(--color-primary);
}

/* Barra deslizante de categorías (Pills) */
.category-pills-bar {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.6rem;
  margin-bottom: 1.5rem;
  scrollbar-width: none; /* Firefox */
}
.category-pills-bar::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.cat-pill {
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid var(--color-border);
  padding: 0.45rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-muted);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.cat-pill:hover,
.cat-pill.active {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(184, 46, 22, 0.25);
}

/* Grupos y Lista de Platillos */
.category-group-header {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 1.8rem 0 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-dark);
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 0.4rem;
}

.dishes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}
@media (min-width: 600px) {
  .dishes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tarjeta individual de platillo */
.dish-card {
  background: var(--color-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.dish-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Estado Agotado */
.dish-card.dish-out-of-stock {
  opacity: 0.65;
  filter: grayscale(0.2);
}
.dish-card.dish-out-of-stock .btn-add-cart {
  background: #ddd;
  color: #777;
  cursor: not-allowed;
  pointer-events: none;
}

.dish-image-box {
  width: 100%;
  height: 160px;
  position: relative;
  overflow: hidden;
  background-color: #f0e9e4;
}
.dish-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.dish-card:hover .dish-image {
  transform: scale(1.04);
}

.dish-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--color-primary);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  text-transform: uppercase;
}
.dish-badge.badge-out {
  background: var(--color-danger);
}

.dish-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.dish-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.dish-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-dark);
  line-height: 1.25;
}

.dish-price {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--color-primary);
  white-space: nowrap;
}

.dish-description {
  font-size: 0.82rem;
  color: var(--color-muted);
  margin-bottom: 0.9rem;
  flex-grow: 1;
  line-height: 1.4;
}

.dish-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--color-border);
}

.btn-add-cart {
  background: var(--color-primary);
  color: #ffffff;
  border: none;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.btn-add-cart:hover {
  background: var(--color-primary-dark);
}

/* ====================================================================
   STEPPER DE CANTIDAD EN TARJETA DE PLATILLO
   ==================================================================== */
.card-stepper-wrap {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: #f8f4f1;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
}
.btn-stepper {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  color: var(--color-dark);
  font-weight: 900;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: all 0.15s;
}
.btn-stepper:hover {
  background: var(--color-primary);
  color: #ffffff;
}
.stepper-val {
  min-width: 22px;
  text-align: center;
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--color-dark);
}

/* ====================================================================
   SELECTOR DE SUCURSAL EN HERO
   ==================================================================== */
.branch-pill-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 0.6rem;
  transition: all 0.2s ease;
}
.branch-pill-trigger:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

/* Modal de Selección de Sucursal */
.branch-card-option {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.9rem;
  margin-bottom: 0.7rem;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #ffffff;
}
.branch-card-option:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}
.branch-card-option.is-active {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
  box-shadow: 0 2px 8px rgba(184, 46, 22, 0.15);
}
.branch-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}
.branch-card-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-dark);
}
.branch-card-addr {
  font-size: 0.78rem;
  color: var(--color-muted);
  margin-bottom: 0.4rem;
}
.branch-card-meta {
  display: flex;
  gap: 0.6rem;
  font-size: 0.75rem;
  color: var(--color-primary);
  font-weight: 700;
}

/* ====================================================================
   CARRITO DE COMPRAS / COMANDA MODAL COMPLETO
   ==================================================================== */
.cart-drawer-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.65);
  display: flex;
  align-items: flex-end; /* Drawer bottom en celular */
  justify-content: center;
  z-index: 99999;
  backdrop-filter: blur(3px);
}
@media (min-width: 600px) {
  .cart-drawer-modal {
    align-items: center;
  }
}
.cart-drawer-card {
  background: #ffffff;
  width: 100%;
  max-width: 550px;
  max-height: 90vh;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
@media (min-width: 600px) {
  .cart-drawer-card {
    border-radius: var(--radius-lg);
  }
}
.cart-drawer-header {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
}
.cart-drawer-body {
  overflow-y: auto;
  padding: 1rem 1.2rem;
  flex-grow: 1;
}
.cart-drawer-footer {
  padding: 1rem 1.2rem;
  border-top: 1px solid var(--color-border);
  background: #faf6f4;
}

.service-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.service-pill-btn {
  background: #ffffff;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.55rem 0.3rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--color-muted);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}
.service-pill-btn.is-active {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.payment-pills-row {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
}
.payment-pill {
  flex: 1;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 0.45rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  color: var(--color-muted);
  transition: all 0.2s;
}
.payment-pill.is-active {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

.cart-row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--color-border);
  gap: 0.5rem;
}
.cart-row-info {
  flex-grow: 1;
}
.cart-row-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--color-dark);
}
.cart-row-price {
  font-size: 0.78rem;
  color: var(--color-muted);
}
.cart-row-subtotal {
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--color-primary);
  white-space: nowrap;
}

/* ====================================================================
   SCROLL INFINITO Y BOTÓN CARGAR MÁS
   ==================================================================== */
.load-more-container {
  text-align: center;
  margin: 2rem auto 1rem;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.btn-load-more {
  background: #ffffff;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  font-size: 0.88rem;
  font-weight: 800;
  padding: 0.65rem 1.6rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}
.btn-load-more:hover {
  background: var(--color-primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(184, 46, 22, 0.25);
}

.items-counter-hint {
  font-size: 0.78rem;
  color: var(--color-muted);
  font-weight: 600;
}

.items-loaded-all {
  font-size: 0.82rem;
  color: var(--color-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  background: #ede4df;
  border-radius: var(--radius-pill);
  font-weight: 700;
}

.scroll-sentinel {
  width: 100%;
  height: 20px;
  pointer-events: none;
}

/* ====================================================================
   BARRA FLOTANTE DEL CARRITO DE MESA (PEDIDO RÁPIDO)
   ==================================================================== */
.cart-floating-bar {
  position: fixed;
  bottom: calc(15px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 500px;
  background: var(--color-dark);
  color: #ffffff;
  border-radius: var(--radius-pill);
  padding: 0.65rem 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 8px 25px rgba(0,0,0,0.35);
  z-index: 9999;
  border: 1px solid rgba(255,255,255,0.15);
  animation: slideUp 0.3s ease-out;
}
@keyframes slideUp {
  from { transform: translate(-50%, 40px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

.cart-bar-info {
  display: flex;
  flex-direction: column;
}
.cart-bar-count {
  font-size: 0.75rem;
  color: #e5dfdc;
}
.cart-bar-total {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--color-accent);
}

.btn-cart-checkout {
  background: #25d366; /* Verde WhatsApp */
  color: #ffffff;
  border: none;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: transform 0.2s, background 0.2s;
}
.btn-cart-checkout:hover {
  background: #1eb855;
  transform: scale(1.02);
}

/* ====================================================================
   COTIZADOR DE TAQUIZAS Y EVENTOS (MÓDULO INTERACTIVO)
   ==================================================================== */
.quoter-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1rem;
}

.quoter-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.quoter-header {
  text-align: center;
  margin-bottom: 1.5rem;
}
.quoter-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-dark);
}
.quoter-subtitle {
  font-size: 0.88rem;
  color: var(--color-muted);
}

/* Selector de número de invitados */
.step-box {
  margin-bottom: 1.8rem;
}
.step-label {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.guests-display {
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-weight: 800;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
}

.range-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #e8ded8;
  outline: none;
  accent-color: var(--color-primary);
}

.guests-presets {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.8rem;
  overflow-x: auto;
}
.preset-btn {
  background: #f8f4f1;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-muted);
  cursor: pointer;
  white-space: nowrap;
}
.preset-btn.active, .preset-btn:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* Tarjetas de Paquetes de Eventos */
.packages-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}
@media (min-width: 600px) {
  .packages-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.package-card {
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  position: relative;
}
.package-card.selected {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
  box-shadow: 0 4px 12px rgba(184, 46, 22, 0.15);
}

.package-badge {
  position: absolute;
  top: -10px;
  right: 12px;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-pill);
}

.package-icon {
  font-size: 1.8rem;
  margin-bottom: 0.3rem;
}
.package-name {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  color: var(--color-dark);
}
.package-price-tag {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}
.package-price-tag span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-muted);
}
.package-desc {
  font-size: 0.78rem;
  color: var(--color-muted);
  line-height: 1.35;
}

/* Lista de Extras opcionales */
.extras-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.extra-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #faf6f4;
  cursor: pointer;
  transition: background 0.2s;
}
.extra-row:hover {
  background: #f4ece7;
}

.extra-info {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.extra-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
  cursor: pointer;
}
.extra-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-dark);
}
.extra-desc {
  font-size: 0.75rem;
  color: var(--color-muted);
}
.extra-cost {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--color-primary);
  white-space: nowrap;
}

/* Desglose y Resumen de Cotización */
.quote-summary-box {
  background: linear-gradient(135deg, #1f1917 0%, #2b2220 100%);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.4rem;
  margin-top: 1.5rem;
}

.quote-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: #d8cec8;
  margin-bottom: 0.5rem;
}
.quote-line.total-line {
  font-size: 1.3rem;
  font-weight: 900;
  color: #ffffff;
  border-top: 1px dashed rgba(255,255,255,0.25);
  padding-top: 0.8rem;
  margin-top: 0.8rem;
}
.quote-total-val {
  color: var(--color-gold);
}

.btn-quote-whatsapp {
  width: 100%;
  background: #25d366;
  color: #ffffff;
  border: none;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  margin-top: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}
.btn-quote-whatsapp:hover {
  background: #1eb855;
  transform: translateY(-2px);
}

/* ====================================================================
   ESTILOS ESPECÍFICOS PARA EL PANEL DE ADMINISTRACIÓN (admin.html)
   ==================================================================== */
.admin-header {
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
  padding: 0.8rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 42px; /* Debajo de demo-topbar */
  z-index: 900;
}

.admin-title-box h1 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-dark);
}
.admin-subtitle {
  font-size: 0.75rem;
  color: var(--color-muted);
}

.admin-actions-top {
  display: flex;
  gap: 0.4rem;
}

/* Pestañas del Administrador */
.admin-nav-tabs {
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  overflow-x: auto;
  padding: 0 1rem;
  gap: 0.3rem;
  scrollbar-width: none;
}
.admin-nav-tabs::-webkit-scrollbar {
  display: none;
}

.admin-tab-btn {
  background: transparent;
  border: none;
  padding: 0.75rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.admin-tab-btn.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* Tablas y Listas del Admin */
.admin-content-container {
  max-width: 900px;
  margin: 1.2rem auto;
  padding: 0 0.75rem;
  box-sizing: border-box;
  width: 100%;
}

.admin-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.btn-primary-action {
  background: var(--color-primary);
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: background 0.2s;
}
.btn-primary-action:hover {
  background: var(--color-primary-dark);
}

.admin-dish-row {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  margin-bottom: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  box-shadow: var(--shadow-sm);
  width: 100%;
  box-sizing: border-box;
}

.admin-dish-top {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
}

.admin-dish-thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background-color: #eee;
}

.admin-dish-details {
  flex-grow: 1;
  min-width: 0; /* Previene desbordamiento horizontal de texto */
}

.admin-dish-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-dark);
  line-height: 1.25;
  word-break: break-word;
}

.admin-dish-cat {
  font-size: 0.75rem;
  color: var(--color-muted);
  margin-top: 2px;
}

.admin-dish-actions {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}

.admin-dish-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #faf6f4;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  gap: 0.5rem;
  width: 100%;
  box-sizing: border-box;
}

.admin-dish-price-box {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.price-symbol {
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--color-dark);
}
.admin-dish-price-input {
  width: 68px;
  padding: 0.28rem 0.4rem;
  font-weight: 900;
  font-size: 0.92rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  text-align: right;
  color: var(--color-primary);
  background: #ffffff;
}
.currency-tag {
  font-size: 0.72rem;
  color: var(--color-muted);
  font-weight: 700;
}

.admin-dish-status-box {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

/* Switch toggle de Disponible / Agotado */
.switch-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}
.switch-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-dark);
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider-toggle {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  transition: .3s;
  border-radius: 24px;
}
.slider-toggle:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}
input:checked + .slider-toggle {
  background-color: var(--color-success);
}
input:checked + .slider-toggle:before {
  transform: translateX(20px);
}

/* Botones de acción pequeña */
.btn-icon-action {
  background: #f4ece7;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--color-dark);
  transition: background 0.2s;
}
.btn-icon-action:hover {
  background: #e6dbd4;
}
.btn-icon-action.btn-del:hover {
  background: #fce8e6;
  color: var(--color-danger);
}

/* Modales */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 99999;
  backdrop-filter: blur(3px);
}
.modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.6rem;
}
.modal-title {
  font-size: 1.15rem;
  font-weight: 800;
}
.modal-close {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--color-muted);
}

.form-group {
  margin-bottom: 1rem;
}
.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--color-dark);
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-size: 0.88rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #faf6f4;
  outline: none;
  transition: border-color 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--color-primary);
  background: #fff;
}
.form-textarea {
  resize: vertical;
  min-height: 70px;
}

/* Uploader de imágenes con preview y compresión */
.image-upload-dropzone {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  background: #faf6f4;
  cursor: pointer;
  transition: border-color 0.2s;
}
.image-upload-dropzone:hover {
  border-color: var(--color-primary);
}
.img-preview-box {
  width: 100%;
  height: 120px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  margin-top: 0.6rem;
  display: none;
}

/* Pie de página de Voran Marketing */
.voran-footer {
  text-align: center;
  padding: 2.5rem 1rem 5.5rem; /* Elevación para móviles y safe area */
  font-size: 0.78rem;
  color: var(--color-muted);
  border-top: 1px solid var(--color-border);
  margin-top: 3rem;
  background: #ffffff;
}
.voran-footer a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 700;
}

/* ====================================================================
   SEÑALÉTICA Y CÓDIGO QR PARA IMPRIMIR (TAB DE CÓDIGOS QR)
   ==================================================================== */
.qr-preview-card {
  background: #ffffff;
  border: 2px solid var(--color-dark);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  max-width: 320px;
  margin: 0 auto 1.5rem;
  box-shadow: var(--shadow-md);
}
.qr-card-header {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
}
.qr-card-sub {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-bottom: 1rem;
}
.qr-code-canvas {
  width: 200px;
  height: 200px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #ddd;
  padding: 8px;
}
.qr-card-instruction {
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 0.8rem;
  color: var(--color-primary);
}

@media print {
  body * {
    visibility: hidden;
  }
  .printable-area, .printable-area * {
    visibility: visible;
  }
  .printable-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }
}
