/* ===== _auth ===== */
/* ==========================================================================
   Kit compartido de las pantallas de autenticación (login / recuperar / registro).
   Fuente: lib/auth-ui.tsx + IniciarSesionClient.tsx (securex-home Next.js).
   Son páginas standalone: NO llevan navbar ni footer del marketing.
   Reglas de marca: título en Stratos, cuerpo en Roboto, azul #1077FD.
   ========================================================================== */

/* ── Lienzo ──────────────────────────────────────────────────────────────── */
.auth-main {
  background: #F9FAFB;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 0 40px;
}
.auth-wrap { width: 100%; padding: 0 20px; }
.auth-wrap--login { max-width: 1120px; }
.auth-wrap--narrow { max-width: 520px; }
@media (min-width: 768px) {
  .auth-main { padding: 48px 0; }
  .auth-wrap { padding: 0 clamp(32px, 4vw, 56px); }
}

/* Grid del login (form + promo). Una columna hasta 1024px. */
.auth-grid { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: stretch; }
@media (min-width: 1024px) {
  .auth-grid { grid-template-columns: 1.05fr 0.95fr; gap: 32px; }
}

/* ── Tarjeta ─────────────────────────────────────────────────────────────── */
.auth-card {
  background: #fff;
  border: 1.5px solid #E8ECF1;
  border-radius: 28px;
  padding: 32px 24px 36px;
  box-shadow: 0 8px 40px rgba(var(--sx-blue-rgb), .05);
  display: flex;
  flex-direction: column;
  animation: auth-in .55s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@media (min-width: 768px) { .auth-card { padding: 44px 48px; } }
@keyframes auth-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .auth-card { animation: none; } }

/* Barra superior: volver + logo + espaciador */
.auth-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
@media (min-width: 768px) { .auth-topbar { margin-bottom: 36px; } }
.auth-back {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #F3F4F6; color: var(--sx-text-muted); text-decoration: none;
  transition: background .2s ease, transform .12s ease;
  position: relative;
}
/* B6: área táctil >=44px sin cambiar el círculo visible de 40px */
.auth-back::before { content: ""; position: absolute; inset: -2px; }
.auth-back:hover { background: var(--sx-input-border); }
.auth-back:active { transform: scale(.94); }
.auth-logo { height: 28px; max-width: 130px; object-fit: contain; display: block; }
.auth-topbar-spacer { width: 40px; height: 40px; }

/* ── Tipografía ──────────────────────────────────────────────────────────── */
.auth-h1 {
  font-family: var(--sx-font-title);
  font-weight: 700;
  font-size: clamp(1.9rem, 8vw, 2.2rem);
  color: var(--sx-text);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}
@media (min-width: 768px) { .auth-h1 { font-size: clamp(2rem, 3.2vw, 2.6rem); } }
.auth-sub {
  font-family: var(--sx-font-body);
  font-weight: 400; font-size: 15px;
  color: var(--sx-text-muted);
  margin: 0 0 16px;
  line-height: 1.65;
}
.auth-link { color:var(--sx-blue-texto); text-decoration: none; font-weight: 600; }
.auth-link:hover { text-decoration: underline; }

