/* Base provisoria del portal: una columna, mobile first. Lee solo tokens.css. */
html { background: var(--desk-bg); color: var(--desk-text); font-family: var(--desk-font); line-height: 1.5; }
body { margin: 0; min-height: 100vh; }
.caja { box-sizing: border-box; width: 100%; max-width: 32rem; margin: 0 auto; padding: 24px 16px 48px; }
h1 { margin: 0 0 12px; font-size: 1.6rem; line-height: 1.2; border-bottom: 4px solid var(--desk-accent); display: inline-block; }
p { margin: 0 0 16px; }
a { color: var(--desk-accentText); text-underline-offset: 3px; }
:focus-visible { outline: var(--desk-foco-ancho) solid var(--desk-foco); outline-offset: var(--desk-foco-aire); }

.campo { margin: 0 0 16px; }
.campo label { display: block; font-weight: 600; margin-bottom: 4px; }
.campo input { box-sizing: border-box; width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; color: var(--desk-text);
  background: var(--desk-surface); border: 1px solid var(--desk-text3); border-radius: var(--desk-r-campo); }
.campo--error input { border-color: var(--desk-danger); border-width: 2px; }
.ayuda { margin: 0 0 6px; color: var(--desk-text2); font-size: .9rem; }
.error { margin: 6px 0 0; color: var(--desk-danger-text); font-weight: 600; }
.aviso { padding: 10px 14px; background: var(--desk-soft); border-radius: var(--desk-r-campo); }

.boton { display: inline-block; box-sizing: border-box; min-height: 48px; padding: 12px 24px; font: inherit; font-weight: 700; text-align: center;
  text-decoration: none; color: var(--desk-onAccent); background: var(--desk-accent); border: 0; border-radius: var(--desk-r-pill); cursor: pointer; }
.boton--sec { color: var(--desk-text); background: var(--desk-surface); border: 1px solid var(--desk-text3); }
form .boton { width: 100%; }

/* Campo trampa: fuera de pantalla, no display:none (algunos bots lo saltean). */
.trampa { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile { margin: 0 0 16px; min-height: 65px; }

/* Perfil: select, textarea, opciones, pasos, listas. Provisorio. */
.campo select, .campo textarea { box-sizing: border-box; width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; color: var(--desk-text);
  background: var(--desk-surface); border: 1px solid var(--desk-text3); border-radius: var(--desk-r-campo); }
.campo--error select, .campo--error textarea { border-color: var(--desk-danger); border-width: 2px; }
fieldset.campo { border: 0; padding: 0; margin: 0 0 16px; }
fieldset.campo legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
/* Casillas y radios: 24 px, centrados con su texto, y toda la etiqueta es el area tactil (>= 48 px de alto). */
.opcion, .campo .opcion { display: flex; align-items: center; gap: 12px; min-height: 48px; margin: 0 0 8px; cursor: pointer; }
.campo input[type=checkbox], .campo input[type=radio], .opcion input { box-sizing: border-box; width: 24px; height: 24px; min-height: 0; margin: 0; padding: 0; flex: none; accent-color: var(--desk-accentText); }
.opcion > span { min-width: 0; }
.campo input[type=file] { min-height: 0; padding: 10px; }
h2 { margin: 24px 0 8px; font-size: 1.2rem; }
progress { width: 100%; height: 12px; accent-color: var(--desk-accentText); margin: 0 0 12px; }
.pasos { display: flex; flex-wrap: wrap; gap: 0 16px; list-style: none; margin: 0 0 16px; padding: 0; font-size: .9rem; }
.pasos a { display: inline-flex; align-items: center; min-height: 44px; }
.pasos [aria-current=step] a { font-weight: 700; }
.lista { list-style: none; margin: 0 0 16px; padding: 0; }
.lista li { padding: 12px 0; border-bottom: 1px solid var(--desk-hair); }
.acciones { display: flex; gap: 16px; align-items: center; margin-top: 8px; }
.acciones a { display: inline-flex; align-items: center; min-height: 44px; }
.acciones form .boton { width: auto; min-height: 40px; padding: 6px 16px; }
.texto-largo { white-space: pre-line; color: var(--desk-text2); }
.datos dt { font-weight: 600; margin-top: 8px; }
.datos dd { margin: 0; overflow-wrap: anywhere; }
.botonera { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.faltan { margin: 0 0 8px; padding-left: 20px; }
.faltan a { display: inline-block; padding-block: 8px; }

/* Errores: resumen arriba, campo con error, boton de peligro, acciones de las paginas de error. */
.campo { scroll-margin-top: 16px; }
.resumen-errores { scroll-margin-top: 8px; margin: 0 0 20px; padding: 12px 16px; border: 2px solid var(--desk-danger); border-radius: var(--desk-r-campo); background: var(--desk-danger-soft); }
.resumen-errores__t { margin: 0 0 6px; font-weight: 700; }
.resumen-errores ul { margin: 0; padding-left: 20px; }
.resumen-errores li { margin: 0 0 4px; }
.resumen-errores a { color: var(--desk-danger-text); font-weight: 600; }
.boton--peligro { color: var(--desk-onDanger); background: var(--desk-danger-fuerte); }
.acciones-error { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.acciones-error .boton { width: auto; }
.enlace-sec { display: inline-flex; align-items: center; min-height: 44px; }

/* QA 1, bajas. CV: archivo y subida (B6); boton bloqueado mientras sube o espera el token de Turnstile (B6, B7). */
.campo input[type=file] { cursor: pointer; }
.campo input[type=file]::file-selector-button { margin-right: 12px; padding: 8px 16px; font: inherit; font-weight: 600; color: var(--desk-text);
  background: var(--desk-surface); border: 1px solid var(--desk-text3); border-radius: var(--desk-r-pill); cursor: pointer; }
.boton:disabled { opacity: .6; cursor: progress; }
