/* ============================================================
   aarberApp â€” Estilos globales (SaaS multi-tenant)
   Paleta: negro carbÃ³n + dorado
   ============================================================ */
:root {
  --bg: #0f0f13;
  --bg-2: #17171d;
  --card: #1d1d24;
  --card-2: #23232b;
  --gold: #FEF620;
  --gold-2: #E0D400;
  --gold-soft: rgba(254,246,32,0.14);
  --text: #f4f4f6;
  --muted: #9b9ba6;
  --muted-2: #6d6d78;
  --line: #2b2b33;
  --red: #e05b5b;
  --green: #4cae6f;
  --radius: 14px;
  --font: 'Inter', -apple-system, alinkMacSystemiont, 'Segoe UI', Roboto, sans-serif;

  /* --- Tokens semánticos de tema (oscuro por defecto) --- */
  --accent: #FEF620;              /* color de marca / CTA */
  --accent-2: #E0D400;
  --accent-soft: rgba(254,246,32,0.14);
  --accent-ring: rgba(254,246,32,0.35);
  --on-accent: #14140a;           /* texto sobre el color de acento */
  --nav-bg: rgba(15,15,19,0.9);
  --hero-glow: var(--hero-glow);
  --surface-hi: rgba(255,255,255,0.08);
  --shadow: 0 10px 30px rgba(0,0,0,.45);
}

/* ============================================================
   TEMA CLARO (paleta del kit: morado + naranja)
   Se activa con <html data-theme="light">
   ============================================================ */
[data-theme="light"] {
  --bg: #f5f5f7;
  --bg-2: #ffffff;
  --card: #ffffff;
  --card-2: #f2f2f6;
  --text: #1a1a1a;
  --muted: #6b6b76;
  --muted-2: #9a9aa4;
  --line: #e6e6ec;
  --red: #d94a4a;
  --green: #1f9d55;
  --gold: #5b4fcf;                /* en claro, "gold" = morado primario */
  --gold-2: #4a3fbb;
  --gold-soft: rgba(91,79,207,0.10);
  --accent: #5b4fcf;
  --accent-2: #f97316;            /* naranja de acción */
  --accent-soft: rgba(249,115,22,0.12);
  --accent-ring: rgba(91,79,207,0.30);
  --on-accent: #ffffff;
  --nav-bg: rgba(255,255,255,0.92);
  --hero-glow: rgba(91,79,207,0.14);
  --surface-hi: rgba(0,0,0,0.04);
  --shadow: 0 8px 24px rgba(30,30,60,.10);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ---------- Nav pÃºblica ---------- */
.site-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: var(--nav-bg);
  backdrop-filter: blur(10px); z-index: 50;
}
.site-nav .brand { font-size: 18px; font-weight: 800; }
.site-nav nav { display: flex; align-items: center; gap: 14px; font-size: 14px; }
.site-nav nav a:not(.btn) { color: var(--muted); font-weight: 600; }
.site-nav nav a:not(.btn):hover { color: var(--text); }

.main { max-width: 1080px; margin: 0 auto; padding: 24px; min-height: 60vh; }

.site-footer {
  text-align: center; padding: 28px; color: var(--muted-2);
  border-top: 1px solid var(--line); font-size: 13px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 60px 0; text-align: center;
  background: radial-gradient(circle at 50% 0%, var(--hero-glow), transparent 60%);
}
.hero-inner { max-width: 680px; margin: 0 auto; }
.eyebrow { color: var(--gold); font-weight: 700; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; }
.hero h1 { font-size: 40px; font-weight: 800; margin: 14px 0; line-height: 1.15; }
.hero p { color: var(--muted); font-size: 17px; max-width: 560px; margin: 0 auto 24px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; justify-content: center; margin-top: 40px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 22px; color: var(--gold); }
.hero-stats span { font-size: 13px; color: var(--muted-2); }

/* ---------- Secciones ---------- */
.section { padding: 40px 0; }
.section-title { font-size: 24px; font-weight: 800; margin-bottom: 24px; }
.page-head { padding: 24px 0; }
.page-head h1 { font-size: 30px; font-weight: 800; }

