:root {
  --red: #d32f2f;
  --green: #2e7d32;
  --dark: #121212;
  --dark2: #1c1c1c;
  --gold: #f4b400;
  --card-bg: #1e1e1e;
  --radius: 12px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  background: var(--dark);
  color: #f2f2f2;
}

/* ---------- HEADER ---------- */
.site-header {
  background: var(--dark2);
  border-bottom: 4px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; }
.logo-circle {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: conic-gradient(var(--red) 0 33%, #fff 33% 66%, var(--green) 66% 100%);
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--gold);
  flex-shrink: 0;
}
.logo-circle span {
  font-size: 8px;
  font-weight: 800;
  text-align: center;
  color: var(--dark);
  line-height: 1.1;
  background: #fff;
  border-radius: 50%;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
}
.brand-text h1 {
  color: #fff; font-size: 22px; margin: 0;
  font-weight: 900; letter-spacing: 0.5px; text-transform: uppercase;
}
.brand-text p { color: var(--gold); margin: 0; font-size: 12px; font-weight: 800; letter-spacing: 2px; }

.header-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.contact-pill {
  background: #2a2a2a;
  color: #fff;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid var(--gold);
}
.contact-pill.whatsapp { background: var(--green); border-color: var(--green); }
.cart-btn {
  background: var(--red);
  color: #fff;
  border: 1.5px solid var(--gold);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 15px;
  cursor: pointer;
  font-weight: 800;
}

