:root {
  --cafe: #452A1C;
  --cafe-deep: #2E1B12;
  --tinta: #2B1810;
  --oliva: #6E7A46;
  --oliva-deep: #55603A;
  --arena: #ECD3A8;
  --crema: #F6E9D2;
  --papel: #FBF3E4;
  --line: rgba(43, 24, 16, 0.14);
  --line-light: rgba(246, 233, 210, 0.3);
  --radius: 6px;
  --font-display: 'Marcellus', Georgia, serif;
  --font-sans: 'Jost', -apple-system, BlinkMacSystemFont, sans-serif;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
}

img { display: block; max-width: 100%; }

a { color: inherit; }

button { font-family: var(--font-sans); cursor: pointer; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; margin: 0; }

:focus-visible { outline: 2px solid var(--oliva); outline-offset: 2px; }

.btn[hidden] { display: none; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius);
  border: none;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  min-height: 44px;
}
.btn--dark { background: var(--cafe); color: var(--crema); }
.btn--dark:hover { background: var(--cafe-deep); }
.btn--solid { background: var(--crema); color: var(--cafe); }

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: rgba(251, 243, 228, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.06em;
  text-decoration: none;
}
.nav__cta {
  background: var(--oliva);
  color: var(--crema);
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.nav__cta:hover { background: var(--oliva-deep); }

.nav__cart {
  position: relative;
  background: none;
  border: none;
  color: var(--tinta);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav__cart:hover { background: var(--arena); }
.nav__cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border-radius: 999px;
  background: var(--oliva);
  color: var(--crema);
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
}

/* CARRITO */
.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(43, 24, 16, 0.5);
  display: flex;
  justify-content: flex-end;
}
.cart-drawer[hidden] { display: none; }
.cart-drawer__panel {
  width: 100%;
  max-width: 380px;
  height: 100%;
  background: var(--papel);
  display: flex;
  flex-direction: column;
  padding: 22px;
  overflow-y: auto;
}
.cart-drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.cart-drawer__head h2 { font-size: 21px; }
.cart-drawer__empty { opacity: 0.6; font-size: 15px; }
.cart-list { list-style: none; margin: 0; padding: 0; flex: 1; }
.cart-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius); flex-shrink: 0; }
.cart-item__body { flex: 1; min-width: 0; }
.cart-item__name { margin: 0 0 2px; font-size: 14px; font-weight: 500; }
.cart-item__price { margin: 0 0 8px; font-size: 12px; opacity: 0.6; }
.cart-item__qty { display: flex; align-items: center; gap: 10px; }
.cart-item__qty button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--cream, var(--crema));
  font-size: 15px;
  line-height: 1;
}
.cart-item__qty button:disabled { opacity: 0.35; }
.cart-item__line-total { margin: 0; font-size: 14px; font-weight: 600; white-space: nowrap; }
.cart-drawer__foot { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 12px; }
.cart-drawer__total { display: flex; justify-content: space-between; font-size: 17px; font-weight: 600; margin-bottom: 14px; }
.cart-drawer__foot .btn { width: 100%; }

/* "agregar al carrito" — un solo componente para todo el sitio (héroe y
   catálogo): sin cantidad se ve la pastilla "Agregar"/precio con el ícono
   del carrito (el mismo look que ya tenía el héroe); en cuanto hay al menos
   1 se convierte en "$precio − [cantidad] +", sin cambiar de tamaño para no
   brincar el layout entre un estado y otro. */
