/* Fonts */
:root {
  --default-font: "Roboto", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font: "Libre Baskerville", sans-serif;
  --nav-font: "Poppins", sans-serif;

  --header-height: 72px;

  /* Global Colors */
  --background-color: rgba(16, 23, 25, 0);
  --default-color: #f1f3f5;
  --heading-color: #f4f7fa;
  --accent-color: #ffc918;
  --accent-contrast: #000000;
  --surface-color: #252a2b;
  --contrast-color: #ffffff;
  --add-btn-color: #000000;

  /* Nav Menu Colors */

  --nav-color: #f1f3f5;
  --nav-hover-color: #ceaf7f;
  --nav-mobile-background-color: #243438;
  --nav-dropdown-background-color: #243438;
  --nav-dropdown-color: #f1f3f5;
  --nav-dropdown-hover-color: #ceaf7f;
}

/* Color Presets */
.light-background {
  --background-color: #243438;
  --surface-color: #385157;
}

.dark-background {
  --background-color: #060606;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #252525;
  --contrast-color: #ffffff;
}

/* --- CONFIGURACIÓN BASE PARA EVITAR SALTOS DE SCROLL --- */
html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  position: relative;
  width: 100%;
  overflow-x: hidden;
}

.btn-reset {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  cursor: pointer;
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 2px;
}

