:root {
  --bg-main: #0f0f0f;
  --bg-card: #1a1a1a;
  --bg-card-hover: #222222;
  --red-imperial: #d32f2f;
  --red-dark: #9a0007;
  --gold: #ffb300;
  --gold-light: #ffe54c;
  --text-main: #ffffff;
  --text-muted: #b3b3b3;
  --border-color: #2e2e2e;
  --whatsapp: #25d366;
  --whatsapp-dark: #1ebe57;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  padding-bottom: 90px;
}

.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: #1e7e34;
  color: #fff;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 3000;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

.toast.show { transform: translateX(-50%) translateY(0); }

.hero {
  background: linear-gradient(135deg, #2b0707 0%, #141414 60%, #1f1603 100%);
  border-bottom: 2px solid var(--gold);
  padding: 35px 20px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(211, 47, 47, 0.25);
  border: 1px solid var(--red-imperial);
  color: var(--gold-light);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.hero h1 {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-sub {
  max-width: 600px;
  margin: 10px auto 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  max-width: 800px;
  margin: 0 auto;
}

.feature-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  flex: 1 1 280px;
}

.feature-card span { font-size: 1.8rem; }
.feature-card strong { display: block; color: var(--gold); font-size: 0.92rem; }
.feature-card p { font-size: 0.8rem; color: var(--text-muted); }

.categories-wrapper {
  position: sticky;
  top: 0;
  background: rgba(15, 15, 15, 0.96);
  backdrop-filter: blur(8px);
  z-index: 900;
  padding: 10px 15px;
  border-bottom: 1px solid var(--border-color);
}

.swipe-hint {
  text-align: center;
  font-size: 0.75rem;
  color: var(--gold);
  margin-bottom: 6px;
}

.categories-bar {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  justify-content: flex-start;
}

@media (min-width: 768px) {
  .categories-bar { justify-content: center; }
  .swipe-hint { display: none; }
}

.categories-bar::-webkit-scrollbar { height: 4px; }
.categories-bar::-webkit-scrollbar-thumb { background: var(--red-imperial); border-radius: 4px; }

.cat-btn {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 10px 18px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cat-btn:hover { border-color: var(--gold); }
.cat-btn.active {
  background: var(--red-imperial);
  border-color: var(--gold);
  color: #fff;
  box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
}

.menu-container { max-width: 1200px; margin: 0 auto; padding: 25px 16px; }
.section-header { text-align: center; margin-bottom: 24px; }
.section-header h2 { font-size: 1.6rem; color: var(--gold); }
.section-header p { font-size: 0.85rem; color: var(--text-muted); }

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.product-card:hover { transform: translateY(-4px); border-color: var(--gold); }

.img-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  cursor: zoom-in;
  background: #252525;
}

.img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.img-wrapper:hover img { transform: scale(1.07); }

.zoom-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.75);
  color: var(--gold);
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255, 179, 0, 0.4);
}
.card-body { padding: 16px; display: flex; flex-direction: column; flex-grow: 1; }
.card-title { font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: 6px; }
.card-desc { font-size: 0.84rem; color: var(--text-muted); line-height: 1.4; margin-bottom: 14px; flex-grow: 1; }

.card-select-group { margin-bottom: 14px; }
.card-select-group label { display: block; font-size: 0.76rem; color: var(--gold); margin-bottom: 4px; font-weight: 600; }

.card-select {
  width: 100%;
  background: #121212;
  color: #fff;
  border: 1px solid #444;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
}

.card-select:focus { outline: none; border-color: var(--gold); }

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
}

.card-price { font-size: 1.2rem; font-weight: 800; color: var(--gold); }

.btn-add {
  background: var(--red-imperial);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.btn-add:hover { background: #b71c1c; }
.btn-add:active { transform: scale(0.96); }

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2500;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open { display: flex; }

.modal-content {
  position: relative;
  max-width: 650px;
  width: 100%;
  background: var(--bg-card);
  border: 2px solid var(--gold);
  border-radius: 16px;
  overflow: hidden;
  animation: popIn 0.25s ease;
}

@keyframes popIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  border: 1px solid var(--gold);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 10;
}

.modal-content img { width: 100%; max-height: 440px; object-fit: cover; display: block; }
.modal-caption { padding: 16px 20px; }
.modal-caption h3 { color: var(--gold); margin-bottom: 4px; }
.modal-caption p { color: var(--text-muted); font-size: 0.9rem; }

.bottom-cart-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, #b71c1c, #d32f2f);
  border-top: 2px solid var(--gold);
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  cursor: pointer;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
}