/* Social proof (rating + clientes) */
.auth-social {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: #F0F9FF;
  border: 1px solid #DBEAFE;
  border-radius: 12px;
  margin-bottom: 28px;
}
.auth-stars { display: flex; gap: 1px; }
.auth-social-score { font-family: var(--sx-font-body); font-size: 13px; font-weight: 600; color: #1E3A8A; }
.auth-social-note { font-family: var(--sx-font-body); font-size: 12px; font-weight: 400; color: var(--sx-text-muted); }

/* ── Banner de error ─────────────────────────────────────────────────────── */
.auth-error {
  background: #FEF2F2;
  border: 1.5px solid #FECACA;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 18px;
}
.auth-error svg { flex-shrink: 0; margin-top: 1px; }
.auth-error p { font-family: var(--sx-font-body); font-size: 14px; color: #B91C1C; margin: 0; line-height: 1.5; }
.auth-error[hidden] { display: none; }

/* ── Formulario ──────────────────────────────────────────────────────────── */
.auth-form { display: flex; flex-direction: column; gap: 14px; }

/* Floating input: el label vive dentro y se eleva al enfocar o con valor.
   Truco CSS: placeholder=" " permite usar :placeholder-shown como "vacío". */
.auth-field { position: relative; }
.auth-field input {
  font-family: var(--sx-font-body);
  width: 100%; height: 58px;
  padding: 16px;
  font-size: 16px; font-weight: 400; color: var(--sx-text);
  background: #fff;
  border: 1.5px solid var(--sx-input-border);
  border-radius: 14px;
  transition: border-color .2s ease, box-shadow .2s ease, padding .18s ease;
  box-sizing: border-box;
}
.auth-field.has-toggle input { padding-right: 48px; }
.auth-field input:focus { border-color: var(--sx-blue); box-shadow: 0 0 0 3px rgba(var(--sx-blue-rgb), .12); }
/* Al flotar (foco o con valor) subimos el texto para dejar sitio al label */
.auth-field input:focus,
.auth-field input:not(:placeholder-shown) { padding-top: 22px; padding-bottom: 8px; }

.auth-field label {
  position: absolute;
  left: 16px; right: 16px; top: 19px;
  font-family: var(--sx-font-body);
  font-size: 14px; font-weight: 400; color: var(--sx-text-muted);
  pointer-events: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: top .18s ease, font-size .18s ease, color .2s ease, letter-spacing .18s ease;
}
.auth-field input:focus + label,
.auth-field input:not(:placeholder-shown) + label {
  top: 9px; font-size: 11px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; color: var(--sx-text-muted);
}
.auth-field input:focus + label { color:var(--sx-blue-texto); }

.auth-field.has-error input { border-color: #FCA5A5; box-shadow: 0 0 0 3px rgba(239, 68, 68, .12); }
.auth-field.has-error label { color: #DC2626; }

/* Ojo mostrar/ocultar contraseña */
.auth-pw-toggle {
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  padding: 6px; color: #9CA3AF;
  display: flex; align-items: center; justify-content: center;
}
/* B6: área táctil >=44px sin mover el icono (18px + padding se mantienen) */
.auth-pw-toggle::before { content: ""; position: absolute; inset: -7px; }
.auth-pw-toggle .icon-hide { display: none; }
.auth-pw-toggle.is-visible .icon-show { display: none; }
.auth-pw-toggle.is-visible .icon-hide { display: block; }

/* Fila: mantener sesión + olvidaste contraseña */
.auth-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: 4px; margin-bottom: 6px;
}
.auth-remember { display: flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.auth-remember input { width: 16px; height: 16px; cursor: pointer; accent-color: var(--sx-blue); }
.auth-remember span { font-family: var(--sx-font-body); font-size: 13px; font-weight: 500; color: #4B5563; }
.auth-forgot { font-family: var(--sx-font-body); font-size: 13px; font-weight: 500; color:var(--sx-blue-texto); text-decoration: none; }
.auth-forgot:hover { text-decoration: underline; }
/* B6: área táctil vertical >=44px sin alterar el layout (::before fuera de flujo) */
.auth-link, .auth-forgot { position: relative; }
.auth-link::before, .auth-forgot::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); height: 44px; }

/* Botón enviar: reusa sx-btn pero a todo el ancho + estado deshabilitado */
.auth-submit { width: 100%; }
.sx-btn--primary[disabled] {
  background-color: #CBD5E1;
  background-image: none;
  color: #9CA3AF;
  box-shadow: none;
  cursor: not-allowed;
}
/* Spinner de "cargando" */
.auth-spinner {
  width: 18px; height: 18px; display: inline-block;
  border: 2px solid rgba(255, 255, 255, .5);
  border-top-color: #fff;
  border-radius: 50%;
  animation: auth-spin .7s linear infinite;
  vertical-align: -3px;
}
@keyframes auth-spin { to { transform: rotate(360deg); } }

/* Nota de confianza */
.auth-trust {
  display: flex; align-items: center; justify-content: center;
  gap: 7px; margin-top: 28px;
}
.auth-trust p {
  font-family: var(--sx-font-body);
  font-weight: 400; font-size: 11px; color: var(--sx-text-muted);
  margin: 0; letter-spacing: .04em;
}

/* ── Tarjeta de promo (columna derecha del login) ────────────────────────── */
.auth-promo {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  background: linear-gradient(135deg, var(--sx-blue) 0%, var(--sx-cyan) 100%);
  box-shadow: 0 8px 32px rgba(var(--sx-blue-rgb), .12);
  aspect-ratio: 16 / 9;
  display: flex; align-items: center; justify-content: center;
  transition: box-shadow .3s ease, transform .3s ease;
}
@media (min-width: 1024px) { .auth-promo { border-radius: 28px; aspect-ratio: auto; } }
.auth-promo:hover { box-shadow: 0 16px 48px rgba(var(--sx-blue-rgb), .22); }
@media (min-width: 1024px) { .auth-promo:hover { transform: translateY(-4px); } }
.auth-promo-img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; display: block; }
/* La imagen se muestra por defecto sobre el gradiente. El fallback (texto) solo
   aparece si la imagen falla en cargar. */
.auth-promo.img-failed .auth-promo-img { display: none; }
.auth-promo.img-failed .auth-promo-fallback { display: flex; }
.auth-promo-fallback {
  position: absolute; inset: 0; z-index: 0;
  display: none; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 0 32px; color: #fff;
}
.auth-promo-fallback-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.auth-promo-fallback h3 { font-family: var(--sx-font-title); font-weight: 700; font-size: 26px; margin: 0 0 8px; letter-spacing: -0.02em; }
.auth-promo-fallback p { font-family: var(--sx-font-body); font-weight: 400; font-size: 14px; margin: 0; opacity: .9; line-height: 1.5; max-width: 280px; }

/* ── Estado de éxito (recuperar cuenta) ──────────────────────────────────── */
.auth-success-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, #DBEAFE, #BFDBFE);
  display: flex; align-items: center; justify-content: center;
  margin: 8px 0 24px;
}
.auth-note {
  padding: 14px 16px; margin: 20px 0 24px;
  background: #F9FAFB; border: 1px solid #E8ECF1; border-radius: 12px;
}
.auth-note p { font-family: var(--sx-font-body); font-weight: 400; font-size: 13px; color: var(--sx-text-muted); margin: 0; line-height: 1.55; }
.auth-note strong { font-weight: 600; color: var(--sx-text); }
.auth-linkbtn { font-family: var(--sx-font-body); background: none; border: none; padding: 0; color:var(--sx-blue-texto); font-weight: 500; font-size: 13px; cursor: pointer; }
.auth-back-link { font-family: var(--sx-font-body); font-size: 13px; font-weight: 500; color: var(--sx-text-muted); text-decoration: none; }
.auth-back-link:hover { color: var(--sx-text); }

/* ===== iniciar-sesion ===== */
/* ==========================================================================
   Iniciar sesión — animación de ingreso.
   Al enviar: el botón pasa a spinner, luego se vuelve verde con un check que se
   dibuja, aparece el mensaje y la tarjeta sale con un fundido. Recién ahí se
   dispara el POST real a Spring (ver iniciar-sesion.js).
   Todo con transform/opacity para que lo resuelva el compositor.
   ========================================================================== */

/* El botón mantiene su tamaño mientras cambia de estado (no salta el layout) */
.auth-submit{
  position:relative; overflow:hidden;
  transition:background-color .35s var(--sx-ease), box-shadow .35s var(--sx-ease);
}
/* En éxito el fondo verde tapa el azul; el radial-reveal del sx-btn se anula */
.auth-submit.is-success{
  background-color:var(--sx-ok) !important;
  background-image:none !important;
  box-shadow:0 8px 26px rgba(22,163,74,.42);
}
.auth-submit.is-success:hover{ transform:none; }

/* Check dibujado a mano (stroke-dashoffset) */
.auth-check{
  position:absolute; inset:0; margin:auto;
  width:26px; height:26px;
  opacity:0; transform:scale(.6);
  transition:opacity .2s var(--sx-ease), transform .32s var(--sx-ease);
}
.auth-submit.is-success .auth-check{ opacity:1; transform:scale(1); }
.auth-check path{
  stroke:#fff; stroke-width:3; stroke-linecap:round; stroke-linejoin:round; fill:none;
  stroke-dasharray:32; stroke-dashoffset:32;
}
.auth-submit.is-success .auth-check path{
  animation:auth-check-draw .42s var(--sx-ease) .06s forwards;
}
@keyframes auth-check-draw{ to{ stroke-dashoffset:0 } }

/* El texto del botón se desvanece cuando entra el spinner/check */
.auth-submit .auth-submit-label{
  display:inline-block;
  transition:opacity .18s var(--sx-ease), transform .18s var(--sx-ease);
}
.auth-submit.is-loading .auth-submit-label,
.auth-submit.is-success .auth-submit-label{ opacity:0; transform:translateY(-4px); }

/* Mensaje bajo el botón */
.auth-welcome{
  display:block; text-align:center;
  font-family:var(--sx-font-body); font-weight:600; font-size:14px;
  color:var(--sx-ok-text);
  margin-top:12px; height:0;
  opacity:0; transform:translateY(-6px);
  transition:opacity .3s var(--sx-ease), transform .3s var(--sx-ease);
}
.auth-welcome.is-in{ opacity:1; transform:none; height:auto; }

/* Salida de la tarjeta: se aleja y se funde mientras el navegador ya está
   procesando el POST, así el salto de página no se siente seco. */
.auth-card{ transition:opacity .45s var(--sx-ease), transform .45s var(--sx-ease), filter .45s var(--sx-ease); }
.auth-card.is-leaving{ opacity:0; transform:translateY(-10px) scale(.975); filter:blur(3px); }

@media (prefers-reduced-motion:reduce){
  /* Sin coreografía: el estado de éxito se ve, pero sin dibujo ni salida. */
  .auth-check, .auth-submit.is-success .auth-check{ transition:none; }
  .auth-check path{ stroke-dashoffset:0; animation:none; }
  .auth-card.is-leaving{ opacity:1; transform:none; filter:none; }
  .auth-welcome{ transition:none; }
}

/* ===== iniciar-sesion-registro ===== */
/* ==========================================================================
   Crear cuenta — estilos específicos del wizard de registro.
   Complementa el kit compartido css/auth.css (reutiliza .auth-main,
   .auth-wrap--login, .auth-grid, .auth-card, .auth-topbar, .auth-field,
   .auth-promo, etc.). Aquí solo va lo propio del wizard: stepper, tarjetas de
   perfil, fuerza de contraseña, badges, PEP, ilustración DNI, toggles Sí/No,
   modal de referido y transiciones entre pasos.
   ========================================================================== */

/* La tarjeta del registro puede crecer bastante (paso personal/empresa): que la
   promo la acompañe pegada arriba al hacer scroll en desktop. */
@media (min-width: 1024px) {
  .sx-reg-promo { position: sticky; top: 48px; align-self: start; height: auto; min-height: 100%; }
}

/* ── Barra superior: contador de paso ─────────────────────────────────────── */
.sx-reg-topbar { margin-bottom: 20px; }
.sx-reg-stepcount {
  font-family: var(--sx-font-body);
  font-size: 12px; font-weight: 700; color: var(--sx-text-muted);
  letter-spacing: .06em; text-align: right;
}

/* ── Barra de progreso ────────────────────────────────────────────────────── */
.sx-reg-progress {
  width: 100%; height: 4px;
  background: #F3F4F6; border-radius: 999px;
  margin-bottom: 28px; overflow: hidden;
}
.sx-reg-progress-fill {
  height: 100%; width: 20%;
  background: linear-gradient(90deg, var(--sx-blue), var(--sx-cyan));
  border-radius: 999px;
  transition: width .45s cubic-bezier(0.165, 0.84, 0.44, 1);
}
@media (prefers-reduced-motion: reduce) { .sx-reg-progress-fill { transition: none; } }

/* ── Título / subtítulo del paso ──────────────────────────────────────────── */
.sx-reg-h1 { line-height: 1.1; margin: 0 0 8px; }
.sx-reg-sub {
  font-family: var(--sx-font-body);
  font-weight: 400; font-size: 14px; color: var(--sx-text-muted);
  margin: 0 0 24px; line-height: 1.6;
}
.sx-reg-fieldlabel {
  font-family: var(--sx-font-body);
  font-size: 11px; font-weight: 600; color: var(--sx-text-muted);
  margin: 4px 0 8px; letter-spacing: .04em; text-transform: uppercase;
}

/* ── Pasos + transición (fade/slide) ──────────────────────────────────────── */
.sx-reg-steps { position: relative; }
.sx-step { animation: sx-step-in .35s cubic-bezier(0.165, 0.84, 0.44, 1) both; }
.sx-step[hidden] { display: none; }
@keyframes sx-step-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.sx-step.is-back { animation-name: sx-step-in-back; }
@keyframes sx-step-in-back { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sx-step, .sx-step.is-back { animation: none; } }

.sx-reg-fields { display: flex; flex-direction: column; gap: 14px; }
.sx-reg-fields--wide { gap: 18px; }
.sx-reg-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .sx-reg-grid-2 { grid-template-columns: 1fr; } }

