/*
 * QUOMYA — Consentimiento analitico opcional (telemetry-consent-v1)
 *
 * Superficie modal montada directamente en `document.body`, por encima de
 * cualquier contexto de apilamiento de pantalla. Nunca se muestra sobre la
 * puerta legal, ni en autenticacion, ni en verificacion de correo.
 *
 * Aceptar y rechazar comparten jerarquia visual: ninguna opcion se destaca
 * sobre la otra y no existe casilla premarcada.
 */

.telemetry-consent-root {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(10, 14, 24, 0.62);
  overflow-y: auto;
}

.telemetry-consent-root[hidden] {
  display: none;
}

.telemetry-consent-card {
  width: min(100%, 520px);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border-radius: 18px;
  background: var(--surface, #ffffff);
  color: var(--text, #10182a);
  box-shadow: 0 24px 60px rgba(8, 12, 22, 0.32);
}

.telemetry-consent-eyebrow {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted, #5a6478);
}

.telemetry-consent-card h2 {
  margin: 0;
  font-size: 1.24rem;
  line-height: 1.3;
}

.telemetry-consent-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
}

.telemetry-consent-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.telemetry-consent-note {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(96, 116, 156, 0.12);
  font-size: 0.88rem;
  line-height: 1.5;
}

.telemetry-consent-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.telemetry-consent-actions button {
  width: 100%;
  min-height: 46px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(96, 116, 156, 0.42);
  background: transparent;
  color: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
}

.telemetry-consent-actions button:focus-visible {
  outline: 3px solid rgba(64, 120, 220, 0.65);
  outline-offset: 2px;
}

.telemetry-consent-actions .telemetry-consent-later {
  border-style: dashed;
  font-weight: 500;
}

.telemetry-consent-footnote {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted, #5a6478);
}

.telemetry-consent-inline-link {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.telemetry-consent-settings-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(96, 116, 156, 0.16);
  font-size: 0.8rem;
  font-weight: 700;
}

.telemetry-consent-settings-meta {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted, #5a6478);
}

@media (min-width: 520px) {
  .telemetry-consent-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .telemetry-consent-actions button {
    flex: 1 1 180px;
    width: auto;
  }

  .telemetry-consent-actions .telemetry-consent-later {
    flex-basis: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .telemetry-consent-root,
  .telemetry-consent-card {
    transition: none;
  }
}