body::before {
  background:
    linear-gradient(
      color-mix(in srgb, #000000, transparent 30%),
      color-mix(in srgb, #000000, transparent 30%)
    ),
    url("../images/bg/abstract-bg-4.webp") no-repeat center center/cover;
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
header {
  height: var(--header-height);
  transition: height 0.3s ease;
}

.header .container-fluid {
  padding-left: 20px;
  padding-right: 20px;
}

.header .logo {
  line-height: 1;
  flex-shrink: 0;
}

.header .logo img {
  max-height: 80px;
  width: auto;
}

/* Order Section */
.order-section {
  flex-shrink: 0;
}

.order-counter {
  position: relative;
  color: var(--accent-color);
  cursor: pointer;
  transition: transform 0.2s;
  padding: 8px;
  cursor: pointer;
}

.order-counter:hover {
  transform: scale(1.1);
}

.order-counter i {
  font-size: 24px;
}

.order-counter .badge {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 0.7rem;
  min-width: 18px;
  height: 18px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}

/* Estilos del Toggle Buscador */
.search-toggle {
  color: var(--accent-color);
  font-size: 1.3rem;
  padding: 8px;
  transition: color 0.3s;
}
.search-toggle:hover,
.search-toggle.active {
  color: color-mix(in srgb, var(--accent-color), white 20%);
}

.search-bar-container {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(37, 42, 43, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.search-bar-container input {
  font-size: 1rem;
  box-shadow: none;
}
.search-bar-container input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
.search-bar-container input:focus {
  background: transparent;
  color: #fff;
}

.header .btn-getstarted {
  color: var(--accent-contrast);
  background: var(--accent-color);
  font-size: 13px;
  padding: 8px 18px;
  border-radius: 50px;
  transition: 0.3s;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}

.header .btn-getstarted:hover {
  color: var(--contrast-color);
  background: color-mix(in srgb, var(--accent-color), transparent 15%);
}

/* --- MODIFICACIÓN DE HEADER MOBILE (Súper Compacto) --- */
@media (max-width: 576px) {
  :root {
    --header-height: 60px; /* CAMBIO: Reducido de 70px a 60px */
  }

  .header .header-container {
    flex-direction: row;
    justify-content: space-between;
    padding-top: 0;
    padding-bottom: 0;
    gap: 0;
  }

  .header .logo img {
    max-height: 40px;
  }

  .search-bar-container {
    top: 100%;
  }
}

/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer {
  color: var(--default-color);
  background-color: var(--background-color);
  font-size: 14px;
  padding-bottom: 50px;
  position: relative;
}

.footer .footer-top {
  padding-top: 50px;
  border-top: 1px solid
    color-mix(in srgb, var(--default-color), transparent 90%);
}

.footer .footer-about .logo {
  line-height: 1;
  margin-bottom: 25px;
}

.footer .footer-about .logo img {
  max-height: 40px;
  margin-right: 6px;
}

.footer .footer-about .logo span {
  color: var(--heading-color);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 1px;
  font-family: var(--heading-font);
}

.footer .footer-about p {
  font-size: 14px;
  font-family: var(--heading-font);
}

.footer .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 50%);
  font-size: 16px;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  margin-right: 10px;
  transition: 0.3s;
}

.footer .social-links a:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.footer .copyright {
  padding-top: 25px;
  padding-bottom: 25px;
  background-color: color-mix(in srgb, var(--default-color), transparent 95%);
}

.footer .credits {
  margin-top: 6px;
  font-size: 13px;
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: -15px;
  z-index: 99999;
  background-color: var(--accent-color);
  width: 44px;
  height: 44px;
  border-radius: 50px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: var(--contrast-color);
  line-height: 0;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: var(--contrast-color);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
  bottom: 15px;
}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 60px 0;
  position: relative;
  scroll-margin-top: 100px;
}

.section-title {
  text-align: center;
  padding-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  position: relative;
}

.section-title h2:before,
.section-title h2:after {
  content: "";
  width: 50px;
  height: 2px;
  background: var(--accent-color);
  display: inline-block;
}

.section-title h2:before {
  margin: 0 15px 10px 0;
}
.section-title h2:after {
  margin: 0 0 10px 15px;
}

/*--------------------------------------------------------------
# Menu Section
--------------------------------------------------------------*/

/* Estilos de los Filtros */
.menu-categorias {
  position: sticky;
  top: var(--header-height);
  z-index: 997;
  width: 100%;
  padding: 6px 0; /* CAMBIO: Reducido de 12px a 6px */
  background: transparent;
  transition:
    background 0.25s ease,
    box-shadow 0.25s ease;

  display: flex;
  justify-content: center;
}

.category-scroll {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 12px;
  padding: 5px 20px;
  margin: 0;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.category-scroll::-webkit-scrollbar {
  display: none;
}

.menu-categorias button {
  background-color: var(--surface-color);
  color: var(--default-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
  white-space: nowrap;
}

.menu-categorias button:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 85%);
  color: var(--accent-color);
  transform: translateY(-2px);
}

.menu-categorias button.filter-active {
  background-color: var(--accent-color);
  color: var(--accent-contrast);
  border-color: var(--accent-color);
  box-shadow: 0 4px 12px
    color-mix(in srgb, var(--accent-color), transparent 60%);
  transform: translateY(-1px);
}

.menu-categorias button:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

.scrolled .header,
.menu-categorias {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Menu Items */
.menu .menu-item {
  padding: 20px;
  border-radius: 8px;
  background-color: var(--surface-color);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.menu .menu-item:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.menu .menu-item .menu-img {
  width: 100px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s;
}

.img-skeleton {
  background-color: rgba(255, 255, 255, 0.05);
}

.menu .menu-item .menu-img:hover {
  transform: scale(1.05);
}

.menu .menu-item .menu-content {
  flex: 1;
}

.menu .menu-item .menu-content h3 {
  font-family: var(--default-font);
}

.menu-desc {
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

@media (max-width: 992px) {
  .menu .menu-item .menu-img {
    width: 80px;
  }
}

@media (max-width: 576px) {
  .menu .menu-item {
    flex-direction: column;
    text-align: center;
  }
  .menu .menu-item .menu-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    margin-bottom: 15px;
  }
  .order-controls {
    align-items: center;
    margin-top: 10px;
  }
  .menu-content .d-flex.justify-content-between {
    flex-direction: column;
    align-items: center !important;
  }
}

/*--------------------------------------------------------------
# Location Section
--------------------------------------------------------------*/
.location .row {
  align-items: stretch;
}

.location .map-container {
  height: 100%;
  min-height: 450px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.location .map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.location .info-container {
  height: 100%;
  padding: 2rem;
  background-color: var(--surface-color);
  border-radius: 8px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.location .info-container .section-header {
  margin-bottom: 2rem;
  text-align: center;
}

.location .info-card {
  display: flex;
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.location .info-card:last-of-type {
  border-bottom: none;
}

.location .info-card .info-icon {
  flex-shrink: 0;
  margin-right: 1rem;
  width: 48px;
  height: 48px;
  background-color: color-mix(in srgb, var(--accent-color), transparent 85%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.location .info-card .info-icon i {
  color: var(--accent-color);
  font-size: 1.5rem;
}

.location .info-card .info-content h4 {
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 1.1rem;
}

.location .info-card .info-content a {
  color: var(--default-color);
  font-weight: 500;
  transition: 0.3s;
}

.location .info-card .info-content a:hover {
  color: var(--accent-color);
}

.location .cta-wrapper a.btn-book {
  background-color: var(--accent-color);
  color: var(--accent-contrast);
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
}

.location .cta-wrapper a.btn-book:hover {
  background-color: color-mix(in srgb, var(--accent-color), #000 10%);
  transform: translateY(-2px);
}

/*--------------------------------------------------------------
# Controles de Orden y Componentes UI
--------------------------------------------------------------*/
.order-controls {
  margin-left: 15px;
}

.quantity-wrapper {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 80%);
  border-radius: 50px;
}

.order-controls .btn-outline-accent {
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  font-weight: bold;
  width: 35px;
  height: 35px;
  padding: 0;
}

.order-controls .btn-outline-accent:hover {
  background-color: var(--accent-color);
  color: #fff;
}

.cantidad-badge {
  min-width: 30px;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  color: var(--default-color);
}

.btn-agregar {
  background-color: var(--accent-color);
  color: var(--add-btn-color);
  font-weight: bold;
  padding: 8px 20px;
  border-radius: 8px;
  border: none;
  white-space: nowrap;
}

.horarios-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.horarios-list li {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
  font-size: 15px;
}
.horarios-list strong {
  font-weight: 700;
}
.horas-texto {
  opacity: 0.85;
}

.site-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--heading-color);
  line-height: 1;
  white-space: nowrap;
}

/* Animaciones */
.animar {
  transform: scale(1.3);
  transition: transform 0.2s ease;
}

.order-counter .badge.animar {
  transform: scale(1.3);
  background-color: #dc3545;
}

/* -----------------------------
   MODAL DE ORDEN
   ----------------------------- */
.order-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 20px 0;
  z-index: 9999;
}

.overflow-y-auto {
  overflow-y: auto;
}

.order-modal.hidden {
  display: none;
}

.order-card {
  background: var(--surface-color);
  width: 90%;
  max-width: 420px;
  border-radius: 16px;
  padding: 1.5rem;
  color: var(--default-color);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  margin: 20px auto;
  flex-shrink: 0;
}

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

.close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--default-color);
  cursor: pointer;
}

.order-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.options-body::-webkit-scrollbar {
  width: 6px;
}
.options-body::-webkit-scrollbar-track {
  background: transparent;
}
.options-body::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--default-color), transparent 70%);
  border-radius: 10px;
}

.order-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  padding: 0.25rem 0;
}

