/* ============================================================
   main.css — Club Alianza Beneficios PWA
   Colores: amarillo #F2D900 + negro — identidad del club
   ============================================================ */

/* ── Reset + Variables ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --yellow:      #F2D900;
  --yellow-dark: #D4BE00;
  --black:       #000000;
  --text:        #292929;
  --text-muted:  #737373;
  --bg:          #FFFFFF;
  --bg-soft:     #FAFAFA;
  --border:      #E5E5E5;
  --success:     #16A34A;
  --success-bg:  #DCFCE7;
  --danger:      #DC2626;
  --danger-bg:   #FEE2E2;
  --radius-sm:   4px;
  --radius:      8px;
  --radius-lg:   16px;
  --shadow:      0 1px 3px rgba(0,0,0,.08);
  --shadow-md:   0 4px 12px rgba(0,0,0,.10);
  --shadow-lg:   0 10px 24px rgba(0,0,0,.12);
  --font:        'Outfit', system-ui, -apple-system, sans-serif;
  --font-display:'Outfit', system-ui, sans-serif;
  --nav-h:       64px;
}

html, body {
  height: 100%;
  font-family: var(--font);
  background: var(--bg);   /* blanco — el loading screen tiene su propio bg */
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

#app {
  min-height: 100dvh;
  height: 100dvh;
  background: var(--bg);
  position: relative;
}

/* Desktop: centrar contenido del panel (admin/comercio) */
@media (min-width: 768px) {
  #app { max-width: none; }
  .screen--comercio,
  .screen--login { max-width: 480px; margin: 0 auto; }
}

/* ── Loading ──────────────────────────────────────────────── */
.loading-screen {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.6rem;
  min-height: 100dvh; background: #000;
}
.loading-screen__logo {
  width: 116px; height: 116px; border-radius: 26px;
  animation: loading-pulse 1.6s ease-in-out infinite;
  box-shadow: 0 0 48px rgba(242, 217, 0, .25);
}
@keyframes loading-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}
.loading-screen__bar {
  width: 132px; height: 4px; border-radius: 2px;
  background: rgba(255, 255, 255, .12); overflow: hidden;
}
.loading-screen__bar-fill {
  width: 40%; height: 100%; border-radius: 2px;
  background: var(--yellow);
  animation: loading-slide 1.1s ease-in-out infinite;
}
@keyframes loading-slide {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(330%); }
}

.spinner {
  width: 36px; height: 36px;
  border: 3px solid rgba(242,217,0,.3);
  border-top-color: var(--yellow);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.spinner--sm { width: 20px; height: 20px; border-width: 2px; }
.spinner--dark {
  border-color: rgba(0,0,0,.15);
  border-top-color: var(--black);
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-inline {
  display: flex; flex-direction: column;
  align-items: center; gap: .75rem; padding: 3rem;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; border: none; cursor: pointer; font-family: var(--font);
  font-size: 1rem; font-weight: 700; border-radius: var(--radius-sm);
  padding: .875rem 1.5rem; transition: opacity .15s, transform .1s;
  -webkit-tap-highlight-color: transparent; min-height: 48px;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.btn--full { width: 100%; }

/* Negro con texto blanco — acción principal */
.btn--primary { background: var(--black); color: #fff; }
/* Amarillo con negro y borde negro — acción secundaria */
.btn--yellow   { background: var(--yellow); color: var(--black); border: 2px solid var(--black); }
/* Verde — confirmar descuento */
.btn--success  { background: var(--success); color: #fff; }
/* Borde negro, fondo blanco */
.btn--outline  { background: #fff; color: var(--black); border: 2px solid var(--black); }
.btn--ghost    { background: transparent; color: var(--text-muted); }

/* ── Fields ───────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.field__label { font-size: .875rem; font-weight: 600; color: var(--text); }
.field__input {
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: .75rem 1rem; font-size: 1rem; font-family: var(--font);
  background: var(--bg); color: var(--text); outline: none;
  transition: border-color .15s;
}
.field__input:focus { border-color: var(--black); }
.field__input--pin  { font-size: 1.5rem; letter-spacing: .5rem; text-align: center; }
.field__input--num  { font-size: 1.25rem; letter-spacing: .15rem; text-align: center; }
.field__input--monto{ font-size: 1.5rem; text-align: right; font-weight: 700; }

.form-error { font-size: .875rem; color: var(--danger); min-height: 1.2rem; margin-bottom: .5rem; }
.text-error { color: var(--danger); }

/* ── Screen base ──────────────────────────────────────────── */
.screen {
  display: flex; flex-direction: column;
  min-height: 100dvh; background: var(--bg);
}

/* ── Topbar ───────────────────────────────────────────────── */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--yellow); color: var(--black);
  padding: .875rem 1rem; gap: .75rem;
  border-bottom: 3px solid var(--black);
  position: sticky; top: 0; z-index: 10;
}
.topbar--dark {
  background: var(--black); color: var(--yellow);
  border-bottom: 3px solid var(--yellow);
}
.topbar--back { justify-content: flex-start; }
.topbar__back {
  background: rgba(0,0,0,.08); border: none; color: var(--black);
  cursor: pointer; padding: .4rem; border-radius: 50%;
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent; flex-shrink: 0;
}
.topbar--dark .topbar__back { background: rgba(255,255,255,.1); color: var(--yellow); }
.topbar__title { font-family: var(--font-display); font-size: 1rem; font-weight: 800; }
.topbar__info  { display: flex; flex-direction: column; flex: 1; }
.topbar__label { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; opacity: .65; }
.topbar__nombre{ font-family: var(--font-display); font-size: 1rem; font-weight: 800; }
.topbar__logout{
  background: rgba(0,0,0,.08); border: none; color: var(--black);
  cursor: pointer; padding: .4rem; border-radius: 50%;
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

/* ── Club Logo ────────────────────────────────────────────── */
.login-logo__img {
  width: 110px; height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--yellow);
  box-shadow: 0 0 0 3px var(--black);
}

/* Logo pequeño en topbar */
.topbar__logo {
  width: 32px; height: 32px;
  border-radius: 50%; object-fit: cover;
  border: 2px solid var(--black); flex-shrink: 0;
}

/* ── Bottom Nav ───────────────────────────────────────────── */
.bottomnav {
  display: flex; background: var(--bg);
  border-top: 1px solid var(--border);
  position: sticky; bottom: 0; z-index: 10;
  padding: 4px 0 12px;
}
.bottomnav__item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  gap: .2rem; padding: .5rem; border: none; background: none; cursor: pointer;
  color: var(--text-muted); font-size: .7rem; font-family: var(--font);
  -webkit-tap-highlight-color: transparent; transition: color .15s;
}
.bottomnav__item--active { color: var(--black); font-weight: 700; }

/* ── LOGIN ────────────────────────────────────────────────── */
.screen--login {
  background: var(--black);
  height: 100dvh; overflow: hidden;
}

.login-header {
  display: flex; justify-content: center; align-items: center;
  flex: 1; padding: 2.5rem 1.5rem 2rem;
}
.login-logo { display: flex; flex-direction: column; align-items: center; gap: .75rem; }
.login-logo .club-logo--xl { border-width: 4px; }
.login-logo__title {
  font-family: var(--font-display); font-size: 2rem; font-weight: 900;
  color: var(--yellow); letter-spacing: -.03em;
}
.login-logo__sub { font-size: .85rem; color: rgba(242,217,0,.6); letter-spacing: .05em; }

.login-card {
  background: var(--bg); border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 1.75rem 1.5rem 1.5rem; box-shadow: var(--shadow-lg);
}
.login-card__title {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 800;
  color: var(--text); margin-bottom: 1.25rem; letter-spacing: -.02em;
}
.login-footer {
  text-align: center; font-size: .78rem; color: rgba(242,217,0,.4);
  padding: .75rem 1rem 1.5rem; background: var(--black);
}

/* ── HOME ─────────────────────────────────────────────────── */
.home-main {
  flex: 1; display: flex; flex-direction: column;
  gap: 1rem; padding: 1.25rem 1rem;
}
.home-subtitle {
  font-size: .9rem; color: var(--text-muted); text-align: center; padding: .25rem 0;
}

.home-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .6rem; padding: 1.5rem; border-radius: var(--radius-lg); border: none;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform .15s; flex: 1;
}
.home-btn:active { transform: scale(.97); }

/* Negro con amarillo — escanear (acción principal) */
.home-btn--scan {
  background: var(--black); color: var(--yellow);
  border: 3px solid var(--black);
}
/* Amarillo con negro — manual */
.home-btn--manual {
  background: var(--yellow); color: var(--black);
  border: 3px solid var(--black);
}
.home-btn__icon   { opacity: .9; }
.home-btn__title  {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 800;
  letter-spacing: -.01em;
}
.home-btn__sub    { font-size: .8rem; opacity: .65; font-weight: 500; }

/* ── SCANNER ──────────────────────────────────────────────── */
.screen--scan { background: #000; color: #fff; }
.screen--scan .topbar { background: rgba(0,0,0,.8); border-bottom-color: var(--yellow); }
.screen--scan .topbar__back { color: var(--yellow); background: rgba(242,217,0,.15); }

.scan-area { position: relative; flex: 1; overflow: hidden; }
.scan-video { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; }
.scan-overlay {
  position: absolute; inset: 0; display: flex;
  flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
}
.scan-frame {
  width: 260px; height: 120px; border: 3px solid var(--yellow);
  border-radius: var(--radius-sm); box-shadow: 0 0 0 9999px rgba(0,0,0,.5);
  animation: pulse-frame 1.5s ease-in-out infinite;
}
@keyframes pulse-frame {
  0%, 100% { border-color: var(--yellow); }
  50%       { border-color: rgba(242,217,0,.4); }
}
.scan-hint { color: var(--yellow); font-size: .9rem; font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.scan-status {
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  padding: 1rem; background: rgba(0,0,0,.7); color: #fff; font-size: .9rem;
}
.scan-status .spinner { border-top-color: var(--yellow); border-color: rgba(242,217,0,.2); }
.scan-footer { padding: 1rem; background: #000; }

/* ── MANUAL / MONTO forms ─────────────────────────────────── */
.form-screen { flex: 1; display: flex; flex-direction: column; padding: 1.25rem 1rem; gap: .25rem; }

.tipo-tabs { display: flex; gap: .5rem; margin-bottom: 1.25rem; }
.tipo-tab {
  flex: 1; padding: .6rem; border: 2px solid var(--border); background: var(--bg);
  border-radius: var(--radius-sm); font-size: .9rem; font-weight: 600;
  color: var(--text-muted); cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: all .15s;
}
.tipo-tab--active { border-color: var(--black); color: var(--black); background: var(--yellow); }

/* ── MONTO — socio chip ───────────────────────────────────── */
.socio-chip {
  display: flex; align-items: center; gap: .75rem;
  background: var(--success-bg); border: 2px solid var(--success);
  border-radius: var(--radius); padding: .875rem 1rem; margin-bottom: 1rem;
}
.socio-chip__avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--black); color: var(--yellow);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: .9rem; font-weight: 800; flex-shrink: 0;
}
.socio-chip__info { flex: 1; display: flex; flex-direction: column; }
.socio-chip__nombre { font-family: var(--font-display); font-size: .95rem; font-weight: 800; color: var(--text); }
.socio-chip__tipo   { font-size: .8rem; color: var(--text-muted); }
.socio-chip__badge  {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1rem;
}
.socio-chip__badge--ok { background: var(--success); color: #fff; }

.beneficio-info {
  display: flex; flex-direction: column; gap: .25rem;
  background: var(--yellow); border: 2px solid var(--black);
  border-radius: var(--radius-sm); padding: .75rem 1rem; margin-bottom: 1rem;
}
.beneficio-info__titulo { font-family: var(--font-display); font-weight: 800; font-size: .95rem; color: var(--black); }
.beneficio-info__desc   { font-size: .85rem; font-weight: 600; color: var(--black); opacity: .75; }
.beneficio-info__minimo,
.beneficio-info__tope   { font-size: .8rem; color: var(--black); opacity: .6; margin-top: .15rem; }

.descuento-preview {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--success-bg); border: 2px solid var(--success);
  border-radius: var(--radius-sm); padding: .6rem 1rem; margin-bottom: .75rem;
}
.descuento-preview__label { font-size: .875rem; color: var(--text-muted); }
.descuento-preview__valor { font-family: var(--font-display); font-weight: 900; font-size: 1.15rem; color: var(--success); }

/* ── RESULTADO ────────────────────────────────────────────── */
.screen--resultado { justify-content: space-between; }
.resultado-content {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; padding: 2.5rem 1.5rem 1.5rem; gap: 1.1rem;
}
.resultado-icon { display: flex; justify-content: center; }
.resultado-titulo {
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 900;
  text-align: center; letter-spacing: -.03em;
}
.resultado-titulo--ok { color: var(--success); }
.resultado-titulo--no { color: var(--danger); }
.resultado-mensaje    { color: var(--text-muted); text-align: center; font-size: .95rem; line-height: 1.55; }

.resultado-socio { display: flex; flex-direction: column; align-items: center; gap: .15rem; }
.resultado-socio__nombre {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 800;
}
.resultado-socio__tipo { font-size: .85rem; color: var(--text-muted); }

.resultado-beneficio { text-align: center; }
.resultado-beneficio__titulo {
  display: inline-block; background: var(--yellow); color: var(--black);
  border: 2px solid var(--black); border-radius: var(--radius-sm);
  padding: .25rem .75rem; font-size: .85rem; font-weight: 700;
}

.resultado-montos {
  width: 100%; border-radius: var(--radius); border: 2px solid var(--border); overflow: hidden;
}
.resultado-monto-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: .75rem 1rem; border-bottom: 1px solid var(--border);
  font-size: .9rem;
}
.resultado-monto-row:last-child { border-bottom: none; }
.resultado-monto-row--descuento { color: var(--success); font-weight: 700; }
.resultado-monto-row--nota      { color: var(--text-muted); font-size: .8rem; }
.resultado-monto-row--total {
  background: var(--yellow); border-top: 2px solid var(--black);
  font-family: var(--font-display); font-weight: 800; font-size: 1rem;
}
.resultado-pago-final { font-size: 1.3rem; font-weight: 900; color: var(--black); }

.resultado-actions { padding: 1rem 1.5rem 1.5rem; }

/* ── HISTORIAL ────────────────────────────────────────────── */
.historial-filtros {
  display: flex; align-items: flex-end; gap: .5rem;
  padding: .6rem 1rem; background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.historial-filtros__label {
  display: flex; flex-direction: column;
  font-size: .68rem; font-weight: 600; color: var(--text-muted);
  gap: .2rem; flex: 1;
}
.historial-filtros__input {
  border: 1px solid var(--border); border-radius: 6px;
  padding: .3rem .4rem; font-size: .82rem; background: var(--bg);
  color: var(--text); font-family: inherit; width: 100%;
}
.historial-filtros__btn {
  padding: .38rem .9rem; border-radius: 6px; border: none;
  background: var(--primary); color: #000;
  font-size: .82rem; font-weight: 700; cursor: pointer;
  white-space: nowrap; align-self: flex-end;
}
.historial-filtros__btn:active { opacity: .8; }

.historial-body { flex: 1; overflow-y: auto; }

.historial-resumen {
  display: flex; border-bottom: 2px solid var(--black);
  background: var(--yellow);
}
.historial-resumen__item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  padding: 1rem .5rem; border-right: 1px solid rgba(0,0,0,.15);
}
.historial-resumen__item:last-child { border-right: none; }
.historial-resumen__num   {
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 900; color: var(--black);
}
.historial-resumen__label { font-size: .68rem; color: rgba(0,0,0,.6); text-align: center; font-weight: 600; }

.historial-list { list-style: none; }
.historial-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .875rem 1rem; border-bottom: 1px solid var(--border);
}
.historial-item__icono {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 800; flex-shrink: 0; border: 2px solid;
}
.historial-item--ok .historial-item__icono { background: var(--success-bg); color: var(--success); border-color: var(--success); }
.historial-item--no .historial-item__icono { background: var(--danger-bg); color: var(--danger); border-color: var(--danger); }
.historial-item__datos { flex: 1; display: flex; flex-direction: column; }
.historial-item__dni   { font-size: .9rem; font-weight: 700; }
.historial-item__desc  { font-size: .8rem; color: var(--success); font-weight: 600; }
.historial-item__desc--no { color: var(--text-muted); font-weight: 400; }
.historial-item__hora  { font-size: .8rem; color: var(--text-muted); flex-shrink: 0; }

/* ── Empty state ──────────────────────────────────────────── */
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  padding: 3rem 1.5rem; gap: .5rem; text-align: center;
  color: var(--text-muted);
}
.empty-state__title { font-family: var(--font-display); font-size: 1rem; font-weight: 800; color: var(--text); }
.empty-state__sub   { font-size: .875rem; color: var(--text-muted); }

