/* ========================================
   MENU-PUBLIC.CSS
   Estilos para elementos dinámicos del menú público
   Complementa index.css y temas.css
   ======================================== */

/* ========================================
   HEADER DEL MENÚ
   ======================================== */
.hero {
  position: relative;
  padding: var(--hero-padding, clamp(2.5rem, 5vw, 4rem) 1.5rem clamp(2rem, 4vw, 3rem));
  background-color: var(--hero-bg-color, var(--color1, #ffffff));
  background-image: var(--hero-bg-image, none), var(--hero-bg-skin, none);
  background-size: var(--hero-bg-size, cover), cover;
  background-position: var(--hero-bg-position, center), center;
  background-repeat: var(--hero-bg-repeat, no-repeat), no-repeat;
  border-radius: var(--hero-radius, 0);
  box-shadow: var(--hero-shadow, none);
  overflow: hidden;
  color: var(--colorTextInv, #ffffff);
  min-height: clamp(320px, 45vw, 520px);
}

.hero[data-has-image="true"] .hero__overlay {
  opacity: 0.45;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--hero-overlay, linear-gradient(135deg, rgba(17,17,17,0.65), rgba(17,17,17,0.15)));
  mix-blend-mode: normal;
  transition: opacity 0.4s ease;
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--hero-content-gap, 1.25rem);
  max-width: var(--hero-content-max-width, 1100px);
  margin: 0 auto;
  color: inherit;
}

.hero__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.35rem;
  margin: 0;
}

.hero__brand,
.hero__caption,
.hero__details,
.hero__social {
  color: var(--hero-text-color, inherit);
  text-shadow: var(--hero-text-shadow, 0 3px 12px rgba(0, 0, 0, 0.45));
}

.hero__caption h1,
.hero__caption .hero__slogan,
.hero__details li,
.hero__social a {
  text-shadow: var(--hero-heading-shadow, 0 4px 14px rgba(0, 0, 0, 0.5));
}

.hero__logo {
  width: var(--hero-logo-size, 160px);
  height: var(--hero-logo-size, 160px);
  border-radius: var(--hero-logo-radius, var(--radius-lg));
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__logo img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.hero__caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin-top: 0 !important;
  background: transparent !important;
}

.hero__caption h1 {
  margin: 0;
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  color: inherit;
}

.hero__slogan {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.98);
  letter-spacing: 0.015em;
  text-shadow: 0 5px 18px rgba(0, 0, 0, 0);
}

.hero__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
}


.hero__details {
  list-style: none;
  font-size: 1.125rem;
  font-weight: 700;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.98);
  border-radius: 0 !important;
  letter-spacing: -0.005em;
  text-shadow: 0 5px 18px rgba(0, 0, 0, 0);
  background: transparent !important;
  box-shadow: none !important;
  text-align: center;
  width: min(100%, 1100px);
  margin: 0 auto;
}

.hero__details-line {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 0.65rem;
  text-align: center;
}

.hero__detail-block {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  color: #ffffff;
  text-shadow: 0 5px 18px rgba(0, 0, 0, 0);
}

.hero__details-dot {
  font-size: 1.3rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.7);
  padding: 0 0.45rem;
}

.hero__details span,
.hero__details a {
  color: rgba(255, 255, 255, 0.98);
}

.hero__contact {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.hero__contact--phone {
  flex-wrap: nowrap;
}

.hero__contact--social {
  flex-wrap: nowrap;
  gap: 0.65rem;
}

.hero__contact-item {
  color: inherit;
  text-decoration: none;
  font-weight: inherit;
  white-space: nowrap;
}

.hero__details-sep {
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
}

.hero__icon {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.98);
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
}

.hero__details a,
.hero__social a {
  text-decoration: none;
  border-bottom: none;
  transition: opacity 0.2s ease;
  position: relative;
}

.hero__details a:hover,
.hero__social-link:hover,
.hero__social a:hover {
  opacity: 0.8;
}

.hero__meta > *,
.hero__details,
.hero__social {
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  border: none !important;
}