.bg-light-opacity {
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

.order-footer {
  margin-top: 1.25rem;
  border-top: 1px solid
    color-mix(in srgb, var(--default-color), transparent 80%);
  padding-top: 1rem;
}

.btn-confirmar {
  width: 100%;
  background: var(--accent-color);
  color: var(--accent-contrast);
  border: none;
  padding: 0.85rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-confirmar:hover {
  background: color-mix(in srgb, var(--accent-color) 85%, #000);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.btn-confirmar:disabled {
  background: gray;
  cursor: not-allowed;
  box-shadow: none;
}

.order-actions {
  display: flex;
  gap: 0.6rem;
}
.order-actions button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-minus {
  background: color-mix(in srgb, var(--accent-color), transparent 85%);
  color: var(--accent-color);
}
.btn-remove {
  background: color-mix(in srgb, red, transparent 85%);
  color: red;
}

/* BOTÓN PLUS (COMPARTIDO DESKTOP/MOBILE) */
.btn-plus {
  background: color-mix(in srgb, var(--accent-color), transparent 85%);
  color: var(--accent-color);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-plus:hover {
  background: var(--accent-color);
  color: var(--accent-contrast);
}

.order-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.order-options button {
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 70%);
  color: var(--default-color);
  padding: 0.4rem; /* SLIM PADDING */
  border-radius: 10px;
  font-size: 0.85rem;
}
.order-options button.active {
  background: var(--accent-color);
  color: var(--accent-contrast);
  border-color: var(--accent-color);
}

.order-customer input,
.order-type input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: var(--default-color);
  font-size: 1rem;
  outline: none;
  caret-color: var(--default-color);
  -webkit-user-select: text;
  user-select: text;
  transform: translateZ(0);
}
.order-customer input:focus,
.order-type input:focus {
  border-color: var(--accent-color);
}

.order-customer input::placeholder,
.order-type input::placeholder {
  color: rgba(255, 255, 255, 0.5);
  opacity: 1;
}

body.no-scroll {
  overflow: hidden;
}
body.modal-open {
  overflow: hidden;
}
body.modal-open #scroll-top {
  display: none !important;
}

/* Bloquear scroll de fondo */
body.no-scroll,
body.modal-open {
  overflow: hidden !important;
  padding-right: 0 !important;
}

/* Personalización de la barra de scroll (Mimetizada) */
.custom-scroll {
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}
.custom-scroll::-webkit-scrollbar {
  width: 6px; /* Webkit */
}
.custom-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.custom-scroll::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}
.custom-scroll::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

