/* Gasper Core — app.css : layout de sitio + componentes de módulo */

/* ---- Header global ---- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar__inner { display: flex; align-items: center; gap: 20px; height: 72px; }
.topbar__logo { height: 42px; width: auto; max-width: 168px; object-fit: contain; display: block; }
.topbar__nav { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.topbar__nav a { padding: 8px 14px; border-radius: 999px; font-size: 0.9rem; color: var(--text-dim); font-weight: 600; }
.topbar__nav a:hover, .topbar__nav a.active { color: var(--text); background: var(--surface-2); }
.topbar__nav a.cta { background: linear-gradient(180deg, var(--brand-2), var(--brand)); color: var(--brand-ink); }
.menu-toggle { display: none; margin-left: auto; }
/* Nav de staff (Admin/POS/Escáner): siempre en fila y a la derecha, incluso en móvil */
.topbar__nav--inline {
  position: static !important; inset: auto !important; display: flex !important;
  flex-direction: row !important; flex-wrap: wrap; margin-left: auto; gap: 6px;
  background: transparent !important; border: none !important; padding: 0 !important;
}
.topbar__nav--inline a { padding: 6px 10px; width: auto !important; }
@media (max-width: 780px) {
  .topbar__nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; background: var(--bg-2); padding: 12px; border-bottom: 1px solid var(--line); margin: 0; }
  .topbar__nav:not(.open) { display: none; }
  .topbar__nav a { width: 100%; }
  .menu-toggle { display: inline-flex; }
}

/* ---- Landing pública ---- */
.hero-landing {
  position: relative;
  min-height: min(820px, calc(100vh - 130px));
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}
.hero-landing > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-landing__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10,12,8,0.92), rgba(10,12,8,0.45) 48%, rgba(10,12,8,0.14)),
    linear-gradient(180deg, rgba(10,12,8,0.22), rgba(10,12,8,0.88));
}
.hero-landing__content {
  position: relative;
  z-index: 1;
  padding-top: 120px;
  padding-bottom: min(12vh, 112px);
}
.hero-landing h1 {
  max-width: 860px;
  font-size: clamp(3.2rem, 8vw, 6.6rem);
  letter-spacing: 0;
}
.hero-landing p.lead {
  font-size: clamp(1.02rem, 2vw, 1.24rem);
  color: var(--text-dim);
  max-width: 50ch;
  margin: 18px 0 28px;
}
.quick-dock {
  position: fixed;
  z-index: 70;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: calc(100vw - 28px);
  padding: 7px;
  border: 1px solid rgba(168, 198, 90, 0.3);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 60px -28px rgba(0,0,0,0.9);
  scrollbar-width: none;
}
.quick-dock::-webkit-scrollbar { display: none; }
.quick-dock a,
.quick-dock button {
  min-width: 0;
  white-space: nowrap;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: transparent;
  color: var(--text-dim);
  font-size: 0.86rem;
  font-weight: 700;
}
.quick-dock button {
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
  color: var(--brand-ink);
}
.intro-strip {
  padding: 28px 0;
  background: #11140d;
  border-bottom: 1px solid var(--line-soft);
}
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 24px;
  align-items: center;
}
.intro-grid h2 {
  max-width: 760px;
  font-size: clamp(1.45rem, 3vw, 2.35rem);
}
.intro-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.intro-points span {
  min-height: 48px;
  display: grid;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text-dim);
  font-weight: 700;
}
.section { padding: 44px 0; }
.section h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 8px; }
.section__head { margin-bottom: 26px; }

.plan-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.plan {
  position: relative;
  display: grid;
  align-content: space-between;
  gap: 20px;
  min-height: 390px;
  padding: 22px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.035), transparent 30%),
    linear-gradient(180deg, var(--surface), var(--bg-2));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.plan::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--line);
}
.plan__top { display: grid; gap: 10px; min-height: 88px; }
.plan h3 { font-size: clamp(1.35rem, 2vw, 1.8rem); }
.plan__kicker {
  display: block;
  margin-bottom: 7px;
  color: var(--text-mute);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}
