/* ═══════════════════════════════════════════════════════════════════════
   Lazzo Bienestar · Cliente — Selector "¿Para quién es?" (C5.1)
   Overlay slide-in desde la derecha. Patrón flex column + sticky footer.
   Scope `.bcl-sq-*` para no chocar con resumen/cuestionario/welcome.
   ═══════════════════════════════════════════════════════════════════════ */

.bcl-sq-overlay {
  position: fixed; inset: 0;
  z-index: 1075;                          /* entre calendario 1050 y resumen 1080 */
  background: var(--bcl-bg, #fdf6f0);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.bcl-sq-overlay.open { transform: translateX(0); pointer-events: auto; }

.bcl-sq-inner {
  max-width: 720px;
  margin: 0 auto;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  color: var(--bcl-txt);
}
.bcl-sq-content-grow { flex: 1 0 auto; padding-bottom: 12px; }

/* ── Topbar ─────────────────────────────────────────────────────────────── */
.bcl-sq-topbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  padding: 14px 18px 8px;
  background: linear-gradient(180deg, var(--bcl-bg) 70%, transparent 100%);
}
.bcl-sq-back {
  width: 38px; height: 38px;
  border: 0; border-radius: 50%;
  background: rgba(255,255,255,.85);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 1px 6px -2px rgba(0,0,0,.10);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--bcl-txt);
  flex-shrink: 0;
}
.bcl-sq-back i { width: 18px; height: 18px; }
.bcl-sq-back:active { transform: scale(.95); }
.bcl-sq-title {
  flex: 1;
  text-align: center;
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-size: 18px;
  color: var(--bcl-txt);
}

/* ── Intro ──────────────────────────────────────────────────────────────── */
.bcl-sq-intro {
  margin: 4px 18px 14px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--bcl-muted);
}

/* ── Opciones ───────────────────────────────────────────────────────────── */
.bcl-sq-opts {
  display: flex; flex-direction: column;
  gap: 10px;
  padding: 0 18px;
}
.bcl-sq-opt {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 14px 14px 14px;
  background: white;
  border: 1.5px solid var(--bcl-line);
  border-radius: 16px;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.06s;
  width: 100%;
}
.bcl-sq-opt:hover {
  background: var(--bcl-bg-soft);
  border-color: color-mix(in srgb, var(--bcl-c1) 22%, var(--bcl-line));
}
.bcl-sq-opt:active { transform: scale(0.995); }
.bcl-sq-opt.sel {
  background: color-mix(in srgb, var(--bcl-c1) 6%, white);
  border-color: var(--bcl-c1);
  box-shadow: 0 4px 16px -10px rgba(155,127,212,.45);
}

