/* ==========================================================================
   THE SPOT BARBERSHOP — Estética Moderna + Rústica (Guayaquil)
   Paleta oficial: #0C0B0A Carbón · #171512 Piedra · #F4EFE6 Hueso · #D8F800 Amarillo THE SPOT
   Tipografía oficial: Grunge.ttf + Space Grotesk + Inter + JetBrains Mono
   ========================================================================== */

@font-face {
  font-family: "TheSpotGrunge";
  src: url("assets/fonts/Grunge.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0c0b0a;
  --surface: #151311;
  --surface-2: #1e1b17;
  --bone: #f4efe6;
  --muted: #a89f91;
  --spot: #d8f800;
  --spot-ink: #0b0b09;
  --brass: #c9a45c;
  --border: rgba(244, 239, 230, 0.12);
  --border-spot: rgba(216, 248, 0, 0.34);
  --danger: #f87171;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--bone);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

/* Subtle rustic analog film-grain atmosphere */
.grain-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.045;
  background-image: radial-gradient(rgba(244, 239, 230, 0.7) 1px, transparent 0);
  background-size: 4px 4px;
}

.container {
  width: min(1140px, 100% - 36px);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hidden { display: none !important; }
.muted { color: var(--muted); }

/* -------------------- Topbar -------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(12, 11, 10, 0.84);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand-logo {
  height: 36px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.18s;
}
.nav-links a:hover { color: var(--spot); }

/* -------------------- Buttons -------------------- */
.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 22px;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.14s ease, background 0.18s ease, border-color 0.18s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--spot);
  color: var(--spot-ink);
}
.btn-primary:hover { background: #e3ff2b; }
.btn-rustic {
  background: rgba(244, 239, 230, 0.06);
  color: var(--bone);
  border-color: rgba(244, 239, 230, 0.2);
}
.btn-rustic:hover {
  border-color: var(--spot);
  color: var(--spot);
}
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
}
.btn-ghost:hover { color: var(--bone); border-color: rgba(244, 239, 230, 0.32); }
.btn-danger-ghost {
  background: rgba(248, 113, 113, 0.08);
  color: #fca5a5;
  border-color: rgba(248, 113, 113, 0.28);
}
.btn-lg { padding: 14px 26px; font-size: 15px; }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-xs { padding: 6px 12px; font-size: 12px; }
.btn-block { width: 100%; }

/* -------------------- Hero -------------------- */
.hero {
  position: relative;
  padding: 68px 0 64px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  width: 640px;
  height: 640px;
  right: -120px;
  top: -180px;
  background: radial-gradient(circle, rgba(216, 248, 0, 0.12), transparent 68%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 44px;
  align-items: center;
}
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(216, 248, 0, 0.09);
  border: 1px solid var(--border-spot);
  color: var(--spot);
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
}
.display-title {
  font-family: "TheSpotGrunge", "Space Grotesk", sans-serif;
  font-size: clamp(44px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: 0.01em;
  margin: 0 0 18px;
  color: var(--bone);
  text-shadow: 0 6px 32px rgba(0, 0, 0, 0.6);
}
.hero-subtitle {
  font-size: 17px;
  color: rgba(244, 239, 230, 0.78);
  max-width: 540px;
  margin: 0 0 28px;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-metrics {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px dashed rgba(244, 239, 230, 0.18);
}
.grunge-num {
  font-family: "TheSpotGrunge", "Space Grotesk", sans-serif;
  font-size: 32px;
  color: var(--spot);
  display: block;
  line-height: 1.1;
}
.metric-item span { font-size: 13px; color: var(--muted); }
.metric-sep { width: 1px; height: 38px; background: var(--border); }

/* Rustic Emblem Plate */
.rustic-emblem-frame {
  position: relative;
  padding: 34px 28px 24px;
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(30, 27, 23, 0.95), rgba(14, 13, 11, 0.98));
  border: 1.5px solid rgba(216, 248, 0, 0.28);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.65), inset 0 0 0 1px rgba(244, 239, 230, 0.05);
  text-align: center;
}
.corner-rivet {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(216, 248, 0, 0.45);
}
.corner-rivet.tl { top: 14px; left: 14px; }
.corner-rivet.tr { top: 14px; right: 14px; }
.corner-rivet.bl { bottom: 14px; left: 14px; }
.corner-rivet.br { bottom: 14px; right: 14px; }
.frame-kicker {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.hero-emblem-img {
  width: min(260px, 78%);
  margin: 22px auto 24px;
  display: block;
  filter: drop-shadow(0 10px 28px rgba(216, 248, 0, 0.16));
}
.frame-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px dashed rgba(244, 239, 230, 0.16);
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  color: var(--muted);
}
.dot-live { color: var(--spot); font-weight: 700; }

