/* Formulario de candidatas: celular primero, una pregunta por pantalla. */

body { background: var(--bg-soft); font-size: 18px; }

.hoja {
  max-width: 520px; margin: 0 auto; min-height: 100vh; min-height: 100dvh;
  background: var(--bg); display: flex; flex-direction: column;
}
@media (min-width: 560px) {
  .hoja { margin: 24px auto; min-height: calc(100vh - 48px); border-radius: 20px; overflow: hidden; border: 1px solid var(--border); }
}

.cabecera {
  background: var(--logo-bg); padding: 10px 20px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.cabecera img { height: 40px; width: auto; display: block; }
.cabecera-texto { font-size: 14px; font-weight: 600; color: #3E7B1F; }

#app { flex: 1; display: flex; flex-direction: column; }

.cargando { padding: 40px 20px; text-align: center; color: var(--text-2); }

.pantalla { flex: 1; display: flex; flex-direction: column; }

.progreso { padding: 16px 20px 0; display: flex; flex-direction: column; gap: 8px; }
.progreso-fila { display: flex; justify-content: space-between; align-items: center; min-height: 44px; }
.paso { font-size: 15px; font-weight: 600; color: var(--text-2); margin-left: auto; }
.barra { height: 8px; background: var(--border); border-radius: 99px; overflow: hidden; }
.barra > span { display: block; height: 100%; background: var(--primary); border-radius: 99px; transition: width .25s; }

.atras {
  background: none; border: 0; color: var(--primary-strong); font-weight: 600; font-size: 16px;
  min-height: 44px; padding: 0 8px 0 0; display: inline-flex; align-items: center; gap: 4px;
}

.contenido { flex: 1; padding: 20px; display: flex; flex-direction: column; gap: 14px; }

.pregunta { font-size: 25px; font-weight: 700; outline: none; }
.ayuda { margin: -4px 0 0; color: var(--text-2); font-size: 17px; }
.miga { font-size: 15px; font-weight: 700; color: var(--primary-strong); }

.resumen-vacante {
  display: flex; flex-direction: column; gap: 2px; background: var(--primary-soft); border-radius: 12px;
  padding: 10px 14px; font-size: 15px; color: var(--text);
}
.resumen-vacante b { font-size: 16px; }

/* Opciones grandes */
.opciones { display: flex; flex-direction: column; gap: 10px; }
.opciones-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.opcion {
  text-align: left; background: var(--surface); color: var(--text); border: 2px solid var(--border-strong);
  border-radius: 16px; padding: 14px 16px; min-height: 60px; display: flex; align-items: center; gap: 12px;
  font-size: 18px; font-weight: 600; width: 100%;
}
.opcion[aria-pressed="true"] { background: var(--primary-soft); border-color: var(--primary); }
.opcion:disabled { opacity: 1; }
.opcion-col { flex-direction: column; align-items: stretch; gap: 6px; }
.opcion-titulo { font-size: 20px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.opcion-desc { font-size: 16px; font-weight: 400; color: var(--text-2); line-height: 1.4; }
.opcion-ico {
  flex: none; width: 52px; height: 52px; border-radius: 14px; background: var(--primary-soft); color: var(--primary-strong);
  display: flex; align-items: center; justify-content: center;
}
.opcion-cuenta { font-size: 14px; font-weight: 700; color: var(--ok-fg); background: var(--ok-bg); border-radius: 99px; padding: 3px 10px; white-space: nowrap; }
.opcion-cuenta.vacia { color: var(--neu-fg); background: var(--neu-bg); }
.marca-check {
  flex: none; width: 26px; height: 26px; border-radius: 99px; border: 2px solid var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center; color: var(--on-primary);
}
.opcion[aria-pressed="true"] .marca-check { background: var(--primary); border-color: var(--primary); }

.separador { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: 15px; margin: 4px 0; }
.separador::before, .separador::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* Tarjetas de vacante */
.vacante {
  text-align: left; background: var(--surface); color: var(--text); border: 2px solid var(--border-strong);
  border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; width: 100%;
}
.vacante[aria-pressed="true"] { background: var(--primary-soft); border-color: var(--primary); }
.vacante-etiqueta {
  align-self: flex-start; font-size: 13px; font-weight: 700; color: var(--primary-strong); background: var(--surface);
  border: 1px solid var(--primary-line); border-radius: 99px; padding: 3px 10px;
}
.vacante-titulo { font-size: 20px; font-weight: 700; }
.vacante-linea { display: flex; align-items: center; gap: 8px; font-size: 16px; color: var(--text-2); }
.vacante-linea svg { color: var(--primary); }
.vacante-sueldo { font-family: var(--font-title); font-size: 23px; font-weight: 700; }
.vacante-sueldo small { font-family: var(--font-body); font-size: 16px; font-weight: 600; color: var(--text-2); }
.vacante-cerrada {
  border: 2px dashed var(--border-strong); border-radius: 16px; padding: 14px 16px; background: var(--surface-2);
  display: flex; flex-direction: column; gap: 4px;
}
.vacante-cerrada .vacante-titulo { color: var(--text-3); text-decoration: line-through; font-size: 18px; }
.vacante-cerrada span { font-size: 15px; font-weight: 600; color: var(--text-3); }

/* Campos grandes */
.campo-grande { display: flex; flex-direction: column; gap: 8px; }
.campo-grande label { font-size: 16px; font-weight: 600; }
.input-grande {
  width: 100%; height: 62px; border: 2px solid var(--border-strong); border-radius: 14px; padding: 0 16px;
  font-size: 21px; font-weight: 600; background: var(--surface); color: var(--text);
}
.input-grande:focus { border-color: var(--primary); }
.con-prefijo { display: flex; align-items: center; gap: 10px; border: 2px solid var(--border-strong); border-radius: 14px; padding: 0 16px; height: 62px; background: var(--surface); }
.con-prefijo:focus-within { border-color: var(--primary); outline: 3px solid var(--focus); outline-offset: 2px; }
.con-prefijo span { font-size: 20px; font-weight: 600; color: var(--text-2); }
.con-prefijo input { border: 0; outline: none; background: transparent; font-size: 22px; font-weight: 600; width: 100%; height: 100%; color: var(--text); }
.textarea-grande { width: 100%; min-height: 140px; border: 2px solid var(--border-strong); border-radius: 14px; padding: 14px 16px; font-size: 18px; background: var(--surface); color: var(--text); resize: vertical; }

.ref { border: 1px solid var(--border); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.ref-titulo { font-size: 16px; font-weight: 700; color: var(--text-2); display: flex; justify-content: space-between; align-items: center; }
.pildoras { display: flex; flex-wrap: wrap; gap: 8px; }
.pildora {
  background: var(--surface); color: var(--text); border: 2px solid var(--border-strong); border-radius: 99px;
  min-height: 46px; padding: 0 16px; font-size: 16px; font-weight: 600;
}
.pildora[aria-pressed="true"] { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-strong); }

.nota-guardado { display: flex; gap: 12px; align-items: flex-start; background: var(--surface-2); border-radius: 14px; padding: 14px 16px; font-size: 16px; }
.nota-guardado svg { flex: none; color: var(--primary); margin-top: 2px; }

.error { color: var(--bad-fg); background: var(--bad-bg); border-radius: 12px; padding: 10px 14px; font-weight: 600; font-size: 16px; }

.pie {
  position: sticky; bottom: 0; background: var(--bg); border-top: 1px solid var(--border);
  padding: 14px 20px calc(18px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 6px;
}

/* Confirmación */
.listo { align-items: center; text-align: center; padding-top: 40px; }
.listo-ico { width: 96px; height: 96px; border-radius: 99px; background: var(--primary-soft); color: var(--primary-strong); display: flex; align-items: center; justify-content: center; }
.listo-caja { background: var(--primary-soft); border-radius: 16px; padding: 18px 20px; width: 100%; }
.listo-caja p { margin: 0; font-size: 19px; font-weight: 600; color: var(--primary-strong); }
.listo-tel { font-size: 23px; font-weight: 700; letter-spacing: .5px; margin: 0; }

.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.tipo-txt { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.tipo-nombre { font-size: 20px; font-weight: 700; }

/* Computadora: más ancho, opciones en columnas */
@media (min-width: 900px) {
  body { font-size: 18px; }
  .hoja { max-width: 960px; margin: 32px auto; min-height: calc(100vh - 64px); }
  .cabecera { padding: 14px 40px; }
  .cabecera img { height: 48px; }
  .cabecera-texto { font-size: 16px; }
  .progreso { padding: 28px 48px 0; }
  .contenido { padding: 28px 48px 32px; gap: 18px; }
  .pregunta { font-size: 32px; }
  .opciones-tipos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .opciones-tipos .opcion { flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px; min-height: 220px; position: relative; }
  .opciones-tipos .opcion-cuenta { position: absolute; top: 22px; right: 22px; }
  .opciones-tipos .opcion-ico { width: 60px; height: 60px; }
  .opciones-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
  .opciones-act { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .campo-grande, .con-prefijo, .input-grande { max-width: 560px; }
  .textarea-grande { max-width: 720px; }
  .resumen-vacante { align-self: flex-start; min-width: 360px; }
  .contenido > .btn-big { max-width: 480px; }
  .pie { position: static; flex-direction: row; flex-wrap: wrap; justify-content: flex-end; align-items: center; padding: 20px 48px 28px; gap: 12px; }
  .pie .error { flex-basis: 100%; margin: 0; }
  .pie .btn-big { width: auto; min-width: 280px; padding: 0 32px; }
  .listo { max-width: 620px; margin: 0 auto; }
  .listo .btn-big { max-width: 420px; }
  .vacante-cerrada { align-self: start; }
}