.plan-badge {
  justify-self: start;
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--brand-2);
  color: var(--brand-ink);
  font-size: 0.72rem;
  font-weight: 800;
}
.plan-badge--ghost { background: color-mix(in srgb, var(--brand) 20%, transparent); color: var(--brand-2); border: 1px solid color-mix(in srgb, var(--brand) 50%, var(--line)); }
.plan__price { font-family: var(--font-display); font-size: clamp(2.15rem, 3vw, 3rem); line-height: 0.95; }
.plan__per { display: block; margin-top: 8px; color: var(--brand-2); font-size: 0.82rem; font-weight: 700; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.plan li { padding-left: 22px; position: relative; color: var(--text-dim); font-size: 0.92rem; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--brand-2); font-weight: 700; }
.plan--featured {
  border-color: color-mix(in srgb, var(--brand) 70%, var(--line));
  transform: translateY(-10px);
  box-shadow: 0 26px 80px -34px rgba(168, 198, 90, 0.8);
}
.plan--featured::before { background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.plan--value::before { background: color-mix(in srgb, var(--brand) 65%, var(--line)); }
@media (max-width: 1120px) {
  .plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1121px) {
  .plan__price { font-size: clamp(2rem, 2.65vw, 2.55rem); }
}
@media (max-width: 760px) {
  .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.proof-section { background: #11140d; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.proof-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 24px;
  align-items: start;
}
.proof-copy {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 14px;
  padding: clamp(22px, 4vw, 44px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(168,198,90,0.12), transparent 42%),
    linear-gradient(180deg, var(--surface), var(--bg-2));
}
.review-grid { display: grid; gap: 12px; }
.review-card {
  display: grid;
  gap: 8px;
  padding: 22px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface);
}
.review-card span {
  color: var(--brand-2);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
}
.review-card strong { font-family: var(--font-display); font-size: clamp(1.15rem, 2vw, 1.55rem); line-height: 1.12; }
.review-card p { margin: 0; color: var(--text-dim); }

.pill-row { display: flex; gap: 10px; flex-wrap: wrap; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.stat { display: grid; gap: 4px; }
.stat__num { font-family: var(--font-display); font-size: 1.9rem; }
.stat__label { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-mute); }

/* ---- Fotos ---- */
.photo {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background:
    linear-gradient(135deg, rgba(127,155,58,0.18), rgba(20,23,15,0.9)),
    repeating-linear-gradient(45deg, #1c2016 0 12px, #191d13 12px 24px);
  border: 1px solid var(--line-soft); display: grid; place-items: center; min-height: 180px;
}
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo__tag { position: relative; z-index: 1; font-size: 0.78rem; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.12em; text-align: center; padding: 10px; }
.photo__tag::before { content: "📷"; display: block; font-size: 1.4rem; margin-bottom: 6px; filter: grayscale(0.3); opacity: 0.7; }

.experience-section {
  background: #10130c;
}
.experience-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 24px;
  align-items: stretch;
}
.experience-copy {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: clamp(22px, 5vw, 54px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
}
.experience-photo {
  min-height: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-soft);
}
.experience-photo img,
.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-section {
  padding-top: 70px;
}
.editorial-gallery {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr 1fr;
  grid-auto-rows: 240px;
  gap: 14px;
}
.gallery-tile {
  position: relative;
  margin: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface);
}
.gallery-tile--wide { grid-column: span 2; grid-row: span 2; }
.gallery-tile--tall { grid-row: span 2; }
.gallery-tile figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(12,14,9,0.74);
  backdrop-filter: blur(10px);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 700;
}
.final-cta {
  padding-bottom: 96px;
}
.faq-location-section { background: #10130c; }
.faq-location-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: stretch;
}
.faq-block,
.location-block {
  padding: clamp(22px, 4vw, 40px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  box-shadow: var(--shadow);
}
.faq-block details {
  border-top: 1px solid var(--line-soft);
  padding: 16px 0;
}
.faq-block details:last-child { border-bottom: 1px solid var(--line-soft); }
.faq-block summary {
  cursor: pointer;
  font-weight: 800;
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.faq-block details p {
  margin: 10px 0 0;
  color: var(--text-dim);
}
.map-frame {
  margin: 18px 0;
  height: 330px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #0f120a;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.25) contrast(1.05); }
.final-cta__box {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: clamp(22px, 5vw, 44px);
  border: 1px solid color-mix(in srgb, var(--brand) 40%, var(--line));
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(168,198,90,0.14), transparent 40%),
    linear-gradient(180deg, var(--surface), var(--bg-2));
  box-shadow: var(--shadow);
}
@media (max-width: 860px) {
  .hero-landing {
    min-height: 680px;
  }
  .hero-landing__shade {
    background:
      linear-gradient(180deg, rgba(10,12,8,0.18), rgba(10,12,8,0.9)),
      linear-gradient(90deg, rgba(10,12,8,0.68), rgba(10,12,8,0.22));
  }
  .hero-landing__content {
    padding-top: 92px;
    padding-bottom: 110px;
  }
  .intro-grid,
  .experience-grid,
  .proof-grid,
  .faq-location-grid,
  .final-cta__box {
    grid-template-columns: 1fr;
    display: grid;
  }
  .proof-copy { position: static; }
  .experience-photo { min-height: 340px; }
  .editorial-gallery {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 190px;
  }
  .gallery-tile--wide { grid-column: span 2; grid-row: span 1; }
  .gallery-tile--tall { grid-row: span 2; }
}
@media (max-width: 560px) {
  .hero-landing {
    min-height: 640px;
  }
  .hero-landing > img {
    object-position: 58% center;
  }
  .hero-landing h1 {
    font-size: clamp(3rem, 17vw, 4.7rem);
  }
  .hero-landing .row .btn {
    width: 100%;
  }
  .quick-dock {
    bottom: 10px;
    width: calc(100vw - 18px);
    overflow-x: auto;
    justify-content: flex-start;
    border-radius: 18px;
  }
  .quick-dock a,
  .quick-dock button {
    flex: 0 0 auto;
    padding: 10px 12px;
  }
  .intro-points {
    grid-template-columns: 1fr;
  }
  .plan-grid {
    grid-template-columns: 1fr;
  }
  .plan {
    min-height: auto;
  }
  .plan--featured {
    transform: none;
  }
  .editorial-gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
  }
  .gallery-tile,
  .gallery-tile--wide,
  .gallery-tile--tall {
    grid-column: auto;
    grid-row: auto;
  }
  .experience-photo {
    min-height: 280px;
  }
}

/* ---- Pop-up / modal de inscripción ---- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px;
  background: rgba(0, 0, 0, 0.62); backdrop-filter: blur(6px);
  animation: overlayIn 0.2s ease;
}
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }
.enroll-card { position: relative; max-width: 460px; animation: cardIn 0.24s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text-dim); font-size: 1rem; line-height: 1;
}
.modal-close:hover { color: var(--text); border-color: var(--brand); }

/* Botón flotante siempre visible para inscribirse */
.enroll-fab {
  position: fixed; bottom: 20px; right: 20px; z-index: 120;
  padding: 14px 22px; border-radius: 999px; border: none; font-weight: 700; font-size: 1rem;
  background: linear-gradient(180deg, var(--brand-2), var(--brand)); color: var(--brand-ink);
  box-shadow: 0 16px 40px -14px rgba(127, 155, 58, 0.7); cursor: pointer;
  animation: fabPulse 2.6s ease-in-out infinite;
}
.enroll-fab:hover { filter: brightness(1.06); transform: translateY(-2px); }
@keyframes fabPulse { 0%, 100% { box-shadow: 0 16px 40px -14px rgba(127,155,58,0.7); } 50% { box-shadow: 0 16px 46px -10px rgba(127,155,58,0.95); } }
@media (max-width: 480px) { .enroll-fab { bottom: 14px; right: 14px; padding: 12px 18px; font-size: 0.92rem; } }

/* ---- Banner de estado del socio (claridad) ---- */
.status-banner { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line); }
.status-banner__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.5rem; }
.status-banner--ok { background: color-mix(in srgb, var(--ok) 12%, transparent); border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); }
.status-banner--warn { background: color-mix(in srgb, var(--warn) 12%, transparent); border-color: color-mix(in srgb, var(--warn) 50%, var(--line)); }
.status-banner--danger { background: color-mix(in srgb, var(--danger) 12%, transparent); border-color: color-mix(in srgb, var(--danger) 50%, var(--line)); }
@media (max-width: 560px) { .status-banner { grid-template-columns: auto 1fr; } .status-banner > .btn { grid-column: 1 / -1; } }

