/* ===== RESET & ROOT ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:root {
  --rojo: #7c3aed;
  --rojo2: #9333ea;
  --verde: #2563eb;
  --verde2: #3b82f6;
  --amarillo: #f5c800;
  --oscuro: #140600;
  --carbon: #1c0a02;
  --mid: #2d1005;
  --blanco: #fff;
}


body {
  font-family: 'Nunito', sans-serif;
  background: var(--carbon);
  color: var(--blanco);
  min-height: 100vh;
  padding-bottom: 100px;
}

/* ===== HEADER ===== */
.menu-header {
  background: linear-gradient(150deg, #140600 0%, #2d1005 100%);
  padding: 24px 5% 20px;
  border-bottom: 3px solid var(--rojo);
}

.menu-header-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.menu-logo-img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--amarillo);
}

.menu-nombre {
  font-family: 'Pacifico', cursive;
  font-size: 1.6rem;
  color: var(--amarillo);
}

.menu-subtitulo {
  color: rgba(255, 255, 255, .6);
  font-size: .82rem;
  font-weight: 700;
  margin-top: 2px;
}

.menu-fecha {
  color: rgba(255, 255, 255, .45);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .5px;
  margin-bottom: 8px;
}

/* ===== DESTACADO ===== */
.menu-destacado-wrap {
  margin-top: 16px;
}

.menu-destacado {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.destacado-item {
  background: linear-gradient(135deg, rgba(200, 24, 26, .3), rgba(245, 200, 0, .15));
  border: 1px solid rgba(245, 200, 0, .4);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.destacado-price {
  margin-left: auto;
  white-space: nowrap;
}

.destacado-badge {
  background: var(--amarillo);
  color: var(--oscuro);
  font-size: .7rem;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}

.destacado-emoji {
  font-size: 2rem;
}

.destacado-info {
  flex: 1;
}

.destacado-name {
  color: #fff;
  font-weight: 900;
  font-size: 1rem;
}

.destacado-desc {
  color: rgba(255, 255, 255, .6);
  font-size: .8rem;
  margin-top: 2px;
}

.destacado-price {
  background: var(--rojo);
  color: #fff;
  font-weight: 900;
  font-size: .9rem;
  padding: 6px 14px;
  border-radius: 999px;
}

/* ===== TABS ===== */
.menu-tabs-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--carbon);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  padding: 12px 5%;
}

.menu-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.menu-tabs::-webkit-scrollbar {
  display: none;
}

.menu-tab {
  padding: 8px 20px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, .2);
  background: transparent;
  color: rgba(255, 255, 255, .7);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  transition: .25s;
  white-space: nowrap;
}

.menu-tab.active,
.menu-tab:hover {
  background: var(--rojo);
  border-color: var(--rojo);
  color: #fff;
}

/* ===== MAIN ===== */
.menu-main {
  padding: 20px 5%;
}

.menu-panel {
  display: none;
}

.menu-panel.active {
  display: block;
}

.menu-nota-var {
  color: rgba(255, 255, 255, .45);
  font-size: .85rem;
  font-weight: 600;
  font-style: italic;
  margin-bottom: 16px;
}

/* ===== GRID ===== */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

/* ===== ITEM CARD ===== */
.menu-item {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 16px;
  overflow: hidden;
  transition: .2s;
}

.menu-item:hover {
  background: rgba(255, 255, 255, .11);
  transform: translateY(-2px);
}

.menu-item-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center;
  display: block;
  background: rgba(255, 255, 255, .05);
}

.menu-item-img-placeholder {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  background: rgba(255, 255, 255, .04);
}

.menu-item-body {
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.menu-item-name {
  color: #fff;
  font-weight: 800;
  font-size: .95rem;
}

.menu-item-desc {
  color: rgba(255, 255, 255, .5);
  font-size: .78rem;
  margin-top: 3px;
}

.menu-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.menu-price {
  background: var(--rojo);
  color: #fff;
  font-size: .82rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.add-btn {
  background: var(--verde);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 800;
  padding: 6px 14px;
  cursor: pointer;
  transition: .2s;
  font-family: 'Nunito', sans-serif;
  white-space: nowrap;
}

.add-btn:hover {
  background: var(--verde2);
}

.incl-tag {
  font-size: .78rem;
  font-weight: 700;
  color: var(--verde2);
  background: rgba(46, 168, 46, .15);
  border: 1px solid rgba(46, 168, 46, .3);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ===== CARRITO FLOTANTE ===== */
#cart-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--rojo);
  color: #fff;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  box-shadow: 0 8px 32px rgba(200, 24, 26, .5);
  z-index: 300;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  white-space: nowrap;
  max-width: 90vw;
}

#cart-bar.visible {
  display: flex;
}

#cart-count {
  background: #fff;
  color: var(--rojo);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: .85rem;
}

