/* ============================================
   Página de registro — Expl-AI-n Medellín 2026
   Adopta la paleta dark del sitio (core.css)
   ============================================ */

.registro-page {
  min-height: 100vh;
  color: var(--c-white);
  font-family: var(--f-body);
  overflow-x: hidden;
}

/* Ocultar atmósfera/cursor de core.css en esta página standalone */
.registro-page .atmosphere,
.registro-page .cursor,
.registro-page .cursor-dot { display: none; }

/* === Topbar === */
.registro__topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: rgba(8, 65, 72, 0.85);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--c-line);
}

.registro__back {
  font-size: 0.95rem;
  color: var(--c-cyan);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s var(--ease-out);
}
.registro__back:hover { color: var(--c-pink); }

.registro__brand img { height: 28px; width: auto; object-fit: contain; }

/* === Layout === */
.registro {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 96px;
  position: relative;
}

/* Decoración de fondo: glows sutiles tipo hero */
.registro::before,
.registro::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: -1;
}
.registro::before {
  width: 420px; height: 420px;
  background: var(--c-cyan);
  opacity: 0.10;
  top: -10%; left: -8%;
}
.registro::after {
  width: 500px; height: 500px;
  background: var(--c-pink);
  opacity: 0.08;
  bottom: -10%; right: -8%;
}

.registro__head { margin-bottom: 32px; }

.registro__eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--c-cyan);
  background: var(--c-cyan-soft);
  border: 1px solid rgba(0, 229, 255, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* Niveles superiores (BUILDER, LEADER): badge pink para diferenciarlos
   del nivel de entrada (SPARK = cyan por defecto) */
[data-plan="builder"] .registro__eyebrow,
[data-plan="leader"] .registro__eyebrow {
  color: var(--c-pink);
  background: rgba(234, 64, 118, 0.10);
  border-color: rgba(234, 64, 118, 0.28);
}
[data-plan="builder"] .registro__summary,
[data-plan="leader"] .registro__summary {
  background: rgba(234, 64, 118, 0.06);
  border-color: rgba(234, 64, 118, 0.22);
}
[data-plan="builder"] .registro__summary strong,
[data-plan="leader"] .registro__summary strong { color: var(--c-pink); }

.registro h1 {
  font-family: var(--f-display);
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 14px;
  color: var(--c-white);
}

.registro__lede {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--c-muted);
  margin: 0 0 22px;
  max-width: 560px;
}

.registro__summary {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid rgba(0, 229, 255, 0.22);
  border-radius: 12px;
  padding: 10px 18px;
  font-size: 0.95rem;
  /* "BOLETA SELECCIONADA" + "CORPORATIVO" suman ~300px: más que los 272px
     útiles de un móvil de 320px. Sin wrap se salía de la pantalla, así que las
     dos partes se apilan cuando no caben en una línea. */
  flex-wrap: wrap;
  max-width: 100%;
}

.registro__summary-label {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-muted-2);
  font-weight: 500;
}

.registro__summary strong {
  color: var(--c-cyan);
  font-weight: 600;
}

/* === Formulario === */
.reg-form { display: flex; flex-direction: column; gap: 24px; }

.reg-form__section {
  background: rgba(22, 22, 22, 0.65);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  padding: 26px;
  margin: 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  /* fieldset por default tiene min-width: min-content que rompe el grid */
  min-width: 0;
}

