/* ============================================================
   Pizza X — Sistema de diseño
   Línea visual estilo "Hell Pizza": negro, hueso y rojo.
   ============================================================ */

/* ---------- Fuentes ---------- */
@font-face { font-family: "Uxum Grotesque"; src: url("../fonts/uxum-grotesque-300.otf") format("opentype"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Uxum Grotesque"; src: url("../fonts/uxum-grotesque-400.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Uxum Grotesque"; src: url("../fonts/uxum-grotesque-500.otf") format("opentype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Uxum Grotesque"; src: url("../fonts/uxum-grotesque-600.otf") format("opentype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Uxum Grotesque"; src: url("../fonts/uxum-grotesque-700.otf") format("opentype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Citrus Gothic"; src: url("../fonts/citrus-gothic.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "H74 Justified"; src: url("../fonts/h74-justified.otf") format("opentype"); font-display: swap; }

/* ---------- Variables ---------- */
:root {
  --black: #000000;
  --bone: #e1d8b7;
  --bone-dim: #b8b195;
  --red: #c80613;
  --red-bright: #e30613;
  --surface: #0d0d0d;
  --surface-2: #161616;
  --line: rgba(225, 216, 183, 0.18);
  --font-body: "Uxum Grotesque", system-ui, sans-serif;
  --font-display: "Citrus Gothic", "Uxum Grotesque", sans-serif;
  --maxw: 1180px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--bone);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--red); }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.display { font-family: var(--font-display); letter-spacing: .04em; text-transform: uppercase; }
.text-red { color: var(--red); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ============================================================
   Header
   ============================================================ */
/* Bloque superior fijo (header + categorías) */
.sticky-top {
  position: sticky; top: 0; z-index: 60;
  background: var(--black);
}
.site-header {
  position: relative; z-index: 50;
  background: var(--black);
}
.header-top {
  display: flex; align-items: center; justify-content: center;
  padding: 10px 20px; max-width: var(--maxw); margin: 0 auto;
}
.header-logo { justify-self: center; }
.header-logo img { height: 44px; width: auto; }
/* Carrito anclado a la altura de la barra de categorías */
.header-right {
  position: absolute; right: 20px; bottom: -49px; height: 49px;
  display: flex; align-items: center; justify-content: flex-end;
  z-index: 70;
}

.icon-btn { display: inline-flex; align-items: center; gap: 8px; color: var(--bone); font-size: .95rem; }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:hover { color: var(--red); }

.cart-btn { position: relative; }
.cart-count {
  position: absolute; top: -8px; right: -10px; min-width: 18px; height: 18px;
  background: var(--red); color: #fff; border-radius: 999px; font-size: .72rem;
  display: flex; align-items: center; justify-content: center; padding: 0 5px; font-weight: 700;
}

/* Esqueleto en el carrito: el carrito queda FIJO, solo giran las ruedas
   y el rastro indica que avanza hacia la izquierda */
.cart-btn .cart-ico {
  color: var(--red); display: inline-flex; position: relative;
}
/* icono del carrito grande y detallado */
.cart-btn .cart-ico svg { width: 52px; height: auto; }
.account-btn { color: var(--bone); }

/* Ruedas girando (hacia la izquierda = sentido antihorario) */
.cart-ico .cart-wheel {
  transform-box: fill-box; transform-origin: center;
  animation: wheel-spin .6s linear infinite;
}
@keyframes wheel-spin { to { transform: rotate(-360deg); } }

/* Rastro de velocidad: aparece a la derecha y se desvanece hacia la izquierda */
.cart-ico .cart-trail { animation: trail-move .6s linear infinite; }
@keyframes trail-move {
  0%   { opacity: 0; transform: translateX(2px); }
  35%  { opacity: .9; }
  100% { opacity: 0; transform: translateX(-3px); }
}
@media (prefers-reduced-motion: reduce) {
  .cart-ico .cart-wheel, .cart-ico .cart-trail { animation: none; }
  .cart-ico .cart-trail { opacity: .5; }
}

/* Barra de método de pedido (Delivery › Retiro) */
.order-bar {
  background: var(--black);
}
.order-bar-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 9px 20px;
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: nowrap;
}
.method-pill {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .05em;
  font-size: .82rem; padding: 7px 18px; border-radius: 4px;
  border: 1px solid var(--bone-dim); color: var(--bone); white-space: nowrap; transition: all .15s;
}
.method-pill.active { background: var(--bone); color: #111; border-color: var(--bone); }
.method-pill:hover { color: var(--red); border-color: var(--red); }
.method-pill.active:hover { background: var(--bone); color: #111; }
.order-arrow { display: inline-flex; color: var(--red); }
.order-arrow svg { width: 16px; height: 16px; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative; text-align: center; padding: 100px 20px 120px;
  background: var(--black);
  overflow: hidden;
}
/* patrón punk de fondo */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: url("../img/hero.png") center/cover no-repeat;
  opacity: .22;
}
/* glow rojo + viñeta para que el logo resalte sobre el patrón */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(60% 60% at 50% 45%, rgba(200,6,19,.28), transparent 60%),
    radial-gradient(120% 120% at 50% 50%, transparent 35%, rgba(0,0,0,.75) 100%);
}
.hero > * { position: relative; z-index: 2; }
.hero img.hero-logo { height: clamp(260px, 44vw, 470px); width: auto; margin: 0 auto; filter: drop-shadow(0 10px 32px rgba(0,0,0,.7)) drop-shadow(0 0 26px rgba(200,6,19,.45)); }
.hero h1 { font-family: var(--font-display); font-size: clamp(2.4rem, 7vw, 4.6rem); line-height: .95; text-transform: uppercase; letter-spacing: .02em; }
.hero h1 .x { color: var(--red); }
.hero p.tagline { margin-top: 14px; font-size: 1.05rem; color: var(--bone-dim); letter-spacing: .04em; }
.hero .hero-meta { margin-top: 22px; display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; font-size: .9rem; color: var(--bone-dim); }
.hero .hero-meta a { display: inline-flex; align-items: center; gap: 7px; }
.hero .hero-meta svg { width: 16px; height: 16px; }

