﻿/* La Reserva — Sistema de diseño "Botanical Luxury" (Paso 5, v2 según la app antigua)
   Fondo carbón azulado #0B0E14 · Dorado #D4AF37 · títulos Cinzel · texto Plus Jakarta Sans · Barra superior 44px · Barra inferior 60px
   Solo variables, componentes y utilidades: las vistas (src/views) no deben llevar CSS propio. */

/* ───────── 1. Tokens ───────── */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --bg: #0B0E14;
  --bg-2: #0F131B;
  --surface: #151A24;
  --surface-2: #1D2430;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(212, 175, 55, .5);

  --gold: #D4AF37;
  --gold-soft: #E8CF75;
  --gold-deep: #9C7C1C;
  --on-gold: #14110A;

  --text: #F3F1EA;
  --text-dim: #AEB4C0;
  --text-faint: #7B8494;

  --ok: #4ADE80;
  --warn: #F0B34A;
  --danger: #E5614F;
  --info: #5BA8E8;

  --radius-s: 12px;
  --radius: 18px;
  --radius-l: 22px;
  --gap: 12px;
  --pad: 16px;

  --bar-top: 44px;
  --bar-bottom: 60px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  --font-title: "Cinzel", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --shadow: 0 8px 24px rgba(0, 0, 0, .45);
  --glow: 0 0 0 1px var(--line-strong), 0 0 18px rgba(212, 175, 55, .18);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ───────── 2. Base ───────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: dark; }