/* --------------------------------------------------------------
# Toast Notification (Actualizado: Top-Center)
--------------------------------------------------------------*/
.toast-agregado {
  position: fixed;
  top: 30px; /* Top-Center */
  bottom: auto;
  left: 0;
  right: 0;
  margin: 0 auto;

  width: fit-content;
  max-width: calc(100vw - 32px);
  background: var(--accent-color);
  color: var(--accent-contrast);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 2100; /* Asegura que esté sobre el header */
  text-align: center;
  pointer-events: none;
}

/* --------------------------------------------------------------
# Animations
--------------------------------------------------------------*/
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 15px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
@keyframes slideOutDown {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
  to {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
  }
}

/* NUEVAS ANIMACIONES PARA EL TOAST SUPERIOR */
@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translate3d(0, -20px, 0); /* Baja desde arriba */
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes slideOutUp {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
  to {
    opacity: 0;
    transform: translate3d(0, -20px, 0); /* Sube hacia arriba al desaparecer */
  }
}

.anim-fade-in-up {
  animation: fadeInUp 0.35s ease-out forwards;
}
.anim-fade-in {
  animation: fadeIn 0.3s ease-out forwards;
}
.anim-fade-out {
  animation: fadeOut 0.2s ease-in forwards;
}
/* Modificado para usar slideInDown/Up */
.anim-toast-in {
  animation: slideInDown 0.3s ease-out forwards;
}
.anim-toast-out {
  animation: slideOutUp 0.2s ease-in forwards;
}

/* -------------------------------------------------------------
   DESKTOP OPTIMIZATIONS (CART SPLIT VIEW)
   ------------------------------------------------------------- */
@media (min-width: 992px) {
  /* 1. Modal Más Ancho */
  .order-card {
    max-width: 950px;
    height: auto;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
  }

  /* Wrapper para el grid */
  .content-wrapper {
    flex: 1;
    overflow: hidden;
    min-height: 0;
  }

  /* 2. Columna Izquierda (Lista) Scrollable */
  .order-list-column {
    overflow-y: auto;
    padding-right: 15px;
    max-height: 65vh;

    /* Scrollbar estilizado */
    scrollbar-width: thin;
    scrollbar-color: var(--surface-color) rgba(255, 255, 255, 0.05);
  }

  /* 3. Columna Derecha (Resumen) Sticky visual */
  .order-summary-column {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 20px;
  }

  /* Tarjeta con altura máxima */
  .summary-card-desktop-fix {
    max-height: 80vh; /* Altura máxima segura */
    display: flex;
    flex-direction: column;
  }

  /* El área que hará scroll contiene AHORA TAMBIÉN EL BOTÓN */
  .summary-scroll-area {
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    padding-right: 5px;
    margin-bottom: 5px; /* Un poco de aire al final */
  }

  .bg-surface-desktop {
    background-color: rgba(0, 0, 0, 0.2);
    height: 100%;
  }

  /* Desktop Item Layout */
  .order-item-desktop {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 0.5rem;
    transition: background-color 0.2s;
  }

  .order-item-desktop:hover {
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
  }
}