/* ============================================================
   Navegación de categorías
   ============================================================ */
.cat-nav {
  position: relative; z-index: 40;
  background: var(--black);
}
.cat-nav ul {
  max-width: var(--maxw); margin: 0 auto; padding: 0 12px;
  display: flex; align-items: center; justify-content: center; flex-wrap: nowrap;
  gap: 2px; overflow-x: auto; scrollbar-width: none;
}
.cat-nav ul::-webkit-scrollbar { display: none; }
.cat-nav li[data-cat] {
  padding: 15px 14px; white-space: nowrap; cursor: pointer;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .05em;
  font-size: .95rem; color: var(--bone-dim); transition: color .15s;
}
.cat-nav li[data-cat]:hover { color: var(--bone); }
.cat-nav li[data-cat].active { color: var(--red); }
.cat-nav .nav-sep { display: flex; align-items: center; color: var(--red); pointer-events: none; }
.cat-nav .nav-sep svg { width: 9px; height: 9px; opacity: .85; }

/* ============================================================
   Menú
   ============================================================ */
.menu-wrap { padding: 38px 0 80px; }
.category { margin-bottom: 40px; scroll-margin-top: calc(var(--sticky-h, 180px) + 12px); }

/* ============================================================
   Pizza del Día
   ============================================================ */
.pizza-dia { margin-bottom: 52px; scroll-margin-top: calc(var(--sticky-h, 180px) + 12px); }
.pizza-dia-card {
  display: grid; grid-template-columns: 220px 1fr; gap: 26px; align-items: center;
  max-width: 760px; margin: 0 auto; padding: 22px;
  border: 1px solid var(--red); border-radius: 14px;
  background: radial-gradient(120% 120% at 0% 0%, rgba(200,6,19,.18), transparent 60%), rgba(255,255,255,.02);
  box-shadow: 0 0 28px rgba(200,6,19,.18);
}
.pizza-dia-card.empty { grid-template-columns: 1fr; text-align: center; color: var(--bone-dim); }
.pizza-dia-card .pdd-photo { display: flex; justify-content: center; }
.pizza-dia-card .item-img { width: 200px; height: 200px; object-fit: contain; }
.pdd-day {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .14em;
  font-size: .8rem; color: var(--red); margin-bottom: 6px;
}
.pdd-name {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .02em;
  font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1; margin-bottom: 8px;
}
.pdd-desc { color: var(--bone-dim); font-size: .92rem; margin-bottom: 12px; }
.pdd-foot { display: flex; align-items: center; gap: 18px; margin-top: 14px; }
.pdd-price { font-family: var(--font-display); font-size: 1.7rem; color: var(--bone); }
@media (max-width: 600px) {
  .pizza-dia-card { grid-template-columns: 1fr; text-align: center; }
  .pizza-dia-card .pdd-foot { justify-content: center; }
}