.hero__social {
  font-size: 1.125rem;
  font-weight: 700;
  text-shadow: 0 5px 18px rgba(0, 0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0 !important;
  border-radius: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.hero__social-link {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  border-bottom: none;
  transition: opacity 0.2s ease;
}

@media (max-width: 992px) {
  .hero {
    padding: 3.5rem 1.25rem 2.75rem;
  }

  .hero__content {
    gap: 1.1rem;
  }

  .hero__brand {
    gap: 1.05rem;
  }

  .hero__logo {
    width: 140px;
    height: 140px;
  }

  .hero__details {
    font-size: 0.9rem;
    flex-wrap: wrap;
    gap: 0.5rem 1.1rem;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 3rem 1.1rem 2.5rem;
  }

  .hero__logo {
    width: 120px;
    height: 120px;
  }

  .hero__details {
    flex-wrap: wrap;
    gap: 0.4rem 0.9rem;
  }

  .hero__social {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
}

@media (max-width: 900px) {
  .hero__details {
    width: 100%;
  }

  .hero__details-line {
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .hero__detail-block {
    white-space: normal;
  }

  .hero__contact {
    flex-wrap: wrap;
  }
}

@media (max-width: 520px) {
  .hero__details {
    font-size: 1.05rem;
    gap: 0.3rem;
    width: 100%;
  }

  .hero__details li {
    width: 100%;
  }

  .hero__details-dot {
    display: none;
  }

  .hero__contact,
  .hero__contact--social {
    justify-content: center;
  }
}

/* ========================================
   NAVEGACIÓN DE CATEGORÍAS - BASE COMPARTIDA
   ======================================== */
.categorias-scroll {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 0.75rem;
  padding: 0.5rem 0;
  margin: 2.25rem 1rem 1.5rem;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scroll-padding-inline: clamp(0.65rem, 3vw, 1.2rem);
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
  position: sticky;
  top: clamp(0.4rem, 2vw, 0.9rem);
  z-index: 60;
  background: transparent;
  border-radius: 0;
  backdrop-filter: none;
  --scroll-fade: clamp(12px, 4vw, 28px);
}

.categorias-scroll::-webkit-scrollbar {
  display: none;
}

.categorias-scroll.show-right:not(.show-left) {
  mask-image: linear-gradient(90deg, #000 calc(100% - var(--scroll-fade)), transparent);
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - var(--scroll-fade)), transparent);
}

.categorias-scroll.show-left:not(.show-right) {
  mask-image: linear-gradient(90deg, transparent, #000 var(--scroll-fade));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--scroll-fade));
}

.categorias-scroll.show-left.show-right {
  mask-image: linear-gradient(90deg, transparent, #000 var(--scroll-fade), #000 calc(100% - var(--scroll-fade)), transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--scroll-fade), #000 calc(100% - var(--scroll-fade)), transparent);
}

.categoria {
  position: relative;
  flex: 0 0 auto;
  white-space: nowrap;
  border-radius: 999px;
  padding: 0.6rem 1.3rem;
  font-weight: 600;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
  scroll-snap-align: center;
  cursor: pointer;
  user-select: none;
  margin-left: 0.5rem;
}

.categoria:hover,
.categoria:focus-visible {
  transform: translateY(-4px);
}


/* ========================================
   SECCIÓN SOBRE NOSOTROS
   ======================================== */
.about-section {
  max-width: 1000px;
  margin: 3rem auto;
  padding: 3rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  background: var(--color-primary, #f8f9fa);
}

.about-section-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.about-section h2 {
  margin: 0 0 1.25rem 0;
  font-size: 2rem;
  font-weight: var(--heading-weight);
  line-height: var(--heading-line-height);
}
.about-section h2::after {
  content: none;
}

.about-section p {
  line-height: var(--body-line-height);
  font-size: var(--font-size-lg);
  margin: 1em;
  opacity: 0.92;
}

.about-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-section img {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elevated);
}

@media (max-width: 768px) {
  .about-section {
    margin: 2rem auto;
    padding: 2rem 1.5rem;
  }
  
  .about-section-grid {
    grid-template-columns: 1fr !important;
    gap: 1.75rem;
  }
  
  .about-section h2 {
    font-size: 1.75rem;
  }
  
  .about-section p {
    font-size: var(--font-size-base);
  }
  
  .about-section img {
    width: 220px !important;
    height: 220px !important;
  }
}

/* ========================================
   BANNER HERO / PROMOCIONAL
   ======================================== */
.hero-banner {
  text-align: center;
  padding: 1.5rem 1.5rem;
  margin: 1.5rem 0;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  gap: 0.3rem;
  box-shadow: var(--shadow-soft);
}

.hero-banner h2 {
  margin: 0;
  max-width: 900px;
  line-height: var(--heading-line-height);
  font-weight: var(--heading-weight);
}

.hero-banner p {
  margin: 0;
  max-width: 800px;
  line-height: var(--body-line-height);
  font-size: var(--font-size-lg);
  opacity: 0.9;
}

.hero-cta-link,
.hero-cta-span {
  display: inline-block;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  line-height: 1.2;
  margin-top: 0.5rem;
}

.hero-cta-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}

.hero-cta-span {
  cursor: default;
}

/* ========================================
   NOTIFICACIONES DE LICENCIA
   ======================================== */
.license-alert {
  padding: 15px 10px;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.license-alert a {
  text-decoration: underline;
}

/* Licencia vencida - Crítico */
.license-alert-critical {
  background: #b71c1c;
  color: #fff;
  padding: 18px 10px;
  font-size: 1.15em;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.license-alert-critical a {
  color: #fff;
}

/* Licencia próxima a vencer - Advertencia */
.license-alert-warning {
  background: #ff9800;
  color: #fff;
  font-size: 1.05em;
}

.license-alert-warning a {
  color: #fff;
}

/* Licencia renovada - Éxito */
.license-alert-success {
  background: #4caf50;
  color: #fff;
  font-size: 1.05em;
}

.license-alert-success .renewal-date {
  font-size: 0.85em;
  opacity: 0.9;
}

.license-alert-success .close-btn {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 1.2em;
  float: right;
  margin-top: -5px;
}

/* Licencia activa - Info */
.license-alert-info {
  background: #2196f3;
  color: #fff;
  padding: 12px 10px;
  font-size: 0.95em;
  font-weight: 500;
}

.license-alert-info .close-btn {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 1.2em;
  float: right;
  margin-top: -5px;
}

/* Menú bloqueado */
.menu-blocked {
  padding: 40px 0;
  text-align: center;
  font-size: 1.2em;
  color: #b71c1c;
  font-weight: bold;
}

/* ========================================
   DESCRIPCIÓN DE CATEGORÍAS
   ======================================== */
.category-description {
  text-align: left;
  color: var(--colorText);
  opacity: 0.8;
  font-size: 0.95em;
  margin: 0 2.5em;
  line-height: 1.6;
  font-style: italic;
}

/* ========================================
   PRECIO Y BOTONES DE CANTIDAD - COLORES FIJOS DEL SISTEMA
   Estos elementos NO son personalizables por temas
   ======================================== */

/* PRECIO - Color fijo negro */
.precio,
.precio-cantidad .precio,
.plato-info .precio {
  color: #212121 !important;
}

/* BOTONES DE CANTIDAD (+/-) - Fondo negro, texto blanco */
.precio-cantidad .cantidad-btn,
.cantidad-btn {
  background: #212121 !important;
  color: #fff !important;
  border-color: #212121 !important;
}

.precio-cantidad .cantidad-btn:hover,
.cantidad-btn:hover {
  background: #424242 !important;
  color: #fff !important;
  border-color: #424242 !important;
}

.precio-cantidad .cantidad-btn:active,
.cantidad-btn:active {
  background: #333333 !important;
  color: #fff !important;
}

/* NÚMERO DE CANTIDAD - Color fijo negro */
.precio-cantidad .cantidad-num,
.cantidad-num {
  color: #212121 !important;
}

/* ========================================
   DESTACADOS
   ======================================== */
.categoria-destacada {
  outline: 3px solid var(--color-destacado, #ff6b35);
  outline-offset: -1px;
  transition: all 0.3s ease;
}

.categoria-destacada:hover {
  outline-width: 4px;
}

.plato-destacado {
  outline: 3px solid var(--color-destacado, #ff6b35);
  outline-offset: -1px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.plato-destacado:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.badge-recomendado {
  display: inline-block;
  width: fit-content;
  background: var(--color-destacado, #ff6b35);
  color: #fff;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 6px;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

@media (max-width: 768px) {
  .badge-recomendado {
    display: inline-flex;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0.5em;
    margin-bottom: 1em;
  }
}

.hidden {
  display: none !important;
}

:root {
  --pedido-domicilio-color: #28a745;
}

nav + .pedido-domicilio-mobile #pedido-domicilio-flotante,
.pedido-domicilio-mobile #pedido-domicilio-flotante {
  position: fixed;
  right: 1rem;
  bottom: 5.5rem;
  background: var(--pedido-domicilio-color);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.8rem 1.35rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 30;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: #fff !important;
}

#pedido-domicilio-flotante:focus {
  outline: 3px solid rgba(255,255,255,0.5);
}

#pedido-domicilio-flotante:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.35);
}

.pedido-domicilio-extra {
  margin-top: 1rem;
  display: grid;
  gap: 0.75rem;
  background: rgba(255,255,255,0.08);
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
}

.pedido-domicilio-extra-note {
  font-size: 0.8rem;
  color: #111;
  margin: 0;
}

.pedido-domicilio-extra label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: #111;
}

.pedido-domicilio-extra input,
.pedido-domicilio-extra select {
 /* width: 100%; */
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.25);
  background: #fff;
  color: #111;
  padding: 0.45rem 0.75rem;
  font-size: 0.9rem;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.pedido-domicilio-extra input:focus,
.pedido-domicilio-extra select:focus {
  border-color: var(--pedido-domicilio-color);
  box-shadow: 0 0 0 3px rgba(40,167,69,0.2);
  outline: none;
}

.btn-solicitar {
  margin-top: 0.8rem;
  width: 100%;
  background: var(--pedido-domicilio-color);
  color: #fff!important;
  border: none;
  border-radius: 6px;
  padding: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.btn-solicitar:hover {
  background: #0f8f45;
  color: #fff!important;
}

@media (max-width: 900px) {
  
  .pedido-domicilio-mobile {
    display: block;
    position: sticky;
    top: calc(56px + 1rem);
    margin: 2.5rem auto 1rem;
    padding-top: 0.5rem;
    text-align: right;
    z-index: 6;
  }

  #pedido-domicilio-flotante {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    width: auto;
    max-width: 82vw;
    margin: 3rem auto 0.5rem auto;
    padding: 0.52rem 1rem;
    white-space: nowrap;
    box-shadow: none;
    border-radius: 18px;
    line-height: 1.05;
    background: #27ae60;
    color: #fff !important;
  }

  .pedido-domicilio-mobile #pedido-domicilio-flotante span,
  .pedido-domicilio-mobile .pedido-label {
    display: inline;
    font-size: 0.9rem !important;
    line-height: 1.05;
    color: #fff !important;
  }

  .pedido-domicilio-mobile::before {
    content: '';
    display: block;
    height: 1.5rem;
  }

  .pedido-domicilio-extra {
    padding: 0.85rem;
  }

  .btn-solicitar {
    font-size: 0.9rem;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* ========================================
   SELECTOR DE CARTAS
   ======================================== */
.cartas-scroll {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 0.75rem;
  padding: 0.5rem 0;
  margin: 1.5rem 1rem 0.25rem;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scroll-padding-inline: clamp(0.65rem, 3vw, 1.2rem);
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  border-radius: 0;
  backdrop-filter: none;
}

.cartas-scroll::-webkit-scrollbar {
  display: none;
}

.categorias-scroll {
  /* Colocarse justo debajo del selector de cartas (sticky) */
  top: 4rem;
  z-index: 90;
}

.carta-btn {
  position: relative;
  flex: 0 0 auto;
  white-space: nowrap;
  border-radius: 999px;
  padding: 0.6rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, filter 0.25s ease;
  scroll-snap-align: center;
  cursor: pointer;
  user-select: none;
  margin-left: 0.5rem;
  background: var(--color-accent, #ff6b35);
  border: 1px solid color-mix(in srgb, var(--color-accent, #ff6b35) 70%, #000000);
  color: #fff !important;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18);
}

.carta-btn:hover,
.carta-btn:focus-visible {
  transform: translateY(-4px);
  filter: brightness(0.92);
  color: #fff !important;
}

.carta-btn.carta-activa {
  filter: brightness(1);
  color: #fff !important;
  box-shadow: 0 0 0 3px #ffffff, 0 0 0 5px var(--color-accent, #ff6b35), 0 10px 18px rgba(0, 0, 0, 0.2);
}

/* Los botones de categorías ocultos deben ocultarse sin romper el layout */
.categorias-scroll .categoria[hidden] {
  display: none;
}

.categoria-bloque[hidden] {
  display: none;
}

/* ========================================
   UTILIDADES
   ======================================== */
.z-index-2 {
  position: relative;
  z-index: 2;
}
