/* Carta+ — demo "FOGÓN" con video real (platos de Vanessa) para
   mostrar a restaurantes. Misma plantilla que la carta de QUIPAS (mismas
   clases, mismo comportamiento), pero acá la paleta y la tipografía no son
   arbitrarias: salen de los propios videos — fondos oscuros y madera,
   ámbar de la luz cálida y los cócteles, vino de las salsas y el cóctel de
   arándano, verde azulado de la vajilla de cerámica — con tipografías
   100% libres (Google Fonts, sin restricción de licencia): Spectral
   (serif cálido, literario) + Karla (sans humanista). Mobile-first. */

:root {
  --bg: #15130f;
  --ink: #f1e8d8;
  --ink-body: #e0d3ba;
  --ink-muted: rgba(241, 232, 216, 0.6);
  --rule: rgba(241, 232, 216, 0.14);

  /* Tema (07/11/2026): los mismos colores en "r, g, b", para las
     transparencias. Un tema nuevo cambia estas variables y nada más. */
  --ink-rgb: 241, 232, 216;
  --accent-rgb: 201, 138, 63;
  --bg-rgb: 21, 19, 15;
  --media-bg: #1c1712;
  --shadow-strong: rgba(0, 0, 0, 0.45);
  --shadow-shell: rgba(0, 0, 0, 0.55);
  --sunken: rgba(0, 0, 0, 0.25);
  --amber: #c98a3f;
  --amber-deep: #8a5a24;
  --wine: #7a2431;
  --teal: #3f6b68;
  --price: var(--amber);

  --display: "Spectral", Georgia, serif;
  --names: "Spectral", Georgia, serif;
  --body: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --price-font: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  width: 100%;
  min-width: 0;
  max-width: 560px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

/* --- Header / selector de idioma --- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: flex-end;
  padding: 14px 18px;
  background: linear-gradient(to bottom, var(--bg) 65%, transparent);
}

.lang-switcher {
  display: flex;
  gap: 4px;
  padding: 3px;
  background: rgba(var(--ink-rgb), 0.05);
  border: 1px solid var(--rule);
  border-radius: 999px;
}

.lang-pill {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--price-font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.lang-pill.is-active {
  background: var(--amber);
  color: var(--bg);
}

/* --- Contenido --- */

#app {
  flex: 1;
  padding: 0 20px 40px;
}

/* --- Franja decorativa: un emblema, no un patrón repetido — hairline fina
   con un rombo ámbar al centro flanqueado por dos puntos (teal/vino),
   como el sello que separa secciones en una carta impresa de autor. --- */

.brand-band {
  position: relative;
  height: 28px;
  margin: 0 -20px 24px;
  background-image: linear-gradient(to right, transparent, var(--rule) 15%, var(--rule) 85%, transparent),
    radial-gradient(circle at calc(50% - 34px) 50%, var(--teal) 0 3px, transparent 4px),
    radial-gradient(circle at calc(50% + 34px) 50%, var(--wine) 0 3px, transparent 4px);
  background-size: 100% 1px, 100% 100%, 100% 100%;
  background-position: center, center, center;
  background-repeat: no-repeat;
}

.brand-band::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  transform: translate(-50%, -50%) rotate(45deg);
  border: 1.5px solid var(--amber);
  background: var(--bg);
}

/* Home */

.hero {
  text-align: center;
  padding: 4px 0 32px;
}

.hero__logo {
  font-family: var(--display);
  font-weight: 600;
  font-size: 40px;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
  color: var(--ink);
}

.hero__tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--price-font);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin: 0;
}

.hero__location {
  margin: 8px 0 0;
  font-family: var(--price-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  text-align: center;
}

.hero__tagline::before,
.hero__tagline::after {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--rule);
}

.category-grid {
  display: flex;
  flex-direction: column;
}

.category-card {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  min-width: 0;
  padding: 20px 2px;
  border-bottom: 1px solid var(--rule);
}

.category-card:first-child {
  border-top: 1px solid var(--rule);
}