.reg-form__section legend {
  /* legend default flota sobre el borde del fieldset; forzamos a comportarse
     como un h-style normal dentro del padding de la card */
  float: left;
  width: 100%;
  padding: 0;
  font-family: var(--f-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
/* Clearfix para que el float del legend no rompa el layout interno */
.reg-form__section legend + * { clear: left; }

.reg-form__section--legal {
  background: rgba(234, 64, 118, 0.06);
  border-color: rgba(234, 64, 118, 0.22);
}

.reg-form__hint {
  font-size: 0.88rem;
  color: var(--c-muted-2);
  margin: 0 0 16px;
  line-height: 1.5;
}

/* Código de descuento */
.reg-discount { margin-top: 8px; }
.reg-discount > span {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 8px;
}
.reg-discount__row {
  display: flex;
  gap: 10px;
  align-items: stretch;
  flex-wrap: wrap;
}
.reg-discount__input {
  flex: 1 1 200px;
  text-transform: uppercase;
}
.reg-discount__apply { flex: 0 0 auto; white-space: nowrap; }
.reg-discount__result {
  margin: 10px 0 0;
  font-size: 0.9rem;
  line-height: 1.4;
}
.reg-discount__result--ok { color: var(--c-cyan); }
.reg-discount__result--err { color: var(--c-pink); }

.reg-form__hint a {
  color: var(--c-cyan);
  text-decoration: underline;
  text-decoration-color: rgba(0, 229, 255, 0.4);
  text-underline-offset: 2px;
  transition: color 0.2s var(--ease-out);
}
.reg-form__hint a:hover { color: var(--c-pink); }

.reg-form__hint--quantity {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--c-cyan-soft);
  border: 1px solid rgba(0, 229, 255, 0.22);
  color: var(--c-cyan);
}

.reg-form__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  /* Mismo margin que .reg-field para un ritmo vertical uniforme entre todos
     los campos (filas de 2 columnas y campos sueltos). */
  margin-bottom: 18px;
}

/* Fila "número de documento + DV": el número ocupa todo y el DV (oculto salvo
   NIT) es un casillero angosto a la derecha. Flex → cuando el DV no aplica, el
   número usa el 100%; cuando aplica, el DV toma su ancho fijo. */
.reg-form__row--docnum {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.reg-form__row--docnum > .reg-field { flex: 1 1 auto; min-width: 0; }
.reg-form__row--docnum > .reg-field--dv { flex: 0 0 84px; }  /* el DV: angosto */

/* NIT de facturación partido en número | guion | dígito de verificación. */
.reg-nit {
  display: flex;
  align-items: center;
  gap: 8px;
}
.reg-nit__base { flex: 1 1 auto; min-width: 0; }
.reg-nit__dv { flex: 0 0 56px; text-align: center; }
.reg-nit__dash { color: var(--c-muted); font-weight: 600; }

/* Los .reg-field DENTRO de un row no aportan su propio margen inferior — el
   espaciado entre filas lo da el margin-bottom del row, no los campos internos. */
.reg-form__row .reg-field { margin-bottom: 0; }

/* El último bloque de cada sección no necesita margen inferior. */
.reg-form__row:last-child { margin-bottom: 0; }

@media (max-width: 560px) {
  .reg-form__row { grid-template-columns: 1fr; }
  /* La fila número+DV NO se apila (el DV es angosto): sigue en línea, solo
     reducimos el gap. Es flex, no grid, así que el 1fr de arriba no la afecta. */
  .reg-form__row--docnum { gap: 10px; }
}

/* En pantallas muy angostas (iPhone SE y similares) el fieldset deja ~220px
   útiles: con el selector de país en 116px al número de teléfono le quedaban
   96px, donde no cabe un celular colombiano completo. Se encoge el selector
   (sigue mostrando bandera + indicativo) y se recorta el gap. */
@media (max-width: 380px) {
  /* El widget de Turnstile son 300px que Cloudflare no deja encoger (es un
     iframe suyo). `max-width` evita que empuje el layout, pero la casilla se
     recortaría: escalarlo es lo único que lo deja completo y clickeable.
     Mismo arreglo que desafios-inscripcion.css. */
  .reg-field--captcha {
    overflow: hidden;
    transform: scale(0.88);
    transform-origin: left center;
  }
  .reg-phone .reg-phone__country {
    flex: 0 0 96px;
    width: 96px;
    padding-right: 26px !important;
    background-position: right 8px center !important;
  }
  .reg-phone { gap: 6px; }
}

.reg-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 18px;
  min-width: 0;
}
.reg-field:last-child { margin-bottom: 0; }
.reg-field--narrow { max-width: 320px; }

.reg-field > span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--c-muted);
  letter-spacing: 0.01em;
}

