/* Estilos propios de pedido.html (antes inline en el <head>) */
* {
  box-sizing: border-box;
}

body {
  background: #131313;
  color: #e5e2e1;
  font-family: 'Manrope', sans-serif;
  min-height: 100dvh;
  overscroll-behavior: none;
}

/* ── Hide scrollbar ── */
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ── Dish card - Menú del Día ── */
.menu-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.menu-card.selected {
  outline: 2.5px solid #f2ca50;
  box-shadow: 0 0 20px rgba(242, 202, 80, 0.35);
}

.menu-card:active {
  transform: scale(0.97);
}

.menu-card .check-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f2ca50;
  color: #3c2f00;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.menu-card.selected .check-badge {
  display: flex;
}

/* ── Carta item card ── */
.carta-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #1c1b1b;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  position: relative;
}

.carta-item:active {
  transform: scale(0.99);
}

.carta-item.selected {
  border-color: #f2ca50;
  background: #201f0a;
  box-shadow: 0 0 14px rgba(242, 202, 80, 0.2);
}

.carta-item .item-qty {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f2ca50;
  color: #3c2f00;
  font-size: 12px;
  font-weight: 800;
  display: none;
  align-items: center;
  justify-content: center;
}

.carta-item.selected .item-qty {
  display: flex;
}

/* ── Cart Panel ── */
#cart-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: #131313;
  border-top: 1px solid rgba(77, 70, 53, 0.4);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 92dvh;
  display: flex;
  flex-direction: column;
  border-radius: 20px 20px 0 0;
}

#cart-panel.open {
  transform: translateY(0);
}

#cart-panel-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

#cart-panel-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ── Float cart button ── */
#cart-fab {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 100;
  background: linear-gradient(135deg, #d4af37, #f2ca50);
  color: #3c2f00;
  border-radius: 50px;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 4px 24px rgba(242, 202, 80, 0.4);
  cursor: pointer;
  border: none;
  transform: scale(0);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s;
}

#cart-fab.visible {
  transform: scale(1);
}

#cart-fab:active {
  transform: scale(0.95);
}

#cart-fab .fab-count {
  background: #3c2f00;
  color: #f2ca50;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

/* ── Pulsate animation ── */
.pulsate-gold {
  animation: pulse-gold 2s infinite;
}

@keyframes pulse-gold {
  0% {
    box-shadow: 0 0 0 0 rgba(242, 202, 80, 0.5);
  }

  70% {
    box-shadow: 0 0 0 14px rgba(242, 202, 80, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(242, 202, 80, 0);
  }
}

/* ── Qty stepper ── */
.qty-stepper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid rgba(242, 202, 80, 0.4);
  background: transparent;
  color: #f2ca50;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.qty-btn:hover {
  background: rgba(242, 202, 80, 0.12);
}

.qty-num {
  font-family: 'Noto Serif', serif;
  font-size: 18px;
  font-weight: 700;
  color: #f2ca50;
  min-width: 20px;
  text-align: center;
}

/* ── Section tabs ── */
#tabs-container {
  position: sticky;
  top: 64px;
  /* below header */
  z-index: 40;
  background: #131313;
  padding: 10px 20px;
  margin: 0 -20px 20px -20px;
  border-bottom: 1px solid rgba(77, 70, 53, 0.2);
}

.tab-btn {
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1.5px solid rgba(242, 202, 80, 0.25);
  background: transparent;
  color: rgba(229, 226, 225, 0.5);
  transition: all 0.2s;
}

.tab-btn.active {
  background: #f2ca50;
  color: #3c2f00;
  border-color: #f2ca50;
}

/* ── Category pill nav (Carta) ── */
.cat-pill {
  flex-shrink: 0;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1.5px solid rgba(242, 202, 80, 0.2);
  background: transparent;
  color: rgba(229, 226, 225, 0.5);
  transition: all 0.2s;
}

.cat-pill.active {
  background: rgba(242, 202, 80, 0.15);
  border-color: rgba(242, 202, 80, 0.5);
  color: #f2ca50;
}

/* ── Sticky carta pill nav ── */
#carta-pills-nav {
  position: sticky;
  top: 118px;
  /* below header + tabs */
  z-index: 30;
  background: rgba(19, 19, 19, 0.96);
  backdrop-filter: blur(10px);
  padding: 10px 0 10px;
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
}

/* ── Tipo pedido toggle ── */
.tipo-btn {
  flex: 1;
  padding: 10px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  border: 1.5px solid rgba(242, 202, 80, 0.25);
  background: transparent;
  color: rgba(229, 226, 225, 0.5);
  transition: all 0.2s;
  line-height: 1.3;
}

.tipo-btn.active {
  background: rgba(242, 202, 80, 0.15);
  border-color: #f2ca50;
  color: #f2ca50;
}

/* ── Bebida pill ── */
.bebida-pill {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid rgba(242, 202, 80, 0.2);
  background: transparent;
  color: rgba(229, 226, 225, 0.55);
  transition: all 0.2s;
}

.bebida-pill.active {
  background: rgba(242, 202, 80, 0.18);
  border-color: #f2ca50;
  color: #f2ca50;
}

/* ── Slide animations ── */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slide-up {
  animation: slideUp 0.4s ease forwards;
}

/* ── Required asterisk ── */
.required {
  color: #f2ca50;
}

/* ── Selection required warning ── */
.selection-warning {
  font-size: 11px;
  color: #ff9f43;
  display: none;
  margin-top: 4px;
}

.selection-warning.visible {
  display: block;
}

/* Input styling */
input[type="text"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  background: #1c1b1b !important;
  border: 1.5px solid rgba(242, 202, 80, 0.3) !important;
  border-radius: 12px;
  padding: 12px 14px;
  color: #ffffff !important;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  outline: none;
  transition: all 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2399907c'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 40px;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
  border-color: rgba(242, 202, 80, 0.6);
}

input::placeholder,
textarea::placeholder {
  color: rgba(153, 144, 124, 0.7);
}

select option {
  background: #1c1b1b;
  color: #e5e2e1;
}

label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #99907c;
  display: block;
  margin-bottom: 6px;
}

/* Section heading */
.section-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #f2ca50;
}

.section-title {
  font-family: 'Noto Serif', serif;
  font-size: 26px;
  font-weight: 700;
  color: #e5e2e1;
  line-height: 1.2;
}

.section-sub {
  font-size: 13px;
  color: #99907c;
  margin-top: 4px;
}