.bottom-cart-info strong { display: block; font-size: 1.15rem; color: #fff; }
.bottom-cart-info span { font-size: 0.8rem; color: var(--gold-light); }

.bottom-cart-btn {
  background: var(--gold);
  color: #111;
  border: none;
  padding: 10px 18px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
}

.cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  z-index: 2000;
  justify-content: flex-end;
}

.cart-overlay.open { display: flex; }

.cart-drawer {
  width: 100%;
  max-width: 440px;
  background: #141414;
  height: 100%;
  overflow-y: auto;
  padding: 20px;
  border-left: 2px solid var(--gold);
  display: flex;
  flex-direction: column;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 16px;
}

.btn-seguir {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.cart-badge {
  background: var(--red-imperial);
  color: #fff;
  padding: 2px 9px;
  border-radius: 50px;
  font-size: 0.85rem;
}

.cart-items { margin-bottom: 20px; }
.empty-cart { text-align: center; color: var(--text-muted); padding: 25px 0; font-size: 0.9rem; }

.cart-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.cart-item-info h4 { font-size: 0.9rem; color: #fff; }
.cart-item-info small { display: block; color: var(--gold); font-size: 0.78rem; }
.cart-item-info span { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); }

.qty-controls { display: flex; align-items: center; gap: 8px; }

.qty-btn {
  background: #2b2b2b;
  color: #fff;
  border: 1px solid #444;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}

.qty-btn:hover { border-color: var(--gold); }

.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--gold-light); margin-bottom: 5px; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: #1f1f1f;
  border: 1px solid #3a3a3a;
  color: #fff;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--gold); }

.delivery-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

.radio-card {
  background: #1f1f1f;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  padding: 8px 4px;
  text-align: center;
  font-size: 0.78rem;
  cursor: pointer;
}

.radio-card input { display: none; }
.radio-card:has(input:checked) { background: rgba(211, 47, 47, 0.3); border-color: var(--gold); color: #fff; }
.hidden { display: none; }

.cart-summary {
  background: #1c1c1c;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 14px;
  margin: 16px 0;
}

.summary-row { display: flex; justify-content: space-between; font-size: 0.88rem; color: var(--text-muted); margin-bottom: 6px; }
.total-row { border-top: 1px solid #333; padding-top: 8px; margin-top: 8px; margin-bottom: 0; font-size: 1.15rem; font-weight: 800; color: var(--gold); }

.btn-whatsapp {
  width: 100%;
  background: var(--whatsapp);
  color: #0b2413;
  border: none;
  padding: 14px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-whatsapp:hover { background: var(--whatsapp-dark); }

.footer {
  text-align: center;
  padding: 30px 20px;
  background: #0a0a0a;
  border-top: 1px solid var(--border-color);
  margin-top: 40px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer p { margin-bottom: 6px; }
.footer hr { border: 0; border-top: 1px solid #222; margin: 14px auto; max-width: 400px; }
.dev-credit { color: var(--gold); font-size: 0.82rem; }
.local-photo-box {
  max-width: 800px;
  margin: 22px auto 0;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--gold);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.local-photo-box img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  display: block;
}
/* =========================================================
   AJUSTES: 2 COLUMNAS EN CELULAR (ESTILO IBIZA) Y FOTO LOCAL
   ========================================================= */
.local-photo-box {
  max-width: 800px;
  min-height: 200px;
  margin: 22px auto 0;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--gold);
  background: #1a1a1a;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.local-photo-box img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  display: block;
}

/* 2 Columnas exactas en celular (como Ibiza Comidas Rápidas) */
@media (max-width: 600px) {
  .menu-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .img-wrapper {
    height: 130px !important;
  }

  .card-body {
    padding: 10px !important;
  }

  .card-title {
    font-size: 0.85rem !important;
    line-height: 1.25 !important;
  }

  .card-desc {
    font-size: 0.72rem !important;
    margin-bottom: 8px !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .card-select {
    padding: 6px 8px !important;
    font-size: 0.75rem !important;
  }

  .card-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .card-price {
    font-size: 1rem !important;
    text-align: center;
  }

  .btn-add {
    width: 100%;
    padding: 8px 10px !important;
    font-size: 0.8rem !important;
  }
}