.add-pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-radius: 999px;
  background: var(--crema);
  font-family: var(--font-sans);
}
.add-pill__idle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  border-radius: 999px;
  padding: 13px 20px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--cafe);
}
.add-pill__idle:hover { background: #fff; }
.add-pill__idle:active { transform: scale(0.98); }
.add-pill__idle.is-disabled { opacity: 0.5; cursor: not-allowed; color: var(--tinta); }
.add-pill__icon { display: inline-flex; flex-shrink: 0; }
.add-pill--active {
  gap: 8px;
  padding: 5px 8px 5px 16px;
}
.add-pill__price {
  font-size: 15px;
  font-weight: 600;
  color: var(--cafe);
  white-space: nowrap;
  margin-right: 2px;
}
.add-pill__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--papel);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1;
  color: var(--cafe);
}
.add-pill__btn:disabled { opacity: 0.35; cursor: not-allowed; }
.add-pill__input {
  width: 30px;
  border: none;
  background: transparent;
  color: var(--tinta);
  text-align: center;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  -moz-appearance: textfield;
}
.add-pill__input::-webkit-outer-spin-button,
.add-pill__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.stock-note { margin: 2px 0 0; font-size: 12px; color: var(--oliva); }
.stock-note--out { color: #9a3b2a; }

.btn--ghost-light {
  background: transparent;
  color: var(--crema);
  border: 1px solid var(--line-light);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
}
.btn--ghost-light:hover { border-color: var(--arena); }

/* mismo estilo "fantasma" que .btn--ghost-light pero para fondos claros
   (--papel) — ese usa texto crema, casi invisible fuera del ticket oscuro. */
.btn--ghost {
  background: transparent;
  color: var(--tinta);
  border: 1px solid var(--line);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
}
.btn--ghost:hover { border-color: var(--cafe); }

/* HERO */
.hero {
  /* Lo cambia js/app.js (initHero) según el producto activo en la ruleta —
     el color lo asigna el admin por producto (ver "Ruleta de la portada").
     El valor de aquí es solo el que se ve antes de que cargue el catálogo. */
  --hero-color: var(--cafe);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 900px 500px at 50% -10%, rgba(174, 197, 142, 0.16), transparent 60%),
    linear-gradient(180deg, var(--hero-color) 0%, color-mix(in srgb, var(--hero-color) 65%, black) 78%);
  transition: background 0.6s ease;
  color: var(--crema);
  padding: 22px 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
@media (prefers-reduced-motion: reduce) {
  .hero { transition: none; }
}

/* En móvil son solo contenedores de paso (el orden natural del documento ya
   apila kicker+stage y luego nombre+desc+CTA); toman forma de columnas
   lado a lado hasta escritorio — ver RESPONSIVE. */
.hero__visual, .hero__copy { width: 100%; }
.hero__visual { display: flex; flex-direction: column; align-items: center; }

.hero__icons {
  align-self: flex-end;
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}
.hero__icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-light);
  color: var(--crema);
  opacity: 0.8;
}
.hero__icons a:hover { opacity: 1; border-color: var(--arena); }

.hero__kicker {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--arena);
  opacity: 0.85;
}

/* the stage: pedestal + glow + product + floating flavor chips */
.stage {
  position: relative;
  width: 100%;
  max-width: 340px;
  height: 300px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.stage__mound {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 130px;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(236, 211, 168, 0.9), rgba(236, 211, 168, 0.35) 55%, transparent 78%);
  filter: blur(2px);
}
.stage__glow {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(174, 197, 142, 0.32), transparent 70%);
  filter: blur(8px);
}

.stage__product {
  position: relative;
  width: 208px;
  height: 262px;
  z-index: 2;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(246, 233, 210, 0.14), 0 30px 50px rgba(20, 10, 5, 0.55);
  touch-action: pan-y;
  cursor: grab;
}
.stage__product:active { cursor: grabbing; }
.stage__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.38s ease, transform 0.5s ease;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}
.stage__img.is-visible { opacity: 1; transform: scale(1); }

/* ---------- ruleta de productos (inspirada en .home-hero__marquee-row de
   osmo-v2.webflow.io, pero SIN giro continuo — el negocio lo pidió así
   explícitamente): 6 tarjetas repartidas cada 60° alrededor de un círculo;
   cada 3s, app.js gira ese círculo un paso (60°) en sentido horario para
   traer la SIGUIENTE tarjeta al frente, con una transición suave, y se
   queda quieta ahí los 3s completos — nunca en movimiento constante, así
   que sí se puede hacer clic sin pelear con la animación. */
.wheel {
  --wheel-radius: 150px;
  /* la tarjeta activa vive justo arriba del círculo (0°) — sin este aire,
     el overflow:hidden la corta a la mitad porque cae exacto en el borde
     de arriba del contenedor. */
  --wheel-top-offset: 44px;
  position: relative;
  width: 100%;
  max-width: 420px;
  /* Antes dejaba sitio como si se vieran varias tarjetas hasta abajo del
     círculo; ahora solo se ven la anterior y la siguiente (±60°, a media
     altura del radio) — con la tarjeta activa y el resto ocultas, ya no
     hace falta tanto alto, así queda más compacto el texto de abajo. */
  height: calc(var(--wheel-radius) * 0.72 + var(--wheel-top-offset));
  margin: 4px auto 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, black 65%, transparent 92%);
  mask-image: linear-gradient(to bottom, black 65%, transparent 92%);
}
.wheel__circle {
  position: absolute;
  top: var(--wheel-top-offset);
  left: 50%;
  width: calc(var(--wheel-radius) * 2);
  height: calc(var(--wheel-radius) * 2);
  margin-left: calc(var(--wheel-radius) * -1);
  transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1);
}
@media (prefers-reduced-motion: reduce) {
  .wheel__circle { transition: none; }
}