/* -------------------- Sections -------------------- */
.section { padding: 72px 0; }
.section-head { margin-bottom: 34px; max-width: 680px; }
.kicker {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--spot);
  margin-bottom: 10px;
}
.section-title {
  font-family: "TheSpotGrunge", "Space Grotesk", sans-serif;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.08;
  margin: 0 0 12px;
}
.section-sub { color: var(--muted); margin: 0; font-size: 15.5px; }

/* -------------------- Loyalty Ticket 4+1 -------------------- */
.club-section {
  background: linear-gradient(180deg, rgba(21, 19, 17, 0.72), rgba(12, 11, 10, 1));
  border-bottom: 1px solid var(--border);
}
.club-grid,
.club-member-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: start;
}

.loyalty-ticket {
  position: relative;
  padding: 28px 28px 22px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 10%, rgba(216, 248, 0, 0.11), transparent 55%),
    linear-gradient(155deg, #1b1814, #100f0d);
  border: 1.5px solid rgba(216, 248, 0, 0.34);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.ticket-notch {
  position: absolute;
  top: 52%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid rgba(216, 248, 0, 0.3);
}
.ticket-notch.left { left: -12px; }
.ticket-notch.right { right: -12px; }

.ticket-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.ticket-brand { display: flex; align-items: center; gap: 14px; }
.ticket-emblem { width: 42px; height: auto; }
.member-avatar {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--spot);
  color: var(--spot-ink);
  font-family: "TheSpotGrunge", sans-serif;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.member-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ticket-kicker {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.ticket-owner { font-family: "Space Grotesk", sans-serif; font-size: 20px; }
.ticket-sub-contact { font-size: 12px; color: var(--muted); }
.ticket-code {
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 14px;
  padding: 7px 13px;
  border-radius: 10px;
  background: rgba(216, 248, 0, 0.12);
  border: 1px solid var(--border-spot);
  color: var(--spot);
}
.ticket-code.copyable { cursor: pointer; }
.ticket-code.copyable:hover { background: var(--spot); color: var(--spot-ink); }

.ticket-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 22px 0 18px;
  padding: 10px 0;
  border-top: 1px dashed rgba(244, 239, 230, 0.16);
  border-bottom: 1px dashed rgba(244, 239, 230, 0.16);
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  color: var(--muted);
  text-transform: uppercase;
}

.stamps-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 18px 0 22px;
}
.stamp-slot {
  aspect-ratio: 1 / 1.08;
  border-radius: 16px;
  border: 1.5px dashed rgba(244, 239, 230, 0.22);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}
.stamp-slot img { width: 52%; height: auto; }
.stamp-slot span {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.stamp-num {
  font-family: "TheSpotGrunge", "Space Grotesk", sans-serif;
  font-size: 24px;
  color: rgba(244, 239, 230, 0.32);
}
.stamp-slot.filled {
  border-style: solid;
  border-color: var(--spot);
  background: rgba(216, 248, 0, 0.1);
  box-shadow: inset 0 0 18px rgba(216, 248, 0, 0.12);
}
.stamp-slot.filled span { color: var(--spot); font-weight: 700; }

.stamp-slot.free-slot {
  border-color: rgba(201, 164, 92, 0.45);
  background: rgba(201, 164, 92, 0.06);
}
.stamp-slot.free-slot .stamp-num { color: var(--brass); }
.stamp-slot.free-slot.unlocked {
  border-style: solid;
  border-color: var(--spot);
  background: var(--spot);
  color: var(--spot-ink);
  box-shadow: 0 0 28px rgba(216, 248, 0, 0.35);
}
.stamp-slot.free-slot.unlocked .stamp-num,
.stamp-slot.free-slot.unlocked span { color: var(--spot-ink); font-weight: 700; }

.free-reward-banner {
  margin: 0 0 18px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(216, 248, 0, 0.14);
  border: 1.5px solid var(--spot);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.reward-kicker {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--spot);
  font-weight: 700;
}
.free-reward-banner h4 { margin: 4px 0; font-size: 17px; }
.free-reward-banner p { margin: 0; font-size: 13px; color: rgba(244, 239, 230, 0.85); }
.reward-code-pill {
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 15px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--spot);
  color: var(--spot-ink);
}