/* ---------- HERO ---------- */
.hero {
  background:
    radial-gradient(circle at 50% 0%, rgba(244,180,0,0.10), transparent 60%),
    linear-gradient(135deg, var(--dark), #262626);
  color: #fff;
  padding: 40px 16px;
  text-align: center;
  border-bottom: 3px solid var(--gold);
}
.hero h2 {
  margin: 0 0 6px;
  font-size: 30px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 0 rgba(0,0,0,0.5);
}
.hero p { margin: 0 0 18px; color: #ccc; font-size: 15px; }
.promo-card {
  display: inline-block;
  background: linear-gradient(135deg, var(--red), #7e1717);
  border: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 16px 24px;
  max-width: 480px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
.promo-card .promo-photo {
  width: calc(100% + 48px);
  max-width: none;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin: -16px -24px 12px -24px;
  border-bottom: 2px solid var(--gold);
  display: block;
}
.promo-card .promo-day {
  color: var(--gold); font-weight: 900; font-size: 14px; letter-spacing: 2px;
}
.promo-card .promo-desc { font-size: 15px; margin: 8px 0; font-weight: 600; }
.promo-card .promo-price {
  font-size: 26px; font-weight: 900; color: #fff;
  text-shadow: 0 2px 0 rgba(0,0,0,0.4);
}
.promo-card button {
  margin-top: 10px;
  background: var(--gold);
  color: var(--dark);
  border: none;
  padding: 9px 18px;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.5px;
}

/* ---------- MENU ---------- */
.menu-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 16px 60px;
}
.menu-category { margin-bottom: 38px; }
.menu-category h3 {
  color: var(--gold);
  background: var(--dark2);
  border: 2px solid var(--red);
  display: inline-block;
  padding: 8px 18px;
  font-size: 19px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 8px;
}
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.menu-item {
  background: var(--card-bg);
  border: 1.5px solid #333;
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.35);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.15s;
}
.menu-item:hover { border-color: var(--gold); }
.menu-item .item-photo {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  margin: -14px -14px 4px -14px;
  width: calc(100% + 28px);
  border-bottom: 2px solid var(--gold);
}
.menu-item h4 { margin: 0; font-size: 15.5px; color: #f5f5f5; font-weight: 700; }
.menu-item select, .menu-item input[type=number] {
  padding: 7px;
  border-radius: 8px;
  border: 1px solid #444;
  font-size: 14px;
  background: #2a2a2a;
  color: #fff;
}
.item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.item-price { font-weight: 900; color: var(--gold); font-size: 17px; }
.extras-box {
  background: #262626;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.extras-title { font-size: 11.5px; font-weight: 800; color: var(--gold); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; }
.extra-row { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #ddd; font-weight: 500; cursor: pointer; }
.extra-row input { accent-color: var(--gold); }
.add-btn {
  background: var(--red);
  color: #fff;
  border: 1.5px solid var(--gold);
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12.5px;
  letter-spacing: 0.5px;
}
.add-btn:hover { background: var(--green); border-color: var(--green); }

/* ---------- CARRITO LATERAL ---------- */
.cart-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 90;
}
.cart-overlay.show { display: block; }

.cart-panel {
  position: fixed;
  top: 0; right: -420px;
  width: 400px; max-width: 92vw;
  height: 100%;
  background: var(--dark2);
  border-left: 3px solid var(--gold);
  z-index: 100;
  transition: right 0.25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 16px rgba(0,0,0,0.5);
}
.cart-panel.open { right: 0; }
.cart-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px; border-bottom: 2px solid var(--gold);
}
.cart-header h3 { color: var(--gold); text-transform: uppercase; font-weight: 900; margin: 0; }
.cart-header button { border: none; background: none; font-size: 18px; cursor: pointer; color: #fff; }
.cart-items { flex: 1; overflow-y: auto; padding: 10px 16px; }
.cart-line {
  display: flex; justify-content: space-between; gap: 8px;
  padding: 10px 0; border-bottom: 1px solid #333;
}
.cart-line .line-name { font-size: 13.5px; font-weight: 700; color: #fff; }
.cart-line .line-detail { font-size: 12px; color: #999; }
.cart-line .line-price { font-weight: 800; color: var(--gold); white-space: nowrap; }
.remove-line { border: none; background: none; color: var(--red); cursor: pointer; font-size: 12px; font-weight: 700; }
.cart-footer { padding: 16px; border-top: 2px solid var(--gold); }
.cart-total-row {
  display: flex; justify-content: space-between; font-weight: 900; font-size: 19px; margin-bottom: 12px; color: #fff;
}
.checkout-btn, .submit-order-btn {
  width: 100%;
  background: var(--red);
  color: #fff;
  border: 1.5px solid var(--gold);
  padding: 13px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.checkout-btn:disabled { background: #3a3a3a; border-color: #555; cursor: not-allowed; }

/* ---------- CHECKOUT MODAL ---------- */
.checkout-modal {
  display: none;
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--dark2);
  border: 2px solid var(--gold);
  width: 460px; max-width: 92vw;
  max-height: 88vh;
  overflow-y: auto;
  border-radius: var(--radius);
  z-index: 101;
  padding: 0;
}
.checkout-modal.show { display: block; }
.checkout-modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px; border-bottom: 2px solid var(--gold); position: sticky; top: 0; background: var(--dark2);
}
.checkout-modal-header h3 { color: var(--gold); text-transform: uppercase; font-weight: 900; margin: 0; }
.checkout-modal-header button { border: none; background: none; font-size: 18px; cursor: pointer; color: #fff; }
.checkout-form { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.checkout-form label { font-size: 13.5px; font-weight: 700; display: flex; flex-direction: column; gap: 4px; color: #ddd; }
.checkout-form input, .checkout-form textarea {
  padding: 9px; border-radius: 8px; border: 1px solid #444; font-size: 14px; font-family: inherit;
  background: #2a2a2a; color: #fff;
}
.checkout-form fieldset { border: 1.5px solid #444; border-radius: 8px; padding: 10px; }
.checkout-form legend { font-weight: 800; font-size: 13px; padding: 0 6px; color: var(--gold); text-transform: uppercase; }
.radio-row { flex-direction: row !important; align-items: center; gap: 8px !important; font-weight: 500 !important; color: #eee !important; }
.direccion-row { display: flex; flex-direction: column; gap: 6px; }
.ubicacion-btn {
  align-self: flex-start;
  background: var(--green);
  color: #fff;
  border: 1.5px solid var(--gold);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
}
.ubicacion-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.ubicacion-status { font-size: 12px; color: var(--gold); font-weight: 600; min-height: 14px; }
.nota-envio {
  font-size: 12px;
  color: #ffce54;
  background: #2a2410;
  border: 1px solid #6b5a1a;
  border-radius: 8px;
  padding: 8px 10px;
  margin: 6px 0 0;
  font-weight: 600;
}
.checkout-summary { background: #262626; border: 1px solid #444; border-radius: 8px; padding: 10px; font-size: 13px; color: #ddd; }
.checkout-total-row { display: flex; justify-content: space-between; font-weight: 900; margin-top: 8px; font-size: 17px; color: #fff; }
.checkout-error { color: #ff6b6b; font-size: 13px; min-height: 16px; font-weight: 700; }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--dark2);
  border-top: 3px solid var(--gold);
  color: #ccc;
  text-align: center;
  padding: 24px;
  font-size: 13px;
}
.site-footer strong { color: var(--gold); font-size: 16px; text-transform: uppercase; letter-spacing: 1px; }

@media (max-width: 480px) {
  .brand-text h1 { font-size: 18px; }
  .hero h2 { font-size: 23px; }
}