.wheel__item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 84px;
  height: 64px;
  margin-top: -32px;
  margin-left: -42px;
  padding: 0;
  border: 2px solid var(--line-light);
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 14px 26px rgba(20, 10, 5, 0.45);
  cursor: pointer;
  transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1), border-color 0.2s ease, opacity 0.4s ease;
}
/* La tarjeta activa (0°, justo arriba del círculo) queda oculta — es el
   mismo producto que ya se ve grande en .stage__product arriba, mostrarla
   también aquí se veía como una tarjeta duplicada asomándose detrás de la
   imagen. Solo quedan visibles la anterior y la siguiente, a los lados. */
.wheel__item.is-active { opacity: 0; pointer-events: none; }
/* Ángulo fijo de cada tarjeta dentro del círculo — POSITIVO a propósito:
   el negocio quiere que el siguiente producto (al que avanza solo cada 3s)
   entre siempre desde la DERECHA, nunca desde la izquierda. La tarjeta #2
   (el "siguiente" cuando la #1 está al frente) vive en +60° para terminar
   justo a la derecha del frente — ver goToIndex() en app.js, que gira
   .wheel__circle en sentido contrario (ángulo negativo) para traerla al
   centro. Igual que en la referencia, no se contra-rotan: la tarjeta que
   no está al frente se ve inclinada — con solo 6 tarjetas y la ventana
   recortando casi todo salvo el arco de arriba, la inclinación que
   realmente se alcanza a ver nunca pasa de los ±60-90°, se mantiene
   legible. */
.wheel__item:nth-child(1) { transform: rotate(0deg) translateY(calc(var(--wheel-radius) * -1)); }
.wheel__item:nth-child(2) { transform: rotate(60deg) translateY(calc(var(--wheel-radius) * -1)); }
.wheel__item:nth-child(3) { transform: rotate(120deg) translateY(calc(var(--wheel-radius) * -1)); }
.wheel__item:nth-child(4) { transform: rotate(180deg) translateY(calc(var(--wheel-radius) * -1)); }
.wheel__item:nth-child(5) { transform: rotate(240deg) translateY(calc(var(--wheel-radius) * -1)); }
.wheel__item:nth-child(6) { transform: rotate(300deg) translateY(calc(var(--wheel-radius) * -1)); }

.hero__name {
  margin: 26px 0 0;
  font-size: clamp(28px, 6vw, 36px);
}
.hero__desc {
  /* max-width sin margin:auto dejaba este bloque pegado a la izquierda de
     .hero__copy (que ocupa todo el ancho) — el texto se veía centrado
     consigo mismo, pero dentro de una caja angosta fuera de centro. */
  margin: 6px auto 26px;
  font-size: 15px;
  color: var(--arena);
  opacity: 0.9;
  max-width: 320px;
}

.hero__goto-category {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--arena);
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.85;
}
.hero__goto-category:hover { opacity: 1; }

