/* ════════════════════════════════════════════════════════════════════
   Consent banner LPD (Suisse) — Bloque 14.2 Fase 1 · Lavanchy Digital
   Banner sticky bottom + modal granular. Vanilla, sin dependencias.
   Paleta Arilashes (lila). z-index 99999 (por encima de todo, incl. modales).
   ════════════════════════════════════════════════════════════════════ */

:root {
  --lc-purple: #7C5CB3;
  --lc-purple-d: #6a4ca0;
  --lc-purple-soft: rgba(155, 141, 212, 0.12);
  --lc-text: #2D2A4E;
  --lc-muted: #6b6480;
  --lc-border: #e6e1f2;
}

/* ── Banner ── */
.lc-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  margin: 0 auto;
  max-width: 480px;
  background: #ffffff;
  border: 1px solid var(--lc-border);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(45, 42, 78, 0.18);
  padding: 20px 22px;
  z-index: 99999;
  font-family: 'Poppins', system-ui, sans-serif;
  color: var(--lc-text);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .35s ease, transform .35s ease;
}
.lc-banner.lc-visible { opacity: 1; transform: translateY(0); }

.lc-banner__title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 8px;
}
.lc-banner__text {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--lc-muted);
  margin: 0 0 16px;
}
.lc-banner__text a {
  color: var(--lc-purple);
  text-decoration: underline;
}
.lc-banner__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── Botones ── */
.lc-btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 11px 18px;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .2s, border-color .2s, color .2s, transform .1s;
  text-align: center;
  line-height: 1.2;
}
.lc-btn:active { transform: translateY(1px); }
.lc-btn--accept { background: var(--lc-purple); color: #fff; }
.lc-btn--accept:hover { background: var(--lc-purple-d); }
.lc-btn--refuse { background: #fff; color: var(--lc-muted); border-color: var(--lc-border); }
.lc-btn--refuse:hover { border-color: var(--lc-muted); color: var(--lc-text); }
.lc-btn--link {
  background: none;
  color: var(--lc-purple);
  border: none;
  text-decoration: underline;
  padding: 6px;
  font-weight: 500;
}
.lc-btn--link:hover { color: var(--lc-purple-d); }

/* ── Modal granular ── */
.lc-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  padding: 16px;
}
.lc-modal.lc-visible { display: flex; }
.lc-modal__card {
  background: #fff;
  border-radius: 18px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 26px;
  font-family: 'Poppins', system-ui, sans-serif;
  color: var(--lc-text);
  box-shadow: 0 20px 60px rgba(45, 42, 78, 0.3);
}
.lc-modal__title { font-size: 18px; font-weight: 600; margin: 0 0 6px; }
.lc-modal__intro { font-size: 12.5px; line-height: 1.6; color: var(--lc-muted); margin: 0 0 18px; }

/* ── Filas de toggle ── */
.lc-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--lc-border);
}
.lc-row__body { flex: 1; }
.lc-row__name { font-size: 13.5px; font-weight: 600; margin: 0 0 3px; }
.lc-row__desc { font-size: 11.5px; line-height: 1.55; color: var(--lc-muted); margin: 0; }

/* ── Toggle iOS-style ── */
.lc-switch { position: relative; flex-shrink: 0; width: 44px; height: 26px; margin-top: 2px; }
.lc-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.lc-slider {
  position: absolute; inset: 0; cursor: pointer;
  background: #cfc8e0; border-radius: 26px; transition: background .25s;
}
.lc-slider::before {
  content: ''; position: absolute; height: 20px; width: 20px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: transform .25s; box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.lc-switch input:checked + .lc-slider { background: var(--lc-purple); }
.lc-switch input:checked + .lc-slider::before { transform: translateX(18px); }
.lc-switch input:disabled + .lc-slider { background: var(--lc-purple); opacity: .55; cursor: not-allowed; }

.lc-modal__actions { display: flex; gap: 10px; margin-top: 22px; }
.lc-modal__actions .lc-btn { flex: 1; }

/* ── Móvil (320px+) ── */
@media (max-width: 380px) {
  .lc-banner { left: 10px; right: 10px; bottom: 10px; padding: 16px 16px; }
  .lc-banner__title { font-size: 14px; }
  .lc-modal__card { padding: 20px; }
}