.category-card__name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 30px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  min-width: 0;
  overflow-wrap: break-word;
}

.category-card__meta {
  font-family: var(--price-font);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  margin-left: 12px;
}

/* --- Destacados (Home) y Marida-con (detalle de plato) --- */

.destacados,
.marida {
  padding: 4px 0 28px;
}

.destacados__title,
.marida__title {
  font-family: var(--price-font);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0 0 12px;
}

.marida {
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}

.destacados__row,
.marida__row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.destacados__row::-webkit-scrollbar,
.marida__row::-webkit-scrollbar {
  display: none;
}

.pick-card {
  flex: 0 0 auto;
  width: 128px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pick-card .media--thumb {
  width: 128px;
  height: 128px;
  border-radius: 12px;
}

.pick-card__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.pick-card__name {
  font-family: var(--names);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.3;
  overflow-wrap: break-word;
}

.pick-card__price {
  font-family: var(--price-font);
  font-weight: 600;
  font-size: 12px;
  color: var(--price);
}

/* Referencia en USD junto al precio en soles (tipo de cambio fijo, ver
   i18n.js) — siempre más discreta que el precio real, que es en soles.
   El "·" antes, en vez de solo un margen, separa los dos números aunque el
   line-break los junte en una columna angosta. */
.price-usd {
  font-weight: 500;
  color: var(--ink-muted);
  margin-left: 4px;
}

.price-usd::before {
  content: "· ";
}

/* --- Filtros dietéticos (categoría) --- */

.diet-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 6px;
  scrollbar-width: none;
}

.diet-filters::-webkit-scrollbar {
  display: none;
}

.diet-pill {
  flex: 0 0 auto;
  appearance: none;
  border: 1px solid var(--rule);
  background: rgba(var(--ink-rgb), 0.05);
  color: var(--ink-muted);
  font-family: var(--price-font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.diet-pill.is-active {
  background: var(--wine);
  border-color: var(--wine);
  color: var(--ink);
}

/* Back link */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--price-font);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  padding: 8px 0;
  margin-bottom: 8px;
}

.back-link--floating {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 10;
  background: rgba(21, 19, 15, 0.55);
  backdrop-filter: blur(6px);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  margin-bottom: 0;
}

.page-title {
  position: relative;
  font-family: var(--display);
  font-weight: 600;
  font-size: 42px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 4px 0 24px;
  padding-bottom: 14px;
  overflow-wrap: break-word;
}

.page-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: var(--amber);
}

/* Category dish list */

.dish-list {
  display: flex;
  flex-direction: column;
}

.dish-row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 14px 2px;
  border-bottom: 1px solid var(--rule);
}

.dish-list .dish-row:first-child {
  border-top: 1px solid var(--rule);
}

.dish-row__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.dish-row__name {
  font-family: var(--names);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.35;
  overflow-wrap: break-word;
}

.dish-row__price {
  font-family: var(--price-font);
  font-weight: 600;
  font-size: 13px;
  color: var(--price);
}

.empty-state {
  color: var(--ink-muted);
  font-size: 14px;
  padding: 40px 0;
  text-align: center;
}

/* --- Media (video / placeholder) --- */

.media {
  position: relative;
  overflow: hidden;
  background: var(--media-bg);
}

.media--thumb {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  flex-shrink: 0;
}

.media--large {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.35), 0 24px 48px var(--shadow-strong);
}

.media__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media--fallback .media__video {
  display: none;
}

.media__fallback {
  display: none;
  position: absolute;
  inset: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--wine), var(--media-bg) 55%, var(--teal) 130%);
  background-size: 220% 220%;
  animation: shimmer 8s ease-in-out infinite;
}

.media--fallback .media__fallback {
  display: flex;
}

.media__fallback-initial {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(var(--ink-rgb), 0.25);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4.2em;
}

.media--thumb .media__fallback-initial {
  font-size: 1.6em;
}

.media__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: var(--price-font);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--amber);
  border: 1px solid var(--amber);
  border-radius: 999px;
  padding: 3px 10px 2px;
}

