/* ============================================================
   KARAÍ BURGER — Menú de pedidos
   Misma identidad que Cliente Frecuente: usa los colores y la base
   de css/estilos.css (se carga antes). Acá solo lo propio del menú.
   ============================================================ */

body {
  overflow-x: hidden;
}

/* ── Contenedor principal ── */
.container {
  max-width: 620px;
  margin: auto;
  padding: 18px 16px 120px;
}

/* ============================================================
   INTRO
   ============================================================ */
.intro {
  padding: 8px 0 4px;
}
.intro h2 {
  font-size: 26px;
}
.intro p {
  margin: 6px 0 0;
  color: var(--texto-2);
}

/* ============================================================
   TÍTULOS DE SECCIÓN
   ============================================================ */
.section-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--texto);
  margin: 34px 0 14px;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--fondo);
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  padding: 16px;
  margin-bottom: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.card.destacada {
  border: 1.5px solid var(--texto);
}
.card.veg {
  background: var(--ok-bg);
  border-color: transparent;
}
.card.chicken {
  background: #fbf5e4;
  border-color: transparent;
}

/* Edición especial: la única tarjeta oscura */
.card.especial {
  background: var(--texto);
  border-color: var(--texto);
  color: #fff;
}
.card.especial h3,
.card.especial strong,
.card.especial .price {
  color: #fff;
}
.card.especial .desc {
  color: rgba(255, 255, 255, 0.7);
}
.card.especial .add-btn {
  background: #fff;
  color: var(--texto);
}
.card.especial .qty-picker button {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.card.especial .qty-picker .qty-val {
  color: #fff;
}
.card.especial .row {
  border-color: rgba(255, 255, 255, 0.15);
}

/* ── Promo del finde ── */
.card.promo-finde {
  background: var(--superficie);
  border-color: transparent;
}
.card.promo-finde .promo-finde-items {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}
.card.promo-finde .promo-finde-regular {
  margin-top: 6px;
  display: inline-block;
  background: var(--fondo);
  color: var(--texto-2);
  font-size: 12px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 8px;
}
.card.promo-finde .qty-picker button {
  background: var(--fondo);
}
.card.promo-finde .promo-finde-nota {
  font-size: 11.5px;
  color: var(--texto-2);
  text-align: center;
}

/* ── Grilla de 2 columnas (promo finde, especial, sandwiches, hamburguesas) ── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.grid-2 > .card {
  margin-bottom: 0;
  padding: 12px 10px;
}
.grid-2 > .card:only-child {
  grid-column: 1 / -1;
}
.grid-2 > .card h3 {
  font-size: 15px;
  margin: 0 0 8px;
}
.grid-2 > .card img {
  max-height: 140px;
  margin-bottom: 8px;
}
.grid-2 .row {
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--linea);
}
.grid-2 .row:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.grid-2 .desc {
  font-size: 11.5px;
}
.grid-2 .price {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  white-space: normal;
  font-size: 15px;
}
.grid-2 .add-btn {
  flex: 1 1 100%;
  margin-top: 2px;
  min-width: 0;
  padding: 8px 6px;
  font-size: 12.5px;
}
.grid-2 .card.promo-finde .promo-finde-items {
  font-size: 12px;
}

/* ── Título dentro de la card ── */
.card h3 {
  font-size: 18px;
  font-weight: 600;
  color: inherit;
  text-align: center;
  margin-bottom: 12px;
}

/* ── Imagen dentro de la card ── */
.card img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  display: block;
  margin: 0 auto 12px;
}

/* ── Filas precio/descripción ── */
.row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.price {
  font-weight: 600;
  font-size: 17px;
  color: var(--texto);
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.price.descuento {
  color: var(--ok);
}
.combo {
  display: block;
  font-weight: 600;
  margin-top: 4px;
}
.desc {
  font-size: 12.5px;
  line-height: 1.35;
  margin-top: 4px;
  color: var(--texto-2);
}

/* ── Badge ── */
.badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-weight: 600;
}

/* ── Badge "La más pedida" ── */
.burger-img-wrap {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}
.burger-img-wrap img {
  max-width: 85%;
  height: auto;
}
.badge-mas-pedida {
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--texto);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  padding: 8px 8px;
  border-radius: 10px;
  line-height: 1.15;
}