/* ── Selección de perfil (paso tipo) ──────────────────────────────────────── */
.sx-reg-profiles { display: grid; gap: 14px; }
.sx-reg-profile {
  display: flex; align-items: center; gap: 16px;
  width: 100%; padding: 20px 22px;
  background: #fff; border: 2px solid var(--sx-input-border); border-radius: 18px;
  cursor: pointer; text-align: left;
  transition: border-color .25s ease, background .25s ease, transform .12s ease;
}
.sx-reg-profile:hover { border-color: #C7D2FE; }
.sx-reg-profile:active { transform: scale(.99); }
.sx-reg-profile.is-active { background: var(--sx-fondo-card-azul); border-color: var(--sx-blue); }
.sx-reg-profile-icon { flex-shrink: 0; opacity: .85; transition: opacity .25s ease; }
/* En pantallas muy angostas los 158px de costos fijos (padding 22x2, icono 56,
   radio 22 y dos gaps de 16) no dejaban lugar al texto y la tarjeta desbordaba
   el viewport. Achicando icono, padding y gap se liberan 48px. */
@media (max-width:359.98px){
  .sx-reg-profile { padding: 16px 14px; gap: 12px; }
  .sx-reg-profile-icon { width: 40px; height: 40px; }
  .sx-reg-profile-icon svg { width: 100%; height: 100%; }
}
.sx-reg-profile.is-active .sx-reg-profile-icon { opacity: 1; }
.sx-reg-profile-body { flex: 1; min-width: 0; }
.sx-reg-profile-title { display: block; font-family: var(--sx-font-body); font-weight: 600; font-size: 16px; color: var(--sx-text); margin-bottom: 3px; }
.sx-reg-profile-desc { display: block; font-family: var(--sx-font-body); font-weight: 400; font-size: 13px; color: var(--sx-text-muted); line-height: 1.5; }
.sx-reg-radio {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid #D1D5DB; background: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: all .25s ease;
}
.sx-reg-radio svg { opacity: 0; }
.sx-reg-profile.is-active .sx-reg-radio { border-color: var(--sx-blue); background: var(--sx-blue); }
.sx-reg-profile.is-active .sx-reg-radio svg { opacity: 1; }

/* ── Selects con floating label (JS togglea is-float / is-focus) ───────────── */
.auth-field--select { position: relative; }
.auth-field--select select {
  font-family: var(--sx-font-body);
  width: 100%; height: 58px;
  padding: 16px 40px 16px 16px;
  font-size: 16px; font-weight: 400; color: transparent;
  background: #fff; border: 1.5px solid var(--sx-input-border); border-radius: 14px;
  outline: none; box-sizing: border-box; cursor: pointer;
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  transition: border-color .2s ease, box-shadow .2s ease, padding .18s ease, color .2s ease;
}
.auth-field--select.is-float select { color: var(--sx-text); padding-top: 22px; padding-bottom: 8px; }
.auth-field--select.is-focus select { border-color: var(--sx-blue); box-shadow: 0 0 0 3px rgba(var(--sx-blue-rgb), .12); }
.auth-field--select label {
  position: absolute; left: 16px; right: 40px; top: 19px;
  font-family: var(--sx-font-body);
  font-size: 14px; font-weight: 400; color: var(--sx-text-muted);
  pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: top .18s ease, font-size .18s ease, color .2s ease, letter-spacing .18s ease;
}
.auth-field--select.is-float label { top: 9px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--sx-text-muted); }
.auth-field--select.is-focus label { color:var(--sx-blue-texto); }
.sx-caret {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%) rotate(0deg);
  pointer-events: none; transition: transform .25s ease;
}
.auth-field--select.is-focus .sx-caret { transform: translateY(-50%) rotate(180deg); }

