/* Estilos del formulario de ingreso (archivo aparte para poder publicar con una política de seguridad estricta). */
  :root {
    --bg: #f7f2ef; --surface: #ffffff; --surface-2: #f3ece8; --border: #e6dbd5;
    --text: #2b2522; --muted: #7a706a; --accent: #b4536a; --accent-2: #8f3d52; --accent-soft: #f6e4e8;
    --error: #b42318; --error-soft: #fde8e6; --ok: #2f7d4f; --radius: 16px;
    color-scheme: light;
  }
  @media (prefers-color-scheme: dark) {
    :root {
      --bg: #181514; --surface: #221e1c; --surface-2: #2b2624; --border: #3a3330;
      --text: #f1ebe7; --muted: #a89c95; --accent: #e08aa0; --accent-2: #f0a9bb; --accent-soft: #3d2a2f;
      --error: #f97066; --error-soft: #3f1d1a; --ok: #6ee7a0; color-scheme: dark;
    }
  }
  * { box-sizing: border-box; }
  html, body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-text-size-adjust: 100%; }
  .wrap { max-width: 560px; margin: 0 auto; padding: 0 16px 120px; }
  header { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 12px 16px 10px; border-bottom: 1px solid var(--border); }
  .marca { max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 10px; }
  .logo { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; letter-spacing: .5px; flex: none; }
  .marca b { font-size: 15px; } .marca span { display: block; font-size: 12px; color: var(--muted); }
  .progreso { max-width: 560px; margin: 10px auto 0; }
  .barra { height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
  .barra i { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .25s; }
  .paso-txt { font-size: 12px; color: var(--muted); margin-top: 6px; display: flex; justify-content: space-between; }
  .prueba { background: #fdf1d3; color: #6b4600; font-size: 13px; padding: 8px 16px; text-align: center; }
  h1 { font-size: 22px; line-height: 1.25; margin: 22px 0 8px; }
  h2 { font-size: 20px; margin: 22px 0 6px; }
  p { margin: 0 0 12px; }
  .intro { color: var(--muted); white-space: pre-line; }
  .card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin: 14px 0; }
  .campo { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
  .campo > label, .campo > legend { display: block; font-weight: 600; margin-bottom: 6px; padding: 0; }
  .req { color: var(--accent); margin-left: 2px; }
  .ayuda { font-size: 13px; color: var(--muted); margin: -2px 0 8px; }
  input[type=text], input[type=tel], textarea { width: 100%; font: inherit; color: var(--text); background: var(--surface); border: 1.5px solid var(--border); border-radius: 12px; padding: 12px 14px; outline: none; }
  textarea { min-height: 96px; resize: vertical; }
  input:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
  .unidad { display: flex; align-items: center; gap: 8px; } .unidad span { color: var(--muted); }
  .opciones { display: grid; gap: 8px; }
  .opciones.linea { grid-template-columns: repeat(auto-fit, minmax(36px, 1fr)); gap: 6px; }
  .opciones.linea.diez { grid-template-columns: repeat(5, 1fr); }
  .op { position: relative; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--surface); cursor: pointer; }
  .op input { position: absolute; opacity: 0; pointer-events: none; }
  .op .marca-op { width: 20px; height: 20px; flex: none; border: 2px solid var(--border); border-radius: 50%; display: grid; place-items: center; }
  .op.multi .marca-op { border-radius: 6px; }
  .op.sel { border-color: var(--accent); background: var(--accent-soft); }
  .op.sel .marca-op { border-color: var(--accent); background: var(--accent); }
  .op.sel .marca-op::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
  .op.multi.sel .marca-op::after { width: 10px; height: 6px; border-radius: 0; background: none; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); }
  .op:focus-within { box-shadow: 0 0 0 3px var(--accent-soft); }
  .linea .op { justify-content: center; padding: 10px 0; } .linea .op .marca-op { display: none; }
  .escala { display: grid; gap: 6px; } .escala .extremos { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
  .otro { margin-top: 8px; }
  .error { color: var(--error); font-size: 14px; margin-top: 6px; }
  .campo.con-error input, .campo.con-error textarea, .campo.con-error .op { border-color: var(--error); }
  .aviso { font-size: 14px; } .aviso p { margin-bottom: 8px; }
  .consent { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1.5px solid var(--accent); border-radius: 12px; background: var(--accent-soft); cursor: pointer; }
  .consent input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--accent); flex: none; }
  .acciones { position: fixed; left: 0; right: 0; bottom: 0; background: var(--bg); border-top: 1px solid var(--border); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .acciones .in { max-width: 560px; margin: 0 auto; display: flex; gap: 10px; }
  button { font: inherit; cursor: pointer; }
  .btn { min-height: 50px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text); padding: 0 18px; font-weight: 600; }
  .btn.prim { flex: 1; background: var(--accent); border-color: var(--accent); color: #fff; }
  .btn:disabled { opacity: .5; cursor: not-allowed; }
  .rev-paso { display: flex; justify-content: space-between; align-items: center; margin: 0 0 8px; }
  .rev-paso h3 { margin: 0; font-size: 16px; }
  .link { background: none; border: 0; color: var(--accent); font-weight: 600; padding: 6px 0; }
  dl { margin: 0; } dt { font-size: 13px; color: var(--muted); margin-top: 8px; } dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
  .fin { text-align: center; padding-top: 30px; } .fin .ok { font-size: 48px; }
  ul.fotos { margin: 6px 0 0; padding-left: 20px; }
  .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pequeno { font-size: 13px; color: var(--muted); }
  .aviso-titulo { margin-top: 0; font-size: 17px; }
  .fotos-texto { margin: 6px 0 0; }
  .izq { text-align: left; }