/* ============================================================
   SEMANA 3 — Sección pública del socio
   ============================================================ */

/* ── Socio screen shell ────────────────────────────────────── */
.screen--socio {
  display: flex; flex-direction: column;
  height: 100dvh;          /* fixed: socio-content scrolls internamente */
  overflow: hidden;
  background: var(--bg);
}

/* ─ Site Header ─ */
.site-header {
  height: var(--nav-h);
  background: var(--black);
  display: flex; align-items: center;
  padding: 0 1rem; gap: .75rem;
  position: sticky; top: 0; z-index: 100;
  flex-shrink: 0;
}

.site-header__hamburger {
  background: none; border: none; color: #fff; cursor: pointer;
  padding: .4rem; border-radius: var(--radius-sm); line-height: 0;
  -webkit-tap-highlight-color: transparent; flex-shrink: 0;
  transition: background .15s;
}
.site-header__hamburger:hover { background: rgba(255,255,255,.1); }

.site-header__brand {
  display: flex; align-items: center; gap: .6rem; text-decoration: none; flex-shrink: 0;
}
.site-header__logo { width: 36px; height: 36px; object-fit: contain; border-radius: 50%; }
.site-header__name {
  font-family: var(--font); font-size: 1rem; font-weight: 800;
  color: var(--yellow); letter-spacing: -.02em; white-space: nowrap;
}

/* Desktop nav links — ocultos en mobile */
.site-header__links {
  display: none; flex: 1; align-items: center; gap: .25rem; margin-left: .5rem;
}
.site-header__link {
  background: none; border: none; color: rgba(255,255,255,.7);
  font-family: var(--font); font-size: .9rem; font-weight: 600;
  cursor: pointer; padding: .4rem .75rem; border-radius: var(--radius-sm);
  transition: color .15s, background .15s; white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.site-header__link:hover  { color: #fff; background: rgba(255,255,255,.08); }
.site-header__link--active { color: var(--yellow); }

.site-header__spacer { flex: 1; }

/* Botones de acceso top-right */
.site-header__actions {
  display: flex; align-items: center; gap: .5rem; flex-shrink: 0;
}
.header-access-btn {
  background: none; border: 1.5px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.8); font-family: var(--font);
  font-size: .78rem; font-weight: 700;
  padding: .35rem .75rem; border-radius: var(--radius-sm);
  cursor: pointer; transition: all .15s; white-space: nowrap;
  -webkit-tap-highlight-color: transparent; letter-spacing: .01em;
}
.header-access-btn:hover { border-color: var(--yellow); color: var(--yellow); }
.header-access-btn--yellow {
  background: var(--yellow); border-color: var(--yellow); color: var(--black);
}
.header-access-btn--yellow:hover { background: var(--yellow-dark); border-color: var(--yellow-dark); }

/* ─ Hamburger Drawer ─ */
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.55);
  z-index: 9998; opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.drawer-overlay--open { opacity: 1; pointer-events: all; }

.drawer {
  position: fixed; top: 0; left: 0; height: 100dvh; width: 280px;
  background: var(--black); z-index: 9999;
  display: flex; flex-direction: column;
  transform: translateX(-100%); transition: transform .28s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
}

/* Aislar el mapa Leaflet en su propio stacking context
   para que sus z-indices internos (hasta 800) no compitan
   con el drawer ni el overlay */
.leaflet-map { isolation: isolate; }
.drawer--open { transform: translateX(0); }

.drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; border-bottom: 1px solid #222; flex-shrink: 0;
  height: var(--nav-h);
}
.drawer-header__brand {
  display: flex; align-items: center; gap: .6rem;
}
.drawer-header__logo { width: 32px; height: 32px; border-radius: 50%; object-fit: contain; }
.drawer-header__name {
  font-size: .95rem; font-weight: 800; color: var(--yellow); letter-spacing: -.02em;
}
.drawer-close {
  background: rgba(255,255,255,.08); border: none; color: rgba(255,255,255,.7);
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s; -webkit-tap-highlight-color: transparent;
}
.drawer-close:hover { background: rgba(255,255,255,.15); color: #fff; }

.drawer-nav { padding: .75rem 0; flex: 1; }
.drawer-nav__label {
  font-size: .65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: rgba(255,255,255,.3);
  padding: .75rem 1.25rem .35rem;
}
.drawer-nav__item {
  display: flex; align-items: center; gap: .75rem;
  padding: .7rem 1.25rem; background: none; border: none;
  color: rgba(255,255,255,.7); font-family: var(--font);
  font-size: .95rem; font-weight: 600; cursor: pointer; width: 100%;
  text-align: left; transition: color .15s, background .15s;
  -webkit-tap-highlight-color: transparent;
}
.drawer-nav__item:hover   { color: #fff; background: rgba(255,255,255,.06); }
.drawer-nav__item--active { color: var(--yellow); background: rgba(242,217,0,.07); }
.drawer-nav__item svg     { flex-shrink: 0; opacity: .8; }
.drawer-nav__divider {
  border: none; border-top: 1px solid #222; margin: .5rem 0;
}

/* Accesos en el drawer (mobile) */
.drawer-access { padding: .75rem 1.25rem; display: flex; flex-direction: column; gap: .5rem; }
.drawer-access-btn {
  width: 100%; padding: .7rem 1rem; border-radius: var(--radius-sm);
  font-family: var(--font); font-size: .9rem; font-weight: 700;
  cursor: pointer; transition: all .15s; border: 1.5px solid;
  -webkit-tap-highlight-color: transparent;
}
.drawer-access-btn--comercio {
  background: none; border-color: rgba(255,255,255,.2); color: rgba(255,255,255,.8);
}
.drawer-access-btn--comercio:hover { border-color: #fff; color: #fff; }
.drawer-access-btn--admin {
  background: var(--yellow); border-color: var(--yellow); color: var(--black);
}
.drawer-access-btn--admin:hover { background: var(--yellow-dark); border-color: var(--yellow-dark); }
.drawer-access-btn--inicio {
  background: none; border-color: rgba(255,255,255,.12); color: rgba(255,255,255,.45);
  display: flex; align-items: center; justify-content: center; gap: .45rem;
  font-size: .82rem; font-weight: 600;
}
.drawer-access-btn--inicio:hover { border-color: rgba(255,255,255,.35); color: rgba(255,255,255,.75); }

/* ─ Desktop breakpoint ─ */
@media (min-width: 768px) {
  .site-header { padding: 0 2rem; }
  /* Hamburger siempre visible — mismo diseño mobile y desktop */
  .site-header__links { display: none; }
  .site-header__actions { display: none; }
}

/* ─ Header compacto en pantallas chicas (que no se corte nada) ─ */
@media (max-width: 480px) {
  .site-header { padding: 0 .6rem; gap: .4rem; }
  .site-header__name { font-size: .95rem; }
  .header-access-btn { font-size: .72rem; padding: .3rem .55rem; }
  .site-header__actions { gap: .35rem; }
}

/* Botón Inicio del header (siempre visible) */
.header-inicio-btn {
  display: inline-flex; align-items: center; gap: 5px;
  flex-shrink: 0;
}
@media (max-width: 420px) {
  .header-inicio-btn span { display: none; }
  .header-inicio-btn { padding: .35rem .5rem; }
}

/* ─ Socio content ─ */
.socio-content {
  flex: 1; overflow-y: auto; padding: 1.25rem 1rem;
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 768px) {
  .socio-content {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
  }
}

/* ── Socio loading ─────────────────────────────────────────── */
.socio-loading {
  display: flex; justify-content: center; align-items: center;
  padding: 3rem; color: var(--text-muted);
}

/* ─ Page title (secciones socio) ─ */
.page-title {
  font-size: 1.75rem; font-weight: 800; color: var(--black);
  letter-spacing: -.03em; margin-bottom: .25rem; line-height: 1.15;
}
.page-subtitle {
  font-size: .95rem; color: var(--text-muted); margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
  .page-title { font-size: 2.25rem; }
}

/* ── Filters bar ───────────────────────────────────────────── */
.socio-filters { margin-bottom: .75rem; }
.filter-select {
  width: 100%; padding: .6rem .75rem; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-size: .875rem; font-family: var(--font);
  background: var(--bg); color: var(--text); appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .75rem center;
  padding-right: 2.25rem;
}
.filter-select:focus { outline: none; border-color: var(--yellow); }

/* ── Comercio card (socio view) ────────────────────────────── */
.comercio-card {
  background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 1rem; margin-bottom: .75rem; box-shadow: var(--shadow);
  overflow: hidden;
}
.comercio-card__foto {
  width: calc(100% + 2rem); margin: -1rem -1rem .75rem;
  height: 140px; object-fit: cover; display: block;
}
.comercio-card__head {
  display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: .5rem;
}
.comercio-card__info { flex: 1; }
.comercio-card__nombre {
  font-family: var(--font-display); font-size: 1rem; font-weight: 800;
  color: var(--black); margin-bottom: .25rem;
}
.comercio-card__desc { font-size: .8rem; color: var(--text-muted); margin: .4rem 0 .5rem; }
.comercio-card__dir  { font-size: .75rem; color: var(--text-muted); display: flex; align-items: center; gap: .3rem; margin-top: .5rem; }

.tag {
  display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; padding: .2rem .5rem; border-radius: 20px;
  background: var(--yellow); color: var(--black);
}

.icon-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--yellow); color: var(--black);
  border: none; cursor: pointer; text-decoration: none; flex-shrink: 0;
  transition: transform .15s; margin-left: .5rem;
}
.icon-btn:hover { transform: scale(1.08); }

/* ── Beneficio rows ────────────────────────────────────────── */
.beneficio-list { border-top: 1px solid var(--border); margin-top: .5rem; padding-top: .5rem; }
.beneficio-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: .35rem 0; font-size: .875rem;
}
.beneficio-row + .beneficio-row { border-top: 1px dashed var(--border); }
.beneficio-row__desc  { color: var(--text); flex: 1; }
.beneficio-row__valor {
  font-family: var(--font-display); font-size: 1rem; font-weight: 900;
  color: var(--black); margin-left: .5rem; white-space: nowrap;
}
.beneficio-row__valor--pct { color: var(--success); }
.beneficio-row__extra { font-size: .75rem; color: var(--text-muted); padding: .15rem 0 .35rem; }

/* ── Evento cards ──────────────────────────────────────────── */
.evento-card {
  background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--radius);
  margin-bottom: .75rem; overflow: hidden; box-shadow: var(--shadow);
}
.evento-card__img { width: 100%; max-height: 160px; object-fit: cover; display: block; }
.evento-card__body { padding: .875rem 1rem; }
.evento-card__titulo { font-family: var(--font-display); font-size: 1rem; font-weight: 800; margin-bottom: .4rem; }
.evento-card__meta { display: flex; flex-direction: column; gap: .25rem; margin-bottom: .5rem; }
.evento-meta-item { display: flex; align-items: center; gap: .35rem; font-size: .8rem; color: var(--text-muted); }
.evento-card__desc { font-size: .875rem; color: var(--text); line-height: 1.5; }

/* ── Mapa ──────────────────────────────────────────────────── */
.mapa-container {
  display: flex; flex-direction: row;
  height: 100%; width: 100%; overflow: hidden;
}

/* Sidebar siempre visible a la izquierda */
.mapa-sidebar {
  width: 210px; min-width: 190px;
  background: #fff;
  display: flex; flex-direction: column;
  border-right: 1px solid #e5e7eb;
  flex-shrink: 0;
  overflow: hidden;
}

.mapa-sidebar__header {
  display: flex; align-items: center;
  padding: 10px 12px; border-bottom: 1px solid #222;
  flex-shrink: 0; background: #111; color: var(--yellow);
}
.mapa-sidebar__title {
  display: flex; align-items: center; gap: 6px;
  font-size: .78rem; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase;
}

.mapa-sidebar__list { flex: 1; overflow-y: auto; }

.mapa-sidebar__item {
  width: 100%; display: flex; align-items: flex-start; gap: 9px;
  padding: 9px 11px; border: none; background: none;
  cursor: pointer; text-align: left;
  border-bottom: 1px solid #f2f2f2;
  transition: background .12s; font-family: var(--font);
  -webkit-tap-highlight-color: transparent;
}
.mapa-sidebar__item:hover  { background: #fffbeb; }
.mapa-sidebar__item:active { background: #FFF8CC; }
.mapa-sidebar__item-icon {
  width: 22px; height: 22px; background: var(--yellow);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; color: #111; margin-top: 1px;
}
.mapa-sidebar__item-info {
  flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0;
}
.mapa-sidebar__item-nombre {
  font-size: .8rem; font-weight: 700; color: #111;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mapa-sidebar__item-rubro { font-size: .68rem; color: #888; font-weight: 500; }
.mapa-sidebar__item-dir   { font-size: .66rem; color: #bbb; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.leaflet-map {
  flex: 1;
  height: 100%;
  min-height: 300px;
}

/* Móvil: listado arriba (compacto), mapa abajo ocupando el resto */
@media (max-width: 700px) {
  .mapa-container { flex-direction: column; }
  .mapa-sidebar {
    width: 100%; min-width: 0;
    height: 34%; max-height: 240px;
    border-right: none; border-bottom: 2px solid var(--yellow);
  }
  .leaflet-map { min-height: 0; width: 100%; }
}
.map-marker {
  width: 32px; height: 40px; display: flex; align-items: center; justify-content: center;
  background: var(--yellow); color: var(--black); border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg); box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.map-marker svg { transform: rotate(45deg); }
.map-overlay {
  position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,.75); color: #fff; padding: .5rem 1rem;
  border-radius: 20px; font-size: .8rem; pointer-events: none;
}

/* ══════════════════════════════════════════════════════════════
   TIENDA — merchandising
   ══════════════════════════════════════════════════════════════ */

/* Grid pública de productos */
.tienda-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.producto-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .15s;
}
.producto-card:hover { box-shadow: 0 6px 22px rgba(0,0,0,.09); }
.producto-card--agotado { opacity: .72; }

.producto-card__foto-wrap {
  position: relative; background: #f6f6f6;
  height: 180px; display: flex; align-items: center; justify-content: center;
}
.producto-card__foto {
  width: 100%; height: 100%; object-fit: cover;
  cursor: zoom-in;
}

/* Lightbox para ver fotos en grande */
.lightbox {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0, 0, 0, .88);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s;
  cursor: zoom-out;
}
.lightbox--visible { opacity: 1; }
.lightbox__img {
  max-width: 94vw; max-height: 88vh;
  border-radius: 10px; object-fit: contain;
  box-shadow: 0 12px 48px rgba(0,0,0,.6);
}
.lightbox__close {
  position: absolute; top: 16px; right: 16px;
  background: rgba(255,255,255,.12); border: none; color: #fff;
  width: 40px; height: 40px; border-radius: 50%;
  font-size: 1.1rem; cursor: pointer;
}
.producto-card__foto--placeholder {
  display: flex; align-items: center; justify-content: center; color: #999;
}
.producto-card__agotado-badge {
  position: absolute; top: 10px; right: 10px;
  background: var(--black); color: #fff;
  font-size: .66rem; font-weight: 800; letter-spacing: .1em;
  padding: 4px 9px; border-radius: 5px;
}

.producto-card__body {
  padding: .9rem 1rem 1rem;
  display: flex; flex-direction: column; gap: .45rem; flex: 1;
}
.producto-card__nombre { font-size: 1rem; font-weight: 800; margin: 0; color: var(--text); }
.producto-card__desc   { font-size: .8rem; color: var(--text-muted); margin: 0; line-height: 1.45; }