body {
  margin: 0;
  min-height: 100dvh;
  background: radial-gradient(120% 70% at 50% 0%, var(--bg-2) 0%, var(--bg) 60%) fixed;
  color: var(--text);
  font: 15px/1.5 var(--font-body);
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
h1, h2, h3, h4 { margin: 0 0 .4em; font-family: var(--font-title); font-weight: 700; letter-spacing: .02em; color: var(--gold); line-height: 1.2; }
h1 { font-size: 1.7rem; } h2 { font-size: 1.3rem; } h3 { font-size: 1.1rem; } h4 { font-size: 1rem; }
p { margin: 0 0 .8em; }
a { color: var(--gold-soft); }
small, .muted { color: var(--text-dim); }
.faint { color: var(--text-faint); }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { max-width: 100%; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
[hidden] { display: none !important; }
::selection { background: var(--gold); color: var(--on-gold); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ───────── 3. Estructura de la app (barras 44px / 60px) ───────── */
.app { min-height: 100dvh; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 50;
  height: calc(var(--bar-top) + var(--safe-top));
  padding: var(--safe-top) var(--pad) 0;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: rgba(11, 14, 20, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__title { font-family: var(--font-title); color: var(--gold); font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__actions { display: flex; align-items: center; gap: 6px; }

.main {
  flex: 1; width: 100%; max-width: 760px; margin: 0 auto;
  padding: var(--pad) var(--pad) calc(var(--bar-bottom) + var(--safe-bottom) + var(--pad));
}

.bottombar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  height: calc(var(--bar-bottom) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  display: flex; background: rgba(11, 14, 20, .97); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.bottombar__item {
  flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: none; border: 0; color: var(--text-faint); font-size: .68rem; cursor: pointer; position: relative;
  transition: color .2s var(--ease);
}
.bottombar__item .ico { font-size: 1.25rem; line-height: 1; }
.bottombar__item[aria-selected="true"], .bottombar__item.is-active { color: var(--gold); }
.bottombar__item.is-active::before, .bottombar__item[aria-selected="true"]::before {
  content: ""; position: absolute; top: 0; width: 28px; height: 2px; background: var(--gold); border-radius: 0 0 2px 2px;
}
.badge-dot {
  position: absolute; top: 6px; left: calc(50% + 8px); min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: var(--danger); color: #fff; font-size: .62rem; font-weight: 700;
  display: grid; place-items: center;
}

/* Consola admin: pestañas en la barra inferior, más compactas */
.app--admin .bottombar__item { font-size: .64rem; }

/* ───────── 4. Tarjetas y Bento 2x2 ───────── */
.card {
  background: linear-gradient(160deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line); border-radius: var(--radius); padding: var(--pad);
  margin-bottom: var(--gap); box-shadow: var(--shadow);
}
.card--vip { border-color: var(--line-strong); box-shadow: var(--glow); background: linear-gradient(160deg, #1A1A18 0%, var(--bg-2) 70%); }
.card--flat { box-shadow: none; background: var(--surface); }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.card__head h2, .card__head h3 { margin: 0; }

.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); margin-bottom: var(--gap); }
.bento__cell {
  position: relative; min-height: 96px; padding: 12px; text-align: left;
  display: flex; flex-direction: column; justify-content: space-between; gap: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text);
  cursor: pointer; transition: transform .15s var(--ease), border-color .2s, background .2s;
}
.bento__cell:active { transform: scale(.97); }
.bento__cell.is-selected, .bento__cell[aria-pressed="true"] { border-color: var(--gold); background: var(--surface-2); box-shadow: var(--glow); }
.bento__cell[disabled], .bento__cell.is-disabled { opacity: .4; pointer-events: none; }
.bento__name { font-family: var(--font-title); font-weight: 700; color: var(--text); font-size: .95rem; text-transform: uppercase; text-align: center; }
.bento__meta { font-size: .78rem; color: var(--text-dim); }
.bento__price { font-weight: 700; font-size: 1.05rem; }
.bento__tag {
  position: absolute; top: 8px; right: 8px; font-size: .64rem; padding: 2px 7px; border-radius: 99px;
  background: var(--gold); color: var(--on-gold); font-weight: 700;
}
.bento--solo > .bento__cell:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* ───────── 5. Botones ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: var(--radius-s); border: 1px solid var(--line-strong);
  background: transparent; color: var(--gold); font-weight: 600; cursor: pointer;
  transition: transform .12s var(--ease), background .2s, opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn--primary { background: linear-gradient(180deg, #E6CB6A, #C9A22F); color: var(--on-gold); border-color: var(--gold); box-shadow: 0 4px 14px rgba(212, 175, 55, .22); }
.btn--cta { min-height: 56px; width: 100%; text-transform: uppercase; letter-spacing: .02em; font-weight: 800; }
.btn--ghost { border-color: transparent; color: var(--text-dim); }
.btn--danger { border-color: var(--danger); color: var(--danger); }
.btn--danger.btn--primary { background: var(--danger); color: #fff; }
.btn--block { display: flex; width: 100%; }
.btn--small { min-height: 36px; padding: 0 12px; font-size: .85rem; }
.btn--icon { width: 44px; padding: 0; }
.btn[disabled], .btn.is-loading { opacity: .45; pointer-events: none; }
.btn.is-loading::after {
  content: ""; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite;
}
.btn-row { display: flex; gap: var(--gap); flex-wrap: wrap; }
.btn-row > .btn { flex: 1; }

/* ───────── 6. Formularios ───────── */
.field { display: grid; gap: 6px; margin-bottom: var(--gap); }
.field > label, .label { font-size: .8rem; color: var(--text-dim); letter-spacing: .02em; }
.input, .select, .textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: var(--radius-s);
  background: var(--bg); border: 1px solid var(--line); color: var(--text);
}
.input::placeholder, .textarea::placeholder { color: var(--text-faint); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 175, 55, .18); }
.input.is-error { border-color: var(--danger); }
.field__error { color: var(--danger); font-size: .78rem; }
.textarea { min-height: 88px; resize: vertical; }

.check { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--gold); }

.switch { position: relative; display: inline-block; width: 50px; height: 28px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch__track { position: absolute; inset: 0; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); transition: background .2s; }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--text-dim); transition: transform .2s var(--ease), background .2s; }
.switch input:checked + .switch__track { background: var(--gold-deep); border-color: var(--gold); }
.switch input:checked + .switch__track::after { transform: translateX(22px); background: var(--gold-soft); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }

/* ───────── 7. Barras de progreso (puntos, planta, stock) ───────── */
.progress { height: 12px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; }
.progress__fill { height: 100%; width: var(--pct, 0%); border-radius: inherit; background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-soft)); transition: width .6s var(--ease); }
.progress--plant .progress__fill { background: linear-gradient(90deg, #2E7D4F, var(--ok)); }
.progress--danger .progress__fill { background: linear-gradient(90deg, #9B2F22, var(--danger)); }
.progress--lg { height: 18px; }
.progress-meta { display: flex; justify-content: space-between; font-size: .78rem; color: var(--text-dim); margin-top: 4px; }

/* ───────── 8. Chips, insignias y rangos ───────── */
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 99px; font-size: .76rem; border: 1px solid var(--line); background: var(--surface); color: var(--text-dim); }
.chip--gold { color: var(--gold); border-color: var(--line-strong); }
.chip--ok { color: var(--ok); border-color: rgba(95, 203, 138, .4); }
.chip--warn { color: var(--warn); border-color: rgba(240, 179, 74, .4); }
.chip--danger { color: var(--danger); border-color: rgba(229, 97, 79, .45); }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }

/* Colores de rango (obtenerRangoHistorico / obtenerRangoMensual) */
.rango { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 99px; font-weight: 700; font-size: .85rem; border: 1px solid currentColor; }
.rango--normal  { color: var(--text-dim); }
.rango--green   { color: var(--ok); }
.rango--orange  { color: #F59A3B; }
.rango--red     { color: var(--danger); }
.rango--blue    { color: var(--info); }
.rango--rainbow {
  color: transparent; border-color: transparent; position: relative;
  background: linear-gradient(90deg, #ff6b6b, #ffd93d, #6bff95, #4dd4ff, #c084fc, #ff6b6b) 0 0 / 300% 100%;
  -webkit-background-clip: text; background-clip: text; animation: rainbow 6s linear infinite;
}
.rango--rainbow::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: -1;
  background: linear-gradient(90deg, #ff6b6b, #ffd93d, #6bff95, #4dd4ff, #c084fc, #ff6b6b) 0 0 / 300% 100%; animation: rainbow 6s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}

/* ───────── 9. Avisos y banners ───────── */
.alert { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--surface); margin-bottom: var(--gap); }
.alert--info { border-color: rgba(91, 168, 232, .45); }
.alert--ok { border-color: rgba(95, 203, 138, .45); }
.alert--warn { border-color: rgba(240, 179, 74, .5); background: rgba(240, 179, 74, .08); }
.alert--danger { border-color: var(--danger); background: rgba(229, 97, 79, .1); color: #FFD9D3; font-weight: 700; }
.banner-global { padding: 8px var(--pad); text-align: center; font-size: .85rem; background: var(--gold); color: var(--on-gold); font-weight: 600; }
.sin-suministros { text-align: center; padding: 28px var(--pad); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.sin-suministros .ico { font-size: 2.4rem; }

/* ───────── 10. Order Tracker (4 etapas) ───────── */
.tracker { display: flex; align-items: flex-start; margin: 8px 0 14px; }
.tracker__step { flex: 1; position: relative; text-align: center; font-size: .68rem; color: var(--text-faint); }
.tracker__step::before { content: ""; position: absolute; top: 13px; left: -50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.tracker__step:first-child::before { display: none; }
.tracker__dot { position: relative; z-index: 1; width: 28px; height: 28px; margin: 0 auto 4px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 2px solid var(--line); font-size: .8rem; }
.tracker__step.is-done { color: var(--text-dim); }
.tracker__step.is-done::before { background: var(--gold); }
.tracker__step.is-done .tracker__dot { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.tracker__step.is-current { color: var(--gold); }
.tracker__step.is-current .tracker__dot { border-color: var(--gold); animation: pulse 1.6s ease-in-out infinite; }
.tracker__step.is-alarm .tracker__dot { border-color: var(--danger); animation: siren 1s ease-in-out infinite; }

/* ───────── 11. Slide-to-Confirm (la posición la mueve JS con --p: 0 a 1) ───────── */
.slide-confirm {
  --h: 52px; --p: 0;
  position: relative; height: var(--h); border-radius: 99px; overflow: hidden; user-select: none; touch-action: pan-y;
  background: var(--bg); border: 1px solid var(--line-strong);
}
.slide-confirm__fill { position: absolute; inset: 0 auto 0 0; width: calc(var(--h) + (100% - var(--h)) * var(--p)); background: linear-gradient(90deg, var(--gold-deep), var(--gold)); opacity: .85; }
.slide-confirm__label { position: absolute; inset: 0; display: grid; place-items: center; padding: 0 calc(var(--h) + 8px); text-align: center; font-weight: 600; font-size: .9rem; color: var(--text-dim); opacity: calc(1 - var(--p) * 1.4); pointer-events: none; }
.slide-confirm__handle {
  position: absolute; top: 3px; left: calc(3px + (100% - var(--h)) * var(--p)); width: calc(var(--h) - 6px); height: calc(var(--h) - 6px);
  border-radius: 50%; border: 0; display: grid; place-items: center; cursor: grab; touch-action: none;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold)); color: var(--on-gold); font-size: 1.2rem; font-weight: 700; box-shadow: 0 2px 8px rgba(0, 0, 0, .5);
}
.slide-confirm.is-dragging .slide-confirm__handle { cursor: grabbing; }
.slide-confirm:not(.is-dragging) .slide-confirm__handle,
.slide-confirm:not(.is-dragging) .slide-confirm__fill { transition: left .25s var(--ease), width .25s var(--ease); }
.slide-confirm.is-done { border-color: var(--ok); }
.slide-confirm.is-done .slide-confirm__fill { background: var(--ok); }
.slide-confirm[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* ───────── 12. Tablas y listas ───────── */
.list { list-style: none; margin: 0; padding: 0; }
.list__item { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.list__item:last-child { border-bottom: 0; }
.list__main { flex: 1; min-width: 0; }
.list__title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list__sub { font-size: .78rem; color: var(--text-dim); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-s); }
.table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th { color: var(--gold); font-weight: 600; background: var(--surface); position: sticky; top: 0; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ───────── 13. Pestañas internas y acordeones ───────── */
.seg { display: flex; gap: 4px; padding: 4px; margin-bottom: var(--gap); background: var(--bg); border: 1px solid var(--line); border-radius: 99px; overflow-x: auto; }
.seg__item { flex: 1; min-height: 36px; padding: 0 14px; border: 0; border-radius: 99px; background: none; color: var(--text-dim); white-space: nowrap; cursor: pointer; }
.seg__item.is-active, .seg__item[aria-selected="true"] { background: var(--gold); color: var(--on-gold); font-weight: 700; }
.accordion { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: var(--gap); overflow: hidden; background: var(--surface); }
.accordion > summary { list-style: none; min-height: 48px; padding: 12px var(--pad); display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-weight: 600; color: var(--gold-soft); }
.accordion > summary::-webkit-details-marker { display: none; }
.accordion > summary::after { content: "⌄"; transition: transform .2s; }
.accordion[open] > summary::after { transform: rotate(180deg); }
.accordion__body { padding: 0 var(--pad) var(--pad); }

/* ───────── 14. Modal, hoja inferior y avisos flotantes ───────── */
.overlay { position: fixed; inset: 0; z-index: 80; display: grid; align-items: end; background: rgba(0, 0, 0, .65); animation: fade .2s; }
.sheet { width: 100%; max-width: 560px; margin: 0 auto; max-height: 88dvh; overflow-y: auto; padding: var(--pad) var(--pad) calc(var(--pad) + var(--safe-bottom)); background: var(--bg-2); border: 1px solid var(--line-strong); border-bottom: 0; border-radius: var(--radius-l) var(--radius-l) 0 0; animation: rise .28s var(--ease); }
.sheet::before { content: ""; display: block; width: 40px; height: 4px; margin: 0 auto 12px; border-radius: 2px; background: var(--line-strong); }
@media (min-width: 640px) { .overlay { align-items: center; } .sheet { border-radius: var(--radius-l); border-bottom: 1px solid var(--line-strong); } }

.toast-host { position: fixed; left: 0; right: 0; bottom: calc(var(--bar-bottom) + var(--safe-bottom) + 12px); z-index: 90; display: grid; gap: 8px; justify-items: center; pointer-events: none; padding: 0 var(--pad); }
.toast { max-width: 440px; padding: 10px 16px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line-strong); box-shadow: var(--shadow); animation: rise .25s var(--ease); font-size: .88rem; }
.toast--ok { border-color: var(--ok); } .toast--error { border-color: var(--danger); }

/* ───────── 15. Portada pública, chat y utilidades ───────── */
.hero { text-align: center; padding: 36px var(--pad) 20px; }
.hero__title { font-size: 2rem; letter-spacing: .02em; }
.hero__sub { color: var(--text-dim); font-style: italic; }
.divider { height: 1px; border: 0; margin: var(--pad) 0; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }

.chat { display: flex; flex-direction: column; gap: 8px; }
.chat__msg { max-width: 82%; padding: 8px 12px; border-radius: 16px; background: var(--surface-2); align-self: flex-start; }
.chat__msg--me { align-self: flex-end; background: var(--gold); color: var(--on-gold); }
.chat__time { display: block; font-size: .66rem; opacity: .6; margin-top: 2px; }

.stack > * + * { margin-top: var(--gap); }
.row { display: flex; align-items: center; gap: var(--gap); }
.row--between { justify-content: space-between; }
.grow { flex: 1; }
.center { text-align: center; }
.right { text-align: right; }
.num { font-variant-numeric: tabular-nums; }
.gold { color: var(--gold); }
.money { font-weight: 700; font-variant-numeric: tabular-nums; }
.skeleton { border-radius: var(--radius-s); background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%) 0 0 / 200% 100%; animation: shimmer 1.4s linear infinite; min-height: 18px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Escritorio: la app es un portal móvil, se centra y mantiene las barras al ancho de la columna */
@media (min-width: 800px) {
  .bottombar { left: 50%; right: auto; width: 760px; transform: translateX(-50%); border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
  .app--admin .main, .app--admin .bottombar { max-width: 1100px; }
  .app--admin .bottombar { width: 1100px; }
  .app--admin .main { max-width: 1100px; }
}

/* ───────── 16. Animaciones ───────── */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, .5); } 50% { box-shadow: 0 0 0 7px rgba(212, 175, 55, 0); } }
@keyframes siren { 0%, 100% { box-shadow: 0 0 0 0 rgba(229, 97, 79, .7); } 50% { box-shadow: 0 0 0 9px rgba(229, 97, 79, 0); } }
@keyframes rainbow { to { background-position: 300% 0; } }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ───────── 17. Componentes de la app antigua (v2) ───────── */
.title-gold { font-family: var(--font-title); font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .03em; }

/* Barra superior de píldoras (sonido, Guía, Vista, Simple, campana) */
.pill-bar { display: flex; align-items: center; gap: 8px; padding: 8px 10px; margin-bottom: var(--gap); border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--bg-2); overflow-x: auto; }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: .85rem; font-weight: 600; white-space: nowrap; cursor: pointer; }
.pill--gold { border-color: var(--line-strong); color: var(--gold-soft); background: rgba(212, 175, 55, .1); }
.pill--ok { border-color: rgba(74, 222, 128, .45); color: var(--ok); background: rgba(74, 222, 128, .08); }
.pill--danger { border-color: rgba(229, 97, 79, .6); color: #FF8E80; background: rgba(229, 97, 79, .1); }

/* Franja de sección con barra dorada a la izquierda ("1️⃣ TOCA TUS PACKS") */
.section-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 14px 0 10px; padding: 9px 12px; border-left: 4px solid var(--gold); border-radius: 4px var(--radius-s) var(--radius-s) 4px; background: linear-gradient(90deg, rgba(212, 175, 55, .16), rgba(212, 175, 55, .04)); font-weight: 800; font-size: .88rem; text-transform: uppercase; color: var(--gold-soft); }
.section-bar__side { font-weight: 600; font-size: .8rem; text-transform: none; color: var(--ok); }

/* Avisos de la reserva */
.notice { padding: 12px 14px; margin-bottom: var(--gap); border-radius: var(--radius); border: 1px solid rgba(91, 168, 232, .5); background: rgba(91, 168, 232, .08); }
.announce { padding: 14px 16px; margin-bottom: var(--gap); border: 1px solid rgba(212, 175, 55, .45); border-left: 6px solid #F5C518; border-radius: var(--radius); background: linear-gradient(160deg, #221D0A, var(--bg-2)); font-size: 1.02rem; line-height: 1.55; }

/* Fila de 4 estadísticas (Puntos, Bonos, Moneditas, Ahorro) */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.stat { padding: 10px 4px; text-align: center; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface); }
.stat__value { display: block; font-weight: 800; font-size: 1.15rem; line-height: 1.2; color: var(--gold-soft); }
.stat__label { display: block; margin-top: 2px; font-size: .72rem; color: var(--text-dim); line-height: 1.25; }
.stat--ok { border-color: rgba(74, 222, 128, .5); background: rgba(74, 222, 128, .07); }
.stat--ok .stat__value, .stat__value--money { color: var(--ok); }
@media (max-width: 380px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }

/* Planta: orbe con luz verde + etapa */
.plant-orb { width: min(260px, 70%); aspect-ratio: 1; margin: 16px auto 8px; border-radius: 50%; display: grid; place-items: center; font-size: 5rem; border: 2px solid rgba(74, 222, 128, .6); background: radial-gradient(circle, rgba(74, 222, 128, .22) 0%, rgba(74, 222, 128, .04) 55%, transparent 72%); box-shadow: 0 0 40px rgba(74, 222, 128, .18), inset 0 0 40px rgba(74, 222, 128, .08); }
.plant-stage { text-align: center; font-weight: 700; color: var(--ok); margin-bottom: 12px; }
.card--plant { border-color: rgba(212, 175, 55, .55); background: linear-gradient(170deg, #1A1A12 0%, var(--bg-2) 60%); }
.mini-card { padding: 10px 12px; margin-top: 10px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--bg-2); font-size: .9rem; }
.mini-card--gold { border-color: rgba(240, 179, 74, .7); }

/* Selector de cantidad (− 0 +) dentro de cada pack */
.qty { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; padding-top: 8px; margin-top: 4px; border-top: 1px dashed var(--line); }
.qty__btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font-size: 1.2rem; font-weight: 700; cursor: pointer; }
.qty__btn--plus { border-color: var(--line-strong); color: var(--gold); background: rgba(212, 175, 55, .1); }
.qty__n { min-width: 18px; text-align: center; font-weight: 700; }
.bento__cell--pack { align-items: center; text-align: center; cursor: default; }
.tag-pts { padding: 2px 12px; border-radius: 99px; font-size: .78rem; font-weight: 700; color: var(--ok); border: 1px solid rgba(74, 222, 128, .45); background: rgba(74, 222, 128, .09); }

/* Opciones tipo radio en recuadro (Transferencia / Efectivo, horarios) */
.opt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.opt-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.opt { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 12px; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 600; font-size: .9rem; cursor: pointer; }
.opt__dot { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2px solid var(--text-faint); }
.opt.is-selected { border-color: var(--gold); background: rgba(212, 175, 55, .1); color: var(--gold-soft); }
.opt.is-selected .opt__dot { border-color: var(--gold); background: radial-gradient(circle, var(--gold) 45%, transparent 50%); }

/* Acordeón con insignia a la derecha ("Nuevos Socios", "1 hoy") */
.accordion > summary .chip, .accordion > summary .pill { margin-left: auto; margin-right: 10px; }
.accordion > summary::after { font-size: .8rem; color: var(--text-dim); }

/* Campo con ojo para contraseña */
.input-eye { position: relative; }
.input-eye .input { padding-right: 46px; }
.input-eye__btn { position: absolute; right: 0; top: 0; width: 46px; height: 44px; border: 0; background: none; font-size: 1.1rem; cursor: pointer; }

/* Portada: logo + título en versalitas */
.brand { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.brand__logo { width: 76px; height: 76px; flex: none; object-fit: contain; filter: drop-shadow(0 0 14px rgba(46, 125, 79, .45)); }
.brand__title { font-size: 1.9rem; line-height: 1.1; margin: 0; }
.manifiesto { font-style: italic; font-size: 1.1rem; line-height: 1.6; }


/* Portada centrada: logo grande arriba, título y subtítulo centrados debajo */
.brand--center { flex-direction: column; justify-content: center; text-align: center; gap: 12px; padding: 12px 0 4px; }
.brand--center .brand__logo { width: 132px; height: 132px; margin: 0 auto; }
.brand--center .brand__title { font-size: 1.7rem; text-align: center; }
.brand-sub { text-align: center; margin-bottom: 18px; }

/* ───────── 18. Vistas del socio (Paso 6) ───────── */
.topbar .pill { min-height: 30px; padding: 0 9px; font-size: .8rem; }
.topbar__actions { flex: none; }
.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.info-grid .mini-card { font-size: .82rem; }
@media (max-width: 380px) { .info-grid { grid-template-columns: 1fr; } }
.opt[disabled], .qty__btn[disabled] { opacity: .4; cursor: default; }
.opt small { margin-left: auto; font-weight: 500; }
.list__item.gold .list__title { color: var(--gold); }
.card--vip .money { color: var(--gold-soft); }
.chat__msg--me .chat__time { opacity: .75; }
.notice b { color: var(--gold-soft); }
.sheet h3 { margin-bottom: 8px; }