.ticket-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}
.ticket-tag {
  font-family: "JetBrains Mono", monospace;
  color: var(--spot);
  font-size: 11px;
}

.club-benefits-box,
.side-card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.club-benefits-box h3,
.side-card h4 { margin: 0 0 14px; font-family: "Space Grotesk", sans-serif; }
.member-side-panel { display: flex; flex-direction: column; gap: 18px; }
.side-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.side-card-head h4 { margin: 0; }

.steps-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.steps-list li { display: flex; gap: 14px; align-items: flex-start; }
.step-idx {
  font-family: "TheSpotGrunge", sans-serif;
  font-size: 24px;
  color: var(--spot);
  line-height: 1;
  min-width: 30px;
}
.steps-list p { margin: 3px 0 0; font-size: 13.5px; color: var(--muted); }
.steps-list code {
  background: rgba(216, 248, 0, 0.12);
  color: var(--spot);
  padding: 1px 6px;
  border-radius: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}

.visits-mini-list { display: flex; flex-direction: column; gap: 8px; max-height: 210px; overflow-y: auto; }
.visit-row {
  padding: 9px 11px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.visit-row.is-free {
  border-color: var(--border-spot);
  background: rgba(216, 248, 0, 0.07);
}

/* -------------------- Services -------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
}
.service-card {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: border-color 0.2s, transform 0.2s;
}
.service-card:hover {
  border-color: var(--border-spot);
  transform: translateY(-2px);
}
.service-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.service-top h3 { margin: 0; font-family: "Space Grotesk", sans-serif; font-size: 18px; }
.service-price {
  font-family: "TheSpotGrunge", "Space Grotesk", sans-serif;
  font-size: 26px;
  color: var(--spot);
  white-space: nowrap;
}
.service-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(216, 248, 0, 0.14);
  color: var(--spot);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  margin-bottom: 6px;
}
.service-desc { margin: 0; font-size: 13.5px; color: var(--muted); }
.service-dur { font-family: "JetBrains Mono", monospace; font-size: 11.5px; color: var(--brass); }

/* -------------------- Story & Location -------------------- */
.story-section { border-top: 1px solid var(--border); }
.story-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 24px; }
.story-card,
.location-card {
  padding: 28px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.story-text { font-size: 15.5px; color: rgba(244, 239, 230, 0.82); margin: 0 0 24px; }
.pillars-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pillar {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}
.pillar strong { display: block; color: var(--spot); font-family: "JetBrains Mono", monospace; font-size: 12px; margin-bottom: 4px; }
.pillar span { font-size: 12.5px; color: var(--muted); }
.location-card h3 { font-family: "Space Grotesk", sans-serif; font-size: 24px; margin: 0 0 18px; }
.loc-rows { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; }
.loc-row { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px dashed var(--border); font-size: 14px; }
.loc-row span { color: var(--muted); }
.loc-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* -------------------- Footer -------------------- */
.footer {
  padding: 36px 0;
  border-top: 1px solid var(--border);
  background: #080706;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.secret-trigger {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
}
.footer-logo { height: 34px; display: block; opacity: 0.9; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 13.5px; }
.footer-links a:hover { color: var(--spot); }

/* -------------------- Modals & Forms -------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.modal-sheet {
  position: relative;
  width: min(460px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  padding: 28px;
  border-radius: 22px;
  background: #141210;
  border: 1.5px solid var(--border-spot);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.75);
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--bone);
  cursor: pointer;
}
.auth-head { text-align: center; margin-bottom: 18px; }
.auth-emblem { width: 56px; margin-bottom: 8px; }
.auth-head h3 { margin: 0 0 4px; font-family: "TheSpotGrunge", "Space Grotesk", sans-serif; font-size: 28px; color: var(--spot); }
.auth-head p { margin: 0; font-size: 13.5px; }

.google-wrap { margin-bottom: 14px; display: flex; flex-direction: column; align-items: center; }
.auth-divider { width: 100%; text-align: center; position: relative; margin: 14px 0 4px; }
.auth-divider::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--border); }
.auth-divider span { position: relative; background: #141210; padding: 0 12px; font-size: 12px; color: var(--muted); }

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  margin-bottom: 16px;
}
.auth-tab {
  border: 0;
  border-radius: 9px;
  padding: 9px;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
}
.auth-tab.active { background: var(--spot); color: var(--spot-ink); }

.auth-form,
.compact-form { display: flex; flex-direction: column; gap: 12px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field span { font-size: 12px; color: var(--muted); font-weight: 500; }
.field input,
.field textarea,
.field select,
.search-input,
.select-input {
  width: 100%;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--bone);
  font-family: inherit;
  font-size: 14px;
}
.field input:focus,
.field textarea:focus,
.field select:focus,
.search-input:focus {
  outline: none;
  border-color: var(--spot);
}
.form-error {
  margin: 0;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(248, 113, 113, 0.14);
  color: #fecaca;
  font-size: 13px;
}

/* -------------------- Admin / Barber Studio -------------------- */
.floating-admin-pill {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--spot);
  background: #141210;
  color: var(--spot);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--spot); }