/* ── Botón Agregar ── */
.add-btn {
  margin-top: 6px;
  background: var(--primario);
  color: #fff;
  border: none;
  border-radius: var(--radio-chico);
  padding: 8px 12px;
  font: 600 13px 'Inter', system-ui, sans-serif;
  cursor: pointer;
  white-space: nowrap;
  min-width: 105px;
  text-align: center;
}
.add-btn:hover {
  background: var(--primario-hover);
}
.add-btn.small {
  padding: 6px 10px;
  font-size: 12.5px;
}

/* ── Selector de cantidad ── */
.qty-picker {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-top: 4px;
}
.qty-picker button {
  width: 26px;
  height: 26px;
  border: 1px solid transparent;
  background: var(--superficie);
  color: var(--texto);
  border-radius: 50%;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.qty-picker .qty-val {
  min-width: 22px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}

/* ── Precio en línea (bebidas) ── */
.price-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* ============================================================
   GRID / SLIDERS / ACOMPAÑAMIENTOS
   ============================================================ */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
}
.slider-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 4px;
  text-align: center;
  height: 100%;
}
.slider-card img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  margin-bottom: 10px;
}
.slider-image-placeholder {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: var(--superficie);
  border-radius: var(--radio-chico);
}
.slider-title {
  color: var(--texto);
  font-size: 14.5px;
  font-weight: 600;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.slider-price {
  color: var(--texto);
  font-weight: 600;
  font-size: 16px;
}
.slider-price-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}
.slider-desc {
  font-size: 12px;
  line-height: 1.3;
  margin-top: 6px;
  color: var(--texto-2);
}
.infantil {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ============================================================
   BEBIDAS
   ============================================================ */
.bebidas-img {
  width: 100%;
  max-height: 160px;
  object-fit: contain;
}

/* ============================================================
   CTA FINAL
   ============================================================ */
.cta-final {
  background: var(--superficie);
  border-radius: var(--radio);
  padding: 28px 20px;
  text-align: center;
  margin: 36px 0 20px;
}
.cta-final h2 {
  font-size: 22px;
  margin-bottom: 8px;
}
.cta-final p {
  font-size: 15px;
  color: var(--texto-2);
  margin-bottom: 18px;
}
.cta-btn {
  display: inline-block;
  background: var(--primario);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: var(--radio-chico);
  text-decoration: none;
}
.cta-btn:hover {
  background: var(--primario-hover);
}

/* ============================================================
   BOTÓN FLOTANTE WHATSAPP
   ============================================================ */
.whatsapp-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 58px;
  height: 58px;
  z-index: 99999;
}
.whatsapp-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.18));
}

/* ============================================================
   BOTÓN FLOTANTE CARRITO
   ============================================================ */
.cart-btn {
  position: fixed;
  bottom: 88px;
  right: 18px;
  width: 58px;
  height: 58px;
  background: var(--primario);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  z-index: 99999;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}
#cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--error);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   MODAL CARRITO
   ============================================================ */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(17, 17, 17, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.cart-overlay.show {
  opacity: 1;
  pointer-events: auto;
}
.cart-modal {
  background: var(--fondo);
  width: 92%;
  max-width: 440px;
  max-height: 88vh;
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  transform: translateY(20px) scale(0.96);
  opacity: 0;
  transition: all 0.25s ease;
  animation: modalIn 0.25s ease-out;
}
.cart-overlay.show .cart-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.cart-header h3 {
  font-size: 20px;
  color: var(--texto);
  margin: 0;
}
.cart-header button {
  background: var(--superficie);
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 16px;
  color: var(--texto);
  cursor: pointer;
}
#cart-items {
  overflow-y: auto;
  flex: 1;
  margin-bottom: 10px;
}

