/* Pensado para pacientes mayores: letra grande, buen contraste, botones grandes. */
:root {
  --fondo: #f7f9fb;
  --texto: #1b2733;
  --borde: #5b6b7a;
  --acento: #0b5cad;
  --acento-oscuro: #08457f;
  --error: #a4161a;
  --aviso: #fff4d6;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 1.25rem;
  line-height: 1.5;
}

main { max-width: 40rem; margin: 0 auto; padding: 1.5rem 1rem 3rem; }

h1 { font-size: 2rem; margin: 0 0 .5rem; }
h2 { font-size: 1.75rem; }
.intro { margin-top: 0; }

.urgencia {
  background: var(--aviso);
  border-left: 6px solid #c98a00;
  padding: .75rem 1rem;
  border-radius: 6px;
}

.campo { margin: 1.25rem 0; border: 0; padding: 0; }
label, legend { display: block; font-weight: 600; margin-bottom: .35rem; }
.opcional { font-weight: 400; color: #4a5a68; }
.ayuda { margin: 1.5rem 0 0; font-weight: 600; }

input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%;
  font: inherit;
  padding: .7rem .8rem;
  border: 2px solid var(--borde);
  border-radius: 8px;
  background: #fff;
  color: inherit;
}
textarea { resize: vertical; }

input:focus, textarea:focus, button:focus-visible {
  outline: 4px solid #ffbf47;
  outline-offset: 2px;
}

.opcion {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-weight: 400;
  margin: .6rem 0;
  padding: .5rem 0;
}
.opcion input { width: 1.6rem; height: 1.6rem; flex: none; margin-top: .15rem; }
.consentimiento em { display: block; font-size: 1rem; color: #4a5a68; }

.verificacion { margin: 1.25rem 0; min-height: 65px; }

.error {
  color: var(--error);
  background: #fdecec;
  border: 2px solid var(--error);
  padding: .75rem 1rem;
  border-radius: 8px;
  font-weight: 600;
}

button {
  width: 100%;
  font: inherit;
  font-weight: 700;
  font-size: 1.35rem;
  padding: 1rem;
  color: #fff;
  background: var(--acento);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}
button:hover { background: var(--acento-oscuro); }
button:disabled { background: #6b7c8c; cursor: wait; }

.listo { background: #e7f5ea; border: 2px solid #2e7d32; border-radius: 10px; padding: 1rem 1.25rem; }
.listo h2 { margin-top: 0; }

/* Campo trampa fuera de pantalla (no display:none, para que los bots lo vean). */
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 480px) {
  body { font-size: 1.15rem; }
}