.hero__headline {
  margin: 40px 0 0;
  padding-bottom: 44px;
  font-family: var(--font-display);
  font-size: clamp(40px, 11vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.01em;
}

/* TABS — vive adentro de .catalog (ver index.html); los márgenes negativos
   solo cancelan el padding de .catalog para que el nav quede pegado arriba
   del todo y sea sticky nada más mientras se ve el menú. */
.tabs {
  position: sticky;
  top: 61px;
  z-index: 30;
  display: flex;
  gap: 4px;
  margin: -40px -24px 40px;
  padding: 0 24px;
  background: var(--papel);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.tabs__item {
  white-space: nowrap;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 16px 14px 14px;
  font-size: 15px;
  color: var(--tinta);
  opacity: 0.6;
}
.tabs__item.is-active {
  opacity: 1;
  border-bottom-color: var(--cafe);
  font-weight: 500;
}

/* CATALOG */
.catalog { max-width: var(--max); margin: 0 auto; padding: 40px 24px 72px; }
.panel__desc { margin: 0 0 28px; font-size: 17px; opacity: 0.75; max-width: 520px; }

.menu-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.menu-actions .btn { flex: 1 1 200px; }

/* POPUP: pedir por delivery */
.delivery-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(43, 24, 16, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.delivery-modal[hidden] { display: none; }
.delivery-modal__card {
  background: var(--papel);
  border-radius: 10px;
  width: 100%;
  max-width: 380px;
  padding: 24px;
}
.delivery-modal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.delivery-modal__head h2 { font-size: 20px; }
.delivery-modal__close {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--tinta);
  width: 32px;
  height: 32px;
}
.delivery-modal__empty { font-size: 14px; opacity: 0.7; margin: 0; }
.delivery-modal__buttons { display: flex; flex-direction: column; gap: 10px; }
.delivery-modal__buttons .btn { width: 100%; }

.shelf-row { display: flex; flex-direction: column; }
.shelf-row__item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.shelf-row__item img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
}
/* Antes era ".shelf-row__item div" (cualquier div adentro) — cuando el
   stepper de cantidad (también un div) se agregó como hijo directo, ese
   selector genérico lo capturaba también y lo estiraba a todo el ancho de
   la fila. Con una clase explícita solo afecta al bloque de texto. */
.shelf-row__item__body { flex: 1; min-width: 0; }
.shelf-row__item h3 { font-size: 18px; margin-bottom: 4px; }
.shelf-row__item p { margin: 0; font-size: 14px; opacity: 0.7; }
.price { font-family: var(--font-sans); font-weight: 600; font-size: 16px; white-space: nowrap; margin: 0; }

.feature {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.feature img {
  flex: 1 1 340px;
  max-width: 420px;
  height: 380px;
  object-fit: cover;
  border-radius: 10px;
}
.feature__body { flex: 1 1 280px; min-width: 260px; }
.feature__body h3 { font-size: 26px; margin-bottom: 12px; }
.feature__body > p { margin: 0 0 22px; font-size: 16px; opacity: 0.8; max-width: 40ch; }

.price-ladder { margin: 0 0 26px; }
.price-ladder > div { display: flex; align-items: baseline; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.price-ladder dt { margin: 0; font-size: 14px; flex: 0 0 auto; }
.price-ladder dt::after {
  content: "";
  display: inline-block;
  width: 100%;
  margin: 0 8px -3px;
  border-bottom: 1px dotted var(--line);
}
.price-ladder > div { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; }
.price-ladder dd { margin: 0; font-weight: 600; font-size: 15px; grid-column: 3; }

.menu-list { list-style: none; margin: 0; padding: 0; max-width: 480px; }
.menu-list li { display: flex; align-items: baseline; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.menu-list__leader { flex: 1; border-bottom: 1px dotted var(--line); margin-bottom: 4px; }

.drink-list { display: flex; flex-direction: column; }
.drink {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.drink img { width: 76px; height: 76px; object-fit: cover; border-radius: var(--radius); flex-shrink: 0; }
.drink--plain::before {
  content: "";
  width: 76px;
  height: 76px;
  border-radius: var(--radius);
  background: var(--oliva);
  flex-shrink: 0;
}
.drink__body { flex: 1; min-width: 0; }
.drink__body h3 { font-size: 18px; margin-bottom: 4px; }
.drink__body p { margin: 0; font-size: 14px; opacity: 0.7; }
.drink__price { display: flex; flex-direction: column; gap: 2px; text-align: right; font-size: 14px; font-weight: 600; white-space: nowrap; }

/* PEDIDO — ticket */
.ticket {
  background: var(--oliva);
  color: var(--crema);
  padding: 56px 24px;
}
.ticket > * { max-width: 520px; margin-left: auto; margin-right: auto; }
.ticket { scroll-margin-top: 61px; }
.ticket h2 { font-size: 28px; margin-bottom: 18px; text-align: center; }

.checkout-steps {
  display: flex;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line-light);
}
.checkout-steps__item {
  flex: 1;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 10px 8px 12px;
  color: var(--crema);
  font: inherit;
  font-size: 15px;
  opacity: 0.6;
  cursor: pointer;
}
.checkout-steps__item.is-active { opacity: 1; font-weight: 600; border-bottom-color: var(--crema); }

.checkout-when { font-size: 15px; margin: -8px 0 20px; opacity: 0.9; }
.checkout-back-btn {
  display: block;
  margin: 6px auto 0;
  background: none;
  border: none;
  color: var(--crema);
  font: inherit;
  font-size: 14px;
  text-decoration: underline;
  opacity: 0.85;
  cursor: pointer;
}
#checkout-next-btn { margin-top: 4px; }
#delivery-panel { margin-top: 28px; }
.checkout-step .ticket__express { margin: 22px 0 0; text-align: center; }
.checkout-step .ticket__express-buttons { justify-content: center; }
.ticket__toggle { display: flex; gap: 10px; margin-bottom: 24px; }
.toggle-btn {
  flex: 1;
  background: transparent;
  color: var(--crema);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
}
.toggle-btn.is-active { background: var(--cafe); border-color: var(--cafe); }

.ticket__panel { margin-bottom: 24px; }
.ticket__panel h3 { font-size: 19px; margin-bottom: 10px; }
.ticket__panel p { margin: 0 0 12px; font-size: 15px; opacity: 0.9; }
.ticket__panel a { font-weight: 600; text-decoration: underline; }
.ticket__hours { line-height: 1.7; }

.geo-row { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
#geo-btn { flex-shrink: 0; }
.geo-row .ticket__status { flex: 1; margin: 0; }
.ticket__status {
  font-size: 14px;
  line-height: 1.6;
  padding: 12px 0 12px 14px;
  border-left: 3px solid var(--line-light);
  margin: 0 0 12px;
}
.ticket__status[data-state="in-zone"] { border-left-color: var(--crema); }
.ticket__status[data-state="out-zone"],
.ticket__status[data-state="denied"],
.ticket__status[data-state="unsupported"] { border-left-color: rgba(246, 233, 210, 0.5); opacity: 0.85; }
.ticket__fineprint { font-size: 12px; opacity: 0.6; }

.ticket__express { margin-bottom: 24px; }
.ticket__express > p { margin: 0 0 10px; font-size: 14px; opacity: 0.85; }
.ticket__express-buttons { display: flex; gap: 8px; flex-wrap: wrap; }

.checkout-summary {
  background: rgba(251, 243, 228, 0.1);
  border: 1px solid var(--line-light);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 24px;
}
.checkout-summary h3 { font-size: 17px; margin-bottom: 12px; }
.checkout-summary__list { list-style: none; margin: 0 0 12px; padding: 0; }
.checkout-summary__list li { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; border-bottom: 1px solid var(--line-light); }
.checkout-summary__empty { font-size: 14px; opacity: 0.7; margin: 0 0 12px; }
.checkout-summary__total { display: flex; justify-content: space-between; font-size: 18px; font-weight: 600; padding-top: 10px; border-top: 1px solid var(--line-light); }
.checkout-summary__total[hidden] { display: none; }
.checkout-summary__total:not(:last-child) { font-size: 15px; font-weight: 500; padding-bottom: 8px; }

.field--light input,
.field--light select,
.field--light textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 15px;
  padding: 11px 12px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: rgba(251, 243, 228, 0.95);
  color: var(--tinta);
}
.field--light textarea { resize: vertical; }
.field--light { margin-bottom: 16px; }
.field--light > span { display: block; font-size: 14px; margin-top: 10px; margin-bottom: 6px; }
.checkout-time { display: flex; gap: 10px; }
.checkout-time input { flex: 1.3; }
.checkout-time select { flex: 1; }

.phone-field { display: flex; gap: 8px; }
.phone-field__country { flex: 0 0 110px; }
.phone-field input { flex: 1; }

.discount-row { display: flex; gap: 8px; }
.discount-row input { flex: 1; text-transform: uppercase; }
.discount-status { margin: 6px 0 0; font-size: 13px; opacity: 0.8; }
.discount-status[data-tone="ok"] { color: var(--oliva); opacity: 1; }
.discount-status[data-tone="error"] { color: #9a3b2a; opacity: 1; }

.checkout-status { font-size: 14px; min-height: 20px; margin: 4px 0 12px; }

.field__hint { margin: 0 0 8px; font-size: 13px; opacity: 0.7; }
.checkout-calendar { margin-bottom: 10px; }
.checkout-calendar__head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 10px;
}
.checkout-calendar__head span { font-family: var(--font-display); font-size: 17px; }
.checkout-calendar__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  color: var(--crema);
  width: 30px;
  height: 30px;
  line-height: 1;
  font-size: 15px;
}
.checkout-calendar__nav:hover { border-color: var(--arena); }
.checkout-calendar__weekdays,
.checkout-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.checkout-calendar__weekdays span {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.6;
  padding-bottom: 6px;
}
.checkout-calendar__day {
  background: transparent;
  border: none;
  color: var(--crema);
  font-family: var(--font-sans);
  font-size: 14px;
  padding: 9px 0;
  border-radius: var(--radius);
}
.checkout-calendar__day.is-empty { visibility: hidden; }
.checkout-calendar__day:not(.is-disabled):not(.is-empty):hover { background: rgba(246, 233, 210, 0.12); }
.checkout-calendar__day.is-disabled { opacity: 0.25; cursor: default; }
.checkout-calendar__day.is-selected { background: var(--arena); color: var(--tinta); font-weight: 600; }

.checkout-time-ranges { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; }
.checkout-time-range {
  flex: 1 1 160px;
  background: transparent;
  color: var(--crema);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-sans);
}
.checkout-time-range.is-active { background: var(--cafe); border-color: var(--cafe); }

#co-map-box { margin-top: 12px; }
#co-map-hint { margin: 0 0 8px; font-size: 13px; opacity: 0.8; }
#co-map { height: 220px; border-radius: var(--radius); overflow: hidden; }
/* Leaflet pinta con position:absolute internamente — sin una altura fija
   el contenedor colapsa a 0px y el mapa nunca se ve. */
.leaflet-container { font-family: var(--font-sans); }
.checkout-pay-btn { width: 100%; margin-bottom: 10px; }
.checkout-pay-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* "pirámide": pagar arriba a todo el ancho, WhatsApp/Delivery abajo a la mitad cada uno */
.checkout-secondary-actions { display: flex; gap: 10px; }
.checkout-secondary-actions .btn { flex: 1; }

/* INSTAGRAM */
.social {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 24px;
  text-align: center;
}
.social__intro h2 { font-size: 26px; margin-bottom: 6px; }
.social__intro p { margin: 0 0 28px; opacity: 0.7; }
.social__frame {
  width: 100%;
  height: 460px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.social__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 380px;
  margin: 0 auto;
  padding: 40px 28px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: var(--arena);
}
.social__placeholder p { margin: 0; font-size: 15px; opacity: 0.8; }

/* FOOTER */
.footer {
  background: var(--cafe);
  color: var(--crema);
  padding: 44px 24px;
  text-align: center;
  font-size: 14px;
}
.footer__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.footer p { margin: 0 0 8px; opacity: 0.8; line-height: 1.6; }
.footer__tag { font-size: 12px; opacity: 0.5; }
.footer__social { display: flex; justify-content: center; gap: 10px; margin-bottom: 14px; }
.footer__social[hidden] { display: none; }
.footer__social a {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-light);
  border-radius: 50%;
  color: var(--crema);
  opacity: 0.85;
}
.footer__social a:hover { opacity: 1; }
.footer__social svg { width: 18px; height: 18px; }

/* RESPONSIVE */
@media (min-width: 640px) {
  .nav { padding: 16px 48px; }
  .hero { padding: 28px 48px 0; }
  .stage { max-width: 400px; height: 340px; }
  .stage__product { width: 250px; height: 316px; }
  .wheel { max-width: 560px; --wheel-radius: 190px; --wheel-top-offset: 52px; }
  .wheel__item { width: 104px; height: 80px; margin-top: -40px; margin-left: -52px; }
  .tabs { padding: 0 48px; margin: -52px -48px 40px; }
  .catalog { padding: 52px 48px 88px; }
  .ticket { padding: 64px 48px; }
  .social { padding: 72px 48px; }
  .footer { padding: 52px 48px; }
}

/* ESCRITORIO — hasta aquí todo era el mismo layout de móvil solo con más
   padding; en ≥1024px el héroe, el catálogo y el checkout pasan a usar el
   ancho real de la pantalla en vez de quedar centrados en una columna
   angosta con mucho vacío a los lados. */
@media (min-width: 1024px) {
  /* padding en vez de max-width+margin:auto directo en .nav: así la franja
     de fondo (sticky, con blur) sigue llenando toda la pantalla, pero el
     logo y el carrito quedan centrados dentro de los mismos 1180px que ya
     usan .catalog/.ticket/.footer — antes quedaban pegados a los bordes
     literales de la pantalla, viéndose muy separados en monitores anchos. */
  .nav { padding: 20px max(56px, calc((100% - 1180px) / 2)); }

  /* --- héroe: todo centrado en una sola columna, igual que en móvil —
     antes la copy (nombre/desc/agregar) iba a un lado del producto; el
     negocio lo pidió apilado y centrado también en escritorio. --- */
  .hero {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "icons"
      "visual"
      "copy"
      "headline";
    align-items: center;
    justify-items: center;
    /* Sin max-width aquí a propósito — el fondo de color del héroe debe
       llenar todo el ancho de la pantalla. Lo que sí se limita es el
       contenido de adentro (.hero__visual / .hero__copy, abajo), para que
       la imagen y el texto no se estiren absurdamente en pantallas anchas. */
    width: 100%;
    margin: 0 auto;
    padding: 24px 56px 0;
    text-align: center;
  }
  /* Antes "justify-self: end" los pegaba al borde derecho de la PANTALLA
     completa (el grid ya no tiene max-width, ver arriba) — quedaban
     flotando lejos del resto del contenido, que sí está centrado en una
     columna de 720px. Ahora viven en esa misma columna, alineados a su
     derecha en vez de a la de toda la pantalla. */
  .hero__icons { grid-area: icons; justify-self: center; align-self: start; justify-content: flex-end; margin-bottom: 0; width: 100%; max-width: 720px; }
  .hero__visual { grid-area: visual; text-align: center; max-width: 720px; margin: 0 auto; }
  .hero__copy { grid-area: copy; text-align: center; max-width: 720px; margin: 0 auto; }
  .hero__kicker { text-align: center; }
  .hero__name { margin-top: 0; font-size: clamp(40px, 3.4vw, 56px); }
  .hero__desc { max-width: 420px; margin-left: auto; margin-right: auto; font-size: 16px; }
  #hero-add-slot { display: flex; justify-content: center; }
  .hero__headline {
    grid-area: headline;
    text-align: center;
    margin: 64px 0 0;
    padding-bottom: 56px;
  }
  .wheel { width: 100%; max-width: 520px; margin: 4px auto 0; --wheel-radius: 170px; --wheel-top-offset: 46px; }
  .wheel__item { width: 104px; height: 78px; margin-top: -39px; margin-left: -52px; }

  /* Más chico que antes a propósito: con el nombre, descripción y botón
     apilados debajo (ver héroe de una sola columna, arriba), la pila
     completa se pasaba de largo de lo que cabe en una pantalla normal sin
     hacer scroll — el botón de "Agregar" quedaba fuera de la vista inicial. */
  .stage { max-width: 380px; height: 330px; }
  .stage__product { width: 240px; height: 300px; border-radius: 20px; }
  .stage__mound { width: 270px; height: 132px; bottom: -16px; }
  .stage__glow { width: 230px; height: 230px; }

  /* --- catálogo: grid de 2 columnas en vez de una lista estirada --- */
  .catalog { max-width: 1180px; }
  .shelf-row, .menu-list, .drink-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 56px;
  }
  .menu-list { max-width: none; }
  .feature__body > p { max-width: 44ch; }

  .ticket > * { max-width: 560px; }
  .ticket h2 { font-size: 34px; }

  /* --- pulido general: más presencia en superficies clave --- */
  .stage__product { box-shadow: 0 0 0 1px rgba(246, 233, 210, 0.14), 0 40px 70px rgba(20, 10, 5, 0.6); }
  .shelf-row__item img, .drink img { box-shadow: 0 10px 24px rgba(43, 24, 16, 0.14); }
  .add-pill { transition: box-shadow 0.2s ease, transform 0.2s ease; }
  .add-pill:hover { box-shadow: 0 8px 20px rgba(43, 24, 16, 0.16); }
  .checkout-summary { box-shadow: 0 16px 40px rgba(20, 10, 5, 0.18); }
}

@media (max-width: 380px) {
  .stage { max-width: 280px; height: 260px; }
  .stage__product { width: 178px; height: 226px; }
  .wheel { --wheel-radius: 110px; --wheel-top-offset: 37px; }
  .wheel__item { width: 64px; height: 50px; margin-top: -25px; margin-left: -32px; }
  .hero__headline { font-size: clamp(34px, 13vw, 48px); }
}

@media (max-width: 480px) {
  .drink__price { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  html { scroll-behavior: auto; }
}
#social-instagram-btn[hidden] { display: none; }