.footer { border-top: 1px solid var(--line-soft); margin-top: 40px; padding: 30px 0; color: var(--text-mute); font-size: 0.86rem; }

/* ---- Auth cards centradas (premium) ---- */
.auth-shell {
  min-height: calc(100vh - 66px); display: grid; place-items: center; padding: 30px 20px;
  background:
    radial-gradient(700px 380px at 50% -5%, rgba(127,155,58,0.18), transparent 65%),
    radial-gradient(500px 300px at 90% 110%, rgba(127,155,58,0.10), transparent 60%);
}
.auth-card {
  width: 100%; max-width: 430px; position: relative;
  border: 1px solid transparent; border-radius: var(--radius-lg);
  background:
    linear-gradient(var(--surface), var(--bg-2)) padding-box,
    linear-gradient(150deg, rgba(168,198,90,0.55), rgba(57,66,44,0.3) 45%, rgba(168,198,90,0.15)) border-box;
  box-shadow: 0 30px 80px -40px rgba(0,0,0,0.85);
}
.auth-brand { display: grid; justify-items: center; gap: 10px; margin-bottom: 18px; text-align: center; }
.auth-brand img { height: 58px; width: auto; max-width: 230px; object-fit: contain; display: block; }
.auth-brand .eyebrow { letter-spacing: 0.24em; }
.auth-switch { text-align: center; margin-top: 14px; font-size: 0.88rem; color: var(--text-dim); }
.auth-switch button { background: none; border: none; color: var(--brand-2); font-weight: 700; padding: 0; cursor: pointer; }
.role-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 2px; }
.role-btn {
  display: grid; gap: 2px; padding: 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text); text-align: center;
  transition: border-color 0.15s, transform 0.1s;
}
.role-btn:hover { border-color: var(--brand); transform: translateY(-1px); }
.role-btn strong { font-size: 0.95rem; }
.role-btn small { color: var(--text-mute); font-size: 0.74rem; }
.auth-sep { display: flex; align-items: center; gap: 10px; color: var(--text-mute); font-size: 0.75rem; margin: 6px 0; }
.auth-sep::before, .auth-sep::after { content: ""; height: 1px; background: var(--line-soft); flex: 1; }