.media__fallback-text {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--price-font);
  font-weight: 600;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(var(--ink-rgb), 0.7);
}

.media--thumb .media__fallback-text {
  display: none;
}

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

/* Dish detail */

.dish-detail {
  padding-top: 22px;
}

.dish-detail__name {
  font-family: var(--names);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.15;
  margin: 0 0 12px;
  overflow-wrap: break-word;
}

.dish-detail__description {
  font-family: var(--display);
  font-style: italic;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-body);
  opacity: 0.85;
  margin: 0 0 16px;
}

.dish-detail__price {
  font-family: var(--price-font);
  font-weight: 600;
  font-size: 20px;
  color: var(--price);
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}

.dish-detail__price-usd {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  margin-left: 6px;
}

.dish-detail__price-usd::before {
  content: "· ";
}

.dish-detail__allergens {
  margin: 10px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.dish-detail__allergens-label {
  font-family: var(--price-font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.allergen-chip {
  font-family: var(--body);
  font-size: 11.5px;
  color: var(--ink-body);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 3px 10px;
}

/* --- Carta para grupos (#/g/<id>, js/group.js) --- */

.group-page {
  padding-bottom: 8px;
}

.group-hero {
  padding: 12px 0 24px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 8px;
}

.group-hero__brand {
  margin: 0 0 18px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.08em;
}

.group-hero__eyebrow,
.group-section__hint {
  font-family: var(--price-font);
  font-size: 11px;
  font-weight: 700;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.group-hero__eyebrow {
  margin: 0 0 6px;
}

.group-hero__name {
  margin: 0 0 12px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 30px;
  line-height: 1.15;
  overflow-wrap: break-word;
}

.group-hero__meta {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--ink-body);
}

.group-hero__meta::first-letter {
  text-transform: uppercase;
}

.group-hero__meta.is-closed {
  color: var(--amber);
  font-weight: 600;
}

.group-hero__price {
  margin: 14px 0 0;
  font-family: var(--price-font);
  font-weight: 700;
  font-size: 16px;
  color: var(--price);
}

.group-hero__message {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-left: 2px solid var(--amber);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-body);
  white-space: pre-line;
}

.group-notice {
  margin: 12px 0 0;
  font-size: 14px;
}

.group-notice a {
  color: var(--amber);
  text-decoration: underline;
}

.group-section {
  padding: 20px 0 4px;
}

.group-section__title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 6px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.02em;
}

.group-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 10px;
  margin: 0 -10px;
  /* foto 10px + espacio 10px */
  border-radius: 20px;
  border: 1px solid transparent;
}

.group-option.is-selected {
  border-color: var(--amber);
  background: rgba(var(--accent-rgb), 0.08);
}

.group-option--pick {
  cursor: pointer;
}

/* El radio queda para el teclado y los lectores de pantalla; lo que se ve
   es el círculo de .group-option__check. */
.group-option__radio {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.group-option__radio:focus-visible ~ .group-option__check {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

.group-option .media--thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
}

.group-option__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.group-option__name {
  font-family: var(--names);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.03em;
  line-height: 1.3;
  overflow-wrap: break-word;
}

.group-option__price {
  font-family: var(--price-font);
  font-weight: 600;
  font-size: 13px;
  color: var(--price);
}

.group-option__video {
  align-self: flex-start;
  font-size: 12px;
  color: var(--ink-muted);
  text-decoration: underline;
  padding: 2px 0;
}

.group-option__check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--rule);
}

.group-option.is-selected .group-option__check {
  border-color: var(--amber);
  background: radial-gradient(circle, var(--amber) 0 45%, transparent 50%);
}

.group-stepper {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.group-stepper__btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: none;
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.group-stepper__btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.group-option.is-selected .group-stepper__btn:not(:disabled) {
  border-color: var(--amber);
}

.group-stepper__qty {
  min-width: 22px;
  text-align: center;
  font-family: var(--price-font);
  font-weight: 700;
  font-size: 15px;
}

.group-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 0 8px;
  margin-top: 12px;
  border-top: 1px solid var(--rule);
}