/* Tarjeta de método deshabilitada (delivery cuando es solo retiro) */
.method-card.disabled { opacity: .4; pointer-events: none; filter: grayscale(1); }

/* ---------- Promo 2x1 fin de semana ---------- */
.promo2x1 {
  max-width: 860px; margin: 0 auto; padding: 22px;
  border: 1px solid var(--red); border-radius: 14px;
  background: radial-gradient(120% 120% at 0% 0%, rgba(200,6,19,.18), transparent 60%), rgba(255,255,255,.02);
  box-shadow: 0 0 28px rgba(200,6,19,.18);
}
.promo-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.promo-tag.big {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .03em;
  font-size: clamp(1.4rem, 4vw, 2rem); color: var(--bone); line-height: 1;
}
.promo-sub { color: var(--bone-dim); font-size: .92rem; margin-bottom: 16px; }

/* Carrusel */
.promo-carousel { position: relative; }
.carousel-track {
  display: flex; gap: 14px; overflow-x: auto; padding: 6px 2px 14px;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.promo-slide {
  flex: 0 0 172px; scroll-snap-align: start; position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 12px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line); background: rgba(0,0,0,.25);
  color: var(--bone); transition: transform .25s ease, border-color .2s, box-shadow .2s;
}
.promo-slide:hover { transform: translateY(-3px); border-color: var(--bone-dim); }
.promo-slide.selected {
  border-color: var(--red); box-shadow: 0 0 0 1px var(--red), 0 0 18px rgba(200,6,19,.35);
  transform: translateY(-3px) scale(1.02);
}
/* mismas dimensiones y forma que las fotos del resto del menú (148x116, cover, radio 6px) */
.promo-slide .ps-photo { position: relative; width: 148px; height: 116px; }
.promo-slide .ps-photo .item-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.promo-slide .ps-photo .photo-placeholder {
  position: absolute; inset: 0; border-radius: 6px;
  background: radial-gradient(120% 80% at 50% 0%, #2a2a2a 0%, #161616 45%, #0a0a0a 100%);
  background-repeat: no-repeat; background-position: center 42%; background-size: 64px;
  background-blend-mode: luminosity;
}
.promo-slide .ps-name {
  font-family: var(--font-display); text-transform: uppercase; font-size: .82rem;
  letter-spacing: .03em; text-align: center; line-height: 1.1;
}
.promo-slide .ps-check {
  position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; z-index: 2;
  border-radius: 50%; background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(.5); transition: all .2s ease;
}
.promo-slide .ps-check svg { width: 14px; height: 14px; }
.promo-slide.selected .ps-check { opacity: 1; transform: scale(1); }

/* Botón "i" para ver ingredientes (solo en móvil) */
.promo-slide .ps-info {
  position: absolute; top: 6px; left: 6px; z-index: 4;
  width: 22px; height: 22px; border-radius: 50%;
  display: none; align-items: center; justify-content: center;
  background: rgba(10,10,10,.7); border: 1px solid var(--bone-dim); color: var(--bone);
  font-family: var(--font-display); font-size: .75rem; line-height: 1; cursor: pointer;
  transition: all .15s;
}
/* Overlay de ingredientes sobre la foto */
.promo-slide .ps-ingredients {
  position: absolute; inset: 0; z-index: 3; border-radius: 6px;
  background: rgba(8,8,8,.93); color: var(--bone);
  display: flex; flex-direction: column; justify-content: center; gap: 3px;
  padding: 10px; text-align: left;
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.promo-slide .ps-ingredients b {
  color: var(--red); font-family: var(--font-display); text-transform: uppercase;
  font-size: .6rem; letter-spacing: .08em;
}
.promo-slide .ps-ingredients span { font-size: .66rem; line-height: 1.3; color: var(--bone-dim); }

/* Escritorio (con hover y pantalla amplia): sin botón "i", ingredientes al pasar el mouse */
@media (hover: hover) and (min-width: 721px) {
  .promo-slide:hover .ps-ingredients { opacity: 1; }
}
/* Móvil (sin hover o pantalla angosta): botón "i" visible y se abre al tocar la foto */
@media (hover: none), (max-width: 720px) {
  .promo-slide .ps-info { display: flex; }
  .promo-slide.show-ingr .ps-ingredients { opacity: 1; }
}

.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  background: var(--black); border: 1px solid var(--red); color: var(--red);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.carousel-arrow svg { width: 18px; height: 18px; }
.carousel-arrow.prev { left: -10px; }
.carousel-arrow.next { right: -10px; }
.carousel-arrow:hover { background: var(--red); color: #fff; }

/* El círculo queda quieto; solo se mueve la flecha interna para invitar a apretar */
.carousel-arrow.next svg { animation: arrow-nudge-r 1.1s ease-in-out infinite; }
.carousel-arrow.prev svg { transform: scaleX(-1); animation: arrow-nudge-l 1.1s ease-in-out infinite; }
.carousel-arrow:hover svg { animation: none; }
@keyframes arrow-nudge-r {
  0%, 100% { transform: translateX(-3px); }
  50%      { transform: translateX(4px); }
}
@keyframes arrow-nudge-l {
  0%, 100% { transform: translateX(3px) scaleX(-1); }
  50%      { transform: translateX(-4px) scaleX(-1); }
}
@media (prefers-reduced-motion: reduce) {
  .carousel-arrow svg { animation: none; }
}
.size-pill.locked { cursor: default; }

/* Pie de promo */
.promo-foot { margin-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.promo-sizes { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--bone-dim); font-size: .85rem; }
.size-pill {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em;
  font-size: .76rem; padding: 6px 14px; border-radius: 4px;
  border: 1px solid var(--bone-dim); color: var(--bone); cursor: pointer; transition: all .15s;
}
.size-pill.active { background: var(--bone); color: #111; border-color: var(--bone); }
.promo-selection { font-size: .95rem; color: var(--bone); min-height: 1.2em; }
.promo-cta { display: flex; align-items: center; gap: 18px; }
.promo-closed { margin-top: 14px; color: #e0a200; font-size: .9rem; font-weight: 600; }

@media (max-width: 600px) {
  .promo-slide { flex-basis: 130px; }
  .promo-slide .ps-photo, .promo-slide .ps-photo img { width: 92px; height: 92px; }
}
.category-title {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em;
  font-size: clamp(1.9rem, 4.5vw, 2.8rem); text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 28px;
}
.category-title .bolt { display: inline-flex; color: var(--red); }
.category-title .bolt svg { width: clamp(16px, 2.2vw, 22px); height: auto; }
.category-title .bolt.left { transform: scaleX(-1); }
.group-title {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em;
  font-size: 1.15rem; color: var(--red); margin: 26px 0 14px; text-align: center;
}
/* bajada/tagline en rojo bajo el título de categoría — misma letra que los títulos de grupo */
.category-tagline {
  text-align: center; color: var(--red); margin: -10px 0 18px;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em;
  font-size: 1.15rem;
}
.items-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; }
/* grupo con un solo item (ej. Arma tu Maldita Pizza) — centrado bajo el título */
.items-grid.single { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }

.menu-item {
  display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line);
  cursor: pointer; align-items: stretch; justify-content: space-between;
}
.menu-item:hover .item-name { color: var(--red); }
.item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.item-head { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.item-name {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .02em;
  font-size: 1.25rem; transition: color .15s; line-height: 1.05;
}
.item-badge {
  font-family: var(--font-body); font-weight: 700; font-size: .72rem; line-height: 1;
  text-transform: uppercase; letter-spacing: .03em;
  background: var(--red-bright); color: #fff; padding: 5px 10px; border-radius: 4px;
  white-space: nowrap; margin-top: 2px; box-shadow: 0 1px 2px rgba(0,0,0,.45);
}
/* Badge "Popular" estilo pincelada */
.item-badge.popular {
  background: var(--red-bright); color: #fff; transform: rotate(-2deg);
  border-radius: 3px 9px 4px 8px; padding: 5px 12px; font-size: .72rem;
  box-shadow: 0 2px 4px rgba(0,0,0,.5);
}
.item-desc { color: var(--bone-dim); font-size: .9rem; margin-top: 8px; font-weight: 300; }
.item-price { margin-top: auto; padding-top: 12px; font-size: .95rem; color: var(--bone); font-weight: 600; }
.item-price .from { color: var(--bone-dim); font-weight: 300; font-size: .82rem; }

/* Slot de foto con botón "+" superpuesto */
.item-photo {
  position: relative; flex-shrink: 0; width: 148px; height: 116px; align-self: center;
}
.photo-placeholder {
  position: absolute; inset: 0; border-radius: 6px;
  background: radial-gradient(120% 80% at 50% 0%, #2a2a2a 0%, #161616 45%, #0a0a0a 100%);
  background-blend-mode: normal;
  background-repeat: no-repeat; background-position: center 42%; background-size: 64px;
  opacity: 1; display: block;
}
.item-photo .photo-placeholder::after {
  content: ""; position: absolute; inset: 0; border-radius: 6px;
  box-shadow: inset 0 -20px 30px -18px #000; pointer-events: none;
}
/* el logo se ve translúcido como placeholder */
.photo-placeholder { background-blend-mode: luminosity; }
/* fotos reales de pizza */
.item-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  border-radius: 6px; display: block;
}
.item-img::after {
  content: ""; position: absolute; inset: 0; border-radius: 6px;
  box-shadow: inset 0 -24px 32px -14px rgba(0,0,0,0.7); pointer-events: none;
}

.add-btn {
  position: absolute; right: -10px; bottom: -10px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bone); color: var(--red); border: none;
  display: flex; align-items: center; justify-content: center;
  line-height: 0; transition: transform .12s, background .15s;
  box-shadow: 0 3px 10px rgba(0,0,0,.5);
}
.add-btn:hover { background: #fff; transform: scale(1.08); }
.add-btn svg { width: 22px; height: 22px; display: block; stroke-width: 3; }

/* ============================================================
   Botón genérico
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .06em;
  padding: 14px 28px; border-radius: 4px; font-size: .95rem; transition: all .15s; cursor: pointer;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-bright); color: #fff; }
.btn-red:disabled { background: #3a3a3a; color: #777; cursor: not-allowed; }
.btn-ghost { border: 1px solid var(--line); color: var(--bone); }
.btn-ghost:hover { border-color: var(--red); color: var(--red); }
.btn-block { width: 100%; }

/* ============================================================
   Drawer del carrito
   ============================================================ */
.overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 90;
  opacity: 0; visibility: hidden; transition: opacity .25s;
}
.overlay.open { opacity: 1; visibility: visible; }

.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: 420px; max-width: 92vw;
  background: var(--surface); border-left: 1px solid var(--line); z-index: 100;
  transform: translateX(100%); transition: transform .28s ease; display: flex; flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px; border-bottom: 1px solid var(--line);
}
.cart-header h2 { font-family: var(--font-display); text-transform: uppercase; font-size: 1.3rem; letter-spacing: .04em; }
.cart-close { font-size: 1.6rem; line-height: 1; color: var(--bone-dim); }
.cart-close:hover { color: var(--red); }
.cart-items { flex: 1; overflow-y: auto; padding: 8px 20px; }
.cart-empty { text-align: center; color: var(--bone-dim); padding: 60px 20px; }

.cart-line { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-line .cl-body { flex: 1; min-width: 0; }
.cart-line .cl-name { font-weight: 600; }
.cart-line .cl-variant { font-size: .82rem; color: var(--bone-dim); }
.cart-line .cl-price { margin-top: 6px; font-size: .9rem; }
.qty {
  display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; margin-top: 8px;
}
.qty button { width: 28px; height: 28px; font-size: 1.1rem; color: var(--bone); }
.qty button:hover { color: var(--red); }
.qty span { min-width: 28px; text-align: center; font-size: .9rem; }
.cl-remove { color: var(--bone-dim); font-size: .78rem; margin-top: 8px; display: inline-block; }
.cl-remove:hover { color: var(--red); }

.cart-footer { padding: 20px; border-top: 1px solid var(--line); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.cart-total .lbl { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em; }
.cart-total .amount { font-size: 1.5rem; font-weight: 700; }

/* ============================================================
   Modal de producto
   ============================================================ */
.modal {
  position: fixed; inset: 0; z-index: 110; display: none;
  align-items: center; justify-content: center; padding: 20px;
}
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.7); }
.modal-card {
  position: relative; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px;
  width: 100%; max-width: 440px; max-height: 90vh; overflow-y: auto; padding: 26px;
}
.modal-card h3 { font-family: var(--font-display); text-transform: uppercase; font-size: 1.6rem; letter-spacing: .03em; }
.modal-card .m-desc { color: var(--bone-dim); font-size: .92rem; font-weight: 300; margin-top: 8px; }
.modal-close { position: absolute; top: 14px; right: 16px; font-size: 1.6rem; color: var(--bone-dim); }
.modal-close:hover { color: var(--red); }
.variant-list { margin: 22px 0; display: flex; flex-direction: column; gap: 10px; }
.variant {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 5px; cursor: pointer; transition: all .15s;
}
.variant:hover { border-color: var(--bone-dim); }
.variant.selected { border-color: var(--red); background: rgba(200,6,19,.08); }
.variant .v-label { display: flex; align-items: center; gap: 10px; }
.variant .radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--bone-dim); position: relative; }
.variant.selected .radio { border-color: var(--red); }
.variant.selected .radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--red); }
.variant .v-price { font-weight: 600; }
.modal-qty { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 18px; }

