/* =========================================================
   REDISEÑO A+B · Sabores del Poyvi (nov 2026)
   ---------------------------------------------------------
   Se carga DESPUÉS del <style> principal y lo pisa con
   selectores de baja especificidad, así los modos especiales
   (Halloween, Albirroja, Mundial) siguen mandando donde ya
   tenían sus reglas. Usa SIEMPRE los tokens existentes
   (--bg, --surface, --text, --primary…) para que el modo
   oscuro funcione solo.
   Estructura:
     1. Base y tipografía
     2. Cabecera + buscador
     3. Barra de navegación
     4. Categorías y filtros
     5. Bloques de la home (almuerzos, Top 5, tablero, mosaicos…)
     6. Tarjetas de locales
     7. Cierre (mapa, agregar local, idea, apoyo)
     8. Animaciones
     9. Escritorio (≥ 1024 px)
   ========================================================= */

/* ---------- 1. Base ---------- */
:root {
  --rv-radio: 20px;
  --rv-radio-sm: 14px;
  --rv-ease: cubic-bezier(.2, .8, .2, 1);
  --rv-rebote: cubic-bezier(.2, 1.4, .4, 1);
  --rv-tabbar-alto: 66px;
}
html, body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}
button, input, select, textarea { font-family: inherit; }
.ic { width: 1.15em; height: 1.15em; flex-shrink: 0; display: inline-block; vertical-align: -0.2em; }
.ic.relleno { fill: currentColor; }

/* ---------- 2. Cabecera ---------- */
.poyvi-hero {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding-bottom: 20px;
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
}
.poyvi-hero .hero-inner { padding: 18px 16px 0; align-items: flex-start; }
.poyvi-hero .hero-eyebrow { font-size: 10.5px; padding: 5px 11px; margin-bottom: 8px; font-weight: 800; }
.poyvi-hero .hero-title { font-size: 32px; font-weight: 900; letter-spacing: -0.02em; max-width: 210px; }
.poyvi-hero .hero-actions { display: flex; flex-direction: row; gap: 6px; flex-wrap: nowrap; }
.poyvi-hero .icon-btn {
  width: 38px; height: 38px; border-radius: 12px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .22);
  transition: transform .15s var(--rv-ease), background .2s;
}
.poyvi-hero .icon-btn:active { transform: scale(.9); }
.poyvi-hero .icon-btn svg { width: 19px; height: 19px; }
/* Favoritos y cuenta viven en la barra de navegación: no los repetimos */
body.rv-listo .poyvi-hero #btn-favs,
body.rv-listo .poyvi-hero #cuenta-slot { display: none; }

/* Poyi a la derecha con su burbuja a la izquierda */
.poyvi-hero .hero-poyi {
  position: relative;
  left: auto; bottom: auto;
  flex-direction: row-reverse;
  justify-content: flex-start;
  align-items: flex-end;
  padding: 0 10px 0 16px;
  margin-top: -40px;
  min-height: 60px;
}
.poyvi-hero .poyi-mascot { width: 112px; height: 112px; }
.poyvi-hero .poyi-bubble { max-width: 215px; margin-bottom: 20px; margin-right: -4px; font-size: 13px; }
.poyvi-hero .poyi-bubble::after { left: auto; right: -10px; border-right-color: transparent; border-left: 10px solid var(--poyi-gold); border-right: 0; }
.poyvi-hero .poyi-bubble::before { left: auto; right: -7px; border-right-color: transparent; border-left: 8px solid #FFFCEF; border-right: 0; }
.poyvi-hero .hero-poyi.bubble-hidden { margin-top: -54px; }

/* Buscador dentro de la cabecera */
.hero-buscador { position: relative; z-index: 6; padding: 6px 16px 0; }
.floating-search-bar.en-cabecera {
  position: static;
  padding: 0;
  background: none;
  pointer-events: auto;
  transform: none !important;
}
.floating-search-bar.en-cabecera .floating-search-inner {
  max-width: none;
  border: 0;
  border-radius: 16px;
  padding: 5px 6px 5px 8px;
  background: var(--surface);
  box-shadow: 0 10px 26px rgba(40, 0, 0, .22);
  animation: none;
}
.floating-search-bar.en-cabecera .fs-icon-box { width: 36px; height: 36px; border-radius: 12px; }
.floating-search-bar.en-cabecera input.floating-search-input { font-size: 15.5px; font-weight: 700; padding: 11px 2px !important; }
/* Al bajar, el buscador queda pegado arriba */
body.rv-buscador-pegado .floating-search-bar.en-cabecera.visible {
  position: fixed;
  /* FIX: la regla base deja bottom:0; sin "bottom:auto" la barra fija ocupaba
     TODA la pantalla (invisible) y tapaba los toques en celular. */
  top: 0; left: 0; right: 0; bottom: auto;
  height: auto;
  z-index: 950;
  padding: 8px 12px;
  background: linear-gradient(135deg, var(--red-700, #b3261e), var(--red-900, #6b0f0f));
  box-shadow: 0 6px 20px rgba(40, 0, 0, .28);
  animation: rvBajar .3s var(--rv-ease) both;
}
body.rv-buscador-pegado .floating-search-bar.en-cabecera .floating-search-inner { max-width: 460px; margin: 0 auto; }
@keyframes rvBajar { from { transform: translateY(-100%); } to { transform: none; } }

/* ---------- 3. Barra de navegación ---------- */
.rv-tabbar { display: none; }
body.rv-con-tabbar .rv-tabbar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 940;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 22px rgba(60, 10, 10, .08);
}
.rv-tabbar button {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: none; border: 0; cursor: pointer;
  color: var(--text-muted);
  font-size: 11px; font-weight: 800;
  padding: 6px 2px 4px;
  -webkit-tap-highlight-color: transparent;
}
.rv-tabbar .rv-tab-ic { display: grid; place-items: center; height: 26px; transition: transform .25s var(--rv-rebote); }
.rv-tabbar .rv-tab-ic .ic { width: 23px; height: 23px; }
.rv-tabbar button.activa { color: var(--primary); }
.rv-tabbar button.activa .rv-tab-ic { transform: translateY(-2px) scale(1.12); }
.rv-tabbar button.activa .rv-tab-ic .ic { stroke-width: 2.4; }
.rv-tabbar button.activa::before {
  content: ''; position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 3px; border-radius: 3px; background: var(--primary);
}
.rv-tabbar button:active .rv-tab-ic { transform: scale(.88); }
/* Espacio para que la barra no tape el final de cada pantalla */
body.rv-con-tabbar .view.active { padding-bottom: calc(var(--rv-tabbar-alto) + 22px + env(safe-area-inset-bottom, 0px)); }
body.rv-con-tabbar .toast { bottom: calc(var(--rv-tabbar-alto) + 18px); }

/* ---------- 4. Categorías y filtros ---------- */
.rv-cats {
  display: flex; gap: 12px;
  overflow-x: auto;
  padding: 16px 16px 6px;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.rv-cats::-webkit-scrollbar { display: none; }
.rv-cats:empty { display: none; }
.rv-cat {
  flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  width: 70px;
  background: none; border: 0; cursor: pointer; padding: 0;
  color: var(--text);
  font-size: 11.5px; font-weight: 800; line-height: 1.15;
  scroll-snap-align: start;
  -webkit-tap-highlight-color: transparent;
}
.rv-cat-ic {
  width: 60px; height: 60px; border-radius: 20px;
  display: grid; place-items: center;
  background: var(--surface);
  color: var(--primary);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  transition: transform .25s var(--rv-rebote), background .2s, color .2s;
}
.rv-cat-ic .ic { width: 27px; height: 27px; stroke-width: 1.8; }
.rv-cat-txt { max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-cat.activa .rv-cat-ic { background: var(--primary); color: #fff; border-color: var(--primary); transform: translateY(-3px) scale(1.05); box-shadow: var(--shadow-red); }
.rv-cat.activa .rv-cat-txt { color: var(--primary); }
.rv-cat.rv-rebote .rv-cat-ic { animation: rvRebote .45s var(--rv-rebote); }
@keyframes rvRebote { 0% { transform: scale(.85); } 60% { transform: scale(1.12); } 100% { transform: translateY(-3px) scale(1.05); } }

/* Filtros de siempre (abiertos, cerca, tipo de local, comida, orden) en una fila de chips */
#home-filters {
  display: flex; gap: 8px; align-items: center;
  overflow-x: auto; scrollbar-width: none;
  padding: 6px 16px 4px;
}
#home-filters::-webkit-scrollbar { display: none; }
#home-filters .quick-filters-row,
#home-filters .filters-row,
#home-filters .filter-select-wrap { display: contents; }
#home-filters .quick-filter-chip,
#home-filters .filter-select {
  flex: 0 0 auto;
  height: 38px;
  border-radius: 99px;
  font-size: 13px; font-weight: 800;
  border: 1px solid var(--border-strong);
  background-color: var(--surface);
  color: var(--text);
  margin: 0;
  white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}
#home-filters .quick-filter-chip { padding: 0 14px; display: inline-flex; align-items: center; gap: 6px; }
#home-filters .quick-filter-chip:active { transform: scale(.95); }
#home-filters .quick-filter-chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }
#home-filters .filter-select {
  -webkit-appearance: none; appearance: none;
  width: auto; max-width: 200px;
  padding: 0 32px 0 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23d63124' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
}
#home-filters .filter-select.has-filter { background-color: var(--accent-soft); border-color: var(--primary); color: var(--primary-deep); }
#home-filters .filter-select-wrap::after { display: none; }

/* ---------- 5. Bloques de la home ---------- */
/* Títulos de sección: sin mayúsculas gritonas */
.top-section-title h2,
.section-title h2 { text-transform: none; letter-spacing: -0.01em; font-size: 20px; font-weight: 900; }
.section-title { padding: 18px 16px 4px; }

/* Banner de instalación más liviano */
.install-banner { margin: 14px 16px 0; border-radius: var(--rv-radio); }

/* Botones con Poyi (almuerzos, empleos) */
.btn-lunches-today, .btn-jobs-cta { position: relative; overflow: hidden; min-height: 74px; border-radius: var(--rv-radio); }
.rv-cta-poyi { width: 58px; height: 58px; object-fit: contain; flex-shrink: 0; margin: -6px 0 -6px -4px; filter: drop-shadow(0 4px 8px rgba(0,0,0,.2)); animation: rvFlotar 4s ease-in-out infinite; }
.btn-lunches-today .rv-cta-poyi + .lunch-icon,
.btn-jobs-cta .rv-cta-poyi + .job-icon-box { display: none; }
@keyframes rvFlotar { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-4px) rotate(-3deg); } }