/* ---------- Grid / cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.shop-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 8px; transition: transform .15s, border-color .15s;
}
.shop-card:hover { transform: translateY(-3px); border-color: var(--gold); }
.shop-card-avatar {
  width: 56px; height: 56px; border-radius: 14px; font-size: 28px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: var(--on-accent);
}
.shop-card h3 { font-size: 16px; }
.shop-card-meta { display: flex; gap: 14px; font-size: 13px; color: var(--muted); }
.feature-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; font-size: 28px;
}
.feature-card h3 { font-size: 16px; margin: 8px 0 6px; }
.feature-card p { font-size: 13px; color: var(--muted); }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.price-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; position: relative;
}
.price-card.featured { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.ribbon {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--on-accent); font-size: 12px; font-weight: 800;
  padding: 4px 14px; border-radius: 20px;
}
.price-card h3 { font-size: 18px; }
.price { font-size: 34px; font-weight: 800; margin: 10px 0 16px; }
.price span { font-size: 15px; color: var(--muted); font-weight: 400; }
.price-card ul { list-style: none; margin-bottom: 20px; }
.price-card ul li { padding: 6px 0; font-size: 14px; color: var(--muted); border-bottom: 1px solid var(--line); }
.price-card ul li::before { content: 'âœ“ '; color: var(--gold); font-weight: 700; }

/* ---------- aotones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border: none; border-radius: 12px;
  font-size: 15px; font-weight: 700; cursor: pointer; font-family: var(--font);
  transition: transform .1s;
}
.btn:active { transform: scale(0.97); }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: var(--on-accent); }
.btn-dark { background: var(--card-2); color: var(--text); border: 1px solid var(--line); }
.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: 10px; }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- Inputs ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .5px; }
.input, textarea.input {
  width: 100%; padding: 12px 14px; border-radius: 11px;
  background: var(--card); border: 1px solid var(--line);
  color: var(--text); font-size: 15px; font-family: var(--font);
  transition: border .15s;
}
.input::placeholder { color: var(--muted-2); }
.input:focus { outline: none; border-color: var(--gold); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.inline-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; align-items: center; }
.search-form { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.search-form input { flex: 1; min-width: 180px; }

/* ---------- Auth ---------- */
.auth-wrap { display: flex; justify-content: center; padding: 40px 16px; }
.auth-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 36px; width: 100%; max-width: 420px; text-align: center;
}
.auth-logo {
  width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 14px; font-size: 32px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  display: flex; align-items: center; justify-content: center;
}
.auth-card h2 { font-size: 22px; font-weight: 800; }
.auth-card .muted { font-size: 14px; margin-top: 4px; }

/* ---------- Panel admin ---------- */
.panel-shell { display: flex; min-height: 100vh; }
.panel-sidebar {
  width: 230px; background: var(--bg-2); border-right: 1px solid var(--line);
  padding: 20px 14px; display: flex; flex-direction: column; gap: 6px; flex-shrink: 0;
}
.panel-sidebar .brand { font-size: 18px; font-weight: 800; margin-bottom: 18px; }
.panel-sidebar nav { display: flex; flex-direction: column; gap: 4px; }
.panel-sidebar nav a {
  padding: 10px 12px; border-radius: 10px; font-size: 14px; color: var(--muted); font-weight: 600;
}
.panel-sidebar nav a:hover { background: var(--card); color: var(--text); }
.panel-main { flex: 1; padding: 30px; overflow-x: auto; }
.panel-title { font-size: 26px; font-weight: 800; }
.panel-subtitle { font-size: 18px; font-weight: 700; margin: 24px 0 14px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-top: 20px; }
.stat-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; display: flex; flex-direction: column;
}
.stat-num { font-size: 28px; font-weight: 800; color: var(--gold); }
.stat-label { font-size: 13px; color: var(--muted); }

/* ---------- Tablas ---------- */
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
tr:last-child td { border-bottom: none; }