.reg-field > span em {
  color: var(--c-pink);
  font-style: normal;
  font-weight: 700;
  margin-left: 2px;
}

.reg-field input[type="text"],
.reg-field input[type="email"],
.reg-field input[type="tel"],
.reg-field input[type="number"],
.reg-field select {
  width: 100%;
  height: 46px;
  padding: 0 16px;
  font-size: 0.95rem;
  line-height: 1.4;
  border: 1.5px solid var(--c-line-strong);
  border-radius: var(--radius-sm);
  background: rgba(18, 18, 18, 0.6);
  color: var(--c-white);
  font-family: inherit;
  transition: border-color 200ms var(--ease-out), background 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
}

.reg-field input::placeholder {
  color: var(--c-muted-2);
  opacity: 0.7;
}

/* CAPTCHA (Turnstile). El widget mide ~300x78px y lo inyecta Cloudflare en un
   iframe: en un móvil de 320px la caja útil del fieldset queda en ~220px y se
   salía 80px. Con overflow-x:hidden en la página eso no da scroll, se ve
   CORTADO (le faltaba la casilla de "no soy un robot"). Mismo arreglo que ya
   tenía desafios-inscripcion.css. El min-height reserva su alto para que el
   formulario no salte cuando el widget termina de cargar. */
.reg-field--captcha {
  min-height: 78px;
  overflow: visible;
}
.reg-field--captcha .cf-turnstile {
  display: block;
  max-width: 100%;
}
.reg-field--captcha iframe { max-width: 100%; }

/* Stepper +/− para cantidad de boletas */
.reg-stepper {
  display: inline-flex;
  align-items: stretch;
  height: 46px;
  width: 100%;
  max-width: 200px;
  border: 1.5px solid var(--c-line-strong);
  border-radius: var(--radius-sm);
  background: rgba(18, 18, 18, 0.6);
  overflow: hidden;
  transition: border-color 200ms var(--ease-out), background 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
.reg-stepper:focus-within {
  border-color: var(--c-cyan);
  background: rgba(18, 18, 18, 0.85);
  box-shadow: 0 0 0 4px var(--c-cyan-soft);
}
.reg-stepper__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: var(--c-cyan);
  font-family: var(--f-display);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s var(--ease-out), color 0.15s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.reg-stepper__btn:hover { background: rgba(0, 229, 255, 0.08); }
.reg-stepper__btn:active { background: rgba(0, 229, 255, 0.16); }
.reg-stepper__btn:disabled {
  color: var(--c-muted-2);
  opacity: 0.4;
  cursor: not-allowed;
}
.reg-stepper__btn:disabled:hover { background: transparent; }

.reg-stepper__input.reg-stepper__input {
  /* Doble clase para ganar especificidad sobre .reg-field input[type=number] */
  flex: 1;
  height: 100%;
  width: auto;
  min-width: 0;
  padding: 0 4px;
  border: none;
  border-radius: 0;
  background: transparent;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-white);
  font-variant-numeric: tabular-nums;
  box-shadow: none;
}
.reg-stepper__input:focus { outline: none; box-shadow: none; }

/* Ocultar las flechitas nativas del browser */
.reg-stepper__input::-webkit-outer-spin-button,
.reg-stepper__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.reg-stepper__input { -moz-appearance: textfield; }

.reg-field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8' fill='none'><path d='M1 1l6 6 6-6' stroke='%2300E5FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
  cursor: pointer;
}

.reg-field select option {
  background: var(--c-dark);
  color: var(--c-white);
}

.reg-field input:focus,
.reg-field select:focus {
  outline: none;
  border-color: var(--c-cyan);
  background: rgba(18, 18, 18, 0.85);
  box-shadow: 0 0 0 4px var(--c-cyan-soft);
}

.reg-field input[aria-invalid="true"],
.reg-field select[aria-invalid="true"] {
  border-color: var(--c-pink);
  background: rgba(234, 64, 118, 0.06);
}

.reg-field input[aria-invalid="true"]:focus,
.reg-field select[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 4px rgba(234, 64, 118, 0.18);
}