.group-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.group-field__label {
  font-family: var(--price-font);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.group-field__input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px; /* 16px: iOS no hace zoom al tocar el campo */
  resize: vertical;
}

.group-field__input:focus {
  outline: none;
  border-color: var(--amber);
}

/* Con overflow-x: hidden en html y body, nada queda pegado al bajar (body
   pasa a ser el que se desplaza). En la página del grupo la barra del total
   tiene que verse siempre: clip recorta igual, sin ese efecto. */
html:has(.group-page),
body:has(.group-page) {
  overflow-x: clip;
}

/* Barra de envío pegada abajo mientras se elige. */
.group-submit {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  margin: 16px -20px 0;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  background: var(--bg);
  border-top: 2px solid var(--amber);
  box-shadow: 0 -10px 24px var(--shadow-strong);
}

.group-submit__summary {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--price-font);
}

.group-submit__detail {
  font-weight: 600;
  font-size: 13px;
  color: var(--ink-muted);
}

/* El total, grande y en ámbar: es lo que el invitado mira antes de mandar. */
.group-submit__total {
  font-family: var(--names);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.1;
  color: var(--price);
}

.group-submit__total-label {
  font-family: var(--price-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-body);
  vertical-align: middle;
}

.group-submit__btn {
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--amber);
  color: var(--bg);
  font-family: var(--price-font);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}

.group-submit__btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.group-submit__btn--wide {
  width: 100%;
  margin-top: 8px;
}

.group-submit__error {
  flex-basis: 100%;
  margin: 0;
  font-size: 14px;
  color: var(--amber);
}

.group-link-btn {
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--ink-muted);
  font-family: var(--body);
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}

.group-done {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 0 8px;
}

.group-done__banner {
  margin-top: 20px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--amber);
  background: rgba(var(--accent-rgb), 0.08);
  font-size: 14px;
  line-height: 1.5;
}

.group-done__banner p {
  margin: 0;
}

.group-done__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  margin-bottom: 4px !important;
}

.group-done__order {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--rule);
}

.group-done__name {
  margin: 0 0 8px;
  font-family: var(--price-font);
  font-weight: 700;
  font-size: 15px;
}

.group-done__items {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: var(--ink-body);
}

.group-done__course {
  display: block;
  font-family: var(--price-font);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
}

.group-done__price {
  color: var(--ink-muted);
  margin-left: 4px;
}

.group-done__note {
  margin: 10px 0 0;
  font-size: 13px;
  font-style: italic;
  color: var(--ink-muted);
}

.group-done__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
}

/* --- Solicitud de evento (#/evento, js/evento.js) --- */

.event-page .back-link {
  margin-bottom: 4px;
}

/* La cabecera ya tiene su línea abajo: sin la segunda del formulario. */
.event-page .group-form {
  border-top: 0;
  padding-top: 12px;
}

.event-page > .group-submit__btn--wide {
  margin-top: 4px;
}

.event-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.event-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.event-chip {
  position: relative;
  padding: 9px 14px;
  /* Como <button> (encuesta, reservas) el navegador le pone fondo blanco:
     se quita para que se vea igual que como <label> (evento). */
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  line-height: 1.2;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-family: var(--price-font);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-body);
  cursor: pointer;
}

.event-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.event-chip.is-selected {
  border-color: var(--amber);
  background: rgba(var(--accent-rgb), 0.14);
  color: var(--ink);
}

.event-chip:has(input:focus-visible) {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

.event-alt {
  margin: 18px 0 8px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-muted);
  text-align: center;
}

.event-alt a {
  display: inline-block;
  color: var(--amber);
  font-weight: 600;
}

a.group-submit__btn {
  display: block;
  text-align: center;
}

.event-home {
  margin-top: 16px;
}

/* --- Página del organizador (#/g/<id>/o/<token>) --- */

.org-progress {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 0 8px;
}

