/* Veelo · app de clientes. Sin build: CSS a mano, mobile first. */
:root {
  --bg: #0a0820;
  --bg-2: #120d2e;
  --card: rgba(255, 255, 255, 0.045);
  --card-hi: rgba(255, 255, 255, 0.075);
  --line: rgba(255, 255, 255, 0.09);
  --text: #f4f1ff;
  --muted: #a8a1c9;
  --faint: #6f6895;
  --violet: #8b5cf6;
  --violet-2: #6d28d9;
  --magenta: #d946ef;
  --pink: #f0abfc;
  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #fb7185;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 40px -12px rgba(124, 58, 237, 0.45);
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(217, 70, 239, 0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(109, 40, 217, 0.28), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--pink); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: 0; }
.caps { text-transform: uppercase; letter-spacing: 0.18em; font-size: 11px; font-weight: 600; color: var(--muted); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.center { text-align: center; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack-lg { display: flex; flex-direction: column; gap: 22px; }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Estructura */
.shell { max-width: 640px; margin: 0 auto; padding: 0 16px calc(96px + var(--safe-b)); }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; margin: 0 -16px 8px;
  background: linear-gradient(180deg, rgba(10, 8, 32, 0.92), rgba(10, 8, 32, 0.75));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar .logo { height: 26px; width: auto; }
.topbar .actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--line); color: var(--text);
}
.icon-btn svg { width: 20px; height: 20px; }
.dot-badge {
  position: absolute; top: 6px; right: 7px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--magenta); box-shadow: 0 0 0 2px var(--bg);
}

.page-head { padding: 14px 0 6px; }
.page-head h1 { font-size: 28px; }
.page-head h1 .serif { font-size: 34px; }
.page-head p { margin-top: 4px; }

/* Navegación inferior */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; justify-content: center;
  padding: 8px 10px calc(8px + var(--safe-b));
  background: rgba(14, 10, 38, 0.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.tabbar nav { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; max-width: 520px; }
.tabbar a {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 0; font-size: 11px; font-weight: 500; color: var(--faint); text-decoration: none;
}
.tabbar a svg { width: 22px; height: 22px; }
.tabbar a.on { color: var(--text); }
.tabbar a.on svg { color: var(--pink); filter: drop-shadow(0 0 8px rgba(217, 70, 239, 0.6)); }

/* Tarjetas */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px;
}
.card.glow { background: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(217, 70, 239, 0.1)); border-color: rgba(217, 70, 239, 0.3); box-shadow: var(--shadow); }
.card h2 { font-size: 18px; }
.card h3 { font-size: 16px; }
.divider { height: 1px; background: var(--line); margin: 4px 0; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent;
  font: 600 14px/1 var(--sans); letter-spacing: 0.02em; cursor: pointer;
  color: #fff; background: linear-gradient(135deg, var(--violet), var(--magenta));
  box-shadow: 0 8px 24px -10px rgba(217, 70, 239, 0.8);
  transition: transform 0.15s ease, filter 0.15s ease, opacity 0.15s ease;
  text-decoration: none !important; white-space: nowrap;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(0.97); }
.btn[disabled], .btn.is-disabled { opacity: 0.45; pointer-events: none; box-shadow: none; }
.btn.ghost { background: transparent; border-color: rgba(255, 255, 255, 0.22); box-shadow: none; color: var(--text); }
.btn.soft { background: var(--card-hi); border-color: var(--line); box-shadow: none; color: var(--text); }
.btn.danger { background: transparent; border-color: rgba(251, 113, 133, 0.45); color: var(--bad); box-shadow: none; }
.btn.block { width: 100%; }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: 13px; }
.btn.wa { background: #1fa855; box-shadow: none; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--pink); cursor: pointer; }

/* Chips y pestañas de días */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--muted); font: 500 13px var(--sans); cursor: pointer;
}
.chip.on { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--violet), var(--magenta)); }