.bcl-sq-opt-icon {
  width: 42px; height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  background: color-mix(in srgb, var(--bcl-c1) 10%, white);
  color: var(--bcl-c1-d);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.bcl-sq-opt-icon i { width: 20px; height: 20px; }
.bcl-sq-opt-icon.bcl-sq-opt-icon-warm {
  background: color-mix(in srgb, var(--bcl-c2) 12%, white);
  color: var(--bcl-c2-d);
}
.bcl-sq-opt.sel .bcl-sq-opt-icon {
  background: var(--bcl-grad);
  color: white;
}

.bcl-sq-opt-meta {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  gap: 2px;
}
.bcl-sq-opt-t {
  font-size: 14.5px; font-weight: 600;
  color: var(--bcl-txt);
}
.bcl-sq-opt-s {
  font-size: 12.5px; color: var(--bcl-muted); line-height: 1.4;
}

.bcl-sq-opt-check {
  width: 24px; height: 24px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid var(--bcl-line);
  display: inline-flex; align-items: center; justify-content: center;
  color: transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.bcl-sq-opt-check i { width: 14px; height: 14px; }
.bcl-sq-opt.sel .bcl-sq-opt-check {
  background: var(--bcl-c1);
  border-color: var(--bcl-c1);
  color: white;
}

/* ── Form menor externo ─────────────────────────────────────────────────── */
.bcl-sq-extform {
  margin: 12px 18px 0;
  padding: 16px;
  background: white;
  border: 1px solid var(--bcl-line);
  border-radius: 16px;
  display: flex; flex-direction: column; gap: 14px;
  animation: bcl-sq-fadein 0.22s ease-out;
}
@keyframes bcl-sq-fadein {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.bcl-sq-ext-row {
  display: flex; flex-direction: column; gap: 6px;
}
.bcl-sq-ext-row label {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--bcl-muted);
}
.bcl-sq-ext-row input[type="text"],
.bcl-sq-ext-row input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  border: 1.5px solid var(--bcl-line);
  border-radius: 12px;
  padding: 11px 13px;
  font: inherit;
  font-size: 15px;
  color: var(--bcl-txt);
  background: var(--bcl-bg-soft);
  transition: border-color 0.15s, background 0.15s;
}
.bcl-sq-ext-row input[type="text"]:focus,
.bcl-sq-ext-row input[type="date"]:focus {
  outline: none;
  border-color: var(--bcl-c1);
  background: white;
}
.bcl-sq-ext-row input[type="date"] {
  /* Safari: el input date tiene height extra. Normalizamos */
  min-height: 44px;
}
.bcl-sq-ext-hint {
  font-size: 12px;
  color: var(--bcl-muted);
  margin-top: 2px;
  min-height: 16px;
}
.bcl-sq-ext-hint.err { color: var(--bcl-red); font-weight: 600; }

.bcl-sq-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.bcl-sq-chip {
  border: 1.5px solid var(--bcl-line);
  border-radius: 999px;
  padding: 8px 14px;
  background: white;
  font: inherit;
  font-size: 13.5px;
  color: var(--bcl-txt);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.06s;
}
.bcl-sq-chip:hover {
  background: var(--bcl-bg-soft);
  border-color: color-mix(in srgb, var(--bcl-c1) 25%, var(--bcl-line));
}
.bcl-sq-chip:active { transform: scale(0.96); }
.bcl-sq-chip.sel {
  background: var(--bcl-c1);
  border-color: var(--bcl-c1);
  color: white;
  box-shadow: 0 4px 12px -6px rgba(155,127,212,.55);
}

/* ── Aviso menor ────────────────────────────────────────────────────────── */
.bcl-sq-aviso {
  margin: 14px 18px 4px;
  padding: 14px;
  display: flex; gap: 12px; align-items: flex-start;
  background: color-mix(in srgb, var(--bcl-c2) 8%, white);
  border: 1px solid color-mix(in srgb, var(--bcl-c2) 25%, transparent);
  border-radius: 14px;
}
.bcl-sq-aviso i {
  flex-shrink: 0;
  width: 22px; height: 22px;
  color: var(--bcl-c2-d);
  margin-top: 1px;
}
.bcl-sq-aviso-text {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 3px;
}
.bcl-sq-aviso-text strong {
  font-size: 13.5px;
  color: var(--bcl-txt);
}
.bcl-sq-aviso-text span {
  font-size: 12.5px;
  color: var(--bcl-muted);
  line-height: 1.55;
}

/* ── Footer CTA ─────────────────────────────────────────────────────────── */
.bcl-sq-cta {
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
  z-index: 10;
  margin-top: 14px;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  background: rgba(253,246,240,.95);
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  border-top: 1px solid var(--bcl-line);
  box-shadow: 0 -8px 24px -16px rgba(0,0,0,.08);
}
.bcl-sq-btn-primary {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  border: 0; border-radius: 14px;
  padding: 13px 18px;
  background: var(--bcl-grad);
  color: white;
  font: inherit; font-size: 15px; font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s, opacity 0.15s;
  box-shadow: 0 6px 18px -8px rgba(155,127,212,.55);
}
.bcl-sq-btn-primary:hover:not([disabled]) {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -10px rgba(155,127,212,.7);
}
.bcl-sq-btn-primary:active:not([disabled]) { transform: translateY(0); }
.bcl-sq-btn-primary i { width: 16px; height: 16px; }
.bcl-sq-btn-primary[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}