.org-progress__count {
  margin: 0;
  font-family: var(--names);
  font-size: 26px;
  font-weight: 700;
  color: var(--price);
}

.org-progress__bar {
  height: 8px;
  border-radius: 999px;
  background: var(--rule);
  overflow: hidden;
}

.org-progress__bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--amber);
}

.org-progress__names {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.org-progress__names li {
  padding: 6px 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-body);
}

.org-progress__empty {
  margin: 0;
  font-size: 14px;
  color: var(--ink-muted);
}

.org-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.org-actions__secondary {
  display: block;
  padding: 12px 20px;
  border: 1px solid var(--amber);
  border-radius: 999px;
  background: none;
  color: var(--amber);
  font-family: var(--price-font);
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  cursor: pointer;
}

.org-refresh {
  display: block;
  margin: 16px auto 8px;
}

/* --- Reseñas (Home, debajo de las categorías) --- */

.review-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-top: 28px;
  padding: 18px 16px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  text-align: left;
}

/* Grupos y eventos es la acción principal del inicio: borde ámbar y botón
   lleno. La reseña queda más chica (reglas-diseno-ui: un solo principal). */
.review-card[data-group-cta],
.review-card[data-survey-cta] {
  border-color: var(--amber);
  background: rgba(var(--accent-rgb), 0.08);
}

/* Arriba (la carta lleva 40 min abierta): pegada al encabezado. */
.srv-cta--top {
  margin: 0 0 28px;
}

.review-card[data-group-cta] .review-card__cta,
.review-card[data-survey-cta] .review-card__cta {
  margin-top: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--amber);
  color: var(--bg);
}

.review-card[data-review] {
  padding: 14px 16px;
}

.review-card[data-review] .review-card__title {
  font-size: 16px;
}

.review-card__stars {
  color: var(--amber);
  font-size: 14px;
  letter-spacing: 0.2em;
}

.review-card__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 20px;
}

.review-card + .review-card {
  margin-top: 12px;
}

.review-card__text {
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-body);
}

.review-card__cta {
  font-family: var(--price-font);
  font-weight: 600;
  font-size: 13px;
  color: var(--amber);
}

/* --- Crédito de Carta+ al pie: pequeño y tenue, no compite con la marca
   del restaurante --- */

/* Mismo aire arriba (40px del #app + 8px del enlace) que abajo (8px + 40px). */
.credit {
  padding: 0 20px 40px;
  text-align: center;
  font-family: var(--price-font);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

/* El logotipo se alinea con la base del texto, no con el centro de su caja
   (centrado, quedaba más abajo que "Carta digital por"). */
.credit a {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 8px 10px;
}

/* El logotipo de Carta+ va como máscara para tomar el color de texto de
   cada carta (claro sobre fondo oscuro, oscuro sobre fondo claro). El "+"
   va en el dorado de la marca. Letras y "+" son dos máscaras con el mismo
   encuadre (img/logo-letras.svg e img/logo-mas.svg, 492,5 × 162,5). */
.credit__logo {
  position: relative;
  top: 1px;
  width: 55px;
  height: 18px;
}
.credit__logo::before,
.credit__logo::after,
.dash-brand__logo::before,
.dash-brand__logo::after {
  content: "";
  position: absolute;
  inset: 0;
  -webkit-mask: url("../img/logo-letras.svg") center / contain no-repeat;
  mask: url("../img/logo-letras.svg") center / contain no-repeat;
  background: var(--ink);
}
.credit__logo::after,
.dash-brand__logo::after {
  -webkit-mask-image: url("../img/logo-mas.svg");
  mask-image: url("../img/logo-mas.svg");
  background: #deb250;
}

/* Desktop: mismo layout, más aire alrededor */

@media (min-width: 600px) {
  body {
    padding: 24px 0;
  }
  .shell {
    min-height: auto;
    border: 1px solid var(--rule);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 80px var(--shadow-shell);
  }
}

/* --- Room service (js/room.js): pedir desde la habitación --- */

.room-banner {
  margin: 0 18px 18px;
  padding: 14px 16px;
  border: 1px solid var(--amber);
  border-radius: 14px;
  background: rgba(var(--accent-rgb), 0.1);
}

.room-banner.is-warning {
  border-color: var(--rule);
  background: none;
}

.room-banner p {
  margin: 0;
}

.room-banner__eyebrow {
  font-family: var(--price-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
}

.room-banner__title {
  margin-top: 2px !important;
  font-family: var(--names);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}

.room-banner__text {
  margin-top: 4px !important;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-body);
}

.room-banner__order {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--price-font);
  font-size: 14px;
  font-weight: 700;
  color: var(--amber);
}