/* ---- Perfil socio ---- */
.member-head { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.member-head .avatar { width: 64px; height: 64px; font-size: 1.4rem; border-radius: 18px; }
.qr-box { display: grid; place-items: center; gap: 12px; padding: 22px; background: #0f120a; border: 1px dashed var(--line); border-radius: var(--radius); }
.qr-box img { width: 190px; height: 190px; background: #fff; border-radius: 12px; padding: 8px; }
.tier-badge { font-family: var(--font-display); font-size: 1.3rem; }
.reward-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.reward { display: grid; gap: 8px; }
.reward__cost { font-family: var(--font-display); color: var(--brand-2); }

/* ---- Admin / POS console layout ---- */
.console { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 66px); }
.console__side { border-right: 1px solid var(--line-soft); padding: 20px 14px; background: var(--bg-2); }
.console__nav { display: grid; gap: 4px; }
.console__nav button {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
  padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid transparent;
  background: transparent; color: var(--text-dim); font-weight: 600; text-align: left;
}
.console__nav button:hover { background: var(--surface-2); color: var(--text); }
.console__nav button.active { background: var(--surface-2); color: var(--text); border-color: var(--line); }
.console__main { padding: 26px; overflow-x: auto; }
@media (max-width: 820px) {
  .console { grid-template-columns: 1fr; }
  .console__side { border-right: none; border-bottom: 1px solid var(--line-soft); }
  .console__nav { grid-auto-flow: column; overflow-x: auto; }
  .console__nav button { min-width: 130px; }
}

/* ---- POS ---- */
.pos-layout { display: grid; grid-template-columns: 1fr 380px; gap: 20px; align-items: start; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.product-btn { text-align: left; display: grid; gap: 6px; padding: 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-soft); background: var(--surface); color: var(--text); }
.product-btn:hover { border-color: var(--brand); transform: translateY(-2px); }
.product-btn small { color: var(--text-mute); }
.product-btn .price { font-family: var(--font-display); color: var(--brand-2); }
.cart-line { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.qty-ctl { display: inline-flex; align-items: center; gap: 8px; }
.qty-ctl button { width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); }
.cart-total { font-family: var(--font-display); font-size: 1.8rem; }
@media (max-width: 900px) { .pos-layout { grid-template-columns: 1fr; } }
.pay-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pay-tabs button { padding: 10px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface-2); color: var(--text-dim); font-weight: 600; }
.pay-tabs button.active { background: linear-gradient(180deg, var(--brand-2), var(--brand)); color: var(--brand-ink); border-color: transparent; }
.member-tag { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--brand); background: color-mix(in srgb, var(--brand) 12%, transparent); }