/* ── Ítem del carrito ── */
.cart-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--linea);
}
.cart-item strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--texto);
}
.cart-item small {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--texto-2);
}
.cart-item .price {
  font-weight: 600;
  font-size: 15px;
  color: var(--texto);
  text-align: right;
  white-space: nowrap;
  align-items: flex-end;
}
.cart-item .note-btn {
  background: transparent;
  color: var(--texto-2);
  padding: 0;
  margin: 4px 0 0;
}
.cart-item .price.descuento {
  color: var(--ok);
}
.cart-item button {
  background: var(--superficie);
  color: var(--texto);
  border: none;
  border-radius: 8px;
  padding: 4px 9px;
  margin: 2px;
  cursor: pointer;
  font-size: 14px;
}
.cart-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cart-qty {
  font-size: 16px;
  font-weight: 600;
  min-width: 22px;
  text-align: center;
}
.delete-btn {
  background: transparent !important;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

/* ── Totales y botones ── */
.cart-total {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--linea);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--texto) !important;
  text-align: right;
}
.cart-ahorro {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ok);
  text-align: right;
  display: none;
}
.cart-hint {
  color: var(--texto-2) !important;
  text-align: center;
  margin: 10px 0;
  font-size: 14px;
}
.confirm-btn {
  width: 100%;
  margin-top: 12px;
  background: var(--primario);
  color: #fff;
  border: none;
  border-radius: var(--radio-chico);
  padding: 14px;
  font: 600 15px 'Inter', system-ui, sans-serif;
  cursor: pointer;
}
.confirm-btn:hover {
  background: var(--primario-hover);
}
.confirm-btn:active {
  transform: scale(0.98);
}
.vaciar-btn {
  width: 100%;
  margin-top: 8px;
  background: transparent;
  color: var(--texto-2);
  border: none;
  padding: 8px;
  font: 500 14px 'Inter', system-ui, sans-serif;
  cursor: pointer;
}
.vaciar-btn:hover {
  color: var(--texto);
}
.seguir-btn {
  width: 100%;
  margin-top: 8px;
  padding: 13px;
  border-radius: var(--radio-chico);
  border: none;
  background: var(--superficie);
  color: var(--texto);
  font: 600 15px 'Inter', system-ui, sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.seguir-btn:hover {
  background: var(--superficie-2);
}
.seguir-btn:active {
  transform: scale(0.98);
}

/* ── Nota y botones auxiliares ── */
.note-btn {
  background: transparent;
  border: none;
  color: var(--texto-2);
  font: 500 12.5px 'Inter', system-ui, sans-serif;
  cursor: pointer;
  margin-top: 4px;
  padding: 0;
  display: block;
}
.item-note {
  margin-top: 6px;
  padding: 6px 10px;
  background: var(--superficie);
  border-radius: 8px;
  font-size: 12.5px;
}
.change-drink-btn {
  background: none;
  border: none;
  color: var(--texto);
  font-weight: 600;
  font-size: 12.5px;
  margin-left: 6px;
  cursor: pointer;
  text-decoration: underline;
}

/* ── Sugerencia de combo ── */
.combo-sugerencia {
  background: var(--superficie);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 16px;
  font-size: 15px;
  text-align: center;
}
.combo-sugerencia small {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--texto-2);
}
.combo-btn {
  margin-top: 12px;
  background: var(--primario);
  color: #fff;
  border: none;
  border-radius: var(--radio-chico);
  padding: 10px 18px;
  font: 600 14px 'Inter', system-ui, sans-serif;
  cursor: pointer;
}
.combo-btn:hover {
  background: var(--primario-hover);
}
.combo-aplicado {
  display: none;
  background: var(--ok-bg);
  color: var(--ok);
  padding: 10px;
  border-radius: var(--radio-chico);
  text-align: center;
  font-weight: 600;
  margin-bottom: 12px;
  animation: comboIn 0.4s ease;
}

/* ============================================================
   OVERLAYS / MODALES SECUNDARIOS
   ============================================================ */
.combo-prompt-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.45);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.combo-prompt {
  background: var(--fondo);
  padding: 24px;
  border-radius: 20px;
  text-align: center;
  width: 100%;
  max-width: 360px;
  animation: comboIn 0.25s ease;
}
.combo-prompt h3 {
  font-size: 19px;
  color: var(--texto);
  margin-bottom: 10px;
}
.combo-prompt p {
  font-size: 15px;
  color: var(--texto-2);
  margin-bottom: 16px;
}
.combo-actions {
  display: flex;
  gap: 8px;
}
.combo-actions button {
  flex: 1;
  padding: 12px;
  border-radius: var(--radio-chico);
  border: none;
  cursor: pointer;
  font: 600 14px 'Inter', system-ui, sans-serif;
}
.combo-yes {
  background: var(--primario);
  color: #fff;
}
.combo-no {
  background: var(--superficie);
  color: var(--texto);
  border: none;
  border-radius: var(--radio-chico);
  padding: 12px 18px;
  font: 600 14px 'Inter', system-ui, sans-serif;
  cursor: pointer;
}
.drink-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 16px 0;
}
.drink-options button {
  padding: 12px 10px;
  border-radius: var(--radio-chico);
  border: 1.5px solid transparent;
  background: var(--superficie);
  color: var(--texto);
  font: 600 14px 'Inter', system-ui, sans-serif;
  cursor: pointer;
}
.drink-options button:hover {
  border-color: var(--texto);
  background: var(--fondo);
}
.drink-select {
  margin: 12px 0;
}
.drink-select select {
  padding: 8px;
}