/* El botón va encima de la fila (que es un enlace al plato), a la derecha. */
.room-row {
  position: relative;
}

.room-row .dish-row {
  padding-right: 112px;
}

.room-row > .room-add,
.room-row > .room-stepper {
  position: absolute;
  top: 50%;
  right: 2px;
  transform: translateY(-50%);
}

.room-add {
  padding: 8px 14px;
  border: 1px solid var(--amber);
  border-radius: 999px;
  background: none;
  color: var(--amber);
  font-family: var(--price-font);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.room-stepper .group-stepper__btn {
  border-color: var(--amber);
  color: var(--amber);
}

.room-detail-add {
  margin-top: 16px;
}

.room-detail-add .room-add {
  width: 100%;
  padding: 13px 18px;
  background: var(--amber);
  color: var(--bg);
  font-size: 15px;
}

/* Barra del pedido, fija abajo. */
.room-bar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(560px, 100%);
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: var(--amber);
  color: var(--bg);
  font-family: var(--price-font);
  font-weight: 700;
  box-shadow: 0 -10px 24px var(--shadow-strong);
}

.room-bar[hidden] {
  display: none;
}

.room-bar__count {
  font-size: 14px;
}

.room-bar__total {
  font-family: var(--names);
  font-size: 22px;
}

.room-bar__cta {
  margin-left: auto;
  font-size: 15px;
}

body:has(.room-bar:not([hidden])) .shell {
  padding-bottom: 80px;
}

.room-lines {
  display: flex;
  flex-direction: column;
  padding-top: 8px;
}

.room-line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}

.room-line__info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.room-line__name {
  font-family: var(--names);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.room-line__price {
  font-family: var(--price-font);
  font-size: 14px;
  color: var(--price);
}

.room-checkout {
  padding: 8px 0 24px;
}

.room-checkout__total {
  margin: 0;
  font-family: var(--names);
  font-size: 30px;
  font-weight: 700;
  color: var(--price);
}

.room-checkout__total--small {
  margin-top: 10px;
  font-size: 22px;
}

.room-checkout__note {
  margin: 4px 0 14px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-muted);
}

.room-code-input {
  max-width: 150px;
  font-size: 22px;
  letter-spacing: 0.35em;
}

.room-code-hint {
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-muted);
}

.room-status-hint {
  margin: 8px 0 0;
  font-size: 16px;
  color: var(--ink-body);
}

.room-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.room-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-family: var(--price-font);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-muted);
}

.room-step__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--rule);
  flex: none;
}

.room-step.is-done {
  color: var(--ink-body);
}

.room-step.is-done .room-step__dot {
  border-color: var(--amber);
  background: var(--amber);
}

.room-step.is-current {
  color: var(--ink);
  font-size: 17px;
}

.room-step.is-current .room-step__dot {
  border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.25);
  animation: room-pulse 1.6s ease-in-out infinite;
}

@keyframes room-pulse {
  50% { box-shadow: 0 0 0 7px rgba(var(--accent-rgb), 0.08); }
}

@media (prefers-reduced-motion: reduce) {
  .room-step.is-current .room-step__dot {
    animation: none;
  }
}

.room-cancel {
  display: block;
  margin: 12px auto 0;
}

.room-more {
  margin-top: 16px;
}

.room-live {
  margin: 14px 0 8px;
  text-align: center;
  font-size: 12px;
  color: var(--ink-muted);
}