/* Teléfono: selector de país + número en una sola fila */
.reg-phone {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
/* El selector de código tiene ancho fijo (solo "🇨🇴 +57 ▾"), no se estira.
   width fijo + flex:none para ganarle al `width:100%` de .reg-field select. */
.reg-phone .reg-phone__country {
  flex: 0 0 116px;
  width: 116px;
  padding-right: 34px !important;
  background-position: right 12px center !important;
}
/* El número ocupa todo el espacio restante. */
.reg-phone .reg-phone__number {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}

/* Checkboxes */
.reg-field--check {
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  padding: 4px 0;
}

.reg-field--check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--c-cyan);
  cursor: pointer;
  flex-shrink: 0;
}

/* Checkbox obligatorio (Habeas Data) sin marcar tras intentar continuar:
   resalta el bloque en rojo para que se vea cuál falta. Se quita al marcarlo. */
.reg-field--check.reg-field--missing {
  outline: 2px solid var(--c-pink, #ea4076);
  outline-offset: 6px;
  border-radius: 8px;
}
.reg-field--check.reg-field--missing input[type="checkbox"] {
  accent-color: var(--c-pink, #ea4076);
  outline: 2px solid var(--c-pink, #ea4076);
}

.reg-field--check > span {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--c-muted);
  line-height: 1.5;
}

.reg-field--check > span strong {
  color: var(--c-white);
  font-weight: 600;
}

.reg-field--legal > span small {
  display: block;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--c-muted-2);
  margin-top: 6px;
  line-height: 1.5;
}

.reg-field--legal a {
  color: var(--c-cyan);
  text-decoration: underline;
  text-decoration-color: rgba(0, 229, 255, 0.4);
  text-underline-offset: 2px;
}
.reg-field--legal a:hover { color: var(--c-pink); }

.reg-field__error {
  font-style: normal;
  font-size: 0.82rem;
  color: var(--c-pink);
  margin-top: 2px;
}

/* Animación al mostrar campos condicionales */
.reg-form__conditional {
  animation: regSlideIn 220ms var(--ease-out);
}

@keyframes regSlideIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Error general del formulario */
.reg-form__error {
  background: rgba(234, 64, 118, 0.08);
  border: 1px solid rgba(234, 64, 118, 0.35);
  color: #ffb1c5;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* Acciones (submit) */
.reg-form__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  /* Sin esto, un hijo con min-width propio no puede encoger por debajo de su
     tamaño mínimo y se sale de la tarjeta. */
  min-width: 0;
}

#submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  /* El min-width da presencia al botón en escritorio, pero NO puede pasarse del
     ancho disponible: en un iPhone SE (320px) la caja útil del fieldset queda
     en ~220px y un min-width de 260px lo desbordaba — se veía cortado porque
     .registro-page tiene overflow-x:hidden (oculta el scroll, no el recorte).
     `min()` conserva los 260px cuando caben y cede cuando no. */
  min-width: min(260px, 100%);
  max-width: 100%;
}

#submit-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.08);
  color: var(--c-muted-2);
  box-shadow: none;
}
#submit-btn:disabled:hover {
  transform: none;
  box-shadow: none;
}

.reg-form__spinner {
  animation: regSpin 0.8s linear infinite;
}

@keyframes regSpin { to { transform: rotate(360deg); } }

.reg-form__note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--c-muted-2);
  text-align: center;
  max-width: 420px;
  line-height: 1.5;
}

/* Text accent dentro del registro: cyan en lugar del pink global */
.registro h1 .text-accent {
  background: linear-gradient(120deg, var(--c-cyan), var(--c-pink));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ============================================
   Modal de confirmación (reemplaza window.confirm nativo)
   ============================================ */
.reg-confirm {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.reg-confirm[hidden] { display: none; }

.reg-confirm__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 65, 72, 0.55);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  animation: regConfirmFade 0.25s var(--ease-out);
}

.reg-confirm__dialog {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 32px;
  background: rgba(22, 22, 22, 0.92);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7),
    inset 0 0 0 1px rgba(0, 229, 255, 0.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: regConfirmRise 0.3s var(--ease-out);
}

