/* 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);
  --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(241, 232, 216, 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(241, 232, 216, 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: #1c1712;
}

.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(201, 138, 63, 0.35), 0 24px 48px rgba(0, 0, 0, 0.45);
}

.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), #1c1712 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(241, 232, 216, 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(241, 232, 216, 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;
  border-radius: 12px;
  border: 1px solid transparent;
}

.group-option.is-selected {
  border-color: var(--amber);
  background: rgba(201, 138, 63, 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 rgba(0, 0, 0, 0.45);
}

.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(201, 138, 63, 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;
  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(201, 138, 63, 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: center;
  gap: 4px;
  margin-top: 28px;
  padding: 18px 16px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  text-align: center;
}

.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 --- */

.credit {
  padding: 4px 20px 28px;
  text-align: center;
  font-family: var(--price-font);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

.credit a {
  display: inline-flex;
  align-items: center;
  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 (el de cartaplus.pe): empieza al 80% del
   ancho de img/carta-plus.png (480 × 152), y la caja tiene casi su misma
   proporción para que el corte caiga justo antes del "+". */
.credit__logo {
  width: 57px;
  height: 18px;
  background: linear-gradient(90deg, var(--ink) 80%, #e5a82b 80%);
  -webkit-mask: url("../img/carta-plus.png") center / contain no-repeat;
  mask: url("../img/carta-plus.png") center / contain no-repeat;
}

/* 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 rgba(0, 0, 0, 0.55);
  }
}

/* --- 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(201, 138, 63, 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 rgba(0, 0, 0, 0.45);
}

.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-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(201, 138, 63, 0.25);
  animation: room-pulse 1.6s ease-in-out infinite;
}

@keyframes room-pulse {
  50% { box-shadow: 0 0 0 7px rgba(201, 138, 63, 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);
}