/* ---------- Bloques de ingredientes en modal ---------- */
.ingr-block { margin: 18px 0 4px; }
.ingr-block-title {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: .72rem; letter-spacing: .1em; color: var(--bone-dim);
  margin-bottom: 10px; display: flex; align-items: center; gap: 8px;
}
.ingr-price-label { color: var(--red); font-size: .68rem; }
.ingr-min-hint {
  font-size: .74rem; color: var(--red); margin: 0 0 10px;
  font-family: var(--font-body); letter-spacing: 0;
}
.ingr-chips { display: flex; flex-wrap: wrap; gap: 7px; }
/* ingredientes agrupados por categoría (Carnes, Quesos, Verduras, Salsas) */
.ingr-extras-groups { display: flex; flex-direction: column; gap: 14px; }
.extra-cat-title {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: .78rem; letter-spacing: .12em; color: var(--red);
  margin-bottom: 8px; padding-bottom: 5px; border-bottom: 1px solid var(--line);
}
/* Bebidas: sabores agrupados (con/sin azúcar) con cantidad por sabor */
.flavor-group { margin-bottom: 14px; }
.flavor-rows { display: flex; flex-direction: column; gap: 4px; }
.flavor-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 4px 4px 10px; border-radius: 8px; border: 1px solid transparent;
}
.flavor-row.active { border-color: var(--line); background: rgba(255,255,255,.03); }
.flavor-row .fr-name { font-size: .9rem; color: var(--bone); }
.flavor-row.disabled .fr-name { color: var(--bone-dim); text-decoration: line-through; }
.flavor-row .fr-out { font-size: .78rem; color: var(--red); font-style: italic; }
.qty.small button { width: 24px; height: 24px; font-size: 1rem; }
.qty.small span { min-width: 22px; font-size: .85rem; }