.reg-confirm__title {
  margin: 0 0 8px;
  font-family: var(--f-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--c-white);
}

.reg-confirm__desc {
  margin: 0 0 22px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--c-muted);
}

.reg-confirm__summary {
  margin: 0 0 26px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.reg-confirm__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 16px;
  background: rgba(18, 18, 18, 0.6);
}
.reg-confirm__row dt {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-muted-2);
}
.reg-confirm__row dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--c-white);
  text-align: right;
  word-break: break-word;
  /* Sin min-width:0 el `word-break` no llega a aplicarse: un hijo flex no
     encoge por debajo de su contenido mínimo y empuja la fila. Pasa con
     correos largos, que es justo lo que se muestra aquí. */
  min-width: 0;
}
.reg-confirm__row dt { min-width: 0; }
/* El WhatsApp es el dato propenso a typos: lo resaltamos en cyan */
.reg-confirm__row--phone {
  background: var(--c-cyan-soft);
}
.reg-confirm__row--phone dd {
  font-family: var(--f-display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--c-cyan);
}

.reg-confirm__actions {
  display: flex;
  gap: 12px;
}
.reg-confirm__actions .btn { flex: 1; }

@keyframes regConfirmFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes regConfirmRise {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============================================
   /completa-tu-perfil — clases propias de esa página.
   El resto lo hereda de registro (mismo ritmo de formulario).
   ============================================ */

/* Pista bajo un campo (ej. "usa el mismo correo de tu boleta"). */
.reg-field__hint {
  font-size: 0.82rem;
  color: var(--c-muted-2);
  line-height: 1.45;
}

/* Aviso general sobre el botón. Mismo papel que .bib-form__gate. */
.reg-form__gate {
  margin: 0;
  font-size: 0.86rem;
  color: var(--c-pink);
  text-align: center;
  line-height: 1.45;
  min-height: 1.2em;   /* reserva el alto: sin esto el botón salta al aparecer */
}

/* Pantalla de gracias: reemplaza al formulario al guardar. */
.reg-done {
  text-align: center;
  padding: clamp(36px, 7vw, 72px) clamp(20px, 4vw, 40px);
  background: rgba(22, 22, 22, 0.65);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.reg-done__title {
  margin: 0 0 12px;
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  color: var(--c-white);
}
.reg-done__title:focus { outline: none; }
.reg-done__text {
  margin: 0 auto 28px;
  max-width: 42ch;
  color: var(--c-muted);
  line-height: 1.6;
}
.reg-done__actions { margin: 0; }

@media (max-width: 480px) {
  .reg-confirm__dialog { padding: 26px 22px; }
  .reg-confirm__actions { flex-direction: column-reverse; }
}

/* En pantallas muy angostas el padding de escritorio se come la pantalla: entre
   el de la página (24px) y el del fieldset (26px) se iban 100px de 320px, y solo
   quedaban 220px para los campos. Aquí se recortan ambos y el formulario gana
   ~64px de ancho útil. La topbar acompaña para que el logo no quede apretado. */
@media (max-width: 400px) {
  .registro { padding-left: 16px; padding-right: 16px; }
  .reg-form__section { padding: 20px 18px; }
  .registro__topbar { padding: 12px 16px; }
  .registro__summary { padding: 9px 14px; }
}

/* iOS Safari hace ZOOM automático al enfocar un campo con letra menor a 16px, y
   al hacerlo descuadra toda la página (la persona queda con el formulario
   ampliado y corrido). Los inputs están en 0.95rem = 15.2px, justo por debajo.
   En móvil se suben a 16px exactos: es el umbral, no un capricho de diseño.
   Mismo arreglo que ya tenía desafios-inscripcion.css. */
@media (max-width: 560px) {
  .reg-field input,
  .reg-field select,
  .reg-field textarea,
  .reg-nit input,
  .reg-phone input,
  .reg-phone select { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .reg-confirm__backdrop,
  .reg-confirm__dialog { animation: none; }
}