.admin-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: #0b0a09;
  overflow-y: auto;
}
.admin-shell { max-width: 1200px; margin: 0 auto; padding: 18px; }
.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.admin-brand { display: flex; align-items: center; gap: 10px; }
.admin-brand img { width: 34px; }
.admin-brand strong { display: block; color: var(--spot); font-family: "Space Grotesk", sans-serif; }
.admin-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-tab {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.admin-tab.active { background: var(--spot); color: var(--spot-ink); border-color: var(--spot); }

.admin-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.kpi-card {
  padding: 15px 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.kpi-card span { display: block; font-size: 12px; color: var(--muted); }
.kpi-card strong { font-family: "TheSpotGrunge", "Space Grotesk", sans-serif; font-size: 30px; color: var(--spot); }

.chair-toolbar,
.crm-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.chair-toolbar .search-input { flex: 1; min-width: 240px; }
.chair-defaults { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.filter-pills { display: flex; gap: 7px; flex-wrap: wrap; }
.filter-pill {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--bone);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 12.5px;
  cursor: pointer;
}
.filter-pill.active { background: var(--spot); color: var(--spot-ink); border-color: var(--spot); font-weight: 700; }

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 14px;
}
.member-admin-card {
  padding: 16px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.member-admin-card.has-free { border-color: var(--spot); background: rgba(216, 248, 0, 0.045); }
.mac-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.mac-code {
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(216, 248, 0, 0.14);
  color: var(--spot);
}
.mac-stamps {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}
.mini-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px dashed rgba(244, 239, 230, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--muted);
}
.mini-dot.on { border-style: solid; border-color: var(--spot); background: var(--spot); color: var(--spot-ink); font-weight: 700; }
.mini-dot.free-on { border-style: solid; border-color: var(--spot); background: var(--spot); color: var(--spot-ink); width: auto; padding: 0 8px; border-radius: 999px; font-weight: 700; }
.mac-actions { display: flex; gap: 7px; flex-wrap: wrap; }

.visits-admin-list { display: flex; flex-direction: column; gap: 8px; }
.config-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.config-card {
  padding: 18px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.config-card h4 { margin: 0 0 4px; color: var(--spot); font-family: "Space Grotesk", sans-serif; }

/* -------------------- Toast -------------------- */
.toast-root {
  position: fixed;
  right: 16px;
  bottom: 20px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 360px;
}
.toast {
  padding: 12px 16px;
  border-radius: 12px;
  background: #1b1915;
  border: 1px solid var(--border-spot);
  color: var(--bone);
  font-size: 13.5px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.6);
}
.toast.error { border-color: var(--danger); color: #fecaca; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.mode-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(244, 239, 230, 0.05);
  color: var(--bone);
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.18s, color 0.18s, background 0.18s;
}
.mode-btn:hover,
.mode-btn.active {
  border-color: var(--spot);
  color: var(--spot);
  background: rgba(216, 248, 0, 0.09);
}

/* Mobile Bottom Nav (only shown in Android/Mobile mode) */
.mobile-bottom-nav {
  display: none;
}

/* -------------------- Responsive: Modo Android / Móvil vs Modo PC -------------------- */
body.force-desktop {
  min-width: 1180px;
}
body.force-desktop .mobile-bottom-nav {
  display: none !important;
}

@media (max-width: 860px) {
  body:not(.force-desktop) {
    padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px));
  }
  body:not(.force-desktop) .container {
    width: min(100% - 26px, 640px);
  }
  body:not(.force-desktop) .topbar-inner {
    height: 60px;
    gap: 8px;
  }
  body:not(.force-desktop) .brand-logo {
    height: 28px;
  }
  body:not(.force-desktop) .nav-links {
    display: none;
  }
  body:not(.force-desktop) .mode-btn {
    padding: 7px 10px;
    font-size: 11.5px;
  }
  body:not(.force-desktop) #btn-nav-member {
    padding: 8px 12px;
    font-size: 12px;
  }
  body:not(.force-desktop) .hero {
    padding: 28px 0 38px;
  }
  body:not(.force-desktop) .hero-grid,
  body:not(.force-desktop) .club-grid,
  body:not(.force-desktop) .club-member-layout,
  body:not(.force-desktop) .story-grid,
  body:not(.force-desktop) .config-grid,
  body:not(.force-desktop) .chair-defaults {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  body:not(.force-desktop) .hero-visual {
    order: -1;
  }
  body:not(.force-desktop) .rustic-emblem-frame {
    padding: 20px 18px 16px;
    border-radius: 20px;
  }
  body:not(.force-desktop) .hero-emblem-img {
    width: 168px;
    margin: 12px auto 14px;
  }
  body:not(.force-desktop) .display-title {
    font-size: clamp(36px, 11vw, 48px);
    margin-bottom: 12px;
  }
  body:not(.force-desktop) .hero-subtitle {
    font-size: 15px;
    margin-bottom: 20px;
  }
  body:not(.force-desktop) .hero-ctas {
    flex-direction: column;
  }
  body:not(.force-desktop) .hero-ctas .btn {
    width: 100%;
  }
  body:not(.force-desktop) .hero-metrics {
    margin-top: 22px;
    padding-top: 18px;
    gap: 16px;
  }
  body:not(.force-desktop) .section {
    padding: 46px 0;
  }
  body:not(.force-desktop) .section-head {
    margin-bottom: 22px;
  }
  body:not(.force-desktop) .loyalty-ticket {
    padding: 18px 14px 16px;
    border-radius: 20px;
  }
  body:not(.force-desktop) .ticket-notch {
    display: none;
  }
  body:not(.force-desktop) .ticket-owner {
    font-size: 17px;
  }
  body:not(.force-desktop) .ticket-meta-row {
    font-size: 10.5px;
    margin: 14px 0 12px;
  }
  body:not(.force-desktop) .stamps-row {
    gap: 6px;
    margin: 12px 0 16px;
  }
  body:not(.force-desktop) .stamp-slot {
    border-radius: 12px;
    padding: 6px 3px;
    gap: 3px;
  }
  body:not(.force-desktop) .stamp-slot span {
    font-size: 8.5px;
  }
  body:not(.force-desktop) .stamp-num {
    font-size: 18px;
  }
  body:not(.force-desktop) .pillars-row,
  body:not(.force-desktop) .field-grid {
    grid-template-columns: 1fr;
  }
  body:not(.force-desktop) .services-grid,
  body:not(.force-desktop) .members-grid {
    grid-template-columns: 1fr;
  }
  body:not(.force-desktop) .loc-row {
    flex-direction: column;
    gap: 3px;
  }
  body:not(.force-desktop) .admin-shell {
    padding: 12px;
  }
  body:not(.force-desktop) .admin-tabs {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }
  body:not(.force-desktop) .admin-tab {
    white-space: nowrap;
    flex-shrink: 0;
  }
  body:not(.force-desktop) .admin-kpis {
    grid-template-columns: repeat(2, 1fr);
  }
  body:not(.force-desktop) .floating-admin-pill {
    bottom: calc(82px + env(safe-area-inset-bottom, 0px));
    right: 12px;
  }
  body:not(.force-desktop) .toast-root {
    bottom: calc(82px + env(safe-area-inset-bottom, 0px));
    left: 12px;
    right: 12px;
    max-width: none;
  }
  body:not(.force-desktop) .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 55;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: rgba(12, 11, 10, 0.94);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--border);
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px));
  }
  body:not(.force-desktop) .mbn-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--muted);
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 2px;
    border-radius: 10px;
  }
  body:not(.force-desktop) .mbn-item.active,
  body:not(.force-desktop) .mbn-item:active {
    color: var(--spot);
  }
}
