/* ============================================================
   DrexSheet — estilos de la hoja inferior reutilizable.
   Aspecto nativo estilo Meta: sube desde abajo, backdrop
   semitransparente, asa de arrastre, icono grande y acciones
   apiladas. Accent principal de Drex (#2F33B8).
   ============================================================ */
.drex-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 20, 30, 0.45);
  opacity: 0;
  transition: opacity 0.22s ease;
  z-index: 790;
  pointer-events: none;
}
.drex-sheet-backdrop--open {
  opacity: 1;
  pointer-events: auto;
}

.drex-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 800;
  background: #ffffff;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -8px 40px rgba(15, 20, 30, 0.22);
  max-height: 52vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateY(105%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0.35, 1);
  padding: 12px 24px calc(20px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  will-change: transform;
}
.drex-sheet--open {
  transform: translateY(0);
}

.drex-sheet-handle {
  width: 38px;
  height: 5px;
  border-radius: 999px;
  background: #d7dde4;
  margin: 2px auto 14px;
}

.drex-sheet-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #eef2f7;
  color: #5c6974;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.drex-sheet-close:active {
  background: #e2e8f0;
}

.drex-sheet-icon {
  width: 76px;
  height: 76px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px auto 16px;
}
.drex-sheet-icon--check {
  background: #e6f7ec;
  color: #16a34a;
}
.drex-sheet-icon--info {
  background: #e8eafc;
  color: #2f33b8;
}
.drex-sheet-icon--warn {
  background: #fef3e2;
  color: #d97706;
}

.drex-sheet-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  color: #1c2b4a;
  line-height: 1.3;
}

.drex-sheet-body {
  margin: 0 0 20px;
  font-size: 14px;
  color: #5c6974;
  line-height: 1.55;
}

.drex-sheet-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.drex-sheet-btn {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.08s ease, background 0.15s ease;
}
.drex-sheet-btn:active {
  transform: scale(0.985);
}
.drex-sheet-btn--primary {
  background: #2f33b8;
  color: #ffffff;
}
.drex-sheet-btn--primary:active {
  background: #262aa0;
}
.drex-sheet-btn--secondary {
  background: #eef2f7;
  color: #1c2b4a;
}
.drex-sheet-btn--secondary:active {
  background: #e2e8f0;
}

/* ============================================================
   Sección "Descargar mis datos": selector de formato segmentado
   ============================================================ */
.drex-format-seg {
  display: inline-flex;
  background: #eef2f7;
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
}
.drex-format-btn {
  padding: 8px 22px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
  color: #5c6974;
  background: transparent;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.drex-format-btn.active {
  background: #ffffff;
  color: #1c2b4a;
  box-shadow: 0 1px 4px rgba(15, 20, 30, 0.12);
}