#view-cart-btn {
  background: #fff;
  color: var(--rojo);
  border: none;
  border-radius: 999px;
  padding: 7px 18px;
  font-weight: 900;
  font-size: .88rem;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  transition: .2s;
}

#view-cart-btn:hover {
  background: var(--amarillo);
  color: var(--oscuro);
}

/* ===== MODALES ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .75);
  z-index: 400;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--carbon);
  border-radius: 24px 24px 0 0;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px 16px 32px;
  animation: slideUp .3s ease;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.modal-title {
  font-family: 'Pacifico', cursive;
  color: #fff;
  font-size: 1.5rem;
}

.modal-close {
  background: rgba(255, 255, 255, .1);
  border: none;
  color: #fff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.2rem;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
}

.cart-empty {
  color: rgba(255, 255, 255, .5);
  text-align: center;
  padding: 40px 0;
  font-size: 1rem;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  gap: 12px;
}

.cart-item-name {
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
}

.cart-item-desc {
  color: rgba(255, 255, 255, .45);
  font-size: .78rem;
  margin-top: 2px;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 1rem;
  cursor: pointer;
  transition: .2s;
}

.qty-btn:hover {
  background: var(--rojo);
}

.qty-num {
  color: #fff;
  font-weight: 800;
  min-width: 20px;
  text-align: center;
}

.cart-item-price {
  color: var(--amarillo);
  font-weight: 800;
  font-size: .95rem;
  white-space: nowrap;
}

.remove-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, .3);
  font-size: 1rem;
  cursor: pointer;
  padding: 0 4px;
  transition: .2s;
}

.remove-btn:hover {
  color: var(--rojo);
}

.cart-clear-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.cart-add-more-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .2);
  color: var(--verde2);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  transition: .2s;
}

.cart-add-more-btn:hover {
  border-color: var(--verde2);
  color: #fff;
  background: rgba(46, 168, 46, .2);
}

.cart-clear-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .2);
  color: rgba(255, 255, 255, .5);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  transition: .2s;
}

.cart-clear-btn:hover {
  border-color: var(--rojo);
  color: var(--rojo);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0 16px;
}

.cart-total-label {
  color: rgba(255, 255, 255, .7);
  font-weight: 700;
}

.cart-total-amount {
  color: var(--amarillo);
  font-family: 'Pacifico', cursive;
  font-size: 1.5rem;
}

.opt-label {
  color: rgba(255, 255, 255, .7);
  font-size: .85rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.delivery-section,
.payment-section {
  margin-bottom: 16px;
}

.delivery-opts,
.payment-opts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.delivery-opt,
.payment-opt {
  flex: 1;
  min-width: 110px;
  border: 2px solid rgba(255, 255, 255, .2);
  background: transparent;
  color: rgba(255, 255, 255, .8);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: .88rem;
  transition: .2s;
}

.retiro-info {
  margin-top: 10px;
  background: rgba(46, 168, 46, .1);
  border: 1px solid rgba(46, 168, 46, .3);
  border-radius: 12px;
  padding: 12px 14px;
  color: rgba(255, 255, 255, .85);
  font-size: .85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.retiro-info a {
  color: var(--verde2);
  text-decoration: none;
  font-weight: 800;
}

.retiro-info a:hover {
  text-decoration: underline;
}

.delivery-opt.selected,
.delivery-opt:hover {
  border-color: var(--verde);
  color: #fff;
  background: rgba(46, 168, 46, .2);
}

.payment-opt.selected,
.payment-opt:hover {
  border-color: var(--amarillo);
  color: #fff;
  background: rgba(245, 200, 0, .15);
}

.notes-input {
  width: 100%;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 12px;
  padding: 12px 14px;
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: .9rem;
  resize: none;
  margin-bottom: 16px;
}

.notes-input::placeholder {
  color: rgba(255, 255, 255, .35);
}

.notes-input:focus {
  outline: none;
  border-color: var(--verde);
}

.send-order-btn {
  width: 100%;
  background: var(--verde);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 15px;
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 1.05rem;
  cursor: pointer;
  transition: .2s;
}

.send-order-btn:hover {
  background: var(--verde2);
}

/* ===== COMBO ===== */
.combo-subtitle {
  color: rgba(255, 255, 255, .55);
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 24px;
  font-style: italic;
}

.combo-section {
  margin-bottom: 20px;
}

.combo-section-title {
  color: var(--amarillo);
  font-weight: 800;
  font-size: .9rem;
  margin-bottom: 10px;
}

.combo-opts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.combo-opt {
  border: 2px solid rgba(255, 255, 255, .2);
  background: transparent;
  color: rgba(255, 255, 255, .75);
  border-radius: 999px;
  padding: 8px 16px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: .85rem;
  cursor: pointer;
  transition: .2s;
}