.producto-card__precios {
  display: flex; align-items: stretch; gap: .6rem; margin: .25rem 0 .4rem;
}
.producto-card__precio-socio {
  background: var(--yellow); border-radius: 8px;
  padding: .45rem .75rem;
  display: flex; flex-direction: column; gap: 1px;
}
.producto-card__precio-label { font-size: .58rem; font-weight: 800; letter-spacing: .08em; }
.producto-card__precio-valor { font-size: 1.15rem; font-weight: 900; line-height: 1.1; }
.producto-card__precio-normal {
  display: flex; flex-direction: column; gap: 1px; justify-content: center;
  color: var(--text-muted); font-size: .9rem; font-weight: 700;
}

/* Formulario de reserva inline */
.pedido-form {
  border-top: 1px dashed var(--border);
  padding-top: .75rem; margin-top: .25rem;
  display: flex; flex-direction: column; gap: .5rem;
}
.pedido-form[hidden] { display: none; }
.pedido-form__titulo { font-size: .82rem; font-weight: 700; margin: 0; }
.pedido-form__input {
  width: 100%; padding: .6rem .7rem;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: .875rem; font-family: var(--font); background: #fff;
}
.pedido-form__input:focus { outline: none; border-color: var(--yellow); }
.pedido-form__row { display: flex; gap: .5rem; }
.pedido-form__row .pedido-form__input { flex: 1; }
.pedido-form__error { margin: 0; }
.pedido-form__nota {
  font-size: .72rem; color: var(--text-muted); text-align: center; margin: 0;
}

/* Resumen del pedido (paso de revisión editable) */
.pedido-resumen { display: flex; flex-direction: column; gap: .5rem; }
.pedido-resumen[hidden] { display: none; }
.pedido-campos { display: flex; flex-direction: column; gap: .5rem; }
.pedido-campos[hidden] { display: none; }
.pedido-resumen__row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: .85rem; padding: .35rem 0;
  border-bottom: 1px dashed var(--border);
}
.pedido-resumen__row span { color: var(--text-muted); }
.pedido-resumen__btns { display: flex; gap: .5rem; }
.pedido-resumen__btns .btn { flex: 1; }
.pedido-resumen__error { margin: 0; }

/* Confirmación de pedido */
.pedido-ok {
  text-align: center; padding: .75rem 0 .25rem;
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
}
.pedido-ok__titulo  { font-size: 1rem; font-weight: 800; margin: 0; color: #16A34A; }
.pedido-ok__numero  { font-size: .95rem; margin: 0; }
.pedido-ok__detalle { font-size: .82rem; color: var(--text-muted); margin: 0; }
.pedido-ok__info {
  font-size: .8rem; color: var(--text); line-height: 1.5;
  background: #FFFBEB; border: 1px solid #FDE68A; border-radius: 8px;
  padding: .6rem .8rem; margin: .35rem 0 0;
}

/* Sub-tabs del admin de tienda */
.tienda-subtabs {
  display: flex; gap: .25rem; margin-bottom: 1rem;
  border-bottom: 2px solid var(--border);
}
.tienda-subtab {
  background: none; border: none; cursor: pointer;
  font-family: var(--font); font-size: .9rem; font-weight: 700;
  color: var(--text-muted); padding: .6rem 1rem;
  border-bottom: 3px solid transparent; margin-bottom: -2px;
  display: flex; align-items: center; gap: 6px;
}
.tienda-subtab--active { color: var(--text); border-bottom-color: var(--yellow); }
.tienda-subtab__badge {
  background: #DC2626; color: #fff; font-size: .68rem; font-weight: 800;
  min-width: 18px; height: 18px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 5px;
}
.tienda-subtab__badge[hidden] { display: none; }

/* Formulario admin genérico */
.admin-form-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.1rem 1.2rem;
  margin-bottom: 1.25rem;
}
.admin-form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 1rem;
  margin-bottom: .75rem;
}
@media (max-width: 560px) {
  .admin-form-grid { grid-template-columns: 1fr; }
}