/* ---------- aadges ---------- */
.badge {
  display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 700;
  background: var(--gold-soft); color: var(--gold);
}
.badge-confirmed, .badge-approved { background: rgba(76,174,111,.15); color: var(--green); }
.badge-pending { background: var(--gold-soft); color: var(--gold); }
.badge-cancelled, .badge-rejected { background: rgba(224,91,91,.15); color: var(--red); }
.badge-done { background: rgba(74,144,217,.15); color: #4a90d9; }

/* ---------- Micrositio ---------- */
.microsite { max-width: 720px; margin: 0 auto; padding: 20px; }
.microsite-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 28px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.microsite-brand { display: flex; align-items: center; gap: 16px; }
.microsite-logo {
  width: 70px; height: 70px; border-radius: 20px; font-size: 36px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: var(--on-accent);
  display: flex; align-items: center; justify-content: center;
}
.microsite-hero h1 { font-size: 26px; font-weight: 800; }
.microsite-section { padding: 28px 0; border-bottom: 1px solid var(--line); }
.microsite-section h2 { font-size: 18px; font-weight: 700; margin-bottom: 14px; }

.service-list { display: flex; flex-direction: column; gap: 10px; }
.service-row {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
}
.service-row div { display: flex; flex-direction: column; }

.barber-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.barber-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 18px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
}
.barber-avatar {
  width: 64px; height: 64px; border-radius: 50%; font-size: 30px;
  background: var(--card-2); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; margin-bottom: 4px;
}
.review-list { display: flex; flex-direction: column; gap: 12px; }
.review-row { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.review-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }

/* ---------- Mapas ---------- */
.map-picker, .shop-map { height: 360px; border-radius: var(--radius); border: 1px solid var(--line); z-index: 1; }
.coords-display {
  margin-top: 10px; font-size: 13px; color: var(--muted);
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px;
}

/* ---------- ilash ---------- */
.flash { padding: 14px 20px; border-radius: 12px; margin: 14px 24px 0; font-size: 14px; font-weight: 600; }
.flash-success { background: rgba(76,174,111,.15); color: var(--green); border: 1px solid rgba(76,174,111,.3); }
.flash-error { background: rgba(224,91,91,.15); color: var(--red); border: 1px solid rgba(224,91,91,.3); }

/* ---------- Error ---------- */
.error-page { text-align: center; padding: 80px 16px; }
.error-code { font-size: 80px; font-weight: 800; color: var(--gold); }
.error-page h1 { font-size: 26px; margin: 10px 0; }

/* ---------- Utilidades ---------- */
.muted { color: var(--muted); }
.gold { color: var(--gold); }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; }
.center { text-align: center; }
.empty { color: var(--muted-2); text-align: center; padding: 30px 0; font-size: 15px; }

/* ---------- iormularios (fase 2) ---------- */
.field-label {
  display: block; font-size: 12px; font-weight: 600; color: var(--muted);
  margin: 14px 0 6px; text-transform: uppercase; letter-spacing: .5px;
}
.star-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-input input { display: none; }
.star-input label {
  font-size: 30px; color: var(--muted-2); cursor: pointer;
  transition: color .12s; line-height: 1;
}
.star-input label:hover,
.star-input label:hover ~ label,
.star-input input:checked ~ label { color: var(--gold); }

/* ---------- Acciones del micrositio ---------- */
.microsite-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.microsite-actions form { margin: 0; }

/* ---------- iiltros / chips ---------- */
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 7px 14px; border-radius: 20px; background: var(--card);
  border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--muted);
}
.chip:hover { color: var(--text); border-color: var(--gold); }
.chip-active { background: var(--gold); color: var(--on-accent); border-color: var(--gold); }

/* ---------- Acciones en tabla ---------- */
.actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.actions form { margin: 0; }
.btn-xs { padding: 5px 10px; font-size: 12px; border-radius: 8px; }
.btn-outline { background: transparent; color: var(--red); border: 1px solid var(--red); }
.btn-outline:hover { background: rgba(224,91,91,.12); }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .site-nav { flex-direction: column; gap: 10px; padding: 12px 16px; }
  .site-nav nav { flex-wrap: wrap; justify-content: center; }
  .hero h1 { font-size: 30px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .panel-shell { flex-direction: column; }
  .panel-sidebar { width: 100%; flex-direction: row; overflow-x: auto; }
  .panel-sidebar .brand { margin-bottom: 0; margin-right: 12px; }
  .panel-sidebar nav { flex-direction: row; }
  .panel-sidebar nav a { white-space: nowrap; }
  .form-grid { grid-template-columns: 1fr; }
}