/* ── Grids específicos (documento + dígito, teléfono) ─────────────────────── */
.sx-reg-grid-doc { display: grid; grid-template-columns: 140px 1fr 100px; gap: 14px; }
.sx-reg-grid-doc.no-dv { grid-template-columns: 150px 1fr; }
@media (max-width: 560px) {
  .sx-reg-grid-doc { grid-template-columns: 110px 1fr 84px; }
  .sx-reg-grid-doc.no-dv { grid-template-columns: 110px 1fr; }
}
.sx-reg-dv[hidden] { display: none; }
/* El hint "X" del dígito verificador solo se muestra al enfocar (como en el
   componente React), evitando que choque con el label flotante cuando el
   campo está vacío y sin foco. */
.sx-reg-dv input::placeholder { color: transparent; }
.sx-reg-dv input:focus::placeholder { color: var(--sx-text-muted); }
.sx-reg-grid-phone { display: grid; grid-template-columns: 140px 1fr; gap: 10px; }

.sx-reg-doc-counter {
  font-family: var(--sx-font-body);
  font-size: 11px; color: var(--sx-text-muted); margin: -4px 0 0;
  text-align: right; letter-spacing: .04em;
}

/* ── Nota informativa del dígito verificador ──────────────────────────────── */
.sx-reg-dvinfo {
  display: flex; align-items: flex-start; gap: 8px;
  margin: -6px 0 0; padding: 10px 12px;
  background: #F9FAFB; border: 1px solid #F3F4F6; border-radius: 10px;
}
.sx-reg-dvinfo[hidden] { display: none; }
.sx-reg-infobtn {
  width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; margin-top: 1px;
  background:var(--sx-blue); border: none; cursor: pointer; color: #fff; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s ease;
}
.sx-reg-infobtn:hover { background: #0E63CC; }
.sx-reg-dvinfo-text { font-family: var(--sx-font-body); font-size: 12px; color: var(--sx-text-muted); margin: 0; line-height: 1.5; }
.sx-reg-dvinfo-text strong { font-weight: 600; color: var(--sx-text); }
.sx-reg-dvinfo-num { font-weight: 700; color:var(--sx-blue-texto); }

/* ── Hints inline (advertencia / error / ok / mudo) ───────────────────────── */
.sx-reg-hint { font-family: var(--sx-font-body); font-size: 12px; margin: 6px 0 0; line-height: 1.4; display: block; }
.sx-reg-hint[hidden] { display: none; }
.sx-reg-hint--warn  { color: #B45309; }
.sx-reg-hint--error { color: #B91C1C; }
.sx-reg-hint--ok    { color: #059669; display: flex; align-items: center; gap: 6px; }
.sx-reg-hint--ok[hidden] { display: none; }
.sx-reg-hint--muted { color: var(--sx-text-muted); margin-top: 4px; letter-spacing: .02em; }
.sx-reg-linkbtn {
  font-family: var(--sx-font-body); font-size: 12px; font-weight: 600;
  color:var(--sx-blue-texto); background: none; border: none; padding: 0; cursor: pointer;
  text-decoration: underline;
}

/* ── Fuerza de contraseña + requisitos ────────────────────────────────────── */
.sx-reg-pw { margin-top: 8px; }
.sx-reg-pw[hidden] { display: none; }
.sx-reg-pw-bar { display: flex; gap: 4px; margin-bottom: 8px; }
.sx-reg-pw-bar span { flex: 1; height: 4px; border-radius: 2px; background: var(--sx-input-border); transition: background .3s ease; }
.sx-reg-pw-reqs { font-family: var(--sx-font-body); font-size: 11px; margin: 0; padding: 0; list-style: none; display: grid; gap: 3px; }
.sx-reg-pw-reqs li { display: flex; align-items: center; gap: 6px; color: var(--sx-text-muted); }
.sx-reg-pw-reqs li.met { color: #059669; }
.sx-reg-pw-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; flex-shrink: 0; box-sizing: border-box; }
.sx-reg-pw-reqs li.met .sx-reg-pw-dot {
  border: none;
  background: currentColor no-repeat center/9px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

/* ── Botones de opción (Sí/No, Sexo) ──────────────────────────────────────── */
.sx-reg-btngroup { display: flex; gap: 8px; }
.sx-reg-opt {
  flex: 1; font-family: var(--sx-font-body); font-weight: 600; font-size: 14px;
  padding: 13px 8px; border-radius: 12px;
  border: 1.5px solid var(--sx-input-border); background: #fff; color: var(--sx-text-muted);
  cursor: pointer; transition: all .2s ease;
}
.sx-reg-btngroup--3 .sx-reg-opt { font-size: 13px; }
.sx-reg-opt:hover { border-color: #C7D2FE; }
.sx-reg-opt.is-active { border-color: var(--sx-blue); background: var(--sx-fondo-card-azul); color:var(--sx-blue-texto); }
.sx-reg-opt:active { transform: scale(.97); }
.sx-reg-yesno-label { font-family: var(--sx-font-body); font-size: 14px; font-weight: 500; color: var(--sx-text); margin: 0 0 4px; line-height: 1.4; }
.sx-reg-yesno-hint  { font-family: var(--sx-font-body); font-size: 12px; font-weight: 400; color: var(--sx-text-muted); margin: 0 0 10px; line-height: 1.5; }
.sx-reg-yesno-label + .sx-reg-btngroup { margin-top: 8px; }

/* ── Bloques expandibles (PEP, dueño empresa, representante) ───────────────── */
.sx-reg-expand {
  display: flex; flex-direction: column; gap: 12px;
  overflow: hidden;
  animation: sx-expand-in .35s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.sx-reg-expand[hidden] { display: none; }
@keyframes sx-expand-in { from { opacity: 0; max-height: 0; } to { opacity: 1; max-height: 640px; } }
@media (prefers-reduced-motion: reduce) { .sx-reg-expand { animation: none; } }

/* ── Badges de estado (lookup / DV / SUNAT) ───────────────────────────────── */
.sx-reg-badge {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 10px; margin-top: -4px;
  border: 1.5px solid transparent;
  animation: sx-badge-in .25s ease both;
}
.sx-reg-badge[hidden] { display: none; }
@keyframes sx-badge-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sx-reg-badge { animation: none; } }
.sx-reg-badge p { font-family: var(--sx-font-body); font-size: 13px; margin: 0; font-weight: 500; line-height: 1.4; }
.sx-reg-badge svg { flex-shrink: 0; }
.sx-reg-badge--info  { background: var(--sx-fondo-card-azul); border-color: #BFDBFE; color: #1E40AF; }
.sx-reg-badge--ok    { background: #ECFDF5; border-color: #A7F3D0; color: #065F46; }
.sx-reg-badge--warn  { background: #FEF3C7; border-color: #FDE68A; color: #92400E; }
.sx-reg-badge--error { background: #FEF2F2; border-color: #FECACA; color: #B91C1C; }
.sx-reg-badge-spin {
  width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid currentColor; border-top-color: transparent;
  opacity: .9; animation: sx-badge-spin .8s linear infinite;
}
@keyframes sx-badge-spin { to { transform: rotate(360deg); } }

/* ── RUC (estado inline dentro del input) ─────────────────────────────────── */
.sx-reg-ruc { position: relative; }
.sx-reg-ruc-retry {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  font-family: var(--sx-font-body); font-size: 12px; font-weight: 700; color: #DC2626;
  background: none; border: none; cursor: pointer; letter-spacing: .04em; text-transform: uppercase;
}
.sx-reg-ruc-retry[hidden] { display: none; }
.sx-reg-ruc-status {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  font-family: var(--sx-font-body); font-size: 12px;
}
.sx-reg-ruc-status[hidden] { display: none; }
.sx-reg-ruc-status.is-loading { color: var(--sx-text-muted); }
.sx-reg-ruc-status.is-ok { color: #059669; font-weight: 700; }

/* ── Declaración de fondos (checkbox destacado) ───────────────────────────── */
.sx-reg-declara {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; background: #F9FAFB;
  border: 1.5px solid var(--sx-input-border); border-radius: 12px; cursor: pointer;
}
.sx-reg-declara input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--sx-blue); cursor: pointer; }
.sx-reg-declara span { font-family: var(--sx-font-body); font-size: 13px; color: #374151; line-height: 1.55; }
.sx-reg-declara strong { font-weight: 600; }

/* ── Banner de duplicado (email/celular/documento ya registrado) ──────────── */
.sx-reg-dupe {
  background: #FEF2F2; border: 1.5px solid #FECACA; border-radius: 14px;
  padding: 14px 16px; margin-bottom: 18px;
  display: flex; align-items: flex-start; gap: 12px;
}
.sx-reg-dupe[hidden] { display: none; }
.sx-reg-dupe svg { flex-shrink: 0; margin-top: 1px; }
.sx-reg-dupe-title { font-family: var(--sx-font-body); font-size: 13.5px; font-weight: 600; color: #B91C1C; margin: 0 0 2px; line-height: 1.45; }
.sx-reg-dupe-sub   { font-family: var(--sx-font-body); font-size: 12.5px; color: #7F1D1D; margin: 0; line-height: 1.5; }
.sx-reg-dupe-sub a { color:var(--sx-blue-texto); font-weight: 600; text-decoration: none; }

/* Error inline (contacto sin campo / submit) reutiliza .auth-error del kit */
.sx-reg-inline-error { margin-bottom: 0; }
.sx-reg-inline-error[hidden] { display: none; }
#submit-error { margin-top: 18px; }

/* ── Navegación (botón + checklist "qué falta") ───────────────────────────── */
.sx-reg-nav { margin-top: 32px; }
/* Botón deshabilitado: dejamos pasar el click al wrapper para poder mostrar la
   checklist de "qué falta" (equivale al onClickCapture del componente React). */
.sx-reg-nav .sx-btn[disabled] { pointer-events: none; }
.sx-reg-checklist {
  margin-top: 14px; background: #FEF3C7; border: 1.5px solid #FDE68A;
  border-radius: 12px; padding: 12px 14px;
  animation: sx-badge-in .25s ease both;
}
.sx-reg-checklist[hidden] { display: none; }
.sx-reg-checklist-title {
  font-family: var(--sx-font-body); font-size: 12px; font-weight: 700; color: #92400E;
  margin: 0 0 6px; letter-spacing: .04em; text-transform: uppercase;
}
.sx-reg-checklist ul { font-family: var(--sx-font-body); font-size: 13px; color: #78350F; margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; line-height: 1.45; }
.sx-reg-checklist li { display: flex; align-items: flex-start; gap: 8px; }
.sx-reg-checklist li::before { content: "•"; flex-shrink: 0; color: #B45309; margin-top: 1px; }

/* ── Footer link + confianza ──────────────────────────────────────────────── */
.sx-reg-footer { font-family: var(--sx-font-body); font-weight: 400; font-size: 14px; color: var(--sx-text-muted); text-align: center; margin: 24px 0 0; }
.sx-reg-footer[hidden] { display: none; }
.sx-reg-footer a { color:var(--sx-blue-texto); text-decoration: none; font-weight: 600; }
.sx-reg-trust {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-top: 24px; padding-top: 18px; border-top: 1px solid #F3F4F6; flex-wrap: wrap;
}
.sx-reg-trust-item { font-family: var(--sx-font-body); font-size: 11px; color: var(--sx-text-muted); display: flex; align-items: center; gap: 5px; }
.sx-reg-trust-dot { font-family: var(--sx-font-body); font-size: 11px; color: var(--sx-text-muted); }

/* ── Resumen (paso confirmación) ──────────────────────────────────────────── */
.sx-reg-summary {
  background: #F9FAFB; border: 1.5px solid var(--sx-input-border); border-radius: 14px;
  padding: 16px 18px; margin-bottom: 18px; display: grid; gap: 14px;
}
.sx-reg-summary-block { display: flex; align-items: flex-start; gap: 12px; }
.sx-reg-summary-main { flex: 1; min-width: 0; }
.sx-reg-summary-label { font-family: var(--sx-font-body); font-size: 11px; font-weight: 700; color: var(--sx-text-muted); margin: 0 0 2px; letter-spacing: .06em; text-transform: uppercase; }
.sx-reg-summary-value { font-family: var(--sx-font-body); font-size: 14px; font-weight: 600; color: var(--sx-text); margin: 0; line-height: 1.4; word-break: break-word; }
.sx-reg-summary-sub   { font-family: var(--sx-font-body); font-size: 12px; color: var(--sx-text-muted); margin: 2px 0 0; line-height: 1.4; }
.sx-reg-summary-edit { font-family: var(--sx-font-body); font-size: 12px; font-weight: 600; color:var(--sx-blue-texto); background: none; border: none; cursor: pointer; padding: 4px 8px; border-radius: 6px; flex-shrink: 0; }

.sx-reg-referido {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--sx-fondo-card-azul), #DBEAFE); border: 1.5px solid #BFDBFE; border-radius: 12px;
}
.sx-reg-referido[hidden] { display: none; }
.sx-reg-referido svg { flex-shrink: 0; }
.sx-reg-referido p { font-family: var(--sx-font-body); font-size: 13px; font-weight: 500; color: #1e40af; margin: 0; }
.sx-reg-referido strong { font-weight: 700; letter-spacing: .04em; }

.sx-reg-checks { display: flex; flex-direction: column; gap: 12px; }
.sx-reg-check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; padding: 8px 4px; margin: -8px -4px; }
.sx-reg-check input { width: 20px; height: 20px; margin-top: 1px; flex-shrink: 0; accent-color: var(--sx-blue); cursor: pointer; }
.sx-reg-check span { font-family: var(--sx-font-body); font-size: 13px; font-weight: 400; color: #374151; line-height: 1.55; }
.sx-reg-check a { color:var(--sx-blue-texto); font-weight: 500; text-decoration: none; }

/* ── Modales (referido + info DV) ─────────────────────────────────────────── */
.sx-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.sx-modal[hidden] { display: none; }
.sx-modal-backdrop {
  position: absolute; inset: 0; background: rgba(15, 23, 42, .55);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  animation: sx-fade-in .25s ease both;
}
.sx-modal-card {
  position: relative; background: #fff; border-radius: 24px;
  max-width: 420px; width: 100%; padding: 32px 28px 28px;
  box-shadow: 0 32px 80px rgba(15, 23, 42, .35);
  animation: sx-modal-in .28s cubic-bezier(0.165, 0.84, 0.44, 1) both;
  max-height: 90vh; overflow-y: auto;
}
@keyframes sx-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes sx-modal-in { from { opacity: 0; transform: translateY(24px) scale(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sx-modal-backdrop, .sx-modal-card { animation: none; } }
.sx-modal-close {
  position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 50%;
  background: #F3F4F6; border: none; cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center; color: var(--sx-text-muted);
  transition: background .2s ease;
}
.sx-modal-close:hover { background: var(--sx-input-border); }

/* Referido */
.sx-reg-referral-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.sx-reg-referral-gift {
  width: 44px; height: 44px; border-radius: 14px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--sx-fondo-card-azul), #DBEAFE);
  display: flex; align-items: center; justify-content: center;
}
.sx-reg-referral-title { font-family: var(--sx-font-title); font-weight: 700; font-size: 22px; color: var(--sx-text); margin: 0; letter-spacing: -.02em; line-height: 1.2; }
.sx-reg-referral-bonus { background: linear-gradient(135deg, var(--sx-fondo-card-azul), #DBEAFE); border-radius: 18px; padding: 18px 20px; margin-bottom: 16px; border: 1.5px solid #BFDBFE; }
.sx-reg-referral-bonus-label { font-family: var(--sx-font-body); font-weight: 600; font-size: 13px; color:var(--sx-blue-texto); letter-spacing: .04em; text-transform: uppercase; margin: 0 0 10px; }
.sx-reg-referral-bonus-row { display: flex; align-items: center; gap: 14px; }
.sx-reg-bubble-wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.sx-reg-bubble {
  width: 52px; height: 52px; border-radius: 50%; position: relative;
  background: #fff; border: 2px dashed #C4B5FD; color: var(--sx-text-muted);
  display: flex; align-items: center; justify-content: center;
  transition: all .4s ease;
}
.sx-reg-bubble span { font-family: var(--sx-font-title); font-weight: 800; font-size: 20px; }
.sx-reg-bubble--won, .sx-reg-bubble.is-won {
  background: linear-gradient(135deg, var(--sx-blue) 0%, #6F2EFF 100%);
  border: none; color: #fff; box-shadow: 0 4px 16px rgba(111, 46, 255, .38);
}
.sx-reg-bubble-check {
  position: absolute; top: -3px; right: -3px; width: 18px; height: 18px; border-radius: 50%;
  background: #10B981; border: 2px solid #fff; display: flex; align-items: center; justify-content: center;
}
.sx-reg-bubble-label { font-family: var(--sx-font-body); font-weight: 600; font-size: 10px; color: var(--sx-text-muted); margin: 0; letter-spacing: .02em; }
.sx-reg-bubble-wrap:first-child .sx-reg-bubble-label { color: #6F2EFF; }
.sx-reg-bubble-label.is-won { color: #6F2EFF; }
.sx-reg-referral-bonus-text { flex: 1; }
.sx-reg-referral-bonus-text p { font-family: var(--sx-font-body); font-weight: 400; font-size: 12px; color: #374151; margin: 0; line-height: 1.5; }
.sx-reg-referral-bonus-text strong { font-weight: 700; }
.sx-reg-referral-input { margin-bottom: 14px; }
.sx-reg-referral-input[hidden] { display: none; }
.sx-reg-referral-input-row { display: flex; gap: 10px; align-items: stretch; }
.sx-reg-referral-input-row input {
  flex: 1; padding: 0 16px; height: 48px; border-radius: 999px;
  border: 1.5px solid var(--sx-input-border); font-family: var(--sx-font-body); font-size: 16px; color: var(--sx-text);
  background: #fff; outline: none; box-sizing: border-box;
  letter-spacing: .08em; text-transform: uppercase; font-weight: 600;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.sx-reg-referral-input-row input:focus { border-color: var(--sx-blue); box-shadow: 0 0 0 3px rgba(var(--sx-blue-rgb), .12); }
.sx-reg-referral-input-row input.has-error { border-color: #FECACA; }
.sx-reg-referral-success {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px; margin-bottom: 14px;
  background: linear-gradient(135deg, #D1FAE5, #A7F3D0); border: 1.5px solid #6EE7B7; border-radius: 12px;
}
.sx-reg-referral-success[hidden] { display: none; }
.sx-reg-referral-success svg { flex-shrink: 0; }
.sx-reg-referral-success p { font-family: var(--sx-font-body); font-size: 13px; font-weight: 600; color: #065F46; margin: 0; }
.sx-reg-referral-continue { width: 100%; }

/* Info DV */
.sx-reg-dvmodal { max-width: 440px; }
.sx-reg-dvmodal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sx-reg-dvmodal-head h4 { font-family: var(--sx-font-title); font-weight: 700; font-size: 16px; color: var(--sx-text); margin: 0; line-height: 1.3; flex: 1; }
.sx-reg-dvmodal-head .sx-modal-close { position: static; }
.sx-reg-dvmodal-body { display: flex; flex-direction: column; gap: 10px; }
.sx-reg-dvmodal-label { font-family: var(--sx-font-body); font-size: 10px; font-weight: 700; color: #64748B; margin: 0 0 4px; text-transform: uppercase; letter-spacing: .08em; }
.sx-reg-dvillus { display: block; max-width: 100%; height: auto; }
.sx-reg-dvmodal-text { font-family: var(--sx-font-body); font-size: 14px; color: #4B5563; margin: 4px 0 0; line-height: 1.6; }

/* ── Pantalla de éxito ────────────────────────────────────────────────────── */
.sx-reg-success { max-width: 520px; margin: 0 auto; text-align: center; }
.sx-reg-success[hidden] { display: none; }
.sx-reg-success-logo { margin: 0 auto 28px; }
.sx-reg-success-icon {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 22px;
  background: linear-gradient(135deg, var(--sx-fondo-card-azul) 0%, #DBEAFE 100%); border: 1.5px solid #BFDBFE;
  display: inline-flex; align-items: center; justify-content: center;
  animation: sx-pop .4s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes sx-pop { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sx-reg-success-icon { animation: none; } }
.sx-reg-success-h1 { margin: 0 0 10px; }
.sx-reg-success-sub { margin: 0 0 24px; }
.sx-reg-success-sub strong { font-weight: 600; color: var(--sx-text); }
.sx-reg-success-note {
  background: #F9FAFB; border: 1.5px solid var(--sx-input-border); border-radius: 14px;
  padding: 14px 18px; margin: 0 0 24px; text-align: left;
}
.sx-reg-success-note-title { font-family: var(--sx-font-body); font-size: 11px; font-weight: 800; color: var(--sx-text-muted); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 8px; }
.sx-reg-success-list { font-family: var(--sx-font-body); font-size: 13px; color: #4B5563; margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; line-height: 1.5; }
.sx-reg-success-list li::before { content: "• "; }
.sx-reg-success-list strong { font-weight: 600; color: var(--sx-text); }
.sx-reg-success-actions { display: flex; flex-direction: column; gap: 10px; }
.sx-reg-success-link {
  font-family: var(--sx-font-body); font-weight: 600; font-size: 14px; color:var(--sx-blue-texto);
  text-decoration: none; padding: 12px 20px; border: 1.5px solid #DBEAFE; border-radius: 999px; display: inline-block;
}
.sx-reg-success-back { font-family: var(--sx-font-body); font-size: 13px; font-weight: 500; color: var(--sx-text-muted); background: none; border: none; cursor: pointer; padding: 8px; }

/* ── Botón flotante WhatsApp ──────────────────────────────────────────────── */
.sx-reg-fab {
  position: fixed; bottom: 24px; right: 24px; width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .4); z-index: 50; text-decoration: none;
  transition: transform .2s ease;
}
.sx-reg-fab:hover { transform: scale(1.08); }
@media (max-width: 560px) { .sx-reg-fab { bottom: 16px; right: 16px; width: 52px; height: 52px; } }

/* ===== descargar ===== */
/* ==========================================================================
   Descargar app — página puente (redirige a la store según dispositivo).
   ========================================================================== */
.dl-main {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: radial-gradient(120% 90% at 50% 0%, #EAF4FE 0%, #F9FAFB 60%);
}
.dl-card {
  width: 100%; max-width: 460px;
  background: #fff;
  border: 1.5px solid #E8ECF1;
  border-radius: 26px;
  padding: 40px 32px 36px;
  text-align: center;
  box-shadow: 0 12px 48px rgba(var(--sx-blue-rgb), .08);
}
.dl-logo { display: inline-block; margin-bottom: 24px; }
.dl-logo img { height: 30px; width: auto; }
.dl-title {
  font-family: var(--sx-font-title); font-weight: 700;
  font-size: clamp(1.6rem, 6vw, 2rem); line-height: 1.1;
  letter-spacing: -0.02em; color: var(--sx-text); margin: 0 0 10px;
}
.dl-grad {
  background: linear-gradient(100deg, var(--sx-blue), var(--sx-cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.dl-sub {
  font-family: var(--sx-font-body); font-weight: 400; font-size: 15px;
  color: #6B7280; line-height: 1.6; margin: 0 0 28px;
}

/* Botones de tienda */
.dl-stores { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.dl-store {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  height: 58px; border-radius: 14px;
  background: #0A1628; color: #fff; text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease;
}
.dl-store:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(10, 22, 40, .28); }
.dl-store svg { flex-shrink: 0; }
.dl-store-txt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.dl-store-txt small { font-family: var(--sx-font-body); font-size: 11px; font-weight: 400; opacity: .85; }
.dl-store-txt strong { font-family: var(--sx-font-body); font-size: 18px; font-weight: 700; }

/* QR (solo tiene sentido en desktop; se oculta en pantallas chicas) */
.dl-qr { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 24px; border-top: 1px solid #EEF1F5; }
.dl-qr img { width: 128px; height: 128px; border-radius: 12px; }
.dl-qr p { font-family: var(--sx-font-body); font-size: 13px; color: var(--sx-text-muted); margin: 0; }
@media (max-width: 640px) { .dl-qr { display: none; } }

.dl-redirect { font-family: var(--sx-font-body); font-size: 13px; color:var(--sx-blue-texto); margin: 16px 0 0; font-weight: 500; }
.dl-redirect[hidden] { display: none; }