.combo-opt:hover {
  border-color: var(--verde);
  color: #fff;
}

.combo-opt.selected {
  background: var(--verde);
  border-color: var(--verde);
  color: #fff;
}

.combo-opt.no-opt:hover,
.combo-opt.no-opt.selected {
  background: rgba(200, 24, 26, .3);
  border-color: var(--rojo);
  color: #fff;
}

/* ===== WA FLOTANTE ===== */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 250;
  background: #25d366;
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37, 211, 102, .5);
  transition: .2s;
}

.wa-float:hover {
  transform: scale(1.1);
}

/* ===== ANIMACIONES ===== */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

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

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
  .menu-grid {
    grid-template-columns: 1fr;
  }

  .modal {
    padding: 20px 14px 28px;
  }

  .delivery-opts,
  .payment-opts {
    flex-direction: column;
  }

  .delivery-opt,
  .payment-opt {
    min-width: unset;
    width: 100%;
  }
}

/* ===== SKELETON LOADER ===== */
.skeleton-card {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  overflow: hidden;
}

.skeleton-img {
  width: 100%;
  height: 160px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .05) 25%, rgba(255, 255, 255, .1) 50%, rgba(255, 255, 255, .05) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skeleton-line {
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .05) 25%, rgba(255, 255, 255, .1) 50%, rgba(255, 255, 255, .05) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  width: 100%;
}

.skeleton-line.short {
  width: 60%;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* ===== SKELETON LOADER ===== */
.skeleton-card {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  overflow: hidden;
}

.skeleton-img {
  width: 100%;
  height: 160px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .05) 25%, rgba(255, 255, 255, .1) 50%, rgba(255, 255, 255, .05) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skeleton-line {
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .05) 25%, rgba(255, 255, 255, .1) 50%, rgba(255, 255, 255, .05) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  width: 100%;
}

.skeleton-line.short {
  width: 60%;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.cart-delivery-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.cart-delivery-amount {
  color: var(--verde2);
  font-weight: 800;
  font-size: .95rem;
}

/* ===== TESTIMONIOS ===== */
.testimonios-section {
  padding: 40px 5% 80px;
  background: var(--carbon);
}

.testimonios-header {
  text-align: center;
  margin-bottom: 28px;
}

.testimonios-titulo {
  font-family: 'Pacifico', cursive;
  color: var(--amarillo);
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.testimonios-sub {
  color: rgba(255,255,255,.55);
  font-size: .88rem;
  font-weight: 600;
}

.testimonios-lista {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.testimonio-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 18px 20px;
}

.testimonio-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.testimonio-card-nombre {
  color: #fff;
  font-weight: 800;
  font-size: .95rem;
}

.testimonio-card-estrellas {
  color: var(--amarillo);
  font-size: 1rem;
  letter-spacing: 2px;
}

.testimonio-card-texto {
  color: rgba(255,255,255,.75);
  font-size: .88rem;
  line-height: 1.6;
  font-weight: 600;
  font-style: italic;
}

.testimonios-vacio {
  text-align: center;
  color: rgba(255,255,255,.3);
  font-size: .9rem;
  font-weight: 600;
  padding: 20px 0;
}

/* ===== FORMULARIO TESTIMONIO ===== */
.testimonio-form {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  padding: 24px;
  max-width: 500px;
  margin: 0 auto;
}

.form-titulo {
  color: var(--amarillo);
  font-family: 'Pacifico', cursive;
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.testi-input {
  width: 100%;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  padding: 12px 14px;
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: .9rem;
  margin-bottom: 12px;
  display: block;
}

.testi-input::placeholder { color: rgba(255,255,255,.35); }
.testi-input:focus { outline: none; border-color: var(--verde2); }

.testi-textarea { resize: none; }

.estrellas-selector {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.estrella {
  font-size: 2rem;
  color: rgba(255,255,255,.2);
  cursor: pointer;
  transition: .2s;
}

.estrella.activa {
  color: var(--amarillo);
}

.testi-btn {
  width: 100%;
  background: var(--verde);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 13px;
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 1rem;
  cursor: pointer;
  transition: .2s;
  margin-bottom: 10px;
}

.testi-btn:hover { background: var(--verde2); }

.testi-nota {
  color: rgba(255,255,255,.3);
  font-size: .75rem;
  font-weight: 600;
  text-align: center;
  font-style: italic;
}

/* ===== DESCUENTOS ===== */
.menu-price-original {
  color: rgba(255,255,255,.4);
  font-size: .75rem;
  font-weight: 700;
  text-decoration: line-through;
  display: block;
  text-align: right;
}

.descuento-price {
  background: var(--verde) !important;
  display: flex;
  align-items: center;
  gap: 4px;
}

.descuento-badge {
  background: var(--amarillo);
  color: var(--oscuro);
  font-size: .68rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 999px;
}