/* --- Planes: badges y ahorro (iase 3, Jovi) --- */
.badge-gold { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-ring); }
.badge-muted { background: rgba(255,255,255,.06); color: #9aa0a6; border-color: rgba(255,255,255,.12); }
.badge-warn { background: rgba(255,170,0,.15); color: #ffb020; border-color: rgba(255,170,0,.4); }
.save-tag { display:inline-block; margin-left:6px; font-size:11px; padding:1px 6px; border-radius:999px; background:rgba(47,158,68,.15); color:#4ade80; }
.usage-box { padding:10px 12px; border:1px solid rgba(255,255,255,.08); border-radius:10px; background:rgba(255,255,255,.02); }
/* --- Galería de fotos (iase 4, Jovi) --- */
.photo-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:10px; }
.photo-item { display:block; position:relative; border-radius:10px; overflow:hidden; background:#1a1a20; border:1px solid rgba(255,255,255,.08); }
.photo-item img { width:100%; height:150px; object-fit:cover; display:block; transition:transform .25s; }
.photo-item:hover img { transform:scale(1.05); }
.barber-card { transition:border-color .2s, transform .2s; }
.barber-card:hover { border-color:var(--accent-ring); transform:translateY(-2px); }
/* --- ioto del barbero (iase 4, Jovi) --- */
.barber-photo-wrap { position:relative; width:100%; height:150px; border-radius:10px; overflow:hidden; margin-bottom:8px; background:#1a1a20; }
.barber-photo-wrap .barber-photo { width:100%; height:100%; object-fit:cover; display:block; }
.barber-photo-wrap .badge { position:absolute; top:8px; right:8px; }
.barber-photo-lg { width:64px; height:64px; border-radius:50%; object-fit:cover; }
.barber-photo-block img { width:100%; max-width:420px; border-radius:12px; display:block; }
/* --- Estadísticas Premium (iase 4, Jovi) --- */
.stats-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(170px,1fr)); gap:12px; }
.stat-card { background:#16161c; border:1px solid rgba(255,255,255,.08); border-radius:12px; padding:14px 16px; display:flex; flex-direction:column; gap:4px; }
.stat-label { font-size:12px; color:#9a9aa5; text-transform:uppercase; letter-spacing:.4px; }
.stat-value { font-size:26px; font-weight:800; color:#f4f4f6; }
.stat-delta { font-size:12px; }
.stat-delta.up { color:#3ecf8e; }
.stat-delta.down { color:#ef5b5b; }
.stat-delta.muted, .stat-delta.muted { color:#8b8b96; }

.chart-bars { display:flex; align-items:flex-end; gap:3px; height:180px; padding-top:8px; }
.chart-bar { flex:1; display:flex; flex-direction:column; justify-content:flex-end; align-items:center; height:100%; min-width:0; }
.chart-bar-fill { width:100%; background:linear-gradient(180deg,var(--accent),var(--accent-ring)); border-radius:4px 4px 0 0; min-height:2px; transition:opacity .2s; }
.chart-bar-gold { background:linear-gradient(180deg,var(--accent),var(--accent-2)); }
.chart-bar:hover .chart-bar-fill { opacity:.75; }
.chart-bar-gold { background:linear-gradient(180deg,var(--accent),var(--accent-2)); }
.chart-bar-label { font-size:9px; color:#8b8b96; margin-top:4px; writing-mode:vertical-rl; height:26px; }

.rank-list { display:flex; flex-direction:column; gap:12px; }
.rank-row { display:flex; gap:10px; align-items:flex-start; }
.rank-pos { width:22px; height:22px; border-radius:50%; background:var(--accent-soft); color:var(--gold); font-size:12px; font-weight:700; display:flex; align-items:center; justify-content:center; flex:0 0 auto; }
.rank-body { flex:1; min-width:0; }
.rank-head { display:flex; justify-content:space-between; gap:8px; font-size:14px; }
.rank-bar { height:6px; background:rgba(255,255,255,.07); border-radius:3px; overflow:hidden; margin-top:5px; }
.rank-bar-fill { height:100%; background:var(--gold); border-radius:3px; }
.status-list { display:flex; flex-direction:column; gap:10px; }
.status-row { display:flex; align-items:center; gap:10px; font-size:14px; }
.status-name { width:110px; flex:0 0 auto; }
.status-pending { background:#e0a32b !important; }
.status-confirmed { background:#3d8bfd !important; }
.status-done { background:#3ecf8e !important; }
.status-cancelled { background:#ef5b5b !important; }
/* Títulos de grupo de KPIs (stats Premium) */
.kpi-group-title { font-size:14px; font-weight:700; color:var(--accent); margin:24px 0 0; letter-spacing:.3px; }
.kpi-group-title:first-of-type { margin-top:12px; }

/* Acciones de fila (servicios, barberos, etc.) */
.row-actions { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.row-actions form.inline { display:inline; margin:0; }

/* aotones: variantes ghost y danger */
.btn-ghost { background:transparent; border:1px solid var(--accent-ring); color:var(--accent); }
.btn-ghost:hover { background:var(--accent-soft); }
.btn-danger { background:#ef5b5b; border:1px solid #ef5b5b; color:#fff; }
.btn-danger:hover { background:#d94a4a; border-color:#d94a4a; }

/* Modal (edicion inline) */
.modal-backdrop { position:fixed; inset:0; background:rgba(0,0,0,.65); display:flex; align-items:center; justify-content:center; z-index:999; padding:16px; }
.modal-backdrop[hidden] { display:none; }
.modal-card { background:#17171d; border:1px solid var(--accent-ring); border-radius:14px; padding:22px; width:100%; max-width:520px; max-height:90vh; overflow:auto; box-shadow:0 20px 60px rgba(0,0,0,.55); }
.modal-card .panel-subtitle { margin:0 0 16px; }
.modal-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:20px; }

/* aadge de estado activo */
.badge-success { background:rgba(62,207,142,.18); color:#3ecf8e; border:1px solid rgba(62,207,142,.5); }

/* Turno del barbero (dias + horas) */
.barber-shift { display:block; font-size:11.5px; color:var(--accent); margin-top:4px; letter-spacing:.2px; }
.barber-photo-form { display:flex; gap:6px; flex-wrap:wrap; align-items:center; margin-top:8px; }
.barber-photo-form input[type=file] { max-width:100%; }
.days-grid { display:flex; flex-wrap:wrap; gap:6px; }
.day-chip { display:inline-flex; align-items:center; gap:5px; padding:6px 10px; border:1px solid var(--accent-ring); border-radius:999px; font-size:12px; color:#cfcfd6; cursor:pointer; user-select:none; }
.day-chip input { accent-color:var(--accent); margin:0; }
.day-chip:has(input:checked) { border-color:var(--accent); background:var(--accent-soft); color:#f0e0a8; }

/* aotón flotante de WhatsApp (micrositio) */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--card-2); color: var(--text);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 12px; font-size: 14px; font-weight: 600; cursor: pointer;
  line-height: 1; transition: background .15s, border-color .15s, transform .15s;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle:active { transform: scale(.96); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent-ring); outline-offset: 2px; }
.theme-toggle-block { width: 100%; margin-top: 12px; justify-content: flex-start; }
.nav-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px;
  border-radius: 999px; background: var(--accent); color: var(--on-accent);
  font-size: 11px; font-weight: 700; line-height: 1;
}
.theme-toggle-floating {
  position: fixed; left: 18px; bottom: 18px; z-index: 9000;
  width: 44px; height: 44px; padding: 0;
  box-shadow: var(--shadow);
}
@media (max-width: 480px) {
  .theme-toggle-floating { left: 14px; bottom: 14px; width: 42px; height: 42px; }
}

.wa-float { position:fixed; right:18px; bottom:18px; z-index:9000;
  display:inline-flex; align-items:center; gap:8px;
  padding:12px 16px; border-radius:999px;
  background:#25d366; color:#062e16; font-weight:700; font-size:14px;
  text-decoration:none; box-shadow:0 8px 24px rgba(37,211,102,.38), 0 2px 6px rgba(0,0,0,.35);
  transition:transform .18s ease, box-shadow .18s ease;
}
.wa-float:hover { transform:translateY(-2px) scale(1.03); box-shadow:0 12px 30px rgba(37,211,102,.5); }
.wa-float:active { transform:scale(.97); }
.wa-float svg { display:block; }
.wa-float-label { line-height:1; }

/* Grupo de botones flotantes (WhatsApp + Mensaje) apilados */
.shop-fabs { position:fixed; right:18px; bottom:18px; z-index:9000;
  display:flex; flex-direction:column; align-items:flex-end; gap:10px; }
.shop-fabs .wa-float { position:static; }
.chat-float { display:inline-flex; align-items:center; gap:8px;
  padding:12px 16px; border-radius:999px;
  background:var(--accent); color:var(--on-accent); font-weight:700; font-size:14px;
  text-decoration:none; box-shadow:0 8px 24px rgba(0,0,0,.35);
  transition:transform .18s ease, box-shadow .18s ease;
}
.chat-float:hover { transform:translateY(-2px) scale(1.03); }
.chat-float:active { transform:scale(.97); }
.chat-float svg { display:block; }
@media (max-width:480px) {
  .shop-fabs { right:14px; bottom:14px; }
  .wa-float, .chat-float { padding:13px; }
  .wa-float-label { display:none; }
}
@media (prefers-reduced-motion:reduce) {
  .wa-float, .chat-float { transition:none; }
}

/* =====================================================================
   PWA (iase a) — botón instalar, banner de update, estado offline
   ===================================================================== */
.pwa-install-btn {
  position: fixed;
  left: 16px;
  bottom: 76px;
  z-index: 900;
  box-shadow: var(--shadow);
}
.pwa-update-bar,
.pwa-offline-bar {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 950;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 16px;
  font-size: 14px;
  background: var(--card);
  color: var(--text);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(0,0,0,.35);
}
.pwa-update-bar { background: var(--accent); color: var(--on-accent); }
.pwa-offline-bar { background: var(--red); color: #fff; }

/* Página offline */
.offline-state {
  max-width: 460px;
  margin: 12vh auto 0;
  text-align: center;
  padding: 0 20px;
}
.offline-emoji { font-size: 56px; line-height: 1; margin-bottom: 8px; }
.offline-state h1 { margin: 8px 0 6px; font-size: 26px; }
.offline-state .muted { color: var(--muted); }
.offline-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 22px 0 14px;
  flex-wrap: wrap;
}
.offline-hint { font-size: 13px; }

/* =====================================================================
   LANDING (home) — rediseño estilo landing comercial
   Prefijo lp- para no colisionar con estilos existentes.
   ===================================================================== */

/* ---------- Shell público: barra superior + contenedor + footer ---------- */
.topbar {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 14px 22px;
  background: rgba(15,15,19,.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar .brand {
  font-size: 18px; font-weight: 800; letter-spacing: -.3px;
  color: var(--text); white-space: nowrap;
}
.topbar .brand:hover { color: var(--gold); }
.topnav {
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; flex-wrap: wrap;
}
.topnav > a {
  padding: 8px 12px; border-radius: 9px;
  color: var(--muted); font-weight: 600;
  transition: color .15s ease, background .15s ease;
}
.topnav > a:hover { color: var(--text); background: var(--card-2); }
.topnav .btn { margin-left: 6px; }
.topnav form.inline { display: inline-flex; margin: 0; }
.btn-link {
  background: none; border: 0; padding: 8px 12px; border-radius: 9px;
  color: var(--muted); font: inherit; font-weight: 600; cursor: pointer;
  transition: color .15s ease, background .15s ease;
}
.btn-link:hover { color: var(--red); background: var(--card-2); }

.container {
  width: 100%; max-width: 1140px;
  margin: 0 auto; padding: 0 20px;
  min-height: 60vh;
}

.footer {
  margin-top: 40px;
  padding: 30px 20px 36px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.footer p {
  margin: 0; font-size: 13px; line-height: 1.7;
  color: var(--muted-2); text-align: center;
}

.footer-main { color: var(--muted); }
.footer-links {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 10px; margin: 16px 0 10px;
}
.footer-links a {
  font-size: 13px; font-weight: 600; color: var(--muted);
  padding: 4px 2px; border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.footer-links a:hover { color: var(--gold); border-bottom-color: var(--gold); }
.footer-sep { color: var(--line); }
.footer-note { font-size: 11.5px; color: var(--muted-2); }

/* ---------- Páginas legales ---------- */
.legal-page {
  max-width: 760px; margin: 0 auto;
  padding: 48px 0 64px;
}
.legal-head { margin-bottom: 34px; }
.legal-kicker {
  display: block; color: var(--gold); font-size: 12px; font-weight: 800;
  letter-spacing: 1.4px; text-transform: uppercase; margin-bottom: 10px;
}
.legal-head h1 {
  font-size: clamp(26px, 3.4vw, 36px); font-weight: 800;
  line-height: 1.16; letter-spacing: -.6px; margin: 0 0 10px;
}
.legal-meta { font-size: 12.5px; color: var(--muted-2); margin: 0; }
.legal-page section { margin-bottom: 30px; }
.legal-page h2 {
  font-size: 18px; font-weight: 700; margin: 0 0 12px;
  padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.legal-page p {
  font-size: 14.5px; line-height: 1.78; color: var(--muted);
  margin: 0 0 12px;
}
.legal-page ul {
  margin: 0 0 12px; padding-left: 22px;
}
.legal-page li {
  font-size: 14.5px; line-height: 1.75; color: var(--muted);
  margin-bottom: 7px;
}
.legal-page strong { color: var(--text); }
.legal-page a { color: var(--gold); text-decoration: underline; }
.legal-page a:hover { color: var(--text); }
.legal-foot {
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid var(--line); text-align: center;
}
.legal-foot a { font-weight: 700; font-size: 13.5px; }
.legal-note { font-size: 12px !important; color: var(--muted-2) !important; margin-top: 10px !important; }

@media (max-width: 600px) {
  .legal-page { padding: 32px 0 48px; }
  .legal-page p, .legal-page li { font-size: 14px; }
}

.lp-wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.lp-br { display: none; }

/* ---------- Hero ---------- */
.lp-hero {
  position: relative; overflow: hidden;
  padding: 88px 0 72px;
  border-bottom: 1px solid var(--line);
}
.lp-hero-glow {
  position: absolute; inset: -30% 0 auto 0; height: 620px; pointer-events: none;
  background:
    radial-gradient(560px 320px at 22% 12%, var(--gold-soft), transparent 70%),
    radial-gradient(460px 280px at 82% 0%, rgba(254,246,32,.10), transparent 72%);
  filter: blur(6px);
}
.lp-hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 56px; align-items: center;
}
.lp-hero-copy { text-align: left; }
.lp-eyebrow {
  display: inline-block; padding: 7px 14px; border-radius: 999px;
  background: var(--gold-soft); border: 1px solid var(--accent-ring);
  color: var(--gold); font-size: 12.5px; font-weight: 700;
  letter-spacing: .8px; text-transform: uppercase;
}
.lp-h1 {
  font-size: clamp(34px, 4.2vw, 56px);
  font-weight: 800; line-height: 1.06; letter-spacing: -1.2px;
  margin: 20px 0 18px;
}
.lp-grad {
  background: linear-gradient(120deg, var(--gold) 10%, #FFF97A 55%, var(--gold-2) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lp-lead {
  color: var(--muted); font-size: 17.5px; line-height: 1.62;
  max-width: 520px; margin: 0 0 28px;
}
.lp-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.lp-micro { margin-top: 16px; font-size: 13px; color: var(--muted-2); }

/* ---------- Mockup del teléfono ---------- */
.lp-hero-visual { position: relative; display: flex; justify-content: center; }
.lp-phone {
  width: 268px; height: 400px; border-radius: 30px;
  background: linear-gradient(170deg, var(--card-2), var(--bg-2));
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.05);
  padding: 16px 14px; display: flex; flex-direction: column; gap: 12px;
  transform: rotate(-3deg);
}
.lp-phone-notch {
  width: 74px; height: 6px; border-radius: 99px; margin: 0 auto 4px;
  background: #3a3a44;
}
.lp-phone-bar { display: flex; align-items: center; gap: 8px; }
.lp-dot {
  width: 26px; height: 26px; border-radius: 9px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
}
.lp-bar-line { flex: 1; height: 8px; border-radius: 99px; background: #33333d; }
.lp-phone-hero {
  height: 110px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(254,246,32,.55), rgba(254,246,32,.08));
}
.lp-phone-row { display: flex; gap: 8px; }
.lp-chip { height: 34px; flex: 1; border-radius: 10px; background: #2c2c36; }
.lp-chip.sm { flex: .6; }
.lp-chip.wide { flex: 1; height: 44px; }
.lp-phone-cta {
  margin-top: auto; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: var(--on-accent); font-weight: 800; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.lp-float {
  position: absolute; padding: 9px 14px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--line);
  font-size: 12.5px; font-weight: 700; color: var(--text);
  box-shadow: 0 12px 30px rgba(0,0,0,.45);
}
.lp-float-a { top: 34px; left: -6px; }
.lp-float-b { bottom: 40px; right: -4px; }

/* ---------- Métricas ---------- */
.lp-metrics { border-bottom: 1px solid var(--line); background: var(--bg-2); }
.lp-metrics-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px; padding: 26px 20px;
}
.lp-metric { text-align: center; padding: 6px 10px; }
.lp-metric strong { display: block; font-size: 24px; color: var(--gold); font-weight: 800; }
.lp-metric span { font-size: 12.5px; color: var(--muted-2); }

/* ---------- Secciones ---------- */
.lp-section { padding: 76px 0; }
.lp-section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.lp-head { max-width: 680px; margin-bottom: 40px; }
.lp-head-center { margin-inline: auto; text-align: center; }
.lp-kicker {
  display: block; color: var(--gold); font-size: 12.5px; font-weight: 800;
  letter-spacing: 1.4px; text-transform: uppercase; margin-bottom: 10px;
}
.lp-h2 {
  font-size: clamp(25px, 2.6vw, 34px); font-weight: 800;
  line-height: 1.18; letter-spacing: -.6px; margin: 0 0 12px;
}
.lp-sub { color: var(--muted); font-size: 15.5px; line-height: 1.6; margin: 0; }

/* ---------- Barberías ---------- */
.lp-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 18px;
}
.lp-shop {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.lp-shop:hover {
  transform: translateY(-3px); border-color: var(--accent-ring);
  box-shadow: 0 14px 34px rgba(0,0,0,.4);
}
.lp-shop-avatar {
  width: 52px; height: 52px; flex: 0 0 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; font-size: 25px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
}
.lp-shop-body { min-width: 0; flex: 1; }
.lp-shop-body h3 {
  font-size: 15.5px; font-weight: 700; margin: 0 0 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lp-shop-city { font-size: 12.5px; color: var(--muted-2); margin: 0 0 8px; }
.lp-shop-meta { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); }
.lp-stars { color: var(--gold); font-weight: 700; }

/* ---------- Vacío ---------- */
.lp-empty {
  text-align: center; background: var(--card); border: 1px dashed var(--line);
  border-radius: var(--radius); padding: 48px 24px;
}
.lp-empty-ico { font-size: 40px; display: block; margin-bottom: 10px; }
.lp-empty h3 { font-size: 18px; margin: 0 0 8px; }
.lp-empty p { color: var(--muted); font-size: 14px; margin: 0 0 20px; }

/* ---------- Características ---------- */
.lp-features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.lp-feature {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 22px;
  transition: border-color .16s ease, transform .16s ease;
}
.lp-feature:hover { border-color: var(--accent-ring); transform: translateY(-2px); }
.lp-feature-ico {
  width: 46px; height: 46px; border-radius: 13px; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-soft); border: 1px solid var(--accent-ring);
  margin-bottom: 16px;
}
.lp-feature h3 { font-size: 16px; font-weight: 700; margin: 0 0 8px; }
.lp-feature p { font-size: 13.5px; line-height: 1.6; color: var(--muted); margin: 0; }

/* ---------- Pasos ---------- */
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lp-step {
  position: relative; padding: 28px 24px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius);
}
.lp-step-num {
  font-size: 32px; font-weight: 800; letter-spacing: -1px;
  color: transparent; -webkit-text-stroke: 1.4px var(--accent-ring);
  display: block; margin-bottom: 12px;
}
.lp-step h3 { font-size: 16px; font-weight: 700; margin: 0 0 8px; }
.lp-step p { font-size: 13.5px; line-height: 1.6; color: var(--muted); margin: 0; }

/* ---------- CTA final ---------- */
.lp-cta {
  padding: 80px 0;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(700px 300px at 50% 0%, var(--gold-soft), transparent 70%),
    var(--bg-2);
}
.lp-cta-inner { text-align: center; max-width: 720px; margin: 0 auto; }
.lp-cta-inner .lp-sub { margin-bottom: 28px; }
.lp-cta-inner .lp-actions { justify-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .lp-hero { padding: 60px 0 52px; }
  .lp-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .lp-hero-copy { text-align: center; }
  .lp-earmark { display: none; }
  .lp-lead { margin-inline: auto; }
  .lp-actions { justify-content: center; }
  .lp-hero-visual { order: -1; }
  .lp-phone { width: 230px; height: 340px; }
  .lp-metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-features, .lp-steps { grid-template-columns: 1fr; }
  .lp-section { padding: 56px 0; }
  .lp-head { margin-bottom: 30px; }
}
@media (max-width: 520px) {
  .lp-h1 { letter-spacing: -.6px; }
  .lp-actions .btn { width: 100%; }
  .lp-float { display: none; }
  .lp-phone { transform: none; }
  .lp-cta { padding: 56px 0; }
}