.days { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(54px, 1fr); gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.days::-webkit-scrollbar { display: none; }
.day {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 0; border-radius: 14px; border: 1px solid var(--line); background: var(--card);
  color: var(--muted); cursor: pointer; font-family: var(--sans);
}
.day .dname { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; }
.day .dnum { font-size: 18px; font-weight: 600; color: var(--text); }
.day.on { background: linear-gradient(160deg, var(--violet), var(--magenta)); border-color: transparent; color: rgba(255, 255, 255, 0.85); }
.day.on .dnum { color: #fff; }
.day.closed { opacity: 0.4; }

/* Clase */
.session { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: start; }
.session .time { font-size: 20px; font-weight: 600; line-height: 1; padding-top: 3px; }
.session .time small { display: block; margin-top: 5px; font-size: 11px; font-weight: 500; color: var(--faint); }
.session .name { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; }
.swatch { width: 8px; height: 8px; border-radius: 50%; flex: none; box-shadow: 0 0 10px currentColor; }
.session .meta { margin-top: 3px; font-size: 13px; color: var(--muted); }
.session .foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.spots { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.spots .bar { width: 64px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.spots .bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--violet), var(--magenta)); }
.is-mine { border-color: rgba(52, 211, 153, 0.45); background: linear-gradient(135deg, rgba(52, 211, 153, 0.08), rgba(139, 92, 246, 0.06)); }

/* Insignias */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em; border: 1px solid var(--line); color: var(--muted);
}
.badge.ok { color: var(--ok); border-color: rgba(52, 211, 153, 0.35); background: rgba(52, 211, 153, 0.08); }
.badge.warn { color: var(--warn); border-color: rgba(251, 191, 36, 0.35); background: rgba(251, 191, 36, 0.08); }
.badge.bad { color: var(--bad); border-color: rgba(251, 113, 133, 0.35); background: rgba(251, 113, 133, 0.08); }
.badge.vio { color: var(--pink); border-color: rgba(217, 70, 239, 0.35); background: rgba(217, 70, 239, 0.1); }

/* Avisos en pantalla */
.flash { padding: 12px 14px; border-radius: var(--radius-sm); font-size: 14px; border: 1px solid; }
.flash.ok { color: #d1fae5; border-color: rgba(52, 211, 153, 0.35); background: rgba(52, 211, 153, 0.1); }
.flash.bad { color: #ffe4e6; border-color: rgba(251, 113, 133, 0.4); background: rgba(251, 113, 133, 0.1); }
.flash.info { color: #ede9fe; border-color: rgba(139, 92, 246, 0.4); background: rgba(139, 92, 246, 0.12); }

/* Formularios */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 500; color: var(--muted); }
.input {
  width: 100%; min-height: 48px; padding: 0 14px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.05); color: var(--text);
  font: 400 16px var(--sans); outline: none;
}
.input:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25); }
.error { font-size: 13px; color: var(--bad); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--violet); flex: none; }

/* Hero de entrada */
.hero { min-height: 100dvh; display: flex; flex-direction: column; justify-content: space-between; padding: 28px 22px calc(28px + var(--safe-b)); max-width: 520px; margin: 0 auto; }
.hero .logo { height: 40px; width: auto; margin: 10px auto 0; }
.hero h1 { font-size: 40px; font-weight: 300; text-align: center; }
.hero h1 .serif { display: block; font-size: 58px; line-height: 1; background: linear-gradient(90deg, #fff, var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth { max-width: 440px; margin: 0 auto; padding: 28px 20px 40px; }
.auth .logo { height: 34px; width: auto; margin: 6px auto 26px; }

/* Lista simple */
.list { display: flex; flex-direction: column; }
.list > * { padding: 12px 0; border-bottom: 1px solid var(--line); }
.list > *:last-child { border-bottom: 0; }

/* Modal de confirmación */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; background: rgba(5, 3, 18, 0.65); backdrop-filter: blur(4px); }
.sheet { width: 100%; max-width: 520px; padding: 22px 18px calc(22px + var(--safe-b)); border-radius: 22px 22px 0 0; background: var(--bg-2); border: 1px solid var(--line); box-shadow: 0 -20px 60px -20px rgba(139, 92, 246, 0.5); }
@media (min-width: 700px) { .sheet-wrap { align-items: center; } .sheet { border-radius: 22px; } }

.install { display: flex; gap: 12px; align-items: center; }
.install img { width: 44px; height: 44px; border-radius: 12px; }
.prose { color: var(--muted); font-size: 14px; }
.prose h2 { color: var(--text); font-size: 17px; margin: 22px 0 8px; }
.prose p, .prose li { margin: 0 0 10px; }
.prose ul { padding-left: 20px; }
.prose strong { color: var(--text); }
.placeholder { background: rgba(251, 191, 36, 0.15); color: var(--warn); padding: 0 4px; border-radius: 4px; }
[x-cloak] { display: none !important; }