/* ── Modal formulario cliente ── */
.cliente-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  min-height: 0;
  padding: 2px;
}
.cliente-form label {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--texto-2);
}
.cliente-form input,
.cliente-form select {
  width: 100%;
  padding: 12px 14px;
  margin-top: 6px;
  border-radius: var(--radio-chico);
  border: 1px solid transparent;
  background: var(--superficie);
  color: var(--texto);
  font: 15px 'Inter', system-ui, sans-serif;
}
.cliente-form input:focus,
.cliente-form select:focus {
  outline: none;
  border-color: var(--texto);
  background: var(--fondo);
}
.aclaraciones {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--texto-2);
}
.aclaraciones p {
  margin-bottom: 8px;
}
.aclaracionFija {
  color: var(--texto-2);
  margin: 0;
}
.error-msg {
  color: var(--error);
  font-size: 12.5px;
  margin-top: 4px;
  display: none;
}
.input-error {
  border: 1px solid var(--error) !important;
  background: var(--error-bg) !important;
}

/* ── Popup promo ── */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(17, 17, 17, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}
.popup-content {
  position: relative;
  width: 90%;
  max-width: 420px;
}
.popup-content img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radio);
}
.popup-close {
  position: absolute;
  top: -12px;
  right: -12px;
  background: var(--fondo);
  color: var(--texto);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* #notaOverlay más alto que comboPrompt */
#notaOverlay {
  z-index: 10001;
}

/* ============================================================
   BANNER PROMO LUNES
   ============================================================ */
.banner-promo-lunes {
  background: var(--texto);
  border-radius: var(--radio);
  margin-bottom: 16px;
  overflow: hidden;
  position: relative;
}
.banner-promo-inner {
  padding: 20px 16px;
  text-align: center;
  color: #fff;
  position: relative;
}
.banner-promo-titulo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.banner-promo-desc {
  font-size: 16px;
  font-weight: 500;
  margin: 8px 0 6px;
  line-height: 1.4;
}
.banner-promo-condicion {
  display: inline-block;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 3px 10px;
  font-size: 13px;
  margin-top: 6px;
}
.promo-urgencia {
  margin-top: 10px;
  font-size: 13.5px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radio-chico);
  padding: 8px 14px;
  display: inline-block;
}
.promo-urgencia.urgente {
  background: #fff;
  color: var(--texto);
  animation: parpadeo 0.8s ease-in-out infinite;
  font-weight: 700;
}

@keyframes parpadeo {
  0%, 100% { opacity: 1;   }
  50%       { opacity: 0.6; }
}
@keyframes modalIn {
  from { transform: scale(0.95); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}
@keyframes bounce {
  0%   { transform: scale(1);   }
  50%  { transform: scale(1.3); }
  100% { transform: scale(1);   }
}
@keyframes comboIn {
  from { transform: scale(0.9); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
#cart-count.bounce {
  animation: bounce 0.3s;
}

/* ── Fade-up al hacer scroll ── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   CLIENTE FRECUENTE (puntos en el pedido)
   ============================================================ */
.puntos-pedido {
  background: var(--superficie);
  border-radius: var(--radio-chico);
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.45;
}
.puntos-pedido small {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--texto-2);
}
.puntos-pedido a {
  color: var(--texto);
  font-weight: 600;
}
.btn-google-pedido {
  display: block;
  width: 100%;
  margin-top: 10px;
  background: #fff;
  color: #1f1f1f;
  border: 1px solid #dadce0;
  border-radius: var(--radio-chico);
  padding: 11px;
  font: 500 14.5px 'Inter', system-ui, sans-serif;
  cursor: pointer;
}
.btn-google-pedido:hover {
  background: #f8f8f8;
}
