/* ─── Lazzo Bienestar · Cliente — Pad firma canvas (C5.2.C.1) ──────────────
   Overlay z=1300 (sobre compromiso 1095 + sobre overlay firma B 1200,
   bajo toast 1500). Subido 2026-05-17 al añadir C5.7.4: el pad debe
   poder cubrir el overlay de firma del 2º progenitor.
   Layout flex column + canvas que ocupa el grow disponible para que en
   móviles bajos quede una zona de firma usable sin scrollear.
   ───────────────────────────────────────────────────────────────────── */

.bcl-fc-overlay {
  position: fixed;
  inset: 0;
  z-index: 1300;
  background: #f7f1eb;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  transform: translateY(100%);
  transition: transform .28s ease;
  pointer-events: none;
}
.bcl-fc-overlay.open {
  transform: translateY(0);
  pointer-events: auto;
}

.bcl-fc-inner {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom) 0;
  background: #f7f1eb;
}

.bcl-fc-topbar {
  flex: 0 0 auto;
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(247, 241, 235, .96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.bcl-fc-back {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 0;
  background: rgba(0, 0, 0, .04);
  color: #2a2a2a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.bcl-fc-back:hover { background: rgba(0, 0, 0, .07); }
.bcl-fc-back svg { width: 22px; height: 22px; }

.bcl-fc-title {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
}

.bcl-fc-aviso {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 14px 0 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(155, 127, 212, .10);
  color: #5b4790;
  font-size: 13px;
  line-height: 1.45;
}
.bcl-fc-aviso svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 1px; }

.bcl-fc-canvas-wrap {
  flex: 1 1 auto;
  position: relative;
  margin: 14px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px dashed rgba(0, 0, 0, .18);
  overflow: hidden;
  min-height: 200px;
  touch-action: none;
}

.bcl-fc-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
  touch-action: none;
}

.bcl-fc-baseline {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 28%;
  border-bottom: 1px dashed rgba(0, 0, 0, .15);
  pointer-events: none;
}
.bcl-fc-baseline-lbl {
  position: absolute;
  left: 8%;
  bottom: calc(28% - 18px);
  font-size: 11px;
  font-style: italic;
  color: rgba(0, 0, 0, .32);
  letter-spacing: .02em;
  pointer-events: none;
}

.bcl-fc-cta {
  flex: 0 0 auto;
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  gap: 10px;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom)) 14px;
  background: rgba(247, 241, 235, .96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(0, 0, 0, .06);
}

.bcl-fc-btn-secondary,
.bcl-fc-btn-primary {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  transition: opacity .18s ease, transform .18s ease;
}
.bcl-fc-btn-secondary {
  background: rgba(0, 0, 0, .05);
  color: #2a2a2a;
}
.bcl-fc-btn-secondary:hover { background: rgba(0, 0, 0, .08); }
.bcl-fc-btn-primary {
  background: linear-gradient(135deg, #9b7fd4, #b89aff);
  color: #fff;
  box-shadow: 0 4px 14px rgba(155, 127, 212, .32);
}
.bcl-fc-btn-primary:hover { transform: translateY(-1px); }
.bcl-fc-btn-primary[disabled] {
  opacity: .42;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.bcl-fc-btn-secondary svg,
.bcl-fc-btn-primary svg { width: 18px; height: 18px; }

@media (max-width: 360px) {
  .bcl-fc-btn-secondary,
  .bcl-fc-btn-primary {
    padding: 12px 12px;
    font-size: 14px;
  }
  .bcl-fc-btn-secondary span,
  .bcl-fc-btn-primary span { letter-spacing: -.01em; }
}