.extra-chip em { font-style: normal; color: var(--bone-dim); font-size: .72rem; }
/* extra no disponible (pausado por el admin) */
.ingr-chip.extra-chip.disabled {
  opacity: .45; cursor: not-allowed; text-decoration: line-through;
  border-style: dashed; color: var(--bone-dim);
}
.ingr-chip.extra-chip.disabled em { color: var(--red); text-decoration: none; font-style: italic; }
.extra-chip.added em { color: #4caf50; }
/* chips de salsa — acento ámbar */
.sauce-chip:hover { border-color: #e0a200; color: #e0a200; }
.sauce-chip.added {
  border-color: #e0a200; background: rgba(224,162,0,.12); color: #e0a200; font-weight: 600;
}

.ingr-chip {
  font-size: .78rem; padding: 5px 12px; border-radius: 20px; border: 1px solid var(--line);
  background: transparent; color: var(--bone); cursor: pointer;
  transition: all .15s; font-family: var(--font-body); white-space: nowrap;
}

/* quitar ingrediente — tachado rojo al activar */
.remove-chip:hover { border-color: var(--red); color: var(--red); }
.remove-chip.removed {
  border-color: var(--red); color: var(--red);
  text-decoration: line-through; text-decoration-color: var(--red);
  text-decoration-thickness: 2px; opacity: .75;
}

/* agregar extra */
.extra-chip:hover { border-color: #4caf50; color: #4caf50; }
.extra-chip.added {
  border-color: #4caf50; background: rgba(76,175,80,.12); color: #4caf50; font-weight: 600;
}

/* flash "¡Agregado! 🤘" */
.ingr-added-flash {
  background: var(--red); color: #fff; font-size: .78rem; font-weight: 600;
  padding: 5px 12px; border-radius: 20px; pointer-events: none;
  animation: flash-in .15s ease, flash-out .3s ease .7s forwards;
}
@keyframes flash-in { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }
@keyframes flash-out { to { opacity:0; transform:translateY(-6px); } }

/* ---------- Carrito — quitados y extras ---------- */
.cl-removed { display: flex; flex-wrap: wrap; gap: 4px; margin: 3px 0; }
.cl-removed span {
  font-size: .72rem; color: var(--red); text-decoration: line-through;
  text-decoration-color: var(--red); opacity: .8;
}
.cl-sauces { font-size: .72rem; color: #e0a200; margin: 3px 0; }
.cl-extras { display: flex; flex-wrap: wrap; gap: 4px; margin: 3px 0; }
.cl-extras span { font-size: .72rem; color: #4caf50; }
.cl-extras em { font-style: normal; color: var(--bone-dim); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--line); background: var(--black);
  padding: 40px 40px 30px; margin-top: 40px;
  display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center;
}
.footer_wordmark {
  color: var(--bone); display: inline-flex; align-items: center;
}
.footer_wordmark .footer-logo-img {
  height: 56px; width: auto; display: block; object-fit: contain;
}
.footer_wordmark:hover { color: var(--bone); }

/* Columnas: Menú · Contacto · Dónde estamos · Síguenos */
.footer_cols {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 48px;
  width: 100%; max-width: var(--maxw);
}
.footer_col { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.footer_col-title {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em;
  font-size: .72rem; color: var(--red);
}
.footer_col a {
  font-size: .9rem; color: var(--bone); transition: color .15s;
}
.footer_col a:hover { color: var(--red); }
.footer_hours .hours-line { font-size: .82rem; color: var(--bone-dim); line-height: 1.6; }
.footer_col .follow_items { display: flex; gap: 10px; justify-content: center; }
.footer_col .follow_items a {
  width: 34px; height: 34px; border-radius: 4px; background: var(--bone); color: #111;
  display: flex; align-items: center; justify-content: center; transition: all .15s;
}
.footer_col .follow_items a:hover { background: var(--red); color: #fff; }
.footer_col .follow_items svg { width: 18px; height: 18px; }

.footer_copy {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .05em;
  font-size: .72rem; color: var(--bone-dim); line-height: 1.7;
  border-top: 1px solid var(--line); padding-top: 22px; width: 100%; max-width: var(--maxw);
}
.footer_copy a { color: var(--bone); }
.footer_copy a:hover { color: var(--red); }

/* ============================================================
   Checkout
   ============================================================ */
.page-head { padding: 40px 0 20px; text-align: center; }
.page-head h1 { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(2rem,5vw,3rem); letter-spacing: .03em; }
.checkout-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; padding-bottom: 80px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 26px; }
.panel + .panel { margin-top: 22px; }
.panel h3 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em; font-size: 1.25rem; margin-bottom: 18px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: .82rem; color: var(--bone-dim); margin-bottom: 6px; letter-spacing: .03em; }
.field input, .field textarea, .field select {
  width: 100%; background: var(--black); border: 1px solid var(--line); border-radius: 5px;
  color: var(--bone); padding: 12px 14px; font-family: inherit; font-size: .95rem;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--red); }
.field textarea { resize: vertical; min-height: 70px; }
.field .err { color: var(--red-bright); font-size: .78rem; margin-top: 5px; display: none; }
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid textarea { border-color: var(--red-bright); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.method-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
.method-card {
  border: 1px solid var(--line); border-radius: 6px; padding: 18px; text-align: center; cursor: pointer; transition: all .15s;
}
.method-card:hover { border-color: var(--bone-dim); }
.method-card.selected { border-color: var(--red); background: rgba(200,6,19,.08); }
.method-card svg { width: 32px; height: 32px; margin: 0 auto 10px; color: var(--bone); }
.method-card .mc-title { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em; }
.method-card .mc-sub { font-size: .8rem; color: var(--bone-dim); margin-top: 4px; }
.puntox-address { margin-top: 6px; font-size: .85rem; color: var(--red); }
.btn-pay { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.btn-pay svg { width: 20px; height: 20px; }

.summary-line { display: flex; justify-content: space-between; padding: 10px 0; font-size: .92rem; border-bottom: 1px solid var(--line); }
.summary-line .s-name { color: var(--bone); }
.summary-line .s-name small { color: var(--bone-dim); display: block; }
.summary-sub { display: flex; justify-content: space-between; padding: 8px 0; font-size: .9rem; color: var(--bone-dim); }
.summary-sub[hidden] { display: none; }
.summary-total { display: flex; justify-content: space-between; padding-top: 14px; margin-top: 8px; border-top: 1px solid var(--line); }
.summary-total .lbl { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em; font-size: 1.05rem; }
.summary-total .amount { font-size: 1.6rem; font-weight: 700; }

.pay-note { font-size: .8rem; color: var(--bone-dim); margin-top: 14px; text-align: center; font-weight: 300; }
.pay-logos { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 10px; opacity: .8; }

/* Estados de pago (páginas de retorno) */
.status-page { text-align: center; padding: 80px 20px; max-width: 540px; margin: 0 auto; }
.status-page .status-icon { width: 86px; height: 86px; margin: 0 auto 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.status-page .status-icon.ok { background: rgba(40,167,69,.15); color: #34c759; }
.status-page .status-icon.err { background: rgba(200,6,19,.15); color: var(--red); }
.status-page .status-icon.pend { background: rgba(255,193,7,.15); color: #ffc107; }
.status-page .status-icon svg { width: 46px; height: 46px; }
.status-page h1 { font-family: var(--font-display); text-transform: uppercase; font-size: 2.2rem; margin-bottom: 12px; }
.status-page p { color: var(--bone-dim); margin-bottom: 26px; }

/* Página de pago exitoso: mano metalera + rayos rojos a los costados */
.success-page {
  max-width: 720px; display: flex; align-items: center; justify-content: center; gap: 22px;
}
.success-page .success-inner { flex: 0 1 480px; }
.success-page .rock-hand { font-size: 4.2rem; line-height: 1; margin-bottom: 14px; }
.success-page h1 .fire { font-size: 1.6rem; }
.success-page .side-bolts {
  display: flex; flex-direction: column; gap: 10px; color: var(--red); flex-shrink: 0;
}
.success-page .side-bolts svg { width: 22px; height: 28px; }
@media (max-width: 600px) {
  .success-page .side-bolts { flex-direction: row; }
  .success-page { flex-wrap: wrap; }
}

/* ============================================================
   Toast
   ============================================================ */
.toast-wrap { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  background: var(--red); color: #fff; padding: 12px 22px; border-radius: 6px; font-size: .9rem;
  box-shadow: 0 6px 24px rgba(0,0,0,.5); animation: toastIn .25s ease;
}
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .footer_cols { gap: 22px 32px; }
}
@media (max-width: 720px) {
  .items-grid { grid-template-columns: 1fr; gap: 0; }
  .header-logo img { height: 34px; }
  .header-left .label, .header-right .label { display: none; }
  .header-right { right: 14px; height: 40px; bottom: -40px; }
  .cart-btn .cart-ico svg { width: 42px; }
  .hero { padding: 70px 20px 88px; }
  .hero img.hero-logo { height: 160px; }
  .field-row { grid-template-columns: 1fr; }
  /* nav de categorías: acomodar en filas, sin scroll lateral */
  .cat-nav ul {
    flex-wrap: wrap; overflow-x: visible; justify-content: center;
    gap: 0 2px; padding: 4px 8px; row-gap: 0;
  }
  .cat-nav .nav-sep { display: none; }
  .cat-nav li[data-cat] { padding: 9px 9px; font-size: .82rem; letter-spacing: .03em; }
}
@media (max-width: 480px) {
  .method-cards { grid-template-columns: 1fr; }
  .footer_cols { flex-direction: column; gap: 22px; }
}