/* ---- Row card (listados admin) ---- */
.list { display: grid; gap: 10px; }
.list-item { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line-soft); border-radius: var(--radius-sm); background: var(--surface); }
.list-item:hover { border-color: var(--line); }

.status-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.status-dot--active { background: var(--ok); }
.status-dot--overdue { background: var(--danger); }
.status-dot--lead { background: var(--warn); }

/* ============ MOBILE: panel + experiencia usable en celular ============ */
@media (max-width: 720px) {
  .wrap { padding: 0 14px; }
  .console__main { padding: 16px 12px; }
  /* Cualquier grid de 2 columnas del panel se apila (vence a estilos inline) */
  .console__main .grid { grid-template-columns: 1fr !important; }
  #profileCols { grid-template-columns: 1fr !important; }
  /* Tablas: scroll horizontal en vez de perder columnas/acciones */
  .card--flat { overflow-x: auto !important; -webkit-overflow-scrolling: touch; }
  .card--flat .table { min-width: 560px; }
  /* Modales cómodos en celular */
  .auth-card { max-width: 100%; }
  .member-tag { grid-template-columns: auto 1fr; }
  .member-tag button { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 420px) {
  .stat-row { grid-template-columns: 1fr 1fr; }
  .cart-total { font-size: 1.5rem; }
  h1 { font-size: 2.2rem; }
}

/* ---- Escáner QR ---- */
.scanner-view { position: relative; aspect-ratio: 4/3; background: #000; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }
.scanner-view video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scanner-frame { position: absolute; inset: 18%; border: 3px solid var(--brand-2); border-radius: 14px; box-shadow: 0 0 0 100vmax rgba(0,0,0,0.28); pointer-events: none; }
.access-result { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 16px; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.access-result--ok { background: color-mix(in srgb, var(--ok) 16%, transparent); border-color: var(--ok); }
.access-result--warn { background: color-mix(in srgb, var(--warn) 16%, transparent); border-color: var(--warn); }
.access-result--deny { background: color-mix(in srgb, var(--danger) 16%, transparent); border-color: var(--danger); }
.access-icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 1.4rem; font-weight: 700; color: #fff; background: rgba(255,255,255,0.12); }
.access-result--ok .access-icon { background: var(--ok); color: #08210a; }
.access-result--warn .access-icon { background: var(--warn); color: #241a02; }
.access-result--deny .access-icon { background: var(--danger); color: #fff; }
.finger-reader {
  display: flex; gap: 14px; align-items: center; padding: 14px;
  border: 1px solid var(--line-soft); border-radius: var(--radius-sm); background: var(--surface);
}
.finger-reader__sensor {
  position: relative; flex: 0 0 auto; width: 72px; height: 86px; border-radius: 22px;
  display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--brand) 45%, var(--line));
  background:
    linear-gradient(180deg, rgba(168,198,90,0.18), rgba(12,14,9,0.92)),
    repeating-radial-gradient(ellipse at center, transparent 0 6px, rgba(168,198,90,0.22) 7px 8px);
  overflow: hidden;
}
.finger-reader__sensor::after {
  content: ""; position: absolute; left: 10px; right: 10px; top: -20%;
  height: 28px; background: color-mix(in srgb, var(--brand-2) 60%, transparent);
  filter: blur(8px); opacity: 0;
}
.finger-reader__sensor span {
  width: 38px; height: 52px; border-radius: 45% 45% 50% 50%;
  border: 2px solid color-mix(in srgb, var(--brand-2) 75%, white 10%);
  opacity: 0.85;
}
.finger-reader__sensor.reading::after {
  opacity: 1; animation: scanLine 0.85s ease-in-out infinite;
}
@keyframes scanLine { from { transform: translateY(0); } to { transform: translateY(110px); } }
@media (max-width: 720px) { #scanGrid { grid-template-columns: 1fr !important; } }

/* ---- Ticket térmico 58mm ---- */
#ticket { display: none; }
.tk { width: 100%; font-family: "Courier New", ui-monospace, monospace; color: #000; }
.tk-logo { width: 35mm; max-width: 100%; height: auto; display: block; margin: 0 auto 4px; filter: grayscale(1) contrast(1.45); }
.tk-qr { width: 34mm; height: 34mm; display: block; margin: 4px auto; }
.tk-c { text-align: center; }
.tk-b { font-weight: 700; }
.tk-lg { font-size: 15px; }
.tk-sm { font-size: 11px; line-height: 1.35; }
.tk-hr { border-top: 1px dashed #000; margin: 6px 0; }
.tk-t { width: 100%; border-collapse: collapse; font-size: 12px; }
.tk-t td { padding: 1px 0; vertical-align: top; }
.tk-t td.r { text-align: right; white-space: nowrap; padding-left: 6px; }
.tk-feed { height: 24px; }

@media print {
  body * { visibility: hidden !important; }
  #ticket, #ticket * { visibility: visible !important; }
  #ticket {
    display: block !important;
    position: absolute; left: 0; top: 0;
    width: 58mm; padding: 3mm 2mm; margin: 0; background: #fff;
  }
  .topbar, .toast-host { display: none !important; }
  @page { size: 58mm auto; margin: 0; }
}

/* ============================================================
   CAPA PREMIUM (landing) — revelado al scroll, header condensado,
   acento en el titular y proporción mobile más fina.
   ============================================================ */

/* Header que se condensa al bajar */
.topbar { transition: background 0.28s ease, box-shadow 0.28s ease; }
.topbar__inner { transition: height 0.28s ease; }
.topbar--scrolled { background: color-mix(in srgb, var(--bg) 94%, transparent); box-shadow: 0 10px 30px -20px rgba(0,0,0,0.9); }
.topbar--scrolled .topbar__inner { height: 56px; }

/* Acento de color en el titular del hero */
.hero-landing h1 .accent {
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* Línea de confianza bajo los botones del hero */
.hero-trust { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--text-mute); font-size: 0.84rem; font-weight: 600; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-2); }

/* Grano/viñeta sutil sobre el hero para textura premium */
.hero-landing__shade::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 0%, transparent 55%, rgba(0,0,0,0.35));
  mix-blend-mode: multiply;
}

/* Revelado al hacer scroll */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.7s cubic-bezier(0.2,0.8,0.2,1), transform 0.7s cubic-bezier(0.2,0.8,0.2,1); will-change: opacity, transform; }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal].d1 { transition-delay: 0.06s; }
[data-reveal].d2 { transition-delay: 0.12s; }
[data-reveal].d3 { transition-delay: 0.18s; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; } }

/* Botones más premium: brillo sutil al pasar */
.btn--solid { position: relative; overflow: hidden; }
.btn--solid::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.28) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.6s ease;
}
.btn--solid:hover::after { transform: translateX(120%); }

/* Proporción del hero más fina en móvil (menos titular gigante) */
@media (max-width: 640px) {
  .hero-landing { min-height: min(680px, calc(100svh - 96px)); }
  .hero-landing h1 { font-size: clamp(2.7rem, 12.5vw, 3.7rem); line-height: 1.03; letter-spacing: -0.01em; }
  .hero-landing__content { padding-top: 92px; padding-bottom: 132px; }
  .hero-landing p.lead { margin: 14px 0 22px; }
  .hero-landing .row { display: grid; gap: 10px; }
  .hero-landing .row .btn { width: 100%; }
  .hero-trust { margin-top: 16px; }
}