/* -------------------------------------------------------------
   MOBILE ADJUSTMENTS (95% Width)
   ------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .order-card {
    width: 95% !important;
    max-width: 95% !important;
    margin: 10px auto;
  }
}

/* -------------------------------------------------------------
   STORE STATUS & TIPS UI
   ------------------------------------------------------------- */
.store-status-banner {
  background-color: #dc3545;
  color: white;
  text-align: center;
  padding: 8px 15px;
  font-size: 0.9rem;
  font-weight: 500;
  position: sticky;
  top: 0;
  z-index: 2000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.btn-closed {
  background-color: #6c757d !important;
  border-color: #6c757d !important;
  cursor: pointer;
}
.btn-closed:hover {
  background-color: #5a6268 !important;
}

/* TIP CHIPS STYLES (SLIM) */
.tip-chips-container {
  overflow-x: auto;
  white-space: nowrap;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.tip-chips-container::-webkit-scrollbar {
  display: none;
}

.btn-chip {
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 70%);
  background: transparent;
  color: var(--default-color);
  border-radius: 50px;
  padding: 0.25rem 0.6rem; /* SLIM PADDING */
  font-size: 0.85rem;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.btn-chip.active {
  background: var(--accent-color);
  color: var(--accent-contrast);
  border-color: var(--accent-color);
  font-weight: 600;
}

.input-chip-custom {
  width: 100px;
  padding: 0.25rem 0.5rem;
  font-size: 16px; /* FIXED: Tamaño seguro para evitar zoom en iOS */
  border-radius: 8px;
  border: 1px solid var(--accent-color);
  background: rgba(0, 0, 0, 0.3);
  color: white;
  outline: none;
}
.input-chip-custom:focus {
  box-shadow: 0 0 0 2px rgba(255, 201, 24, 0.3);
}

/* -------------------------------------------------------------
   MOBILE BOTTOM BAR (STICKY)
   ------------------------------------------------------------- */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--accent-color);
  color: var(--accent-contrast);
  padding: 15px 0;
  z-index: 9990; /* Por debajo del modal pero encima del contenido */
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  /* Fix para que no tape el scroll-top */
  padding-bottom: max(15px, env(safe-area-inset-bottom));
}

.mobile-bottom-nav:active {
  background-color: color-mix(in srgb, var(--accent-color), black 10%);
}

/* Animación de entrada de la barra */
@keyframes slideInUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}
.anim-fade-in-up {
  animation: slideInUp 0.3s ease-out forwards;
}

/* --------------------------------------------------------------
# Componente Favoritos (Nuevo)
--------------------------------------------------------------*/

/* 1. Botón en la Tarjeta del Producto */
.menu-item {
  position: relative; /* Necesario para posicionar el corazón */
}

.btn-fav-card {
  position: absolute;
  top: 10px;
  /* IZQUIERDA: Posicionado sobre la foto para separar de la acción de compra */
  left: 10px;
  right: auto;

  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  color: #ccc; /* Color por defecto (inactivo) */
}

/* Estado Activo (Like) */
.btn-fav-card.active {
  color: #dc3545; /* Rojo corazón */
  transform: scale(1.1);
  background-color: #fff;
}

.btn-fav-card:active {
  transform: scale(0.9);
}

.btn-fav-card i {
  font-size: 16px;
  line-height: 1;
  margin-top: 1px; /* Ajuste óptico */
}

/* 2. Botón en el Header (Navegación) */
.fav-toggle {
  color: var(--accent-color);
  font-size: 1.3rem;
  padding: 8px;
  transition: color 0.3s;
  position: relative;
}