/* Top 5 estilo B: número gigante + tarjeta con foto */
.top-scroll { gap: 2px; padding: 8px 16px 16px; scroll-snap-type: x mandatory; }
.top-card.rv-top-card {
  position: relative;
  flex: 0 0 auto;
  width: 170px; min-width: 170px; height: 178px;
  padding: 0 0 0 54px;
  background: none; border: 0; box-shadow: none;
  scroll-snap-align: start;
  cursor: pointer;
  overflow: visible;
}
.top-card.rv-top-card::before, .top-card.rv-top-card::after { display: none; }
.rv-top-num.top-rank {
  position: absolute;
  left: -2px; bottom: -22px; top: auto;
  width: auto; height: auto;
  background: none !important; box-shadow: none !important; border: 0; border-radius: 0;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 150px; font-weight: 900; line-height: 1;
  color: var(--bg);
  -webkit-text-stroke: 3px var(--primary);
  letter-spacing: -0.06em;
  z-index: 0;
  transition: transform .35s var(--rv-rebote);
}
.rv-top-num.gold   { -webkit-text-stroke-color: #e0a81e; }
.rv-top-num.silver { -webkit-text-stroke-color: #9aa3ae; }
.rv-top-num.bronze { -webkit-text-stroke-color: #b76a2d; }
.rv-top-foto {
  position: relative; z-index: 1;
  width: 116px; height: 170px;
  border-radius: 16px; overflow: hidden;
  background: var(--primary);
  box-shadow: 0 10px 24px rgba(40, 0, 0, .25);
  transition: transform .3s var(--rv-ease);
}
.rv-top-portada { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rv-top-foto::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.82) 100%); }
.rv-top-foto .top-card-thumb {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  width: 40px; height: 40px; min-width: 0;
  border-radius: 12px; overflow: hidden;
  border: 2px solid #fff; box-shadow: 0 3px 10px rgba(0,0,0,.3);
  display: grid; place-items: center; color: #fff; font-weight: 900; margin: 0;
}
.rv-top-foto .top-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rv-top-txt { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 2; color: #fff; }
.rv-top-txt .top-card-name { color: #fff; font-size: 12.5px; font-weight: 900; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-align: left; margin: 0; }
.rv-top-txt .top-card-meta { color: #ffe9a8; font-size: 11.5px; font-weight: 800; justify-content: flex-start; margin-top: 2px; }
.rv-top-card:active .rv-top-foto { transform: scale(.96); }
@media (hover: hover) {
  .rv-top-card:hover .rv-top-foto { transform: translateY(-4px) rotate(-1deg); }
  .rv-top-card:hover .rv-top-num { transform: translateX(-4px) scale(1.04); }
}

/* Tablero con mini podio */
.btn-leaderboard.rv-con-podio { flex-wrap: wrap; align-items: center; }
.rv-podio-mini {
  flex: 1 0 100%;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end; gap: 8px;
  margin-top: 12px;
  position: relative; z-index: 1;
}
.rv-podio-lugar { display: flex; flex-direction: column; align-items: center; min-width: 0; text-align: center; }
.rv-podio-logo { width: 44px; height: 44px; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 4px 10px rgba(0,0,0,.25); border: 2px solid rgba(255,255,255,.85); }
.rv-podio-lugar.p1 .rv-podio-logo { width: 54px; height: 54px; border-color: #f9d65c; }
.rv-podio-logo img, .rv-podio-logo span { width: 100%; height: 100%; object-fit: cover; display: grid; place-items: center; color: #fff; font-weight: 900; }
.rv-podio-nom { font-size: 11px; font-weight: 800; margin-top: 4px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; }
.rv-podio-xp { width: 100%; margin-top: 4px; border-radius: 10px 10px 4px 4px; background: rgba(255,255,255,.2); color: #fff; font-size: 11.5px; font-weight: 900; padding: 6px 0; }
.rv-podio-lugar.p1 .rv-podio-xp { background: #f9d65c; color: #4a3300; padding: 12px 0; }
.rv-podio-lugar.p2 .rv-podio-xp { padding: 8px 0; }
.rv-medalla { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 900; color: #fff; margin-bottom: 3px; box-shadow: inset 0 -2px 0 rgba(0,0,0,.15); }
.rv-medalla.m1 { background: linear-gradient(#f9d65c, #e0a81e); }
.rv-medalla.m2 { background: linear-gradient(#d9dde3, #a6adb8); }
.rv-medalla.m3 { background: linear-gradient(#e8a46a, #b76a2d); }
.rv-podio-lugar.p1 { animation: rvSubirPodio .7s .1s var(--rv-rebote) both; }
.rv-podio-lugar.p2 { animation: rvSubirPodio .7s .25s var(--rv-rebote) both; }
.rv-podio-lugar.p3 { animation: rvSubirPodio .7s .4s var(--rv-rebote) both; }
@keyframes rvSubirPodio { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Recomiéndame + Duelo como mosaicos */
.rv-tiles-fila { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 16px 0; }
.rv-tiles-fila:has(.duel-cta-section:empty) { grid-template-columns: 1fr; }
.rv-tiles-fila > .recommend-cta-section,
.rv-tiles-fila > .duel-cta-section { padding: 0; margin: 0; min-width: 0; }
.rv-tiles-fila > div:empty { display: none; }
.rv-tiles-fila .btn-recommend-place,
.rv-tiles-fila .btn-duel {
  height: 100%; min-height: 122px; margin: 0;
  flex-direction: column; align-items: flex-start; justify-content: space-between;
  text-align: left; border-radius: var(--rv-radio); gap: 10px;
}
.rv-tiles-fila .btn-recommend-place > svg:last-child,
.rv-tiles-fila .btn-duel > svg:last-child { display: none; }
.rv-tiles-fila .rp-info, .rv-tiles-fila .duel-info { font-size: 14.5px; line-height: 1.2; }
.rv-tiles-fila .rp-info small, .rv-tiles-fila .duel-info small { display: block; margin-top: 4px; font-size: 11.5px; line-height: 1.3; }
.rv-tiles-fila:not(:has(.duel-cta-section:empty)) .rp-info small { display: none; }

/* Ruleta + Arcade lado a lado, con Poyi */
.rv-juegos-fila { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 16px 0; }
.rv-juegos-fila > .roulette-cta-section,
.rv-juegos-fila > .arcade-cta-section { padding: 0; margin: 0; min-width: 0; }
.rv-juegos-fila .btn-roulette,
.rv-juegos-fila .btn-arcade {
  position: relative; overflow: hidden;
  width: 100%; height: 100%; min-height: 158px; margin: 0;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end;
  text-align: left; border-radius: var(--rv-radio);
  padding: 14px;
}
.rv-juegos-fila .rv-tile-poyi {
  position: absolute; top: 4px; right: 2px;
  width: 84px; height: 84px; object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.3));
  animation: rvFlotar 4.5s ease-in-out infinite;
  pointer-events: none; z-index: 1;
}
.rv-juegos-fila .btn-roulette .roul-icon-box { position: absolute; top: 12px; left: 12px; }
.rv-juegos-fila .btn-roulette > svg:last-child { display: none; }
.rv-juegos-fila .roul-text { font-size: 15px; line-height: 1.15; position: relative; z-index: 2; }
.rv-juegos-fila .roul-text small { display: block; margin-top: 3px; font-size: 11px; }
.rv-juegos-fila .arcade-content { flex-direction: column; align-items: flex-start; gap: 8px; position: relative; z-index: 2; width: 100%; }
.rv-juegos-fila .arcade-icon { display: none; }
.rv-juegos-fila .arcade-badges { flex-direction: row; flex-wrap: wrap; gap: 4px; margin: 0; }

/* Contadores y paddings de las secciones sueltas */
.lunches-cta-section, .jobs-cta-section, .leaderboard-cta-section { padding-left: 16px; padding-right: 16px; }

/* ---------- 6. Tarjetas de locales ---------- */
.list { padding: 10px 16px 0; gap: 14px; }
.card.rv-card {
  display: block;
  padding: 0;
  overflow: hidden;
  border-radius: var(--rv-radio);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  margin: 0 0 14px;
  animation: rvCardEntra .55s calc(var(--rv-i, 0) * 45ms) var(--rv-ease) both;
  transition: transform .25s var(--rv-ease), box-shadow .25s var(--rv-ease);
  cursor: pointer;
}
.card.rv-card::before, .card.rv-card::after { display: none; }
.card.rv-card.rv-sin-anim { animation: none; }
.card.rv-card.rv-oculta { display: none !important; }
.card.rv-card:active { transform: scale(.985); }
.card.rv-card.premium { box-shadow: 0 0 0 2px #e8b931, 0 10px 28px rgba(212, 160, 23, .28); border-color: transparent; }
.card.rv-card.pro { box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--card-accent, var(--primary)) 70%, transparent), var(--shadow-md); }
@keyframes rvCardEntra { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }

.rv-card-foto { position: relative; height: 150px; background: var(--accent-soft); }
.rv-card-foto > img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--rv-ease); }
.rv-card-foto-vacia { width: 100%; height: 100%; display: grid; place-items: center; color: rgba(255,255,255,.55); font-size: 64px; font-weight: 900; }
.rv-card.rv-cerrado .rv-card-foto > img { filter: grayscale(.35) brightness(.9); }
.rv-estado {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 99px;
  background: rgba(255,255,255,.95); color: #166534;
  font-size: 11.5px; font-weight: 900;
  box-shadow: 0 3px 10px rgba(0,0,0,.15);
}
.rv-estado i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.25); animation: rvPulso 1.8s infinite; }
.rv-estado.cerrado { background: rgba(20, 10, 10, .78); color: #fff; }
.rv-estado.cerrado i { background: #f87171; box-shadow: none; animation: none; }
@keyframes rvPulso { 50% { box-shadow: 0 0 0 6px rgba(34,197,94,0); } }
.rv-card .fav-btn {
  position: absolute; top: 9px; right: 9px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.95); color: #1c1212;
  display: grid; place-items: center; border: 0;
  box-shadow: 0 3px 10px rgba(0,0,0,.15);
}
.rv-card .fav-btn .ic { width: 19px; height: 19px; }
.rv-card .fav-btn .heart-empty, .rv-card .fav-btn .heart-full { display: grid; place-items: center; }
.rv-card .fav-btn .heart-full { display: none; }
.rv-card .fav-btn.active { color: #e11d48; }
.rv-card .fav-btn.active .heart-empty { display: none; }
.rv-card .fav-btn.active .heart-full { display: grid; }
.rv-card .fav-btn.rv-latido { animation: rvLatido .45s var(--rv-rebote); }
@keyframes rvLatido { 0% { transform: scale(.7); } 50% { transform: scale(1.3); } 100% { transform: scale(1); } }
.rv-card .card-brand-stripe { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; top: auto; width: auto; border-radius: 0; z-index: 1; }
.rv-card .rv-card-logo.card-thumb {
  position: absolute; left: 14px; bottom: -24px; z-index: 3;
  width: 56px; height: 56px; min-width: 0; margin: 0;
  border-radius: 17px; overflow: hidden;
  border: 3px solid var(--surface);
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
  display: grid; place-items: center;
  color: #fff; font-size: 22px; font-weight: 900;
  background: var(--primary);
}
.rv-card .rv-card-logo img { width: 100%; height: 100%; object-fit: cover; }
.rv-card-info.card-info { padding: 30px 14px 14px; min-width: 0; }
.rv-card-info h3 { font-size: 17px; font-weight: 900; margin: 0; line-height: 1.25; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.rv-desc { margin: 3px 0 0; color: var(--text-muted); font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; margin-top: 7px; font-size: 13px; font-weight: 700; color: var(--text-muted); }
.rv-card-meta > span { display: inline-flex; align-items: center; gap: 4px; }
.rv-nota { color: var(--text); }
.rv-nota .ic { color: #f5a623; width: 15px; height: 15px; }
.rv-nota b { font-weight: 900; }
.rv-nota small { color: var(--text-muted); font-weight: 700; font-size: 12px; }
.rv-nota.vacia { font-style: italic; font-weight: 600; }
.rv-recs .ic { width: 14px; height: 14px; }
.rv-tags { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.rv-comidas { margin-top: 8px; }
.rv-comidas .card-meal-tag { display: inline-flex; align-items: center; gap: 4px; }
.rv-comidas .card-meal-tag .ic { width: 12px; height: 12px; }
.rv-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.rv-pill { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 800; padding: 4px 9px; border-radius: 99px; background: var(--accent-soft); color: var(--primary-deep); }
.rv-pill .ic { width: 13px; height: 13px; }
.rv-pill.empleo { background: #e0e7ff; color: #3730a3; }
.rv-pill.almuerzo { background: #fff1e0; color: #b45309; }
[data-theme="dark"] .rv-pill.empleo { background: #23264a; color: #c7d2fe; }
[data-theme="dark"] .rv-pill.almuerzo { background: #3a2410; color: #fdba74; }
.rv-card .card-distance { margin-top: 8px; display: inline-flex; align-items: center; gap: 4px; }
.rv-card .card-distance .ic { width: 12px; height: 12px; }
@media (hover: hover) {
  .card.rv-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(60, 10, 10, .16); }
  .card.rv-card:hover .rv-card-foto > img { transform: scale(1.05); }
}
.rv-mas-locales { padding: 2px 16px 6px; }
.rv-mas-locales:empty { display: none; }
.rv-btn-mas {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 14px; border-radius: 16px; cursor: pointer;
  background: var(--surface); color: var(--text);
  border: 1.5px dashed var(--border-strong);
  font-size: 15px; font-weight: 900;
  transition: background .2s, transform .15s;
}
.rv-btn-mas:active { transform: scale(.98); }
.rv-btn-mas .ic { color: var(--primary); }

/* ---------- 7. Cierre ---------- */
.map-section, .add-local-section, .support-btn-section { margin-left: 16px; margin-right: 16px; }
/* "¿Tenés una idea?" plegado: se abre al tocar el título */
.contact-section .contact-header {
  width: 100%;
  display: flex; align-items: center; gap: 10px;
  background: none; border: 0; padding: 0; cursor: pointer;
  color: inherit; text-align: left;
}
.contact-section .contact-header h3 { margin: 0; flex: 1; }
.contact-section .rv-chev {
  width: 30px; height: 30px; border-radius: 10px; flex-shrink: 0;
  background: var(--accent-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23d63124' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
  transition: transform .3s var(--rv-ease);
}
.contact-section.rv-abierta .rv-chev { transform: rotate(180deg); }
.contact-section:not(.rv-abierta) > :not(.contact-header):not(.contact-decor):not(p) { display: none; }
.contact-section:not(.rv-abierta) > p { margin-bottom: 0; }
.contact-section.rv-abierta > .form-group,
.contact-section.rv-abierta > .btn { animation: rvAparecer .35s var(--rv-ease) both; }
@keyframes rvAparecer { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- 8. Animaciones de entrada ---------- */
.rv-entra { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--rv-ease), transform .6s var(--rv-ease); }
.rv-entra.rv-visto { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv-entra { opacity: 1; transform: none; transition: none; }
  .card.rv-card, .rv-podio-lugar, .rv-cta-poyi, .rv-tile-poyi, .rv-estado i { animation: none !important; }
}

/* ---------- 9. Escritorio ---------- */
@media (min-width: 1024px) {
  /* La barra de navegación pasa arriba, como menú de píldoras */
  body.rv-con-tabbar .rv-tabbar {
    top: 14px; bottom: auto;
    left: 50%; right: auto;
    transform: translateX(-50%);
    grid-template-columns: repeat(5, auto);
    gap: 4px;
    padding: 6px;
    border: 1px solid var(--border);
    border-radius: 99px;
    box-shadow: 0 10px 30px rgba(60, 10, 10, .14);
  }
  .rv-tabbar button { flex-direction: row; gap: 7px; font-size: 14px; padding: 9px 16px; border-radius: 99px; transition: background .2s, color .2s; }
  .rv-tabbar .rv-tab-ic { height: auto; }
  .rv-tabbar .rv-tab-ic .ic { width: 19px; height: 19px; }
  .rv-tabbar button:hover { background: var(--accent-soft); color: var(--primary); }
  .rv-tabbar button.activa { background: var(--primary); color: #fff; }
  .rv-tabbar button.activa::before { display: none; }
  .rv-tabbar button.activa .rv-tab-ic { transform: none; }
  body.rv-con-tabbar { padding-top: 78px; }
  body.rv-con-tabbar .view.active { padding-bottom: 34px; }
  body.rv-con-tabbar .toast { bottom: 30px; }

  /* Cabecera ancha: Poyi y burbuja a la derecha del título */
  .poyvi-hero { padding-bottom: 22px; }
  .poyvi-hero .hero-inner { padding: 26px 30px 0; }
  .poyvi-hero .hero-title { font-size: 44px; max-width: none; }
  .poyvi-hero .hero-poyi { position: absolute; right: 24px; top: 20px; bottom: auto; margin: 0; padding: 0; }
  .poyvi-hero .hero-actions { margin-right: 300px; }
  .poyvi-hero .poyi-mascot { width: 130px; height: 130px; }
  .hero-buscador { display: none; }
  body.rv-listo .poyvi-hero #btn-favs, body.rv-listo .poyvi-hero #cuenta-slot { display: none; }

  /* El sidebar vuelve a ser columna (los filtros apilados) */
  #view-home.view.active > #home-filters { display: block; overflow: visible; }
  #view-home.view.active > #home-filters .quick-filters-row { display: flex; flex-wrap: wrap; gap: 8px; }
  #view-home.view.active > #home-filters .filters-row { display: flex; flex-direction: column; gap: 9px; }
  #view-home.view.active > #home-filters .filter-select-wrap { display: block; }
  #view-home.view.active > #home-filters .filter-select { width: 100%; max-width: none; }

  /* Categorías, mosaicos y juegos usan todo el ancho de la columna */
  #view-home.view.active > .rv-cats { padding: 18px 0 6px; flex-wrap: wrap; overflow: visible; }
  .rv-cat { width: 84px; }
  .rv-cat-ic { width: 70px; height: 70px; }
  #view-home.view.active > .rv-tiles-fila,
  #view-home.view.active > .rv-juegos-fila,
  #view-home.view.active > .rv-mas-locales { padding-left: 0; padding-right: 0; }
  #view-home.view.active > .rv-juegos-fila .btn-roulette,
  #view-home.view.active > .rv-juegos-fila .btn-arcade { min-height: 176px; }
  #view-home.view.active > .rv-juegos-fila .rv-tile-poyi { width: 110px; height: 110px; }
  #view-home.view.active > .lunches-cta-section,
  #view-home.view.active > .jobs-cta-section,
  #view-home.view.active > .leaderboard-cta-section { padding-left: 0; padding-right: 0; }
  #view-home.view.active > .install-banner { margin-left: 0; margin-right: 0; }
  #view-home.view.active > .map-section,
  #view-home.view.active > .add-local-section,
  #view-home.view.active > .support-btn-section { margin-left: 0; margin-right: 0; }

  /* Top 5 entra completo sin scroll */
  #view-home.view.active .top-scroll { padding-left: 0; padding-right: 0; justify-content: space-between; overflow: visible; }
  .top-card.rv-top-card { width: 182px; min-width: 182px; }

  /* Grilla de locales: tarjetas parejas */
  #view-home.view.active > .list { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; grid-auto-rows: auto; }
  #view-home.view.active > .list > .card.rv-card { display: block; height: auto; margin: 0; }
  #view-home.view.active > .list > .card.rv-card .rv-card-foto { height: 160px; }
}
@media (min-width: 1500px) {
  .top-card.rv-top-card { width: 200px; min-width: 200px; }
}

/* ---------- Ajustes tras la primera revisión en localhost ---------- */
/* Cabecera celular: la burbuja va debajo del título, sin pisarlo */
.poyvi-hero .hero-eyebrow { white-space: nowrap; letter-spacing: .16em; }
.poyvi-hero .hero-poyi { margin-top: -6px; }
.poyvi-hero .hero-poyi.bubble-hidden { margin-top: -62px; }
/* Títulos de "Promociones" y "Mapa": mismo estilo que el resto */
.promos-divider h2, .map-section-title h2 { text-transform: none; letter-spacing: -0.01em; font-size: 20px; font-weight: 900; }
/* Mosaicos de juegos: el texto va debajo de Poyi */
.rv-juegos-fila .btn-roulette, .rv-juegos-fila .btn-arcade { justify-content: flex-end; padding-top: 92px; }
.rv-juegos-fila .btn-roulette .roul-icon-box { display: none; }
@media (min-width: 1024px) {
  .poyvi-hero { min-height: 196px; }
  .poyvi-hero .hero-inner { padding-bottom: 18px; }
  .poyvi-hero .hero-poyi { top: auto; bottom: 14px; right: 30px; }
  .poyvi-hero .poyi-mascot { width: 150px; height: 150px; }
  .poyvi-hero .hero-actions { margin-right: 0; position: absolute; right: 30px; top: 22px; z-index: 6; }
  .poyvi-hero .hero-poyi { right: 140px; }
  #view-home.view.active .top-scroll { justify-content: flex-start; overflow-x: auto; overflow-y: visible; padding-bottom: 22px; }
  .top-card.rv-top-card, .top-card.rv-top-card:first-child { width: 176px; min-width: 176px; }
  .rv-juegos-fila .btn-roulette, .rv-juegos-fila .btn-arcade { padding-top: 110px; }
}

/* =========================================================
   10. PERFIL DEL LOCAL (compacto, con pestañas)
   ========================================================= */
#view-detail > .back-bar { display: none; }
.rv-perfil { padding-bottom: 10px; }
.rv-pf-portada {
  position: relative; height: 176px; overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(255,255,255,.22), transparent 55%),
    linear-gradient(135deg, var(--acento), color-mix(in srgb, var(--acento) 55%, #000));
}
.rv-pf-portada.con-foto { height: 210px; }
.rv-pf-cover { width: 100%; height: 100%; object-fit: cover; display: block; animation: rvZoomLento 9s ease-out both; }
@keyframes rvZoomLento { from { transform: scale(1.08); } to { transform: scale(1); } }
.rv-pf-nanduti { position: absolute; right: -40px; top: -30px; width: 220px; height: 220px; color: rgba(255,255,255,.18); fill: currentColor; animation: rvGirar 60s linear infinite; }
@keyframes rvGirar { to { transform: rotate(360deg); } }
.rv-pf-sombra { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,.25) 100%); }
.rv-pf-btn {
  position: absolute; top: 14px; z-index: 3;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; border: 0; cursor: pointer;
  background: rgba(255,255,255,.94); color: #1c1212;
  box-shadow: 0 4px 14px rgba(0,0,0,.22);
  transition: transform .15s var(--rv-ease);
}
.rv-pf-btn:active { transform: scale(.9); }
.rv-pf-btn .ic { width: 21px; height: 21px; }
.rv-pf-btn.on { color: #e11d48; }
.rv-pf-btn.rv-latido { animation: rvLatido .45s var(--rv-rebote); }
.rv-pf-volver { left: 14px; }
.rv-pf-btns-der { position: absolute; top: 0; right: 14px; display: flex; gap: 8px; z-index: 3; }
.rv-pf-btns-der .rv-pf-btn { position: static; margin-top: 14px; }
.rv-pf-premium { position: absolute; right: 14px; bottom: 12px; z-index: 3; }

.rv-pf-id { display: flex; gap: 14px; align-items: flex-end; padding: 0 16px; margin-top: -46px; position: relative; z-index: 4; }
.rv-pf-logo.card-thumb {
  width: 92px; height: 92px; min-width: 92px; margin: 0;
  border-radius: 26px; overflow: hidden;
  border: 4px solid var(--bg); background: var(--primary);
  box-shadow: 0 10px 26px rgba(0,0,0,.22);
  display: grid; place-items: center; color: #fff; font-size: 36px; font-weight: 900;
  animation: rvPop .5s .1s var(--rv-rebote) both;
}
.rv-pf-logo img { width: 100%; height: 100%; object-fit: cover; }
@keyframes rvPop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.rv-pf-id-txt { flex: 1; min-width: 0; padding-bottom: 2px; padding-top: 52px; }
.rv-pf-id-txt .detail-title { font-size: 24px; font-weight: 900; line-height: 1.12; margin: 0; color: var(--text); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; text-shadow: none; }
.rv-pf-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 6px; font-size: 13px; font-weight: 800; color: var(--text-muted); }
.rv-estado-pf { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 3px; border-radius: 99px; font-weight: 900; font-size: 12px; }
.rv-estado-pf img { width: 24px; height: 24px; object-fit: contain; }
.rv-estado-pf.abierto { background: #dcfce7; color: #166534; }
.rv-estado-pf.cerrado { background: var(--accent-soft); color: var(--primary-deep); }
[data-theme="dark"] .rv-estado-pf.abierto { background: #14331f; color: #86efac; }
.rv-pf-nota { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; padding: 0; cursor: pointer; color: var(--text); font-size: 13px; font-weight: 800; }
.rv-pf-nota .ic { color: #f5a623; width: 15px; height: 15px; }
.rv-pf-nota small { color: var(--text-muted); }
.rv-pf-nota.vacia { color: var(--text-muted); font-style: italic; }
.rv-pf-recs { display: inline-flex; align-items: center; gap: 4px; }
.rv-pf-recs .ic { width: 14px; height: 14px; }
.rv-pf-tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 16px 0; }
.rv-pf-tag { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); font-size: 12px; font-weight: 800; color: var(--text); }
.rv-pf-tag.comida { color: var(--primary-deep); background: var(--accent-soft); border-color: transparent; }
.rv-pf-tag .ic { width: 13px; height: 13px; }

.rv-pf-acciones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 14px 16px 0; }
.rv-pf-acciones.n5 { grid-template-columns: repeat(5, 1fr); }
.rv-pf-acciones.n3 { grid-template-columns: repeat(3, 1fr); }
.rv-pf-acciones.n2 { grid-template-columns: repeat(2, 1fr); }
.rv-pf-accion {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  min-height: 70px; padding: 10px 2px;
  border-radius: 18px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text);
  font-size: 11.5px; font-weight: 800; text-decoration: none; text-align: center; line-height: 1.15;
  cursor: pointer; box-shadow: var(--shadow-sm);
  transition: transform .15s var(--rv-ease), background .2s;
}
.rv-pf-accion .ic { width: 23px; height: 23px; color: var(--primary); }
.rv-pf-accion:active { transform: scale(.93); }
.rv-pf-accion.wa { background: #25d366; border-color: #25d366; color: #fff; box-shadow: 0 8px 20px rgba(37,211,102,.32); }
.rv-pf-accion.wa .ic { color: #fff; }
.rv-pf-accion.btn-recommend.active { background: var(--accent-soft); border-color: var(--primary); color: var(--primary-deep); }
.rv-pf-pedido { display: flex; gap: 8px; margin: 12px 16px 0; padding: 10px 12px; border-radius: 14px; background: var(--accent-soft); font-size: 13px; line-height: 1.45; }
.rv-pf-pedido .ic { color: var(--primary); width: 17px; height: 17px; margin-top: 1px; }
.rv-pf-pedido strong { color: var(--primary-deep); }

.rv-pf-stories { margin: 14px 16px 0; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.rv-pf-stories summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; font-size: 14px; }
.rv-pf-stories summary::-webkit-details-marker { display: none; }
.rv-anillo { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; background: conic-gradient(#f59e0b, #ec4899, #8b5cf6, #f59e0b); -webkit-mask: radial-gradient(circle, transparent 9px, #000 10px); mask: radial-gradient(circle, transparent 9px, #000 10px); }
.rv-pf-chev { margin-left: auto; display: grid; transition: transform .3s var(--rv-ease); color: var(--text-muted); }
.rv-pf-stories[open] .rv-pf-chev { transform: rotate(180deg); }
.rv-pf-stories .poyvi-local-carousel { padding: 0 10px 12px; margin: 0; }
.rv-pf-almuerzo { padding: 12px 16px 0; margin: 0; }
.rv-pf-almuerzo .btn-lunch { display: flex; align-items: center; gap: 10px; width: 100%; border-radius: 18px; }
.rv-pf-almuerzo .lunch-chevron { margin-left: auto; display: grid; }

/* Pestañas pegadas arriba */
.rv-pf-tabs {
  position: sticky; top: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 16px;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.rv-pf-tabs button { position: relative; background: none; border: 0; cursor: pointer; padding: 14px 4px 12px; font-size: 14.5px; font-weight: 800; color: var(--text-muted); display: inline-flex; align-items: center; justify-content: center; gap: 5px; transition: color .2s; }
.rv-pf-tabs button.activa { color: var(--text); }
.rv-pf-n { min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 900; display: inline-grid; place-items: center; }
.rv-pf-tabs-barra { position: absolute; left: 0; bottom: -1px; height: 3px; border-radius: 3px; background: var(--primary); transition: transform .35s var(--rv-ease), width .35s var(--rv-ease); }
.rv-pf-panel { padding: 14px 16px 0; min-height: 50vh; }
.rv-pf-panel.rv-pf-cambio { animation: rvAparecer .35s var(--rv-ease) both; }
.rv-pf-panel .menu-section { padding: 0; margin: 0; }
.rv-pf-panel .menu-grid { gap: 12px; }
.rv-pf-panel .menu-img { border-radius: 16px; }
.rv-pf-vista-carta { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 14px; border-radius: 16px; background: var(--accent-soft); }
.rv-pf-vista-carta button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 6px; border-radius: 12px; border: 0; background: none; font-size: 13.5px; font-weight: 800; color: var(--text-muted); cursor: pointer; }
.rv-pf-vista-carta button.activa { background: var(--primary); color: #fff; box-shadow: var(--shadow-red); }
.rv-pf-subtitulo { font-size: 19px; font-weight: 900; margin: 26px 0 8px; padding-top: 18px; border-top: 8px solid var(--accent-soft); }
.rv-pf-info { font-size: 14px; }
.rv-pf-desc { margin: 0 0 10px; line-height: 1.55; color: var(--text); }
.rv-pf-fila { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--border); color: var(--text); }
.rv-pf-fila > .ic { color: var(--primary); width: 18px; height: 18px; margin-top: 2px; }
.rv-pf-info .actions-extra, .rv-pf-info .actions-extra-share { padding: 12px 0 0; }
.rv-pf-info .btn .ic { width: 18px; height: 18px; }
.rv-pf-info .socials { padding-left: 0; padding-right: 0; }
.rv-pf-info .extras-section { padding-left: 0; padding-right: 0; }

.rv-pf-promos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.rv-pf-promo { position: relative; aspect-ratio: 9 / 14; border-radius: 16px; overflow: hidden; border: 0; padding: 0; cursor: pointer; background: var(--accent-soft); box-shadow: var(--shadow-md); }
.rv-pf-promo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--rv-ease); }
.rv-pf-promo:hover img { transform: scale(1.04); }
.rv-pf-promo-txt { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 9px; background: linear-gradient(transparent, rgba(0,0,0,.8)); color: #fff; font-size: 12px; font-weight: 800; text-align: left; }
.rv-pf-promo-play { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; display: grid; place-items: center; font-size: 11px; }
.rv-pf-promo-video { display: grid; place-items: center; height: 100%; color: var(--primary); }
.rv-pf-empleos { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 12px; padding: 10px 14px 10px 8px; border-radius: 18px; border: 0; cursor: pointer; text-align: left; color: #fff; background: linear-gradient(135deg, #4f46e5, #2563eb); box-shadow: 0 10px 24px rgba(37,99,235,.3); }
.rv-pf-empleos img { width: 56px; height: 56px; object-fit: contain; }
.rv-pf-empleos div { flex: 1; }
.rv-pf-empleos b { display: block; font-size: 15px; }
.rv-pf-empleos small { opacity: .9; font-weight: 700; }
.rv-pf-vacio-simple { text-align: center; padding: 40px 20px; color: var(--text-muted); }
.rv-pf-vacio-simple .ic { width: 44px; height: 44px; stroke-width: 1.6; color: var(--primary); }

.rv-pf-resenas { padding: 0; margin: 0; }
.rv-pf-resumen { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.rv-pf-resumen b { font-family: 'Fraunces', Georgia, serif; font-size: 44px; line-height: 1; }
.rv-pf-resumen .ic { color: #f5a623; width: 26px; height: 26px; }
.rv-pf-resumen span { color: var(--text-muted); font-weight: 700; font-size: 13px; flex-basis: 100%; }
.review-rating-pill .ic { width: 12px; height: 12px; color: #f5a623; }
.review-delete-btn .ic { width: 13px; height: 13px; }
.rv-btn-admin { background: transparent; color: var(--red-600, #c0262d); border: 1px solid var(--red-200, #f5c2c0); border-radius: 10px; padding: 6px 12px; font-size: 12px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }

@media (min-width: 1024px) {
  .rv-pf-portada { height: 240px; border-radius: 0 0 26px 26px; }
  .rv-pf-portada.con-foto { height: 280px; }
  .rv-pf-id { padding: 0 26px; }
  .rv-pf-logo.card-thumb { width: 116px; height: 116px; min-width: 116px; border-radius: 30px; }
  .rv-pf-id-txt .detail-title { font-size: 32px; }
  .rv-pf-acciones, .rv-pf-tags { padding-left: 26px; padding-right: 26px; }
  .rv-pf-acciones { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)) !important; }
  .rv-pf-accion { flex-direction: row; min-height: 52px; font-size: 14px; }
  .rv-pf-stories, .rv-pf-pedido { margin-left: 26px; margin-right: 26px; }
  .rv-pf-almuerzo { padding-left: 26px; padding-right: 26px; }
  .rv-pf-tabs { top: 78px; padding: 0 16px; }
  .rv-pf-panel { padding: 18px 26px 0; }
  .rv-pf-promos { grid-template-columns: repeat(4, 1fr); }
  .rv-pf-panel .menu-grid { grid-template-columns: repeat(2, 1fr); display: grid; }
  #view-detail.view.active > * { max-width: 860px; }
}

/* =========================================================
   11. PANEL DEL LOCAL (dueños) y CUENTAS DE DUEÑOS (admin)
   ========================================================= */
.rv-btn-panel { display: block; margin: 12px auto 0; background: none; border: 1.5px solid rgba(255,255,255,.7); color: #fff; font-weight: 800; font-size: 13.5px; padding: 9px 16px; border-radius: 99px; cursor: pointer; }
.panel-local { padding: 0 16px 30px; max-width: 640px; margin: 0 auto; }
.pl-cargando { display: grid; place-items: center; gap: 12px; padding: 70px 0; color: var(--text-muted); }
.pl-cab { display: flex; align-items: center; gap: 10px; padding: 18px 0 8px; }
.pl-cab h2 { margin: 0; font-size: 22px; font-weight: 900; }
.pl-volver { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.pl-volver .ic { width: 20px; height: 20px; }
.pl-ayuda { color: var(--text-muted); font-size: 14px; line-height: 1.5; margin: 4px 0 14px; }
.pl-ayuda b { color: var(--text); }
.pl-sub { font-size: 16px; font-weight: 900; margin: 22px 0 10px; }
.pl-vacio { color: var(--text-muted); text-align: center; padding: 20px; }
.pl-nota { color: var(--text-muted); font-size: 12.5px; text-align: center; margin-top: 18px; }

/* Login y contraseña */
.pl-login { text-align: center; padding: 18px 0 8px; max-width: 420px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.pl-login > .pl-cab { align-self: stretch; padding-top: 0; }
.pl-login h1 { font-size: 26px; font-weight: 900; margin: 12px 0 6px; }
.pl-login p { color: var(--text-muted); margin: 0 0 20px; line-height: 1.5; max-width: 340px; }
.pl-login form { text-align: left; align-self: stretch; display: flex; flex-direction: column; gap: 14px; }
.pl-login form .pl-btn-pri { width: 100%; margin-top: 6px; }
.pl-login .pl-campo input { width: 100%; box-sizing: border-box; }
.pl-poyi { display: block; width: 124px; height: 124px; margin: 0 auto; object-fit: contain; animation: rvFlotar 4s ease-in-out infinite; }
.pl-clave-caja { position: relative; display: block; }
.pl-clave-caja input { padding-right: 52px !important; }
.pl-ojo { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 12px; background: transparent; color: var(--text-muted); display: grid; place-items: center; cursor: pointer; }
.pl-ojo .ic { width: 20px; height: 20px; }
.pl-ojo.visible { color: var(--primary); }
#view-panel-local .pl-cab:first-child { max-width: 420px; margin-left: auto; margin-right: auto; }
.pl-candado { width: 76px; height: 76px; border-radius: 24px; margin: 6px auto 0; display: grid; place-items: center; background: var(--accent-soft); color: var(--primary); animation: rvPop .5s var(--rv-rebote) both; }
.pl-candado .ic { width: 36px; height: 36px; }
.pl-link { display: inline-block; margin-top: 16px; background: none; border: 0; color: var(--primary); font-weight: 800; font-size: 14px; cursor: pointer; text-decoration: none; }

/* Formularios */
.pl-form { display: flex; flex-direction: column; gap: 12px; }
.pl-campo { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 800; color: var(--text-muted); }
.pl-campo input, .pl-campo textarea, .pl-campo select {
  font: inherit; font-size: 15.5px; font-weight: 700; color: var(--text);
  background: var(--surface); border: 1.5px solid var(--border-strong); border-radius: 14px;
  padding: 12px 14px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.pl-campo input:focus, .pl-campo textarea:focus, .pl-campo select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent); }
.pl-campo input[type="color"] { padding: 2px; width: 44px; height: 38px; border-radius: 12px; }
.pl-dos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pl-btn-pri, .pl-btn-sec, .pl-btn-wa, .pl-btn-plan {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px; border-radius: 16px; border: 0; cursor: pointer;
  font: inherit; font-size: 15.5px; font-weight: 900; text-decoration: none;
  transition: transform .15s var(--rv-ease), opacity .2s;
}
.pl-btn-pri { background: var(--primary); color: #fff; box-shadow: var(--shadow-red); }
.pl-btn-pri:disabled { opacity: .6; }
.pl-btn-pri:active, .pl-btn-sec:active, .pl-btn-wa:active { transform: scale(.97); }
.pl-btn-sec { background: var(--surface); color: var(--text); border: 1.5px solid var(--border-strong); margin-top: 8px; }
.pl-btn-sec.peligro { color: var(--primary-deep); }
.pl-btn-wa { background: #25d366; color: #fff; box-shadow: 0 8px 20px rgba(37,211,102,.3); margin-top: 8px; }
.pl-btn-pri .ic, .pl-btn-sec .ic, .pl-btn-wa .ic { width: 19px; height: 19px; }
.pl-fijo { position: sticky; bottom: 12px; z-index: 5; margin-top: 8px; }
.pl-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.pl-chip { display: inline-flex; align-items: center; gap: 5px; padding: 8px 12px; border-radius: 99px; border: 1.5px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; transition: all .2s; }
.pl-chip .ic { width: 14px; height: 14px; }
.pl-chip.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.pl-colores { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pl-color { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 0 0 1.5px var(--border-strong); cursor: pointer; transition: transform .2s var(--rv-rebote); }
.pl-color.on { transform: scale(1.15); box-shadow: 0 0 0 2.5px var(--text); }

/* Inicio del panel */
.pl-hola { display: flex; align-items: center; gap: 12px; padding: 22px 0 14px; }
.pl-hola small { color: var(--text-muted); font-weight: 700; }
.pl-hola h1 { margin: 0; font-size: 24px; font-weight: 900; line-height: 1.1; }
.pl-logo { width: 58px; height: 58px; border-radius: 18px; overflow: hidden; flex-shrink: 0; display: grid; place-items: center; background: var(--primary); color: #fff; font-weight: 900; font-size: 24px; box-shadow: var(--shadow-md); border: 0; }
.pl-logo img { width: 100%; height: 100%; object-fit: cover; }
.pl-plan { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 20px; color: #fff; background: linear-gradient(135deg, #6b7280, #374151); flex-wrap: wrap; }
.pl-plan.pro { background: linear-gradient(135deg, #2563eb, #4f46e5); }
.pl-plan.premium { background: linear-gradient(135deg, #d4a017, #b45309); }
.pl-plan > div { flex: 1; min-width: 150px; }
.pl-plan b { display: block; font-size: 17px; }
.pl-plan small { opacity: .9; font-weight: 700; }
.pl-btn-plan { width: auto; padding: 10px 14px; font-size: 13.5px; background: #fff; color: #128c7e; }
.pl-btn-plan .ic { width: 17px; height: 17px; }
.pl-modulos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 14px; }
.pl-mod {
  position: relative; text-align: left; cursor: pointer;
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px; min-height: 112px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  box-shadow: var(--shadow-sm); font: inherit;
  animation: rvCardEntra .45s calc(var(--rv-i, 0) * 35ms) var(--rv-ease) both;
  transition: transform .15s var(--rv-ease);
}
.pl-mod:active { transform: scale(.97); }
.pl-mod-ic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-soft); color: var(--primary); margin-bottom: 4px; }
.pl-mod-ic .ic { width: 22px; height: 22px; }
.pl-mod b { font-size: 15px; font-weight: 900; }
.pl-mod small { color: var(--text-muted); font-weight: 700; font-size: 12.5px; }
.pl-barra { height: 5px; border-radius: 99px; background: var(--border); overflow: hidden; margin-top: auto; }
.pl-barra i { display: block; height: 100%; background: var(--primary); border-radius: 99px; }
.pl-mod.bloq { background: color-mix(in srgb, var(--surface) 80%, var(--border)); }
.pl-mod.bloq .pl-mod-ic { background: var(--border); color: var(--text-muted); }
.pl-req { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 99px; background: #1c1212; color: #fff; font-size: 10.5px; font-weight: 900; }
.pl-req .ic { width: 11px; height: 11px; }
.pl-acciones-fin { margin-top: 14px; }

/* Listas de fotos y publicaciones */
.pl-grilla { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pl-item { animation: rvCardEntra .4s calc(var(--rv-i, 0) * 30ms) var(--rv-ease) both; }
.pl-foto { position: relative; border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; }
.pl-foto img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; cursor: zoom-in; }
.pl-foto small { padding: 6px 10px; font-weight: 700; font-size: 12px; }
.pl-nota-foto { border: 0; border-top: 1px solid var(--border); padding: 8px 10px; font: inherit; font-size: 12.5px; background: none; color: var(--text); outline: none; }
.pl-foto-acc { position: absolute; top: 8px; right: 8px; display: flex; gap: 6px; }
.pl-foto-acc button { width: 32px; height: 32px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255,255,255,.95); color: #1c1212; cursor: pointer; box-shadow: 0 3px 8px rgba(0,0,0,.2); }
.pl-foto-acc button.peligro { color: #c0262d; }
.pl-foto-acc .ic { width: 16px; height: 16px; }
.pl-agregar { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 150px; border-radius: 16px; border: 2px dashed var(--border-strong); background: none; color: var(--primary); font: inherit; font-weight: 900; font-size: 14px; cursor: pointer; overflow: hidden; position: relative; }
.pl-agregar.ancho { min-height: 120px; width: 100%; }
.pl-agregar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.pl-agregar span { position: relative; z-index: 1; }
.pl-agregar img + span { background: rgba(0,0,0,.6); color: #fff; padding: 4px 10px; border-radius: 99px; }
.pl-agregar .ic { width: 28px; height: 28px; position: relative; z-index: 1; }
.pl-agregar.bloq { color: var(--text-muted); border-color: var(--border); padding: 14px; text-align: center; }
.pl-uso { height: 6px; border-radius: 99px; background: var(--border); overflow: hidden; margin: -6px 0 14px; }
.pl-uso i { display: block; height: 100%; background: var(--primary); }
.pl-turno { padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); margin-bottom: 10px; display: flex; flex-direction: column; gap: 10px; }
.pl-dias { display: flex; flex-wrap: wrap; gap: 6px; }
.pl-quitar { align-self: flex-start; background: none; border: 0; color: #c0262d; font: inherit; font-weight: 800; font-size: 13px; display: inline-flex; gap: 5px; align-items: center; cursor: pointer; }
.pl-quitar .ic { width: 15px; height: 15px; }
.pl-linea { padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); margin-bottom: 8px; display: flex; flex-direction: column; gap: 3px; }
.pl-linea small { color: var(--text-muted); font-weight: 700; }
.pl-linea p { margin: 0; line-height: 1.45; }
.pl-proximo { display: flex; gap: 12px; align-items: center; margin-top: 16px; padding: 14px; border-radius: 16px; background: var(--accent-soft); }
.pl-proximo > .ic { width: 28px; height: 28px; color: var(--primary); flex-shrink: 0; }
.pl-proximo b { display: block; }
.pl-proximo small { color: var(--text-muted); font-weight: 700; }
.pl-fotos-id { display: grid; grid-template-columns: 96px 1fr; gap: 10px; }
.pl-logo.grande { width: 96px; height: 96px; border-radius: 26px; position: relative; cursor: pointer; }
.pl-logo.grande span, .pl-banner span { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px; background: rgba(0,0,0,.55); color: #fff; font-size: 10.5px; font-weight: 800; text-align: center; display: flex; align-items: center; justify-content: center; gap: 4px; }
.pl-banner { position: relative; border-radius: 20px; overflow: hidden; border: 2px dashed var(--border-strong); background: var(--accent-soft); cursor: pointer; min-height: 96px; }
.pl-banner img { width: 100%; height: 100%; object-fit: cover; }
.pl-banner.bloq span { position: static; height: 100%; background: none; color: var(--text-muted); }
.pl-banner .ic, .pl-logo .ic { width: 14px; height: 14px; }
.pl-logo.grande > .ic { width: 30px; height: 30px; }
.pl-datos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pl-dato { padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 2px; }
.pl-dato .ic { width: 20px; height: 20px; color: var(--primary); }
.pl-dato b { font-family: 'Fraunces', Georgia, serif; font-size: 28px; line-height: 1.1; margin-top: 4px; }
.pl-dato small { color: var(--text-muted); font-weight: 700; }

/* Hoja "Requiere plan" y la de la clave temporal */
.pl-hoja-fondo { position: fixed; inset: 0; z-index: 2000; background: rgba(15, 5, 5, .55); display: flex; align-items: flex-end; justify-content: center; animation: rvAparecer .2s both; }
.pl-hoja { width: 100%; max-width: 480px; background: var(--bg); border-radius: 26px 26px 0 0; padding: 22px 18px calc(18px + env(safe-area-inset-bottom, 0px)); text-align: center; animation: rvSubirHoja .35s var(--rv-ease) both; }
@keyframes rvSubirHoja { from { transform: translateY(100%); } to { transform: none; } }
.pl-hoja h3 { font-size: 19px; font-weight: 900; margin: 10px 0 6px; }
.pl-hoja p { color: var(--text-muted); line-height: 1.5; margin: 0 0 12px; }
.pl-hoja-ic { width: 64px; height: 64px; border-radius: 20px; margin: 0 auto; display: grid; place-items: center; background: #1c1212; color: #fff; animation: rvPop .45s var(--rv-rebote) both; }
.pl-hoja-ic.ok { background: #16a34a; }
.pl-hoja-ic .ic { width: 30px; height: 30px; }
@media (min-width: 700px) { .pl-hoja-fondo { align-items: center; } .pl-hoja { border-radius: 26px; } }

/* Admin → cuentas de dueños */
.ad-nueva { padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); margin-top: 12px; }
.ad-nueva .pl-sub { margin: 0; }
.ad-cuenta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); margin-bottom: 8px; }
.ad-cuenta-txt { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 2px; }
.ad-cuenta-txt small { color: var(--text-muted); font-weight: 700; }
.ad-estado { align-self: flex-start; font-size: 11px; font-weight: 900; padding: 2px 8px; border-radius: 99px; margin-top: 4px; }
.ad-estado.ok { background: #dcfce7; color: #166534; }
.ad-estado.temporal { background: #fef3c7; color: #92400e; }
.ad-estado.pausa { background: var(--border); color: var(--text-muted); }
.ad-acciones { display: flex; gap: 6px; flex-wrap: wrap; }
.ad-acciones button { display: inline-flex; align-items: center; gap: 5px; padding: 8px 11px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--bg); color: var(--text); font: inherit; font-size: 12.5px; font-weight: 800; cursor: pointer; }
.ad-acciones button.peligro { color: #c0262d; }
.ad-acciones .ic { width: 15px; height: 15px; }
.ad-credenciales { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 6px 0 4px; text-align: left; }
.ad-credenciales div { padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.ad-credenciales small { display: block; color: var(--text-muted); font-weight: 700; font-size: 11.5px; }
.ad-credenciales code { font-size: 17px; font-weight: 900; color: var(--text); word-break: break-all; }
@media (min-width: 1024px) {
  .pl-modulos { grid-template-columns: repeat(3, 1fr); }
  .pl-grilla { grid-template-columns: repeat(3, 1fr); }
  .pl-datos { grid-template-columns: repeat(3, 1fr); }
  #view-panel-local.view.active > * { max-width: 760px; }
}

/* =========================================================
   12. CARTA DIGITAL, CARRITO Y EDITOR DE PLATOS
   ========================================================= */
.rv-pill.carta { background: #dcfce7; color: #166534; }
[data-theme="dark"] .rv-pill.carta { background: #14331f; color: #86efac; }
.cd-chips { position: sticky; top: 52px; z-index: 20; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 8px 0 10px; margin: -4px 0 4px; background: color-mix(in srgb, var(--bg) 94%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.cd-chips::-webkit-scrollbar { display: none; }
.cd-chips button { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 99px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit; font-size: 13.5px; font-weight: 800; cursor: pointer; transition: all .2s; }
.cd-chips button .ic { width: 16px; height: 16px; }
.cd-chips button.activa { background: var(--text); color: var(--bg); border-color: var(--text); }
.cd-cat { display: flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 900; margin: 18px 0 10px; scroll-margin-top: 120px; }
.cd-cat .ic { color: var(--primary); width: 22px; height: 22px; }
.cd-items { display: flex; flex-direction: column; gap: 10px; }
.cd-item { display: flex; gap: 12px; padding: 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); animation: rvCardEntra .4s var(--rv-ease) both; }
.cd-item.agotado { opacity: .55; }
.cd-item-txt { flex: 1; min-width: 0; }
.cd-item-txt h4 { margin: 0; font-size: 16px; font-weight: 900; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.cd-item-txt p { margin: 4px 0 6px; color: var(--text-muted); font-size: 13px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cd-item-txt b { font-size: 15px; font-weight: 900; }
.cd-item-txt b small { color: var(--text-muted); font-weight: 700; font-size: 12px; }
.cd-pop { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 900; padding: 2px 7px; border-radius: 99px; background: #fff1e6; color: #c2410c; }
.cd-pop .ic { width: 11px; height: 11px; }
.cd-agotado { display: inline-block; margin-top: 4px; font-size: 11.5px; font-weight: 900; color: var(--primary-deep); }
.cd-item-foto { position: relative; width: 104px; height: 104px; flex-shrink: 0; border-radius: 16px; overflow: visible; }
.cd-item-foto img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; cursor: zoom-in; }
.cd-item-foto > span { width: 100%; height: 100%; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft); color: var(--primary); }
.cd-mas { position: absolute; right: -6px; bottom: -6px; width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--surface); background: var(--primary); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-red); transition: transform .15s var(--rv-rebote); }
.cd-mas:active { transform: scale(.85); }
.cd-mas .ic { width: 20px; height: 20px; stroke-width: 2.6; }
.cd-fuente { color: var(--text-muted); font-size: 12px; text-align: center; margin: 14px 0 0; }
.cd-barra { position: fixed; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 960; max-width: 448px; margin: 0 auto; }
.cd-barra[hidden] { display: none; }
.cd-barra-btn { width: 100%; display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 18px; border: 0; cursor: pointer; background: var(--primary); color: #fff; font: inherit; font-size: 15.5px; font-weight: 900; box-shadow: 0 14px 30px rgba(214,49,36,.45); }
.cd-barra-btn b { margin-left: auto; }
.cd-cant { min-width: 26px; height: 26px; padding: 0 6px; border-radius: 9px; background: rgba(255,255,255,.25); display: inline-grid; place-items: center; }
body.cd-con-carrito .detail-float-cta { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
.cd-hoja { text-align: left; max-height: 88vh; overflow-y: auto; }
.cd-hoja.alta { min-height: 50vh; }
.cd-asa { width: 44px; height: 5px; border-radius: 99px; background: var(--border-strong); margin: -8px auto 12px; }
.cd-hoja h3 { margin: 4px 0 6px; font-size: 20px; text-align: left; }
.cd-hoja p { text-align: left; }
.cd-hoja-foto { width: 100%; height: 190px; object-fit: cover; border-radius: 18px; margin-bottom: 8px; }
.cd-op-tit { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 8px; font-size: 15px; }
.cd-op-tit small { font-size: 11px; font-weight: 900; padding: 3px 8px; border-radius: 99px; background: var(--text); color: var(--bg); }
.cd-opcion { display: flex; align-items: center; gap: 10px; padding: 13px 4px; border-bottom: 1px solid var(--border); font-weight: 800; cursor: pointer; }
.cd-opcion input { accent-color: var(--primary); width: 19px; height: 19px; }
.cd-opcion span { margin-left: auto; color: var(--text-muted); font-weight: 700; }
.cd-hoja-pie { display: flex; gap: 10px; align-items: center; margin-top: 16px; }
.cd-hoja-pie .pl-btn-pri { flex: 1; justify-content: space-between; }
.cd-contador { display: inline-flex; align-items: center; gap: 2px; border: 1.5px solid var(--border-strong); border-radius: 14px; padding: 3px; }
.cd-contador button { width: 34px; height: 34px; border-radius: 10px; border: 0; background: none; color: var(--primary); display: grid; place-items: center; cursor: pointer; }
.cd-contador button .ic { width: 18px; height: 18px; stroke-width: 2.6; }
.cd-contador b { min-width: 22px; text-align: center; }
.cd-linea { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.cd-linea > div:first-child { flex: 1; display: flex; flex-direction: column; }
.cd-linea small { color: var(--text-muted); font-weight: 700; }
.cd-linea span { color: var(--text-muted); font-size: 13px; font-weight: 700; }
.cd-modo { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 10px; }
.cd-modo button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 12px; border-radius: 14px; border: 1.5px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit; font-weight: 800; cursor: pointer; }
.cd-modo button .ic { width: 18px; height: 18px; }
.cd-modo button.activa { background: var(--primary); border-color: var(--primary); color: #fff; }
.cd-pedido textarea { width: 100%; font: inherit; padding: 12px; border-radius: 14px; border: 1.5px solid var(--border-strong); background: var(--surface); color: var(--text); resize: vertical; }
.cd-total { display: flex; justify-content: space-between; align-items: center; margin: 12px 0 4px; font-size: 18px; font-weight: 900; }
.cd-aclaracion { color: var(--text-muted); font-size: 12.5px; text-align: center !important; margin-top: 10px; }

/* Editor de platos (panel) */
.pcd-cat { padding: 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); margin-bottom: 10px; }
.pcd-cat-cab { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.pcd-cat-cab .ic { color: var(--primary); width: 20px; height: 20px; }
.pcd-cat-cab b { flex: 1; font-size: 16px; }
.pcd-plato { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; border: 0; background: var(--bg); color: var(--text); text-align: left; font: inherit; cursor: pointer; margin-bottom: 6px; }
.pcd-plato img, .pcd-sin-foto { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; flex-shrink: 0; display: grid; place-items: center; background: var(--accent-soft); color: var(--primary); }
.pcd-plato-txt { flex: 1; display: flex; flex-direction: column; }
.pcd-plato-txt small { color: var(--text-muted); font-weight: 700; }
.pcd-plato > .ic { color: var(--text-muted); width: 18px; height: 18px; }
.pcd-plato.agotado { opacity: .6; }
.pcd-opciones { border: 1px dashed var(--border-strong); border-radius: 14px; padding: 10px 12px; }
.pcd-opciones summary { font-weight: 800; cursor: pointer; color: var(--text); }
.pcd-opciones .pl-campo { margin-top: 10px; }
@media (min-width: 1024px) {
  .cd-chips { top: 130px; }
  .cd-items { display: grid; grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 13. Íconos donde antes había emojis (tablero, ruleta, avisos) ---------- */
.rv-icono-grande { display: grid; place-items: center; margin-bottom: 12px; color: var(--primary); }
.rv-icono-grande .ic { width: 52px; height: 52px; stroke-width: 1.6; }
.ach-icon .ic { width: 54px; height: 54px; color: #f5a623; }
.prev-winner-crown .ic { width: 26px; height: 26px; color: #f5c451; }
.empty-icon .ic { width: 46px; height: 46px; stroke-width: 1.6; color: var(--primary); }
.news-emoji .ic { width: 20px; height: 20px; }
.sn-ico .ic { width: 20px; height: 20px; }
.poll-countdown .ic { width: 14px; height: 14px; vertical-align: -2px; }
.month-message-label .ic, .history-month-header .ic, .leaderboard-history-link .ic { width: 16px; height: 16px; vertical-align: -3px; }
.jobs-overlay-top .ic, .lunches-overlay-top .ic { width: 15px; height: 15px; vertical-align: -3px; }
.podium-medal, .history-medal { font-family: 'Fraunces', Georgia, serif; font-weight: 900; color: #fff; display: grid; place-items: center; }
.podium-medal.gold, .history-medal.gold { background: linear-gradient(#f9d65c, #e0a81e); }
.podium-medal.silver, .history-medal.silver { background: linear-gradient(#d9dde3, #a6adb8); }
.podium-medal.bronze, .history-medal.bronze { background: linear-gradient(#e8a46a, #b76a2d); }
#btn-spin .ic { width: 20px; height: 20px; vertical-align: -4px; }

/* Platos sin foto: compactos, con el + al costado */
.cd-item.sin-foto { align-items: center; padding: 12px 12px 12px 14px; }
.cd-item.sin-foto .cd-item-foto { width: auto; height: auto; }
.cd-item.sin-foto .cd-mas { position: static; border: 0; }
.cd-item.sin-foto .cd-item-txt p { -webkit-line-clamp: 3; }

/* FIX: 'Lo recomiendo' heredaba el estilo viejo (margin-top 8px, píldora amarilla) y quedaba más chico */
.rv-pf-acciones .rv-pf-accion.btn-recommend { margin: 0; padding: 10px 2px; border-radius: 18px; font-size: 11.5px; text-shadow: none; background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: var(--shadow-sm); height: auto; }
.rv-pf-acciones .rv-pf-accion.btn-recommend.active { background: var(--accent-soft); border-color: var(--primary); color: var(--primary-deep); }
@media (min-width: 1024px) { .rv-pf-acciones .rv-pf-accion.btn-recommend { font-size: 14px; } }

/* FIX: el buscador pegado arriba quedaba DEBAJO del mini mapa: la cabecera roja
   arma su propia capa y encerraba al buscador. Mientras está pegado la subimos. */
body.rv-buscador-pegado .poyvi-hero, body.rv-buscador-pegado .hero-buscador { z-index: 960; }

/* ---------- 14. MI CUENTA ---------- */
.cu-cab { text-align: center; padding: 26px 8px 8px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cu-cab h2 { margin: 6px 0 0; font-size: 26px; font-weight: 900; }
.cu-cab p { margin: 0 0 10px; color: var(--text-muted); font-weight: 700; max-width: 320px; }
.cu-cab .pl-btn-pri, .cu-cab .pl-btn-sec { max-width: 360px; }
.cu-poyi { width: 120px; height: 120px; object-fit: contain; animation: rvFlotar 4s ease-in-out infinite; }
.cu-avatar { width: 92px; height: 92px; border-radius: 28px; overflow: hidden; display: grid; place-items: center; background: var(--accent-soft); color: var(--primary); box-shadow: var(--shadow-md); }
.cu-avatar img { width: 100%; height: 100%; object-fit: cover; }
.cu-avatar > .ic { width: 40px; height: 40px; }
.cu-opciones { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.cu-opc { display: flex; align-items: center; gap: 12px; width: 100%; padding: 15px 14px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: 15px; font-weight: 800; text-align: left; cursor: pointer; animation: rvCardEntra .4s var(--rv-ease) both; transition: transform .15s var(--rv-ease); }
.cu-opc:active { transform: scale(.98); }
.cu-opc > .ic:first-child { width: 21px; height: 21px; color: var(--primary); }
.cu-opc span { flex: 1; }
.cu-opc small { color: var(--text-muted); font-weight: 700; font-size: 13px; }
.cu-opc > .ic:last-child { width: 16px; height: 16px; color: var(--text-muted); }
.cu-opc.destacada { border-color: var(--primary); background: var(--accent-soft); }
.cu-opc.peligro, .cu-opc.peligro > .ic:first-child { color: #c0262d; }
@media (min-width: 1024px) { #view-cuenta.view.active > * { max-width: 620px; } }
.cu-poyi, .cu-avatar { cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none; }
body:not(.acceso-duenos) .rv-btn-panel { display: none !important; }
.cu-pedidos { display: flex; gap: 10px; width: 100%; max-width: 420px; margin: 6px auto 0; }
.cu-ped-total { flex: 0 0 104px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px 6px; }
.cu-ped-total b { font-size: 30px; font-weight: 900; color: var(--primary); line-height: 1; }
.cu-ped-total span { font-size: 12.5px; font-weight: 800; color: var(--text-muted); margin-top: 4px; text-align: center; line-height: 1.2; }
.cu-ped-pref { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.cu-ped-pref.vacio { cursor: default; }
.cu-ped-pref img { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; flex: none; }
.cu-ped-pref > .ic:first-child { width: 30px; height: 30px; color: var(--primary); flex: none; }
.cu-ped-pref span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cu-ped-pref small { font-size: 12px; font-weight: 800; color: var(--text-muted); }
.cu-ped-pref b { font-size: 15.5px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cu-ped-pref em { font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--text-muted); }
.cu-ped-pref > .ic:last-child { width: 18px; height: 18px; color: var(--text-muted); flex: none; }
.cd-login { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 4px 4px 10px; }
.cd-login img { width: 96px; height: 96px; object-fit: contain; }
.cd-login h3 { text-align: center !important; margin: 4px 0 0 !important; }
.cd-login p { text-align: center !important; color: var(--text-muted); margin: 0 0 6px; }
.cd-login .pl-btn-pri, .cd-login .pl-btn-sec { width: 100%; }

/* =========================================================
   PANTALLAS DE CARGA (app/servicios/carga.js) · 19/11/2026
   Una animación distinta para cada cosa que tarda.
   ========================================================= */
.carga { position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center; padding: 24px;
  background: rgba(28, 10, 10, 0.42); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: cgEntra .22s ease-out both; touch-action: none; }
.carga[hidden] { display: none; }
.carga.saliendo { animation: cgSale .2s ease-in both; }
.carga-caja { width: min(300px, 100%); background: var(--surface); color: var(--text); border: 1px solid var(--border);
  border-radius: 26px; box-shadow: var(--shadow-lg); padding: 24px 22px 22px; text-align: center;
  animation: cgCaja .32s cubic-bezier(.2, 1.3, .4, 1) both; }
.carga-dibujo { width: 112px; height: 112px; display: block; margin: 0 auto 10px; overflow: visible; color: var(--primary); }
.carga-titulo { margin: 0; font-size: 17px; font-weight: 900; letter-spacing: -0.01em; }
.carga-sub { margin: 6px 0 0; font-size: 13.5px; font-weight: 600; color: var(--text-muted); line-height: 1.4; }
.carga-barra { height: 8px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; margin: 14px 0 0; }
.carga-barra[hidden], .carga-pct[hidden], .carga-sub[hidden], .carga-ocultar[hidden] { display: none; }
.carga-barra i { display: block; height: 100%; width: 0; background: var(--primary); border-radius: inherit; transition: width .3s ease; }
.carga-pct { margin: 6px 0 0; font-size: 12.5px; font-weight: 800; color: var(--primary); font-variant-numeric: tabular-nums; }
.carga-ocultar { margin-top: 14px; border: 0; background: transparent; color: var(--primary); font: inherit; font-weight: 800; font-size: 14px; padding: 8px 12px; border-radius: 12px; cursor: pointer; }
.carga.lenta .carga-sub { color: var(--text); }

/* Piezas del dibujo */
.carga-dibujo .cg-papel { fill: var(--surface); stroke: currentColor; stroke-width: 4; stroke-linejoin: round; }
.carga-dibujo .cg-relleno { fill: currentColor; }
.carga-dibujo .cg-relleno2 { fill: #f2a516; }
.carga-dibujo .cg-linea { fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.carga-dibujo .cg-blanca { stroke: #fff; }
.carga-dibujo .cg-blanca-r { fill: #fff; }
.carga-dibujo .cg-hueco { fill: var(--text); opacity: .55; }
.carga-dibujo .cg-txt { fill: #fff; font: 900 16px system-ui, sans-serif; }
.carga-dibujo .cg-nube { fill: var(--accent-soft, #fde2df); stroke: currentColor; stroke-width: 4; stroke-linejoin: round; animation: cgFlota 2s ease-in-out infinite; }
.carga-dibujo .cg-arco { stroke: currentColor; stroke-width: 7; stroke-linecap: round; animation: cgCierra 1.8s ease-in-out infinite; }
.carga-dibujo .cg-punteada { stroke-dasharray: 2 7; }
.carga-dibujo .cg-rastro { stroke-dasharray: 4 8; opacity: .5; animation: cgRastro 1s linear infinite; }

/* foto: la foto sube a la nube */
.carga-dibujo .cg-sube { animation: cgSube 1.5s cubic-bezier(.5, 0, .3, 1) infinite; }
/* video: claqueta que golpea */
.carga-dibujo .cg-claqueta { transform-origin: 28px 48px; animation: cgClaqueta 1.1s ease-in-out infinite; }
/* borrar: se abre la tapa y cae el bollo */
.carga-dibujo .cg-tapa { transform-origin: 34px 46px; animation: cgTapa 1.8s ease-in-out infinite; }
.carga-dibujo .cg-bollo { animation: cgCae 1.8s ease-in infinite; }
/* guardar / cuenta / documento: líneas que se escriben + tilde */
.carga-dibujo .cg-escribe { stroke-dasharray: 40; animation: cgEscribe 2s ease-in-out infinite; }
.carga-dibujo .cg-pop { transform-box: fill-box; transform-origin: center; animation: cgPop 2s ease-in-out infinite; }
.carga-dibujo .cg-tarjeta-incl { transform-origin: 60px 60px; animation: cgIncl 2.4s ease-in-out infinite; }
.carga-dibujo .cg-lapiz { animation: cgLapiz 2s ease-in-out infinite; }
/* clave: el candado se cierra y aparecen los puntitos */
.carga-dibujo .cg-puntos circle { fill: currentColor; transform-box: fill-box; transform-origin: center; animation: cgPunto 1.8s ease-in-out infinite; }
.carga-dibujo .cg-puntos circle:nth-child(2) { animation-delay: .15s; }
.carga-dibujo .cg-puntos circle:nth-child(3) { animation-delay: .3s; }
.carga-dibujo .cg-puntos circle:nth-child(4) { animation-delay: .45s; }
/* entrar: la puerta se abre y entra la flecha */
.carga-dibujo .cg-puerta { transform-origin: 38px 60px; animation: cgPuerta 2s ease-in-out infinite; }
.carga-dibujo .cg-flecha { animation: cgFlecha 2s ease-in-out infinite; }
/* enviar: avioncito */
.carga-dibujo .cg-avion { animation: cgAvion 1.6s ease-in-out infinite; }
/* pago: cae la moneda en la billetera */
.carga-dibujo .cg-moneda { animation: cgMoneda 1.4s cubic-bezier(.5, 0, .7, 1) infinite; }
/* tarjeta: gira */
.carga-dibujo .cg-gira { transform-origin: 60px 60px; animation: cgGira 2s ease-in-out infinite; }
/* importar: cartas que caen y se apilan */
.carga-dibujo .cg-cae { animation: cgApila 2.4s ease-out infinite; }
.carga-dibujo .cg-c1 { --cg-y: 56px; }
.carga-dibujo .cg-c2 { --cg-y: 34px; animation-delay: .4s; }
.carga-dibujo .cg-c3 { --cg-y: 12px; animation-delay: .8s; }
/* general: ñandutí que gira */
.carga-dibujo .cg-nanduti { transform-origin: 60px 60px; animation: cgGiro 3s linear infinite; }

@keyframes cgEntra { from { opacity: 0; } to { opacity: 1; } }
@keyframes cgSale { to { opacity: 0; } }
@keyframes cgCaja { from { opacity: 0; transform: translateY(14px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes cgFlota { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes cgSube { 0% { transform: translateY(14px); opacity: 0; } 20% { opacity: 1; } 70% { transform: translateY(-22px); opacity: 1; } 100% { transform: translateY(-36px); opacity: 0; } }
@keyframes cgClaqueta { 0%, 55%, 100% { transform: rotate(0); } 25% { transform: rotate(-24deg); } }
@keyframes cgTapa { 0%, 15%, 75%, 100% { transform: rotate(0); } 30%, 60% { transform: rotate(-38deg); } }
@keyframes cgCae { 0%, 25% { transform: translateY(0); opacity: 1; } 55% { transform: translateY(56px); opacity: 1; } 60%, 100% { transform: translateY(56px); opacity: 0; } }
@keyframes cgEscribe { 0% { stroke-dashoffset: 40; } 55%, 100% { stroke-dashoffset: 0; } }
@keyframes cgPop { 0%, 50% { transform: scale(0); } 62% { transform: scale(1.15); } 70%, 92% { transform: scale(1); } 100% { transform: scale(0); } }
@keyframes cgIncl { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes cgLapiz { 0% { transform: translate(-40px, -30px); } 55% { transform: translate(-10px, 10px); } 100% { transform: translate(-40px, -30px); } }
@keyframes cgCierra { 0%, 20% { transform: translateY(-10px); } 45%, 85% { transform: translateY(0); } 100% { transform: translateY(-10px); } }
@keyframes cgPunto { 0%, 30% { opacity: .15; transform: scale(.6); } 50%, 85% { opacity: 1; transform: scale(1); } 100% { opacity: .15; } }
@keyframes cgPuerta { 0%, 15% { transform: scaleX(1); } 45%, 75% { transform: scaleX(.25); } 100% { transform: scaleX(1); } }
@keyframes cgFlecha { 0%, 25% { transform: translateX(0); opacity: 1; } 60% { transform: translateX(40px); opacity: 0; } 61%, 100% { transform: translateX(0); opacity: 0; } }
@keyframes cgAvion { 0% { transform: translate(-6px, 6px) rotate(-4deg); } 50% { transform: translate(6px, -6px) rotate(3deg); } 100% { transform: translate(-6px, 6px) rotate(-4deg); } }
@keyframes cgRastro { to { stroke-dashoffset: -24; } }
@keyframes cgMoneda { 0% { transform: translateY(-10px); opacity: 0; } 15% { opacity: 1; } 60% { transform: translateY(30px); opacity: 1; } 70%, 100% { transform: translateY(34px); opacity: 0; } }
@keyframes cgGira { 0%, 20% { transform: perspective(300px) rotateY(0); } 50%, 70% { transform: perspective(300px) rotateY(180deg); } 100% { transform: perspective(300px) rotateY(360deg); } }
@keyframes cgApila { 0% { transform: translateY(-30px); opacity: 0; } 25% { transform: translateY(var(--cg-y)); opacity: 1; } 85% { transform: translateY(var(--cg-y)); opacity: 1; } 100% { transform: translateY(var(--cg-y)); opacity: 0; } }
@keyframes cgGiro { to { transform: rotate(360deg); } }
@keyframes cgLatido { 50% { opacity: .55; } }

@media (prefers-reduced-motion: reduce) {
  .carga, .carga-caja, .carga.saliendo { animation: none; }
  .carga-dibujo * { animation: none !important; }
  .carga-dibujo { animation: cgLatido 1.6s ease-in-out infinite; }
}


/* =========================================================
   TRANSICIONES SUAVES (app/nucleo/transiciones.js) · 20/11/2026
   Solo opacity + transform: no recalcula el diseño en cada cuadro.
   ========================================================= */
.view { animation: none; }
/* Velo del fundido entre pantallas: debajo de la barra de navegación, nunca bloquea toques */
#trans-velo { position: fixed; inset: 0; z-index: 60; background: var(--bg); opacity: 0; pointer-events: none; }
/* Stories del Poyvi: sin el rebote viejo (lo anima transAlturaPanel) */
.pv-swipe-panel { animation: none; }
.pv-swipe-chevron { transition: transform .38s cubic-bezier(.22, 1, .36, 1); }

/* =========================================================
   ROMPECABEZAS (app/vistas/rompecabezas.js) · 19/11/2026
   ========================================================= */
.game-card-icon.puzzle { background: linear-gradient(135deg, #ec4899 0%, #db2777 100%); }
.rz-intro { max-width: 520px; margin: 0 auto; }
.rz-hero { position: relative; border-radius: 24px; padding: 26px 20px 22px; text-align: center; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, #ec4899 0%, #a855f7 55%, #6366f1 100%); box-shadow: var(--shadow-lg); }
.rz-hero h3 { margin: 4px 0 0; font-size: 28px; font-weight: 900; letter-spacing: -0.02em; }
.rz-hero-sub { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; opacity: .9; }
.rz-hero-piezas { width: 74px; height: 74px; margin: 0 auto 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.rz-hero-piezas i { border-radius: 10px; background: rgba(255,255,255,.9); animation: rzBaila 3.2s cubic-bezier(.22,1,.36,1) infinite; }
.rz-hero-piezas i:nth-child(2) { animation-delay: .4s; background: rgba(255,255,255,.65); }
.rz-hero-piezas i:nth-child(3) { animation-delay: .8s; background: rgba(255,255,255,.65); }
.rz-hero-piezas i:nth-child(4) { animation-delay: 1.2s; }
@keyframes rzBaila { 0%, 70%, 100% { transform: none; } 80% { transform: translateY(-6px) rotate(-6deg); } 90% { transform: translateY(0) rotate(3deg); } }
.rz-desc { color: var(--text-muted); font-size: 14px; line-height: 1.5; text-align: center; margin: 14px 6px; }
.rz-niveles { display: grid; gap: 10px; }
.rz-nivel { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 14px; border-radius: 18px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer;
  transition: transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s, border-color .25s; }
.rz-nivel:not(.bloq):hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--rz-c); }
.rz-nivel:not(.bloq):active { transform: scale(.98); }
.rz-nivel.bloq { opacity: .55; cursor: not-allowed; }
.rz-nivel-grilla { width: 46px; height: 46px; flex: none; display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 2px; padding: 3px; border-radius: 12px; background: var(--rz-c); }
.rz-nivel-grilla i { background: rgba(255,255,255,.85); border-radius: 2px; }
.rz-nivel-txt { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.rz-nivel-txt b { font-size: 16px; font-weight: 900; }
.rz-nivel-txt small { color: var(--text-muted); font-weight: 700; font-size: 12.5px; }
.rz-estrellas span { color: var(--border-strong); font-size: 18px; }
.rz-estrellas span.on { color: #f5b301; }

.rz-juego { max-width: 520px; margin: 0 auto; }
.rz-barra { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.rz-chip { background: var(--rz-c); color: #fff; font-weight: 900; font-size: 12.5px; padding: 6px 10px; border-radius: 99px; }
.rz-dato { font-size: 13px; color: var(--text-muted); font-weight: 700; }
.rz-dato b { color: var(--text); font-variant-numeric: tabular-nums; }
.rz-tablero { position: relative; width: 100%; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: var(--surface-2);
  box-shadow: 0 0 0 3px var(--rz-c), var(--shadow-lg); touch-action: none; user-select: none; -webkit-user-select: none; }
.rz-pieza { position: absolute; top: 0; left: 0; padding: 0; border: 0; margin: 0; cursor: grab; background-image: var(--rz-foto); background-repeat: no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); transition: transform .32s cubic-bezier(.22,1,.36,1), box-shadow .2s, filter .2s; will-change: transform; }
.rz-pieza.sel { z-index: 3; box-shadow: inset 0 0 0 3px #fff, 0 0 0 3px var(--rz-c), 0 10px 24px rgba(0,0,0,.35); filter: brightness(1.08); }
.rz-pieza.bien { box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.rz-pieza.arrastrando { z-index: 5; cursor: grabbing; box-shadow: 0 16px 30px rgba(0,0,0,.4), inset 0 0 0 2px #fff; filter: brightness(1.1); }
.rz-pieza:focus-visible { outline: 3px solid #fff; outline-offset: -3px; z-index: 4; }
.rz-tablero::after { content: ''; position: absolute; inset: 0; background: var(--rz-foto) center / cover no-repeat; opacity: 0; pointer-events: none; transition: opacity .25s ease; z-index: 6; }
.rz-tablero.espiando::after { opacity: 1; }
.rz-tablero.armado .rz-pieza { box-shadow: none; }
.rz-tablero.armado { animation: rzArmado .9s cubic-bezier(.22,1,.36,1); }
@keyframes rzArmado { 30% { transform: scale(1.03); box-shadow: 0 0 0 6px var(--rz-c), 0 0 40px var(--rz-c); } }
.rz-acciones { display: flex; gap: 8px; margin-top: 14px; }
.rz-btn { flex: 1; padding: 11px 10px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-weight: 800; font-size: 13.5px; cursor: pointer; touch-action: none; }
.rz-btn:active { transform: scale(.97); }
.rz-ayuda { text-align: center; color: var(--text-muted); font-size: 12.5px; margin: 10px 0 0; }
.rz-cargando { text-align: center; padding: 40px 0; color: var(--text-muted); }
.rz-final { text-align: center; margin-top: 16px; padding: 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-md);
  animation: rzFinal .5s cubic-bezier(.22,1,.36,1) both; }
@keyframes rzFinal { from { opacity: 0; transform: translateY(14px); } }
.rz-final-tit { font-size: 22px; font-weight: 900; margin-bottom: 4px; }
.rz-final .rz-estrellas span { font-size: 30px; display: inline-block; animation: rzEstrella .5s cubic-bezier(.34,1.56,.64,1) both; }
.rz-final .rz-estrellas span:nth-child(2) { animation-delay: .12s; }
.rz-final .rz-estrellas span:nth-child(3) { animation-delay: .24s; }
@keyframes rzEstrella { from { transform: scale(0) rotate(-40deg); opacity: 0; } }
.rz-final-local { margin-top: 6px; font-size: 15px; }
.rz-final-datos { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; color: var(--text-muted); font-size: 13px; font-weight: 700; margin-top: 8px; }
.rz-final-pts { font-size: 30px; font-weight: 900; color: var(--primary); margin: 8px 0 4px; }
.rz-final-nuevo { font-weight: 900; color: #16a34a; margin-bottom: 4px; }
.rz-final-btns { display: grid; gap: 8px; margin-top: 12px; }
@media (prefers-reduced-motion: reduce) {
  .rz-pieza, .rz-nivel { transition: none; }
  .rz-hero-piezas i, .rz-tablero.armado, .rz-final, .rz-final .rz-estrellas span { animation: none; }
}


/* =========================================================
   ADMIN · CALENDARIO (app/vistas/admin-calendario.js) · 19/11/2026
   ========================================================= */
#admin-calendario-content h3 { font-size: 17px; font-weight: 900; margin: 0 0 10px; }
.cal-prox { margin-bottom: 18px; }
.cal-prox-fila { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x mandatory; }
.cal-prox-item { flex: 0 0 150px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 12px; border-radius: 16px;
  border: 1px solid var(--border); border-top: 4px solid var(--cal-c); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.cal-prox-item b { font-size: 13.5px; line-height: 1.25; }
.cal-prox-item small { color: var(--cal-c); font-weight: 800; font-size: 12px; }
.cal-prox-emoji { font-size: 24px; }
.cal-mes { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 14px; margin-bottom: 18px; }
.cal-mes-cab { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-mes-cab h3 { margin: 0 !important; }
.cal-flecha { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-size: 22px; font-weight: 900; cursor: pointer; }
.cal-semana, .cal-grilla { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-semana span { text-align: center; font-size: 11.5px; font-weight: 800; color: var(--text-muted); padding: 4px 0; }
.cal-celda { aspect-ratio: 1; border-radius: 12px; border: 1px solid transparent; background: transparent; color: var(--text); font: inherit; font-weight: 700; font-size: 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; cursor: pointer; transition: background .2s, transform .2s; }
.cal-celda.vacia { cursor: default; }
.cal-celda.con { background: var(--surface-2); }
.cal-celda.hoy { border-color: var(--primary); color: var(--primary); font-weight: 900; }
.cal-celda.sel { background: var(--primary); color: #fff; }
.cal-celda:not(.vacia):active { transform: scale(.94); }
.cal-puntos { display: flex; gap: 2px; height: 6px; }
.cal-puntos i { width: 6px; height: 6px; border-radius: 50%; }
.cal-celda.sel .cal-puntos i { box-shadow: 0 0 0 1.5px #fff; }
.cal-leyenda { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; font-size: 12px; font-weight: 700; color: var(--text-muted); }
.cal-leyenda i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; }
.cal-detalle { display: grid; gap: 10px; margin-bottom: 18px; }
.cal-detalle h3 .pl-link { font-size: 13px; margin-left: 6px; }
.cal-tarjeta { border-radius: 18px; border: 1px solid var(--border); border-left: 5px solid var(--cal-c); background: var(--surface); padding: 14px; animation: calEntra .35s cubic-bezier(.22,1,.36,1) both; }
@keyframes calEntra { from { opacity: 0; transform: translateY(8px); } }
.cal-t-cab { display: flex; gap: 10px; align-items: flex-start; }
.cal-t-emoji { font-size: 28px; line-height: 1; }
.cal-t-cab b { display: block; font-size: 16px; font-weight: 900; }
.cal-t-cab small { color: var(--text-muted); font-weight: 700; font-size: 12.5px; }
.cal-t-tipo { color: var(--cal-c); font-weight: 900; }
.cal-t-nota { margin: 8px 0 0; font-size: 13px; color: var(--text-muted); font-style: italic; }
.cal-t-ideas { margin: 10px 0 0; padding-left: 18px; font-size: 13.5px; line-height: 1.5; }
.cal-t-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cal-t-btns .pl-btn-sec { flex: 1 1 auto; padding: 9px 12px; font-size: 13px; }
.cal-borrar { color: #dc2626 !important; }
.cal-vacio { color: var(--text-muted); font-size: 14px; }
.cal-nueva form { display: grid; gap: 12px; }
.cal-check { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .cal-tarjeta { animation: none; } }


/* Rendimiento (20/11): las categorías de la carta digital que están lejos de la
   pantalla no se dibujan hasta que te acercás (Videl: 83 platos, ~1000 elementos).
   El alto estimado va en línea en cada .cd-items (carta-digital.js). */
.cd-items { content-visibility: auto; }


/* =========================================================
   CARTA DIGITAL personalizable (20/11)
   ========================================================= */
/* Editor del dueño */
.pcd-estilo { border: 1px solid var(--border); border-radius: 18px; background: var(--surface); padding: 12px 14px; margin: 4px 0 12px; display: grid; gap: 12px; }
.pcd-estilo summary { font-weight: 900; cursor: pointer; display: flex; align-items: center; gap: 8px; list-style: none; }
.pcd-estilo summary::-webkit-details-marker { display: none; }
.pcd-estilo summary .ic { width: 18px; height: 18px; color: var(--primary); }
.pcd-estilo[open] { gap: 12px; }
.pcd-barra { position: sticky; top: 56px; z-index: 6; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 0; margin-bottom: 4px; background: var(--bg); }
.pcd-barra .pl-btn-pri, .pcd-barra .pl-btn-sec { width: 100%; height: 48px; margin: 0; padding: 0 8px; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.pcd-buscar { display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); margin-bottom: 10px; }
.pcd-buscar .ic { width: 18px; height: 18px; color: var(--text-muted); flex: none; }
.pcd-buscar input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font: inherit; padding: 12px 0; outline: none; }
details.pcd-cat { padding: 0; overflow: hidden; }
details.pcd-cat > summary.pcd-cat-cab { list-style: none; cursor: pointer; padding: 14px; margin: 0; }
details.pcd-cat > summary::-webkit-details-marker { display: none; }
.pcd-cat-cab small { background: var(--accent-soft); color: var(--primary); font-weight: 900; font-size: 12px; padding: 2px 8px; border-radius: 99px; }
.pcd-cat-cab > .ic:last-child { color: var(--text-muted); transition: transform .25s cubic-bezier(.22,1,.36,1); }
details.pcd-cat[open] > .pcd-cat-cab > .ic:last-child { transform: rotate(180deg); }
.pcd-cat-acc { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 10px; }
.pcd-mini { min-width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--text); display: inline-flex; align-items: center; justify-content: center; gap: 4px; font: inherit; font-size: 12.5px; font-weight: 800; cursor: pointer; padding: 0 8px; }
.pcd-mini .ic { width: 16px; height: 16px; }
.pcd-mini:disabled { opacity: .35; cursor: default; }
.pcd-mini.peligro { color: #dc2626; }
.pcd-fila { display: flex; align-items: center; gap: 6px; padding: 0 10px 6px; }
.pcd-fila .pcd-plato { flex: 1; min-width: 0; margin: 0; }
.pcd-fila .pcd-plato-txt b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcd-fila.agotado .pcd-plato { opacity: .55; }
.pcd-agotado { flex: none; height: 32px; padding: 0 10px; border-radius: 99px; border: 1px solid rgba(22,163,74,.4); background: rgba(22,163,74,.1); color: #16a34a; font: inherit; font-size: 12px; font-weight: 900; cursor: pointer; }
.pcd-agotado.on { border-color: rgba(220,38,38,.4); background: rgba(220,38,38,.1); color: #dc2626; }
.pcd-orden { display: flex; flex-direction: column; gap: 2px; }
.pcd-orden .pcd-mini { min-width: 30px; height: 22px; padding: 0; border-radius: 7px; }
.pcd-orden .pcd-mini .ic { width: 14px; height: 14px; }

/* Lo que ve la gente */
.cd-nota { display: flex; align-items: flex-start; gap: 8px; margin: 4px 0 12px; padding: 12px 14px; border-radius: 16px; background: var(--accent-soft); color: var(--text); font-weight: 700; font-size: 14px; line-height: 1.4; }
.cd-nota .ic { width: 18px; height: 18px; color: var(--primary); flex: none; margin-top: 1px; }
.cd-estilo-fotos .cd-items { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cd-estilo-fotos .cd-item { position: relative; flex-direction: column-reverse; justify-content: flex-end; align-items: stretch; padding: 0; overflow: hidden; }
.cd-estilo-fotos .cd-item-foto { position: static; }
.cd-estilo-fotos .cd-mas, .cd-estilo-fotos .cd-item.sin-foto .cd-mas { position: absolute; top: 8px; right: 8px; bottom: auto; left: auto; width: 36px; height: 36px; border: 3px solid var(--surface); }
.cd-estilo-fotos .cd-item.sin-foto .cd-item-txt { padding-right: 52px; }
.cd-estilo-fotos .cd-agotado { display: block; }
.cd-estilo-fotos .cd-item-foto { width: 100%; height: auto; aspect-ratio: 1; margin: 0; border-radius: 0; }
.cd-estilo-fotos .cd-item-foto img { width: 100%; height: 100%; border-radius: 0; }
.cd-estilo-fotos .cd-item.sin-foto .cd-item-foto { aspect-ratio: auto; min-height: 0; }
.cd-estilo-fotos .cd-item-txt { padding: 10px 12px 12px; }
.cd-estilo-fotos .cd-item-txt p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }


/* =========================================================
   ADMIN · Estilos de la app en un botón (app/vistas/admin-estilos.js)
   ========================================================= */
#halloween-toggle-wrap, #tropical-toggle-wrap, #albirrojo-toggle-wrap, #mundial26-toggle-wrap { display: none !important; }
.est-boton, .est-op { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color .2s, transform .2s; }
.est-boton { margin: 6px 0 14px; }
.est-boton:active, .est-op:active { transform: scale(.98); }
.est-muestra { width: 44px; height: 44px; border-radius: 12px; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.est-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.est-txt b { font-size: 15.5px; font-weight: 900; }
.est-txt small { color: var(--text-muted); font-weight: 700; font-size: 12.5px; }
.est-actual { color: var(--primary); font-weight: 900; }
.est-lista { display: grid; gap: 8px; margin-top: 8px; }
.est-check { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: transparent; border: 2px solid var(--border-strong); flex: none; }
.est-check .ic { width: 15px; height: 15px; }
.est-op.on { border-color: var(--primary); }
.est-op.on .est-check { background: var(--primary); border-color: var(--primary); color: #fff; }


/* Calendario: avisos y mundo geek (19/11) */
.cal-avisos { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface); margin-bottom: 16px; }
.cal-avisos > .ic { width: 26px; height: 26px; color: var(--primary); flex: none; }
.cal-avisos > div { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cal-avisos small { color: var(--text-muted); font-weight: 600; font-size: 12.5px; line-height: 1.35; }
.cal-avisos .pl-btn-pri, .cal-avisos .pl-btn-sec { flex: 1 1 100%; width: 100%; margin: 0; padding: 11px 14px; }
.cal-avisos.on { border-color: rgba(22,163,74,.45); }
.cal-avisos.on > .ic { color: #16a34a; }
.cal-prepara { align-self: flex-start; margin-top: 2px; padding: 2px 8px; border-radius: 99px; background: var(--cal-c); color: #fff; font-size: 11px; font-weight: 900; }
.cal-geek { margin-bottom: 18px; }
.cal-geek-cab { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cal-geek-cab h3 { margin: 0 !important; }
.cal-geek-sub { color: var(--text-muted); font-size: 12.5px; margin: 4px 0 10px; }
.cal-geek-lista { display: grid; gap: 8px; }
.cal-geek-item { padding: 12px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); }
.cal-geek-item a { color: var(--text); text-decoration: none; }
.cal-geek-item a b { font-size: 14.5px; line-height: 1.35; }
.cal-geek-item small { display: block; color: var(--text-muted); font-weight: 700; font-size: 12px; margin-top: 4px; }

/* Próximamente: pedidos en la app (23/11) */
.prox-chip { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; padding: 3px 9px; border-radius: 99px; background: linear-gradient(135deg, #ff8a3d, var(--primary)); color: #fff; font-size: 11px; font-weight: 900; letter-spacing: .02em; text-transform: uppercase; }
.prox-chip .ic { width: 12px; height: 12px; }
.prox-banner-wrap { position: relative; margin: 4px 16px 14px; }
.prox-banner-wrap[hidden] { display: none; }
.prox-banner, .prox-panel { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 42px 14px 14px; border-radius: 20px; border: 1px solid color-mix(in srgb, var(--primary) 35%, var(--border)); background: linear-gradient(120deg, var(--accent-soft), var(--surface) 70%); color: var(--text); font: inherit; text-align: left; cursor: pointer; box-shadow: var(--shadow-md); transition: transform .15s var(--rv-ease); }
.prox-panel { padding-right: 14px; margin: 0 0 16px; }
.prox-banner:active, .prox-panel:active { transform: scale(.98); }
.prox-banner-ic { flex: none; width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--primary); color: #fff; }
.prox-banner-ic .ic { width: 26px; height: 26px; }
.prox-banner-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.prox-banner-txt b { font-size: 16px; font-weight: 900; }
.prox-banner-txt small { color: var(--text-muted); font-weight: 700; font-size: 12.5px; line-height: 1.35; }
.prox-banner > .ic:last-child, .prox-panel > .ic:last-child { width: 16px; height: 16px; color: var(--text-muted); flex: none; }
.prox-banner-x { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 99px; border: 0; background: transparent; color: var(--text-muted); display: grid; place-items: center; cursor: pointer; }
.prox-banner-x .ic { width: 14px; height: 14px; }
.prox-hoja { display: flex; flex-direction: column; gap: 10px; }
.prox-cab { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.prox-cab img { width: 110px; height: 110px; object-fit: contain; animation: rvFlotar 4s ease-in-out infinite; }
.prox-cab .prox-chip { align-self: center; }
.prox-cab h3 { margin: 2px 0 0; font-size: 21px; font-weight: 900; }
.prox-cab p { margin: 0; color: var(--text-muted); font-weight: 700; font-size: 13.5px; line-height: 1.4; }
.prox-lista { display: flex; flex-direction: column; gap: 8px; margin: 6px 0; }
.prox-fila { display: flex; gap: 12px; align-items: flex-start; padding: 11px 12px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); }
.prox-fila.destacada { border-color: var(--primary); background: var(--accent-soft); }
.prox-fila-ic { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--primary); }
.prox-fila.destacada .prox-fila-ic { background: var(--primary); color: #fff; }
.prox-fila-ic .ic { width: 18px; height: 18px; }
.prox-fila b { display: block; font-size: 14.5px; font-weight: 900; }
.prox-fila small { display: block; color: var(--text-muted); font-weight: 700; font-size: 12.5px; line-height: 1.35; margin-top: 2px; }
.prox-hoja .pl-btn-pri[disabled] { opacity: .7; cursor: default; }
.prox-extras { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 4px; }
.prox-opc { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; border-radius: 14px; border: 1px dashed color-mix(in srgb, var(--primary) 45%, var(--border)); background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.prox-opc > .ic { width: 20px; height: 20px; color: var(--primary); flex: none; }
.prox-opc span { flex: 1; min-width: 0; }
.prox-opc b { display: block; font-size: 14px; font-weight: 900; }
.prox-opc small { display: block; color: var(--text-muted); font-weight: 700; font-size: 12px; }
.prox-opc em, .prox-pedir-app em, .prox-pronto { flex: none; font-style: normal; padding: 3px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--primary); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .02em; }
.prox-pedir-app { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 8px; padding: 13px 14px; border-radius: 16px; border: 1.5px dashed var(--primary); background: transparent; color: var(--primary); font: inherit; font-size: 15px; font-weight: 900; cursor: pointer; }
.prox-pedir-app > .ic { width: 20px; height: 20px; }
.prox-cuenta { width: 100%; margin-top: 18px; }
.prox-cuenta h3 { display: flex; align-items: center; gap: 6px; margin: 0 2px; font-size: 16px; font-weight: 900; }
.prox-cuenta h3 .ic { width: 18px; height: 18px; color: var(--primary); }
.prox-cuenta .cu-opciones { margin-top: 10px; }
.cu-opc.prox-cu { border-style: dashed; }
.prox-cu-sub { display: block; }

/* Admin · Notificaciones automáticas (23/11) */
.na-resumen { padding: 14px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface); margin-bottom: 14px; display: flex; flex-direction: column; gap: 10px; }
.na-clima { display: flex; align-items: center; gap: 10px; }
.na-clima > .ic { width: 28px; height: 28px; color: #f59e0b; flex: none; }
.na-clima small { display: block; color: var(--text-muted); font-weight: 700; font-size: 12px; }
.na-clima b { font-size: 15px; }
.na-stats { display: flex; gap: 8px; }
.na-stats span { flex: 1; padding: 8px; border-radius: 14px; background: var(--accent-soft); text-align: center; }
.na-stats b { display: block; font-size: 20px; font-weight: 900; color: var(--primary); }
.na-stats small { color: var(--text-muted); font-weight: 700; font-size: 12px; }
.na-sig { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13.5px; }
.na-sig .ic { width: 16px; height: 16px; color: var(--primary); flex: none; }
.na-ajustes { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; font-weight: 800; font-size: 14px; }
.na-ajustes select { margin-left: 6px; padding: 6px 8px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font: inherit; }
.na-switch { position: relative; display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13.5px; cursor: pointer; user-select: none; }
.na-switch input { position: absolute; opacity: 0; pointer-events: none; }
.na-switch span { position: relative; width: 42px; height: 24px; border-radius: 99px; background: var(--border); transition: background .2s; flex: none; }
.na-switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 99px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s var(--rv-ease); }
.na-switch input:checked + span { background: var(--primary); }
.na-switch input:checked + span::after { transform: translateX(18px); }
.na-switch input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.na-acciones { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.na-lista { display: grid; gap: 12px; }
.na-item { padding: 12px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface); display: flex; flex-direction: column; gap: 8px; }
.na-item.apagada { opacity: .72; }
.na-item-cab { display: flex; align-items: center; justify-content: space-between; }
.na-tipo { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px; background: var(--accent-soft); color: var(--primary); font-size: 12px; font-weight: 900; }
.na-tipo .ic { width: 14px; height: 14px; }
.na-previa { padding: 10px 12px; border-radius: 16px; background: var(--bg); border: 1px solid var(--border); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.na-previa-cab { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); font-weight: 700; margin-bottom: 4px; }
.na-previa-cab img { width: 16px; height: 16px; border-radius: 4px; }
.na-previa-cab small { margin-left: auto; }
.na-previa b { display: block; font-size: 14.5px; }
.na-previa p { margin: 2px 0 0; font-size: 13.5px; color: var(--text); line-height: 1.35; white-space: pre-wrap; }
.na-previa-img { display: block; width: 100%; max-height: 180px; object-fit: cover; border-radius: 12px; margin-top: 8px; }
.na-cuando { display: flex; align-items: flex-start; gap: 6px; margin: 0; font-size: 13px; font-weight: 700; }
.na-cuando .ic { width: 15px; height: 15px; color: var(--primary); flex: none; margin-top: 1px; }
.na-meta { margin: 0; color: var(--text-muted); font-size: 12px; font-weight: 700; line-height: 1.5; }
.na-toca { color: #16a34a; font-weight: 900; }
.na-btns { display: flex; gap: 8px; }
.na-btns .pl-btn-sec { flex: 1; padding: 10px; }
.na-btns .peligro { flex: 0 0 48px; }
.na-editor { display: flex; flex-direction: column; gap: 10px; }
.na-editor h3 { margin: 0; }
.na-fila { display: flex; gap: 10px; }
.na-fila > .pl-campo { flex: 1; min-width: 0; }
.na-img { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.na-img img { width: 100%; max-height: 160px; object-fit: cover; border-radius: 14px; }
.na-img .pl-btn-sec { flex: 1; }
.na-tipos button { flex: 1; }
.na-dias { display: flex; gap: 6px; }
.na-dias button { flex: 1; height: 40px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-weight: 900; cursor: pointer; }
.na-dias button.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.na-activa { margin: 4px 0; }

/* Hojas inferiores (24/11): una encima de otra (ej. "Próximamente" sobre el pedido).
   El deslizamiento se queda en la hoja de adelante y no pasa al fondo, y las
   imágenes no se "agarran" al mantener apretado (quedaba la imagen pegada al dedo). */
.pl-hoja-fondo { touch-action: none; overscroll-behavior: contain; }
.cd-hoja { touch-action: pan-y; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.pl-hoja img { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