/* --- Reservar mesa (#/reservar, js/reserva.js) ---
   Arriba, el video de un plato destacado a todo el ancho con el título
   encima; después personas, día y hora con botones grandes (se eligen con el
   pulgar) y abajo la barra pegada con el resumen y el botón de enviar. */

.rsv-hero {
  position: relative;
  margin: 0 -20px 8px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: #0d0c0a;
}

.rsv-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rsv-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg) 4%, rgba(var(--bg-rgb), 0.55) 45%, rgba(var(--bg-rgb), 0.15) 100%);
}

.rsv-hero__back {
  position: absolute;
  top: 12px;
  left: 16px;
  z-index: 2;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(21, 19, 15, 0.55);
  backdrop-filter: blur(6px);
  color: #fff;
}

.rsv-hero__text {
  position: relative;
  z-index: 1;
  padding: 0 20px 18px;
}

.rsv-hero__brand {
  margin: 0 0 8px;
  font-family: var(--price-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
}

.rsv-hero__title {
  margin: 0 0 10px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 38px;
  line-height: 1.05;
}

.rsv-hero__intro {
  margin: 0;
  max-width: 34ch;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-body);
}

.rsv-block {
  padding: 22px 0 6px;
  border-top: 1px solid var(--rule);
}

.rsv-block:first-of-type {
  border-top: 0;
}

.rsv-block__title {
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 21px;
}

.rsv-guests {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px;
  border: 1px solid var(--rule);
  border-radius: 999px;
}

.rsv-guests__btn {
  width: 48px;
  height: 48px;
  border: 1px solid var(--amber);
  border-radius: 50%;
  background: transparent;
  color: var(--amber);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.rsv-guests__btn:disabled {
  border-color: var(--rule);
  color: var(--ink-muted);
  cursor: default;
}

.rsv-guests__value {
  font-family: var(--names);
  font-weight: 600;
  font-size: 22px;
}

.rsv-more {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--amber);
}

/* Los días en una fila que se desliza con el dedo. */
.rsv-days {
  display: flex;
  gap: 8px;
  margin: 0 -20px;
  padding: 2px 20px 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.rsv-days::-webkit-scrollbar {
  display: none;
}

.rsv-day {
  flex: 0 0 auto;
  width: 64px;
  padding: 10px 0;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: transparent;
  color: var(--ink-body);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  scroll-snap-align: start;
  cursor: pointer;
  font-family: var(--price-font);
}

.rsv-day__top {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

.rsv-day__num {
  font-family: var(--names);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
}

.rsv-day__month {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.rsv-day.is-selected,
.rsv-slot.is-selected {
  border-color: var(--amber);
  background: var(--amber);
  color: var(--bg);
}

.rsv-day.is-selected .rsv-day__top,
.rsv-day.is-selected .rsv-day__num {
  color: var(--bg);
}

.rsv-slots__label {
  margin: 4px 0 10px;
  font-family: var(--price-font);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.rsv-slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.rsv-slot {
  padding: 12px 0;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font-family: var(--price-font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.rsv-hint {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--ink-muted);
}

.rsv-page .event-chip {
  background: transparent;
}

.rsv-page .group-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rsv-bar__when {
  font-family: var(--names);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
}

.rsv-done {
  margin-top: 32px;
  padding: 28px 20px;
  border: 1px solid var(--amber);
  /* recuadro de adentro 14px + espacio 20px */
  border-radius: 34px;
  background: rgba(var(--accent-rgb), 0.08);
  text-align: center;
}

.rsv-done__check {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--bg);
  font-size: 28px;
  font-weight: 700;
}

.rsv-done__title {
  margin: 16px 0 6px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 26px;
}

.rsv-done__text {
  margin: 0 auto;
  max-width: 32ch;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-body);
}

.rsv-done__card {
  margin: 22px 0 0;
  padding: 16px;
  border-radius: 14px;
  background: var(--sunken);
  text-align: left;
}

.rsv-done__card div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
}

.rsv-done__card div:last-child {
  border-bottom: 0;
}

.rsv-done__card dt {
  font-size: 13px;
  color: var(--ink-muted);
}

.rsv-done__card dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

.rsv-done__card dd::first-letter {
  text-transform: uppercase;
}

/* En la portada, la tarjeta de reserva se distingue de las otras. */
.rsv-cta {
  border-color: var(--amber);
}

/* --- Etiquetas, precio anterior y adicionales (se marcan en el editor) --- */

.dish-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

.dish-tag {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--amber);
  font-family: var(--price-font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
}

.dish-tag--promo {
  background: var(--amber);
  color: var(--bg);
}

.dish-detail .dish-tags {
  margin-bottom: 8px;
}

.price-before {
  color: var(--ink-muted);
  font-weight: 400;
  text-decoration-thickness: 1px;
}

.dish-extras {
  margin: 14px 0 4px;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: 12px;
}

.dish-extras__title {
  margin: 0 0 8px;
  font-family: var(--price-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.dish-extras__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dish-extras__list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  font-size: 15px;
  color: var(--ink-body);
}

.dish-extras__price {
  font-family: var(--price-font);
  font-weight: 600;
  color: var(--price);
  white-space: nowrap;
}

/* Privacidad: aviso bajo los formularios que piden datos personales
   (privacyNote() en js/group.js) y casilla del recordatorio de celebraciones
   en la solicitud de evento. */
.privacy-note {
  margin: 14px 2px 6px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-muted);
}
.privacy-note a {
  color: var(--amber);
  text-decoration: underline;
}
.privacy-opt {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-body);
  cursor: pointer;
}
.privacy-opt input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--amber);
}
.privacy-opt small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--ink-muted);
}