.fav-toggle:hover {
  color: color-mix(in srgb, var(--accent-color), white 20%);
}

.fav-toggle.active {
  color: #dc3545; /* Rojo cuando estamos viendo la lista de favoritos */
}

/* Badge pequeño para indicar si hay favoritos guardados */
.fav-indicator {
  position: absolute;
  top: 8px;
  right: 6px;
  width: 8px;
  height: 8px;
  background-color: #dc3545;
  border-radius: 50%;
  border: 1px solid var(--background-color);
}

/* Estilos para productos Veganos */
.item-vegan {
  background-color: #232f21 !important; /* Verde bosque oscuro solicitado */
  border: 1px solid rgba(40, 167, 69, 0.2) !important; /* Borde sutil verde */
}

.icon-vegan {
  color: #28a745; /* Verde semáforo para el icono */
  font-size: 1rem;
}

/* --- ESTILOS MENÚ DEL DÍA & SELECTOR --- */
.daily-special-card {
  background: linear-gradient(
    145deg,
    var(--surface-color) 0%,
    rgba(255, 201, 24, 0.05) 100%
  );
  border: 1px solid var(--accent-color);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.daily-badge {
  background-color: var(--accent-color);
  color: var(--accent-contrast);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 0 0 12px 0;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.daily-img-container {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
}

.daily-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* Selector de Días Flotante */
.day-selector-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  padding: 2rem 1rem 0.8rem 1rem;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.day-pill {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.day-pill:hover {
  background: rgba(255, 255, 255, 0.3);
}

.day-pill.active {
  background: var(--accent-color);
  color: var(--accent-contrast);
  border-color: var(--accent-color);
  transform: scale(1.15);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Indicador del día actual (punto abajo) */
.day-pill.is-today::after {
  content: "";
  position: absolute;
  bottom: -6px;
  width: 4px;
  height: 4px;
  background: var(--accent-color);
  border-radius: 50%;
}

.daily-content {
  position: relative;
}

/* Estado Vacío / Descanso */
.daily-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
}

/* Desktop Layout */
@media (min-width: 992px) {
  .daily-special-card {
    display: flex;
    height: 320px;
  }
  .daily-img-container {
    width: 50%;
    height: 100%;
  }
  .daily-content {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* --- VISTA DE PEDIDOS / COCINA --- */
.order-card-live {
  border-left: 5px solid var(--accent);
  background-color: rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}
.order-card-live.new-order {
  animation: flashOrder 2s infinite;
  border-left-color: #ff4757;
}
@keyframes flashOrder {
  0% {
    box-shadow: 0 0 5px rgba(255, 71, 87, 0.1);
  }
  50% {
    box-shadow: 0 0 15px rgba(255, 71, 87, 0.4);
  }
  100% {
    box-shadow: 0 0 5px rgba(255, 71, 87, 0.1);
  }
}

/* --- ESTILOS DE IMPRESIÓN TÉRMICA (58mm/80mm) --- */
@media print {
  /* Ocultar TODO lo que no sea el ticket */
  body * {
    visibility: hidden;
  }
  .print-area,
  .print-area * {
    visibility: visible;
  }
  .print-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    color: #000 !important; /* Térmicas solo imprimen negro */
    background: #fff !important;
    font-family: "Courier New", Courier, monospace; /* Fuente monoespaciada para alinear */
  }

  /* Forzar ocultar elementos de UI incluso si están dentro del área */
  .no-print {
    display: none !important;
  }

  /* Reset de estilos oscuros */
  body {
    background-color: #fff !important;
    color: #000 !important;
  }

  /* Ajustes de Ticket */
  .ticket-header {
    text-align: center;
    margin-bottom: 15px;
    border-bottom: 1px dashed #000;
    padding-bottom: 10px;
  }
  .ticket-body {
    margin-bottom: 15px;
  }
  .ticket-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
  }
  .ticket-footer {
    border-top: 1px dashed #000;
    padding-top: 10px;
    text-align: center;
    font-size: 12px;
  }
  h1,
  h2,
  h3 {
    color: #000 !important;
  }
}