/* Filas de pedidos por estado */
.pedido-row--cancelado td { opacity: .55; }
.pedido-row--entregado td { background: #F0FDF4; }

/* ── Encabezados de tabla ordenables ───────────────────────── */
th.th-sort {
  cursor: pointer; user-select: none;
  transition: color .12s;
  white-space: nowrap;
}
th.th-sort:hover { color: var(--text); }
th.th-sort--active { color: var(--text); }

/* ── Auditoría — última actividad ──────────────────────────── */
.audit-list {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.audit-item {
  display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap;
  padding: .6rem .9rem; border-bottom: 1px solid #f2f2f2;
  font-size: .84rem;
}
.audit-item:last-child { border-bottom: none; }
.audit-item__accion  { font-weight: 700; color: var(--text); }
.audit-item__detalle { color: var(--text-muted); flex: 1; min-width: 0; }
.audit-item__meta    { font-size: .73rem; color: #aaa; margin-left: auto; white-space: nowrap; }

/* ── Banner instalación PWA ────────────────────────────────── */
.pwa-banner {
  position: fixed; left: 12px; right: 12px; bottom: 12px;
  max-width: 440px; margin: 0 auto;
  display: flex; align-items: center; gap: 11px;
  background: var(--black); color: #fff;
  border: 2px solid var(--yellow);
  border-radius: 14px; padding: 11px 13px;
  box-shadow: 0 10px 32px rgba(0,0,0,.35);
  z-index: 9999;
  transform: translateY(120%); opacity: 0;
  transition: transform .35s cubic-bezier(.34,1.3,.64,1), opacity .3s;
}
.pwa-banner--visible { transform: translateY(0); opacity: 1; }
.pwa-banner__icon {
  width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0;
}
.pwa-banner__text {
  flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0;
}
.pwa-banner__text strong { font-size: .85rem; font-weight: 800; }
.pwa-banner__text span   { font-size: .73rem; color: rgba(255,255,255,.65); }
.pwa-banner__btn {
  background: var(--yellow); color: var(--black);
  border: none; border-radius: 8px;
  font-family: var(--font); font-size: .8rem; font-weight: 800;
  padding: 8px 14px; cursor: pointer; flex-shrink: 0;
}
.pwa-banner__btn:active { transform: scale(.96); }
.pwa-banner__close {
  background: none; border: none; color: rgba(255,255,255,.5);
  font-size: .9rem; cursor: pointer; padding: 4px; flex-shrink: 0;
}

/* ── Acciones de la tarjeta de comercio ────────────────────── */
.comercio-card__actions { display: flex; gap: .35rem; align-items: center; flex-shrink: 0; }
.btn-whatsapp { color: #25D366; }
.btn-whatsapp:hover { background: rgba(37, 211, 102, .12); }

/* ── Historia — próximamente ───────────────────────────────── */
.historia-coming {
  max-width: 560px; margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.historia-coming__badge {
  width: 110px; height: 110px; border-radius: 50%;
  background: var(--black);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 28px rgba(0,0,0,.22), 0 0 0 6px var(--yellow);
  margin-bottom: 1.5rem;
}
.historia-coming__logo { width: 86px; height: 86px; object-fit: cover; border-radius: 50%; }
.historia-coming__titulo {
  font-size: 1.9rem; font-weight: 900; color: var(--black);
  letter-spacing: -.02em; margin: 0;
}
.historia-coming__divider {
  width: 56px; height: 4px; background: var(--yellow);
  border-radius: 2px; margin: .9rem 0 1.1rem;
}
.historia-coming__proximamente {
  display: inline-block;
  background: var(--black); color: var(--yellow);
  font-size: .78rem; font-weight: 800; letter-spacing: .28em;
  padding: .45rem 1.1rem .4rem 1.35rem; border-radius: 20px;
  margin: 0 0 1.4rem;
}
.historia-coming__texto {
  font-size: .95rem; color: var(--text-muted); line-height: 1.65;
  margin: 0 0 1.8rem; max-width: 440px;
}
.historia-coming__texto strong { color: var(--text); }

.historia-coming__years {
  display: flex; flex-direction: column; gap: .65rem;
  width: 100%; max-width: 360px; margin-bottom: 2rem;
}
.historia-coming__year-item {
  display: flex; align-items: center; gap: .8rem;
  background: #fff; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: .8rem 1rem;
  font-size: .88rem; font-weight: 600; color: var(--text);
  text-align: left;
}
.historia-coming__year-item svg { color: var(--yellow); flex-shrink: 0; filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); }

.historia-coming__footer {
  font-size: .85rem; color: var(--text-muted); font-weight: 600; margin: 0;
}
.historia-coming__dots i {
  font-style: normal; animation: historia-dot 1.4s infinite;
  display: inline-block;
}
.historia-coming__dots i:nth-child(2) { animation-delay: .2s; }
.historia-coming__dots i:nth-child(3) { animation-delay: .4s; }
@keyframes historia-dot {
  0%, 60%, 100% { opacity: .25; }
  30%           { opacity: 1; }
}

/* ── Info page ─────────────────────────────────────────────── */
.info-page { padding: 1.5rem 1rem; }
.info-logo-wrap { text-align: center; margin-bottom: 1rem; }
.info-logo { width: 100px; height: 100px; object-fit: contain; }
.info-club-name { font-family: var(--font-display); font-size: 1.1rem; font-weight: 900; text-align: center; line-height: 1.25; margin-bottom: .25rem; }
.info-club-sub  { text-align: center; color: var(--text-muted); font-size: .875rem; margin-bottom: 1.5rem; }
.info-card {
  background: var(--bg-soft); border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 1rem; margin-bottom: .75rem;
}
.info-card__title { font-family: var(--font-display); font-weight: 800; font-size: .95rem; margin-bottom: .6rem; }
.info-steps { padding-left: 1.25rem; font-size: .875rem; line-height: 1.8; color: var(--text); }
.info-contact-list { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.info-contact-list li { display: flex; align-items: center; gap: .5rem; font-size: .875rem; }
.info-card__btn { margin-top: .75rem; width: 100%; }
.info-version { text-align: center; color: var(--text-muted); font-size: .75rem; margin-top: 1.5rem; }

.login-footer-links { margin-top: 1rem; text-align: center; }
.link-btn {
  background: none; border: none; color: var(--text-muted); font-size: .875rem;
  cursor: pointer; text-decoration: underline; font-family: var(--font); padding: 0;
}
.link-btn:hover { color: var(--text); }
.link-btn--danger { color: var(--danger); }
.link-btn--danger:hover { color: #991B1B; }

/* ============================================================
   SEMANA 3 — Panel de administración
   ============================================================ */

/* ── Admin screen shell ────────────────────────────────────── */
.screen--admin {
  display: flex; flex-direction: column; height: 100dvh;
  background: var(--bg-soft);
}

.admin-topbar {
  display: flex; align-items: center; gap: .6rem;
  background: var(--black); color: #fff;
  padding: .6rem 1rem; flex-shrink: 0;
}
.admin-topbar__logo   { width: 30px; height: 30px; object-fit: contain; }
.admin-topbar__title  { font-family: var(--font-display); font-size: .9rem; font-weight: 900; color: var(--yellow); }
.admin-topbar__nombre { flex: 1; font-size: .8rem; color: rgba(255,255,255,.6); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-topbar__logout {
  background: transparent; border: 1px solid rgba(255,255,255,.3); color: rgba(255,255,255,.7);
  padding: .3rem .7rem; border-radius: 6px; font-size: .75rem; cursor: pointer;
  font-family: var(--font); transition: all .15s; flex-shrink: 0;
}
.admin-topbar__logout:hover { background: rgba(255,255,255,.1); color: #fff; }

/* ── Admin tab nav ─────────────────────────────────────────── */
.admin-nav {
  display: flex; overflow-x: auto; background: #111; flex-shrink: 0;
  border-bottom: 2px solid #222; scrollbar-width: none; -ms-overflow-style: none;
}
.admin-nav::-webkit-scrollbar { display: none; }
.admin-nav__item {
  display: flex; flex-direction: column; align-items: center;
  gap: .2rem; padding: .55rem .9rem .5rem; background: none; border: none;
  color: rgba(255,255,255,.45); font-size: .65rem; font-weight: 600;
  cursor: pointer; white-space: nowrap; transition: color .15s;
  border-bottom: 2px solid transparent; flex-shrink: 0; line-height: 1;
}
.admin-nav__item svg { transition: stroke .15s; }
.admin-nav__item--active { color: var(--yellow); border-bottom-color: var(--yellow); }
.admin-nav__item--active svg { stroke: var(--yellow); }
.admin-nav__item:hover:not(.admin-nav__item--active) { color: rgba(255,255,255,.8); }

/* ── Admin content ─────────────────────────────────────────── */
.admin-content {
  flex: 1; overflow-y: auto; padding: 1rem; -webkit-overflow-scrolling: touch;
}

.admin-loading {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 3rem; gap: .75rem; color: var(--text-muted); font-size: .875rem;
}

.admin-page-title  { font-family: var(--font-display); font-size: 1.2rem; font-weight: 900; }
.admin-page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: .875rem; }
.admin-section-title {
  font-family: var(--font-display); font-size: .9rem; font-weight: 800;
  margin: 1.25rem 0 .625rem; color: var(--text);
}
.admin-section-title--warn { color: #B45309; }

.admin-section { margin-bottom: 1rem; }

/* ── Stat cards ────────────────────────────────────────────── */
.stat-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .625rem; margin-bottom: .5rem;
}
.stat-card {
  background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: .875rem .75rem; text-align: center; display: flex;
  flex-direction: column; gap: .25rem; box-shadow: var(--shadow);
}
.stat-card--yellow { background: var(--yellow); border-color: var(--yellow-dark); }
.stat-card__num   {
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 900; line-height: 1;
  color: var(--black);
}
.stat-card__num small { font-size: .9rem; font-weight: 500; color: var(--text-muted); }
.stat-card__label { font-size: .72rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .03em; }
.stat-card--yellow .stat-card__label { color: rgba(0,0,0,.55); }

/* ── Ranking list ──────────────────────────────────────────── */
.ranking-list { display: flex; flex-direction: column; gap: .4rem; }
.ranking-item {
  display: flex; align-items: center; gap: .75rem;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: .6rem .875rem;
}
.ranking-item__pos  {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--yellow); color: var(--black);
  font-size: .75rem; font-weight: 900; display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.ranking-item__nombre { flex: 1; font-size: .875rem; font-weight: 600; }
.ranking-item__count  { font-size: .8rem; color: var(--text-muted); white-space: nowrap; }

/* ── Alert list ────────────────────────────────────────────── */
.alerta-list { display: flex; flex-direction: column; gap: .4rem; }
.alerta-item {
  display: flex; align-items: flex-start; gap: .5rem;
  background: #FEF9C3; border: 1.5px solid #FDE047; border-radius: var(--radius-sm);
  padding: .6rem .75rem; font-size: .8rem;
}
.alerta-item__tipo  { font-weight: 800; color: #713F12; white-space: nowrap; }
.alerta-item__desc  { flex: 1; color: var(--text); }
.alerta-item__fecha { color: var(--text-muted); white-space: nowrap; font-size: .75rem; }

/* ── Bar chart ─────────────────────────────────────────────── */
.bar-chart {
  display: flex; align-items: flex-end; gap: 6px;
  padding: 0 8px;
}
.bar-chart__col  {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: 4px; min-width: 0;
}
.bar-chart__val  { font-size: .82rem; color: var(--text); font-weight: 800; line-height: 1; }
.bar-chart__bar-area {
  width: 100%; height: 150px;
  display: flex; align-items: flex-end;
}
.bar-chart__bar  {
  width: 100%; background: var(--yellow); border-radius: 5px 5px 0 0;
  min-height: 4px; transition: height .4s ease;
  box-shadow: inset 0 3px 0 rgba(255,255,255,.35);
}
.bar-chart__label {
  font-size: .7rem; color: var(--text-muted);
  text-align: center; white-space: nowrap; overflow: hidden; font-weight: 500;
}

/* ── Bar chart 30 días (scrollable) ───────────────────────── */
.bar-chart-wrap {
  overflow-x: auto;
  padding-bottom: .5rem;
}
.bar-chart--30d {
  min-width: max-content;
  padding: 0 .5rem;
}
.bar-chart--30d .bar-chart__col {
  min-width: 26px;
  flex: 0 0 auto;
}

/* ── Stat card acento ─────────────────────────────────────── */
.stat-card--accent {
  background: #1e293b;
  border-color: #334155;
}
.stat-card--accent .stat-card__num   { color: var(--yellow); }
.stat-card--accent .stat-card__label { color: rgba(255,255,255,.55); }

/* ── Gráficos de torta ────────────────────────────────────── */
.pie-charts-row {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.pie-chart-card {
  flex: 1 1 200px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  box-shadow: var(--shadow);
}

.pie-chart-title {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-muted);
  text-align: center;
}

.pie-chart-ring {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pie-chart-ring--empty {
  background: #e5e7eb;
}

.pie-chart-hole {
  position: absolute;
  width: 64px;
  height: 64px;
  background: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pie-chart-pct {
  font-size: 1rem;
  font-weight: 900;
  font-family: var(--font-display);
  color: var(--black);
}

.pie-chart-legend {
  font-size: .78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .25rem .5rem;
  justify-content: center;
}

.pie-legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  box-sizing: border-box;
}

/* ── Admin table ───────────────────────────────────────────── */
.admin-table-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 1.5px solid var(--border); }
.admin-table {
  width: 100%; border-collapse: collapse; font-size: .8rem;
  background: var(--bg); min-width: 400px;
}
.admin-table thead { background: #f5f5f5; }
.admin-table th {
  text-align: left; padding: .6rem .75rem; font-weight: 700;
  font-size: .72rem; text-transform: uppercase; letter-spacing: .04em;
  color: var(--text-muted); border-bottom: 1.5px solid var(--border);
  white-space: nowrap;
}
.admin-table td { padding: .6rem .75rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table__row--disabled td { opacity: .5; }
.mono { font-family: monospace; font-size: .82rem; }

/* ── Badges ────────────────────────────────────────────────── */
.badge {
  display: inline-block; font-size: .7rem; font-weight: 700; padding: .2rem .55rem;
  border-radius: 20px; border: none; cursor: pointer; white-space: nowrap; font-family: var(--font);
}
.badge--ok  { background: var(--success-bg); color: var(--success); }
.badge--off { background: #F3F4F6; color: #6B7280; }
.badge--warn { background: #FEF3C7; color: #92400E; }

/* ── Admin search ──────────────────────────────────────────── */
.admin-search-bar {
  display: flex; gap: .5rem; margin-bottom: .875rem;
}
.admin-search-bar .field__input { flex: 1; margin: 0; }
.admin-result-count { font-size: .8rem; color: var(--text-muted); margin-bottom: .5rem; }

/* ── Pager ─────────────────────────────────────────────────── */
.pager {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; padding: .875rem 0; font-size: .875rem;
}
.pager__info { color: var(--text-muted); }

/* ── Modal overlay ─────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.6);
  z-index: 200; display: flex; align-items: flex-end; justify-content: center;
  padding: 0; animation: fadeIn .15s ease;
}
.modal {
  background: var(--bg); border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 1.5rem 1.25rem 2rem; width: 100%; max-width: 430px;
  max-height: 90dvh; overflow-y: auto;
}
.modal__title   { font-family: var(--font-display); font-size: 1.1rem; font-weight: 900; margin-bottom: 1rem; }
.modal__actions { display: flex; gap: .625rem; margin-top: 1rem; }
.modal__actions .btn { flex: 1; }

/* ── Field row ─────────────────────────────────────────────── */
.field-row { display: flex; gap: .625rem; }
.field-row .field { flex: 1; }

/* ── Upload zone ───────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 2rem 1rem; text-align: center; display: flex;
  flex-direction: column; align-items: center; gap: .75rem;
  color: var(--text-muted); background: var(--bg-soft); margin-bottom: .5rem;
}
.upload-input  { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-filename { font-size: .85rem; color: var(--text); font-weight: 600; min-height: 1.25rem; }

/* ── Preview & apply ───────────────────────────────────────── */
.preview-stats { display: flex; gap: .5rem; margin: .75rem 0; flex-wrap: wrap; }
.error-list { background: var(--danger-bg); border: 1.5px solid var(--danger); border-radius: var(--radius-sm); padding: .75rem; margin-bottom: .75rem; font-size: .8rem; }
.error-list ul { padding-left: 1.25rem; margin-top: .25rem; }
.apply-wrap { margin-top: .875rem; display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; }
.apply-info { font-size: .875rem; }

/* ── Success / info banners ────────────────────────────────── */
.success-banner {
  background: var(--success-bg); border: 1.5px solid var(--success);
  border-radius: var(--radius-sm); padding: .875rem 1rem; margin-top: .875rem;
  font-size: .875rem; color: var(--success);
}
.info-banner {
  background: #EFF6FF; border: 1.5px solid #BFDBFE;
  border-radius: var(--radius-sm); padding: .875rem 1rem; margin-bottom: .875rem;
  font-size: .8rem; line-height: 1.5; color: #1E40AF;
}
.info-banner code { background: rgba(0,0,0,.06); border-radius: 3px; padding: .1em .3em; font-size: .9em; }

/* ── Eventos admin list ────────────────────────────────────── */
.evento-admin-list { display: flex; flex-direction: column; gap: .5rem; }
.evento-admin-item {
  background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: .75rem .875rem; display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem;
}
.evento-admin-item--inactivo { opacity: .6; }
.evento-admin-item__info { flex: 1; display: flex; flex-direction: column; gap: .2rem; }
.evento-admin-item__titulo { font-weight: 700; font-size: .875rem; }
.evento-admin-item__fecha  { font-size: .75rem; color: var(--text-muted); }
.evento-admin-item__lugar  { font-size: .75rem; color: var(--text-muted); }
.evento-admin-item__actions { display: flex; flex-direction: column; gap: .3rem; align-items: flex-end; flex-shrink: 0; }

/* ── Report section ────────────────────────────────────────── */
.report-section  { margin-bottom: 1.25rem; }
.report-filters  { margin-bottom: 1rem; }
.report-actions  { display: flex; gap: .4rem; }

.report-filters__row {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem;
}
.report-filter-group {
  display: flex; flex-direction: column; gap: .25rem;
}
.filter-date {
  padding: .55rem .75rem; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-size: .875rem; font-family: var(--font);
  background: #fff; color: var(--text);
}
.filter-date:focus { outline: none; border-color: var(--yellow); }

/* ── Misc utils ────────────────────────────────────────────── */
.empty-msg    { color: var(--text-muted); font-size: .875rem; padding: 1rem 0; }
.error-msg    { color: var(--danger); font-size: .875rem; padding: .5rem 0; }
.btn--sm      { padding: .45rem .875rem; font-size: .8rem; }
.btn--secondary {
  background: var(--bg); color: var(--text); border: 1.5px solid var(--border);
}
.btn--secondary:hover { background: #F3F4F6; border-color: #D1D5DB; }

/* ── Beneficios admin ──────────────────────────────────────── */
.ben-grupo { margin-bottom: 1.5rem; }
.ben-grupo__titulo {
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--text-muted);
  padding-bottom: .4rem; border-bottom: 1.5px solid var(--border); margin-bottom: .6rem;
}
.ben-item {
  background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: .75rem .875rem; display: flex; justify-content: space-between;
  align-items: flex-start; gap: .75rem; margin-bottom: .4rem;
}
.ben-item--inactivo { opacity: .55; }
.ben-item__main { flex: 1; display: flex; flex-direction: column; gap: .25rem; }
.ben-item__header { display: flex; align-items: center; gap: .5rem; }
.ben-item__titulo { font-weight: 700; font-size: .875rem; }
.ben-item__pct {
  background: var(--yellow); color: #000; font-weight: 800; font-size: .75rem;
  border-radius: 4px; padding: .1em .4em; line-height: 1.4;
}
.ben-item__meta { font-size: .72rem; color: var(--text-muted); display: flex; flex-wrap: wrap; gap: .2rem .4rem; }
.ben-item__meta .sep { color: var(--border); }
.ben-item__desc { font-size: .78rem; color: var(--text-muted); margin: 0; }
.ben-item__actions { display: flex; flex-direction: column; gap: .3rem; align-items: flex-end; flex-shrink: 0; }

/* Badge toggle */
.badge { border: none; cursor: pointer; border-radius: 999px; padding: .2em .7em; font-size: .72rem; font-weight: 700; }
.badge--ok  { background: #DCFCE7; color: #166534; }
.badge--off { background: #F3F4F6; color: #6B7280; }

/* Horarios form helpers */
.radio-group { display: flex; gap: 1.25rem; }
.radio-label { display: flex; align-items: center; gap: .35rem; font-size: .875rem; cursor: pointer; }
.dias-check  { display: flex; flex-wrap: wrap; gap: .4rem .75rem; }
.dia-label   { display: flex; align-items: center; gap: .3rem; font-size: .8rem; cursor: pointer; }

/* Detalles colapsables */
.field-details { border: 1.5px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; margin-top: .25rem; }
.field-details__summary {
  padding: .6rem .875rem; font-size: .8rem; font-weight: 600; cursor: pointer;
  background: #F9FAFB; user-select: none; list-style: none;
}
.field-details__summary::-webkit-details-marker { display: none; }
.field-details[open] .field-details__summary { border-bottom: 1.5px solid var(--border); }
.field-details__body { padding: .75rem .875rem; display: flex; flex-direction: column; gap: .6rem; }

/* Field row */
.field-row { display: flex; gap: .75rem; flex-wrap: wrap; }
.field-row .field { flex: 1; min-width: 140px; }

/* Modal wide */
.modal--wide { max-width: 680px; max-height: 90vh; overflow-y: auto; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ============================================================
   REDESIGN — Login + Admin/Comercio shells + Contenido
   ============================================================ */

/* ── Override: login screen no se limita a 480px en desktop ── */
@media (min-width: 768px) {
  .screen--login { max-width: none !important; }
}

/* ── Login Body (contenedor centrado bajo el header) ───────── */
.login-body {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 1.5rem 1rem 3rem;
  overflow-y: auto;        /* scroll si el card es más alto que el viewport */
  -webkit-overflow-scrolling: touch;
}

/* ── Login Card (nuevo estilo: full rounded, centrada) ─────── */
.screen--login .login-card {
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  width: 100%; max-width: 400px;
  box-shadow: 0 24px 64px rgba(0,0,0,.45);
}

/* Badge de ícono (arriba del título) */
.login-card__badge {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--yellow); color: var(--black);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 4px 16px rgba(242,217,0,.35);
}

/* Título centrado */
.screen--login .login-card__title {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 900;
  color: var(--text); text-align: center; margin-bottom: .4rem;
  letter-spacing: -.03em;
}

/* Subtítulo bajo el título */
.login-card__sub {
  font-size: .85rem; color: var(--text-muted);
  text-align: center; margin-bottom: 1.5rem; line-height: 1.5;
}

/* ── site-header extras (para admin / comercio) ────────────── */

/* Badge de sección: "ADMIN" o "COMERCIO" */
.site-header__section-badge {
  font-size: .6rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .1em; color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.08);
  padding: .25rem .55rem; border-radius: 4px;
  border: 1px solid rgba(255,255,255,.15); flex-shrink: 0;
}

/* Nombre de usuario/comercio en el header */
.site-header__user {
  font-size: .78rem; color: rgba(255,255,255,.5); flex-shrink: 0;
  max-width: 110px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; display: none;
}
@media (min-width: 480px) {
  .site-header__user { display: block; }
}

/* Botón volver (circle) en header */
.site-header__back {
  background: rgba(255,255,255,.08); border: none; color: #fff;
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0; transition: background .15s;
  -webkit-tap-highlight-color: transparent; line-height: 0;
}
.site-header__back:hover { background: rgba(255,255,255,.16); }

/* Título de página en el header (para vistas de flujo) */
.site-header__page-title {
  font-family: var(--font); font-size: 1rem; font-weight: 700;
  color: #fff; letter-spacing: -.01em; flex: 1; text-align: center;
}

/* ── Admin nav mejorado ─────────────────────────────────────── */
/* El admin-nav ahora vive bajo el site-header (64px) */
.screen--admin .admin-topbar { display: none; } /* ocultar viejo topbar */

/* ── Comercio shell header ──────────────────────────────────── */
/* El comercio usa site-header: mismo diseño que el resto del sitio */
.screen--home .topbar,
.screen--historial .topbar,
.screen--scan .topbar,
.screen--manual .topbar,
.screen--monto .topbar { display: none; } /* ocultar viejos topbars */

/* ── Comercio home content ──────────────────────────────────── */
.comercio-main {
  flex: 1; display: flex; flex-direction: column; gap: 1.25rem;
  padding: 1.5rem 1.25rem;
  justify-content: center;  /* centra verticalmente los hijos */
}

.comercio-welcome {
  font-size: .95rem; color: var(--text-muted);
  text-align: center;
}

/* Botones de acción grandes */
.action-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: .875rem;
  max-width: 540px; margin: 0 auto; width: 100%;
}

.action-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .75rem; padding: 1.75rem 1rem; border-radius: var(--radius-lg);
  border: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform .15s, box-shadow .15s; min-height: 160px;
}
.action-btn:active { transform: scale(.97); }
.action-btn--scan  { background: var(--black); color: var(--yellow); }
.action-btn--manual { background: var(--yellow); color: var(--black); border: 3px solid var(--black); }
.action-btn__icon  { opacity: .9; }
.action-btn__title {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 800;
  letter-spacing: -.01em;
}
.action-btn__sub { font-size: .78rem; opacity: .6; font-weight: 500; text-align: center; }

/* ── Comercio screens: viewport height fijo (no scroll body) ── */
.screen--home,
.screen--historial {
  height: 100dvh; overflow: hidden;
}
.screen--historial .historial-body {
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}

/* ── Bottom nav rediseñado ──────────────────────────────────── */
.bottomnav {
  background: var(--bg); border-top: 1.5px solid var(--border);
  box-shadow: 0 -2px 8px rgba(0,0,0,.06);
}

/* ── Socio content views: page titles ───────────────────────── */
.section-header {
  margin-bottom: 1.25rem;
}
.section-header + .socio-filters { margin-top: 0; }

/* ── Info page modernizada ──────────────────────────────────── */
.info-hero {
  display: flex; flex-direction: column; align-items: center;
  padding: 2rem 1rem 1.5rem; text-align: center;
  background: var(--black); margin: -1.25rem -1rem 1.5rem;
}
@media (min-width: 768px) {
  .info-hero { margin: -2rem -2rem 2rem; border-radius: var(--radius-lg); }
}
.info-hero__logo {
  width: 90px; height: 90px; object-fit: contain;
  border-radius: 50%; border: 4px solid var(--yellow);
  box-shadow: 0 0 0 3px rgba(242,217,0,.2); margin-bottom: 1rem;
}
.info-hero__name {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 900;
  color: var(--yellow); letter-spacing: -.02em; margin-bottom: .25rem;
}
.info-hero__sub {
  font-size: .82rem; color: rgba(255,255,255,.45); letter-spacing: .04em;
}

/* ── Evento card mejorada ───────────────────────────────────── */
.evento-card {
  transition: transform .15s, box-shadow .15s;
}
.evento-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ── Scan screen: mantiene fondo negro propio ───────────────── */
.screen--scan {
  background: #000; color: #fff;
}
/* El header en scan usa el site-header pero sobre video */
.screen--scan .site-header {
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ── Resultado: añadir espacio top cuando no hay header ─────── */
.screen--resultado .resultado-content {
  padding-top: 3.5rem;
}


/* ══════════════════════════════════════════════════════════════
   PANTALLA BIENVENIDA — Scrollable
   ══════════════════════════════════════════════════════════════ */

/* Wrapper scrollable (la bienvenida vive fuera del shell, directo en app) */
.bienvenida-scrollable {
  height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  background: #0d0d0d;
  -webkit-overflow-scrolling: touch;
}

/* ── Sección hero (pantalla completa) ── */
.bienvenida-hero-section {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0; /* Impide que .bienvenida-scrollable comprima el hero */
  padding-bottom: 132px; /* espacio para la franja de sponsors al pie */
}

/* Cuando el panel de consulta está abierto: el hero crece para que
   la tarjeta (verde/roja) quede visualmente centrada dentro del fondo */
.bienvenida-hero-section.hero--consulta-abierta {
  padding-bottom: 38vh;
}

/* ── Fondo fotográfico ── */
.bienvenida-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.bienvenida-bg__img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: blur(4px) brightness(.7);
  transform: scale(1.06);
}
.bienvenida-bg__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.65) 0%,
    rgba(0,0,0,.50) 35%,
    rgba(0,0,0,.80) 100%
  );
}

/* ── Cuerpo central ── */
.bienvenida-body {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;     /* Crece con el contenido (no se estira al hero) */
  min-height: calc(100dvh - 132px); /* Pantalla completa menos la franja de sponsors */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.5rem 1rem;
  text-align: center;
  gap: 1.5rem;
}

.bienvenida-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
}

.bienvenida-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.15);
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
  margin-bottom: .5rem;
}

.bienvenida-nombre {
  font-family: var(--font);
  font-size: clamp(2rem, 8vw, 3.2rem);
  font-weight: 900;
  color: var(--yellow);
  letter-spacing: -.03em;
  line-height: 1;
  text-shadow: 0 2px 16px rgba(0,0,0,.5);
}

.bienvenida-subtitulo {
  font-family: var(--font);
  font-size: clamp(.95rem, 4vw, 1.25rem);
  font-weight: 600;
  color: rgba(255,255,255,.9);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.bienvenida-divider {
  width: 48px;
  height: 3px;
  background: var(--yellow);
  border-radius: 2px;
  margin: .75rem 0;
}

.bienvenida-bajada {
  font-size: .9rem;
  color: rgba(255,255,255,.65);
  font-weight: 500;
}

/* ── Botones CTA ── */
.bienvenida-actions {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.bienvenida-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  width: 100%;
  padding: 1rem 1.5rem;
  background: var(--yellow);
  color: var(--black);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: -.01em;
  box-shadow: 0 4px 24px rgba(242,217,0,.35);
  transition: background .15s, transform .1s, box-shadow .15s;
  -webkit-tap-highlight-color: transparent;
}
.bienvenida-btn:hover  { background: var(--yellow-dark); box-shadow: 0 4px 32px rgba(242,217,0,.5); }
.bienvenida-btn:active { transform: scale(.98); }

.bienvenida-btn--outline {
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.35);
  box-shadow: none;
  font-weight: 700;
}
.bienvenida-btn--outline:hover {
  background: rgba(255,255,255,.18);
  box-shadow: none;
}

/* ── Panel de consulta DNI ── */
.consulta-panel {
  width: 100%;
  max-width: 360px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  padding: 1.25rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.consulta-label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: rgba(255,255,255,.8);
  margin-bottom: .6rem;
  text-align: left;
}

.consulta-row {
  display: flex;
  gap: .5rem;
}

.consulta-input {
  flex: 1;
  padding: .7rem .9rem;
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.25);
  border-radius: calc(var(--radius) - 2px);
  color: #fff;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  outline: none;
  transition: border-color .15s;
  -moz-appearance: textfield;
}
.consulta-input::-webkit-inner-spin-button,
.consulta-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.consulta-input::placeholder { color: rgba(255,255,255,.35); font-weight: 400; }
.consulta-input:focus { border-color: var(--yellow); }

.consulta-btn {
  padding: .7rem 1.1rem;
  background: var(--yellow);
  color: var(--black);
  border: none;
  border-radius: calc(var(--radius) - 2px);
  font-family: var(--font);
  font-size: .9rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
}
.consulta-btn:hover   { background: var(--yellow-dark); }
.consulta-btn:active  { transform: scale(.97); }
.consulta-btn:disabled { opacity: .6; cursor: not-allowed; }

.consulta-error {
  margin-top: .6rem;
  font-size: .8rem;
  color: #fca5a5;
  text-align: left;
}

/* ── Tarjetas de estado ── */
.estado-card {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  margin-top: .85rem;
  padding: .9rem 1rem;
  border-radius: calc(var(--radius) - 2px);
  text-align: left;
}

.estado-card--si {
  background: rgba(22,163,74,.15);
  border: 1.5px solid rgba(22,163,74,.5);
}

.estado-card--no {
  background: rgba(220,38,38,.13);
  border: 1.5px solid rgba(220,38,38,.45);
}

.estado-card svg { flex-shrink: 0; margin-top: .1rem; }

.estado-card__titulo {
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: .25rem;
}

.estado-card--si .estado-card__titulo { color: #86efac; }
.estado-card--no .estado-card__titulo { color: #fca5a5; }

.estado-card__sub {
  font-size: .8rem;
  color: rgba(255,255,255,.75);
  line-height: 1.4;
}

/* ── Hint de scroll ── */
.bienvenida-scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  font-size: .75rem;
  color: rgba(255,255,255,.45);
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  animation: hint-bounce 2s ease-in-out infinite;
}

@keyframes hint-bounce {
  0%, 100% { transform: translateY(0); opacity: .45; }
  50% { transform: translateY(4px); opacity: .7; }
}

/* ── Footer con datos ── */
.bienvenida-footer {
  position: relative;
  z-index: 1;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,.1);
  padding: .85rem 1.25rem;
  text-align: center;
}

.bienvenida-footer__datos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .35rem .75rem;
  margin-bottom: .3rem;
}

.bienvenida-footer__item {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: .75rem;
  color: rgba(255,255,255,.75);
  font-weight: 500;
}

.bienvenida-footer__sep {
  color: rgba(255,255,255,.3);
  font-size: .75rem;
}

.bienvenida-footer__cuit {
  font-size: .65rem;
  color: rgba(255,255,255,.35);
  letter-spacing: .05em;
}

/* ══════════════════════════════════════════════════════════════
   PARTNERS / AUSPICIANTES — franja animada
   ══════════════════════════════════════════════════════════════ */
.partners-strip {
  background: #fff;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  padding: 1.2rem 0 1rem;
  overflow: hidden;
  position: relative;
  flex-shrink: 0; /* evita compresión en flex column de bienvenida */
}

.partners-strip__titulo {
  text-align: center;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #aaa;
  margin: 0 0 .9rem;
}

/* Variante sobre el hero: franja translúcida oscura fija al pie.
   Sponsors en chips blancos uniformes — protagonismo para los publicistas */
.partners-strip--hero {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, .62);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: none; border-top: 2px solid var(--yellow);
  padding: .8rem 0 .9rem;
  z-index: 5;
}
.partners-strip--hero .partners-strip__titulo {
  color: var(--yellow);
  font-size: .72rem;
  letter-spacing: .22em;
  margin-bottom: .65rem;
}
.partners-strip--hero .partners-track { gap: 1.1rem; }
.partners-strip--hero .partner-item {
  background: #fff;
  border-radius: 12px;
  padding: 8px 18px;
  height: 68px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}
.partners-strip--hero .partner-logo {
  height: 52px; max-width: 150px;
  filter: none;   /* sponsors a todo color */
}
.partners-strip--hero .partner-logo-text {
  height: auto; color: #111; font-weight: 800; font-size: .9rem;
}
.partners-strip--hero::before { background: linear-gradient(to right, rgba(0,0,0,.62), transparent) !important; }
.partners-strip--hero::after  { background: linear-gradient(to left,  rgba(0,0,0,.62), transparent) !important; }

/* En celular: chips apenas más compactos pero bien visibles */
@media (max-width: 480px) {
  .partners-strip--hero .partner-item { height: 60px; padding: 7px 14px; border-radius: 10px; }
  .partners-strip--hero .partner-logo { height: 46px; max-width: 124px; }
  .partners-strip--hero .partners-track { gap: .8rem; }
}

/* Botón WhatsApp del club (en tarjetas de estado de socio) */
.btn-wa-club {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: .65rem;
  background: #25D366; color: #fff;
  font-size: .82rem; font-weight: 700;
  padding: .5rem .9rem; border-radius: 8px;
  text-decoration: none;
  transition: background .15s, transform .1s;
}
.btn-wa-club:hover  { background: #1ebe5b; }
.btn-wa-club:active { transform: scale(.97); }

/* ── Burbujas de acceso en la bienvenida ───────────────────── */
.acceso-burbujas {
  position: absolute; top: 14px; right: 14px; z-index: 10;
  display: flex; gap: .5rem;
}
.acceso-burbuja {
  display: flex; align-items: center; gap: 6px;
  background: rgba(0, 0, 0, .45);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, .3);
  color: rgba(255, 255, 255, .9);
  border-radius: 24px; padding: 8px 14px;
  font-family: var(--font); font-size: .78rem; font-weight: 700;
  cursor: pointer; transition: all .15s;
  -webkit-tap-highlight-color: transparent;
}
.acceso-burbuja:hover  { background: rgba(0, 0, 0, .65); border-color: rgba(255,255,255,.5); }
.acceso-burbuja:active { transform: scale(.95); }
.acceso-burbuja--admin {
  background: rgba(242, 217, 0, .92);
  border-color: rgba(242, 217, 0, .95);
  color: #111;
}
.acceso-burbuja--admin:hover { background: var(--yellow); border-color: var(--yellow); }
@media (max-width: 420px) {
  .acceso-burbuja span { display: none; }
  .acceso-burbuja { padding: 10px; border-radius: 50%; }
}

/* Máscaras de fade en los bordes */
.partners-strip::before,
.partners-strip::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}
.partners-strip::before {
  left: 0;
  background: linear-gradient(to right, #fff, transparent);
}
.partners-strip::after {
  right: 0;
  background: linear-gradient(to left, #fff, transparent);
}

.partners-track-wrapper {
  overflow: hidden;
}

/* El track tiene los logos 2× para el loop infinito.
   translateX(-50%) desplaza exactamente 1 set de logos → loop sin corte */
.partners-track {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  width: max-content;
  animation: partners-marquee 28s linear infinite;
}

.partners-track:hover {
  animation-play-state: paused;
}

@keyframes partners-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.partner-item {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  cursor: pointer;
  transition: opacity .25s;
}
.partner-item:hover {
  opacity: .8;
}

.partner-logo {
  height: 52px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  filter: grayscale(.2);
  transition: filter .3s;
  display: block;
}
.partner-item:hover .partner-logo {
  filter: grayscale(0);
}
.partner-logo-text {
  align-items: center; justify-content: center;
  height: 52px; padding: 0 12px;
  font-size: .8rem; font-weight: 700; color: #fff;
  white-space: nowrap;
}

/* ── Admin — partners grid ── */
.partners-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.partner-admin-card {
  background: var(--card-bg, #fff);
  border: 1px solid var(--border, #e5e5e5);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.partner-admin-card--inactivo {
  opacity: .55;
}

.partner-admin-card__logo-wrap {
  background: #f3f3f3;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 110px;
  padding: .75rem;
}
.partner-admin-card__logo {
  max-height: 80px;
  max-width: 100%;
  object-fit: contain;
}

.partner-admin-card__info {
  padding: .75rem 1rem .5rem;
  display: flex;
  flex-direction: column;
  gap: .2rem;
  flex: 1;
}
.partner-admin-card__nombre {
  font-weight: 600;
  font-size: .9rem;
}
.partner-admin-card__url {
  font-size: .75rem;
  color: #2563eb;
  word-break: break-all;
}
.partner-admin-card__url--empty {
  color: #999;
}
.partner-admin-card__orden {
  font-size: .72rem;
  color: #888;
}

.partner-admin-card__actions {
  display: flex;
  gap: .4rem;
  padding: .6rem 1rem .75rem;
  border-top: 1px solid var(--border, #eee);
  flex-wrap: wrap;
}

/* Upload de logo en el formulario */
.partner-logo-upload {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: .6rem 0;
}

/* ══════════════════════════════════════════════════════════════
   SECCION EVENTOS (debajo del hero)
   ══════════════════════════════════════════════════════════════ */
.bienvenida-eventos {
  background: #f7f7f5;
  padding: 3rem 0 4rem;
}

.bienvenida-eventos__inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.eventos-titulo {
  font-family: var(--font);
  font-size: clamp(1.4rem, 5vw, 2rem);
  font-weight: 900;
  color: var(--black);
  letter-spacing: -.03em;
  margin-bottom: .25rem;
}

.eventos-sub {
  font-size: .9rem;
  color: #666;
  font-weight: 500;
  margin-bottom: 2rem;
}

/* ── Lista de eventos ── */
.eventos-lista {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-bottom: 3rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
}

.evento-item {
  display: flex;
  gap: 0;
  background: #fff;
}

.evento-item__fecha {
  width: 68px;
  flex-shrink: 0;
  background: var(--black);
  color: var(--yellow);
  font-family: var(--font);
  font-size: .8rem;
  font-weight: 800;
  text-align: center;
  padding: .9rem .4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.evento-item__body {
  flex: 1;
  padding: .85rem 1rem;
  border-bottom: 1px solid #f0f0f0;
}

.evento-item:last-child .evento-item__body { border-bottom: none; }

.evento-item__titulo {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 800;
  color: var(--black);
  margin: .25rem 0 .2rem;
  letter-spacing: -.01em;
}

.evento-item__meta {
  font-size: .78rem;
  color: #777;
  font-weight: 500;
  margin-bottom: .2rem;
  text-transform: capitalize;
}

.evento-item__desc {
  font-size: .82rem;
  color: #555;
  line-height: 1.45;
  margin-top: .25rem;
}

.tag--dark {
  display: inline-block;
  padding: .15rem .55rem;
  background: var(--black);
  color: var(--yellow);
  border-radius: 4px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: .15rem;
}

/* ── Calendario ── */
.cal-wrapper {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  padding: 1.25rem;
}

.cal-section-title {
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--black);
  letter-spacing: -.02em;
  margin-bottom: 1rem;
}

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .75rem;
}

.cal-title {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 800;
  color: var(--black);
  text-transform: capitalize;
}

.cal-nav {
  background: #f0f0f0;
  border: none;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  transition: background .12s;
  -webkit-tap-highlight-color: transparent;
}
.cal-nav:hover { background: #e0e0e0; }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.cal-weekday {
  font-size: .68rem;
  font-weight: 700;
  color: #999;
  text-align: center;
  padding: .25rem 0 .4rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.cal-day {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: default;
  transition: background .1s;
  gap: 2px;
}

.cal-day--evento {
  cursor: pointer;
  background: #fffde8;
}
.cal-day--evento:hover {
  background: #fff3b0;
}

.cal-day--hoy .cal-day__num {
  background: var(--black);
  color: var(--yellow);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cal-day__num {
  font-size: .82rem;
  font-weight: 600;
  color: var(--black);
  line-height: 1;
}

.cal-day__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--yellow);
  border: 1px solid var(--black);
}

/* Tooltip del calendario */
.cal-tooltip {
  margin-top: .75rem;
  padding: .85rem 1rem;
  background: var(--black);
  color: #fff;
  border-radius: calc(var(--radius) - 2px);
  font-size: .83rem;
  line-height: 1.5;
  animation: tooltip-in .15s ease-out;
}

@keyframes tooltip-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cal-tooltip__item {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.cal-tooltip__item strong {
  font-weight: 800;
  color: var(--yellow);
  font-family: var(--font);
}
.cal-tooltip__item span {
  font-size: .78rem;
  color: rgba(255,255,255,.75);
}

.cal-tooltip__sep {
  border: none;
  border-top: 1px solid rgba(255,255,255,.12);
  margin: .5rem 0;
}

/* ── Empty state claro (sobre fondo gris) ── */
.empty-state--light {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  padding: 3rem 1rem;
  color: #aaa;
  font-size: .9rem;
}

/* ── Responsive ── */
@media (min-width: 768px) {
  .bienvenida-logo { width: 120px; height: 120px; }
  .bienvenida-footer__item { font-size: .82rem; }
  .bienvenida-body { padding-top: 6rem; }
  .evento-item__fecha { width: 80px; font-size: .85rem; }
  .cal-day__num { font-size: .9rem; }
}

/* ══════════════════════════════════════════════════════════════
   COMERCIO — PERFIL (foto del local)
   ══════════════════════════════════════════════════════════════ */
.screen--perfil-comercio {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  background: var(--bg);
}

.perfil-comercio-main {
  flex: 1;
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
}

.foto-local-card {
  background: #fff;
  border: 1px solid var(--border, #e5e5e5);
  border-radius: 12px;
  overflow: hidden;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.foto-local-preview-wrap {
  border-radius: 8px;
  overflow: hidden;
  background: #f3f3f3;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.foto-local-preview {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  display: block;
}

.foto-local-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: 2rem;
  color: #aaa;
  font-size: .85rem;
}

.foto-local-acciones {
  display: flex;
  gap: .75rem;
  align-items: center;
  flex-wrap: wrap;
}

.foto-local-upload-label {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.foto-local-quitar-btn {
  color: #ef4444;
  border-color: #ef4444;
}

.foto-local-hint {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .82rem;
  color: #64748b;
  line-height: 1.4;
}
.foto-local-hint svg { flex-shrink: 0; margin-top: 1px; }

.perfil-msg {
  font-size: .85rem;
  color: #64748b;
  min-height: 1.2em;
}
.perfil-msg--ok    { color: #16a34a; font-weight: 600; }
.perfil-msg--error { color: #dc2626; }

/* ══════════════════════════════════════════════════════════════
   ADMIN COMERCIOS — mapa de ubicación + foto en formulario
   ══════════════════════════════════════════════════════════════ */
.mapa-ubicacion-container {
  height: 280px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border, #e5e5e5);
  margin-top: .5rem;
}

.map-marker--admin {
  background: var(--yellow);
  border-radius: 50% 50% 50% 0;
  width: 32px;
  height: 32px;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.map-marker--admin svg {
  transform: rotate(45deg);
  color: #000;
}

.foto-local-form-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: .5rem 0;
}

.foto-local-form-preview {
  width: 90px;
  height: 70px;
  border-radius: 8px;
  overflow: hidden;
  background: #f3f3f3;
  border: 1px solid var(--border, #e5e5e5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.foto-local-form-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.foto-local-form-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  font-size: .65rem;
  color: #aaa;
}

.field__input--mono {
  font-family: monospace;
  font-size: .85rem;
}

.field__hint {
  font-size: .75rem;
  color: #888;
  margin-top: .25rem;
  margin-bottom: 0;
}

/* ── Excel toolbar ──────────────────────────────────────────── */
.excel-toolbar {
  display: flex;
  gap: .5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════════════════════════════
   TRANSICIONES ENTRE PANTALLAS
   ══════════════════════════════════════════════════════════════ */
.screen {
  animation: screen-in .22s ease both;
}
@keyframes screen-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .screen { animation: none; }
}

/* ══════════════════════════════════════════════════════════════
   TEMA OSCURO — sección pública del socio
   (coherente con la estética de la página principal)
   ══════════════════════════════════════════════════════════════ */
.screen--socio {
  --bg:         #181818;
  --bg-soft:    #101010;
  --text:       #F2F2F2;
  --text-muted: #9CA3AF;
  --border:     #2E2E2E;
  --shadow:     0 1px 3px rgba(0,0,0,.45);
  --shadow-md:  0 4px 12px rgba(0,0,0,.5);
  background: #101010;
  color: var(--text);
}
.screen--socio .socio-content { background: #101010; }

/* Inputs y selects */
.screen--socio .filter-select,
.screen--socio .pedido-form__input {
  background: #1E1E1E; color: var(--text); border-color: #3A3A3A;
}
.screen--socio .filter-select:focus,
.screen--socio .pedido-form__input:focus { border-color: var(--yellow); }
.screen--socio .pedido-form__input::placeholder { color: #6b7280; }

/* Tienda */
.screen--socio .producto-card { background: #1B1B1B; border-color: #2E2E2E; }
.screen--socio .producto-card:hover { box-shadow: 0 6px 22px rgba(0,0,0,.55); }
.screen--socio .producto-card__foto-wrap { background: #242424; }
.screen--socio .pedido-form { border-top-color: #3A3A3A; }
.screen--socio .pedido-ok__info {
  background: rgba(242, 217, 0, .08);
  border-color: rgba(242, 217, 0, .35);
  color: var(--text);
}

/* Mapa: índice lateral */
.screen--socio .mapa-sidebar { background: #161616; border-color: #2E2E2E; }
.screen--socio .mapa-sidebar__item { border-bottom-color: #242424; }
.screen--socio .mapa-sidebar__item:hover  { background: #1F1F1F; }
.screen--socio .mapa-sidebar__item:active { background: #2A2611; }
.screen--socio .mapa-sidebar__item-nombre { color: var(--text); }
.screen--socio .mapa-sidebar__item-rubro  { color: #8a8a8a; }
.screen--socio .mapa-sidebar__item-dir    { color: #6b6b6b; }

/* Historia */
.screen--socio .historia-coming__titulo { color: var(--text); }
.screen--socio .historia-coming__year-item {
  background: #1B1B1B; border-color: #2E2E2E; color: var(--text);
}
.screen--socio .historia-coming__badge {
  box-shadow: 0 8px 28px rgba(0,0,0,.6), 0 0 0 6px var(--yellow);
}

/* Info */
.screen--socio .info-card { background: #1B1B1B; border-color: #2E2E2E; }
.screen--socio .info-card__title { color: var(--text); }

/* Eventos / genéricos */
.screen--socio .empty-state { color: var(--text-muted); }
.screen--socio .page-title { color: var(--text); }
.screen--socio .comercio-card__nombre { color: var(--text); }
.screen--socio .evento-card__titulo   { color: var(--text); }

/* Scrollbars discretas en dark */
.screen--socio ::-webkit-scrollbar { width: 8px; height: 8px; }
.screen--socio ::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
.screen--socio ::-webkit-scrollbar-track { background: transparent; }