/* --- Encuesta (js/encuesta.js, #/encuesta, QR aparte) ---
   Reglas de reglas-diseno-ui: todo a la izquierda, preguntas como título de
   cada bloque, chips en vez de desplegables, un solo botón principal. */

.srv-hero {
  padding: 8px 0 20px;
  border-bottom: 1px solid var(--rule);
}

.srv-hero__brand {
  margin: 0 0 14px;
  font-family: var(--price-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
}

.srv-hero__title {
  margin: 0 0 8px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 34px;
  line-height: 1.15;
}

.srv-hero__intro {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-body);
}

/* Dentro de un bloque 10px; entre bloques 28px. */
.srv-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 28px;
}

.srv-q {
  margin: 0;
  font-family: var(--price-font);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.srv-hint {
  margin: -4px 0 0;
  font-size: 13px;
  color: var(--ink-muted);
}

.srv-stars {
  display: flex;
  gap: 6px;
}

.srv-star {
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 38px;
  line-height: 1;
  /* apagada: 3.4:1 sobre el fondo (ícono, mínimo 3) */
  color: rgba(var(--ink-rgb), 0.4);
  cursor: pointer;
  transition: color 0.15s, transform 0.15s;
}

.srv-star.is-on {
  color: var(--amber);
}

.srv-star:active {
  transform: scale(0.92);
}

.srv-star:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
  border-radius: 50%;
}

.srv-stars__label {
  margin: 0;
  font-size: 14px;
  color: var(--ink-body);
}

.srv-counter {
  align-self: flex-end;
  font-size: 12px;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.srv-send {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 0 24px;
}

.srv-done {
  padding: 28px 0 8px;
}

.srv-done__title {
  margin: 16px 0 6px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 30px;
}

.srv-done__text {
  margin: 0;
  max-width: 36ch;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-body);
}

/* Botón (píldora) adentro: no entra en la regla de radios anidados. */
.srv-review {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-top: 28px;
  padding: 18px 16px;
  border: 1px solid var(--amber);
  border-radius: 14px;
  background: rgba(var(--accent-rgb), 0.08);
}

.srv-review__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 20px;
}

.srv-review__text {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-body);
}

.srv-menu-link {
  display: inline-block;
  margin: 22px 0 8px;
  font-family: var(--price-font);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
}
