/* ════════════════════════════════════════════════════════
   LIBRO DE RECLAMACIONES — Hoja de Reclamación virtual (T-017)
   Solo se carga en libro-reclamaciones.html. Tema oscuro como las
   otras páginas legales; usa los tokens de tokens.css.
════════════════════════════════════════════════════════ */

.lr-hoja { margin-top: 0; padding: 0; } /* components.css da padding a todo <section> */
.lr-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px;
  background: var(--dark-800); border: 1px solid var(--dark-border);
  border-radius: 12px; padding: 18px 20px; margin-bottom: 8px;
}
.lr-head div { font-size: .9rem; color: var(--dark-muted2); }
.lr-head strong { display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dark-muted); font-weight: 700; }
.lr-head span { color: var(--dark-text); }
.lr-head .lr-ancho { grid-column: 1 / -1; }

.lr-fieldset { border: 1px solid var(--dark-border); border-radius: 12px; padding: 6px 20px 18px; margin: 22px 0; min-width: 0; }
.lr-fieldset > legend { line-height: 1.3; font-family: var(--font-h); font-weight: 600; font-size: 1.05rem; color: #fff; padding: 0 8px; }

.lr-field { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.lr-field[hidden] { display: none; }
/* Bloque del padre/madre o apoderado (menor de edad): se separa con una línea lateral */
.lr-apoderado { margin-top: 14px; padding-left: 14px; border-left: 3px solid var(--blue-500); }
.lr-apoderado[hidden] { display: none; }
.lr-subtitulo { margin: 0; font-size: .92rem; font-weight: 700; color: #fff; }
.lr-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.lr-field label, .lr-field .lr-label, .lr-check label, .lr-opcion {
  /* components.css pone todo <label> en mayúsculas pequeñas y todo <input> al 100 % de ancho (estilos del formulario claro de la portada) */
  display: block; text-transform: none; letter-spacing: 0; margin-bottom: 0;
}
.lr-field label, .lr-field .lr-label { font-size: .9rem; font-weight: 700; color: var(--dark-text); }
.lr-check input[type="checkbox"], .lr-opcion input[type="radio"] {
  width: 20px; height: 20px; padding: 0; border: 0; background: none; border-radius: 0;
}
.lr-field .lr-opcion { display: flex; }
.lr-field h2, .lr-hoja h2 { letter-spacing: 0; line-height: 1.3; font-size: 1.25rem; font-weight: 600; }
.lr-req { color: #f87171; margin-left: 2px; }
.lr-hint { font-size: .8rem; color: var(--dark-muted); margin: 0; }

.lr-field input[type="text"], .lr-field input[type="email"], .lr-field input[type="tel"],
.lr-field select, .lr-field textarea {
  width: 100%; background: var(--dark-900); color: var(--dark-text);
  border: 1.5px solid rgba(139,156,200,.35); border-radius: 10px;
  font: inherit; font-size: .95rem; padding: .7rem .85rem;
  transition: border-color .18s, box-shadow .18s;
}
.lr-field select { color-scheme: dark; }
.lr-field textarea { min-height: 110px; resize: vertical; }
.lr-field input:focus, .lr-field select:focus, .lr-field textarea:focus {
  outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(59,130,246,.2);
}
.lr-field .lr-invalid { border-color: #ef4444; background: rgba(239,68,68,.08); }
.lr-error { color: #fca5a5; font-size: .82rem; margin: 0; min-height: 0; }
.lr-error:empty { display: none; }

.lr-check { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; }
.lr-check input { margin-top: 3px; flex: none; accent-color: var(--blue-500); }
.lr-check label { font-size: .92rem; font-weight: 400; color: var(--dark-muted2); }

.lr-opciones { display: grid; gap: 10px; }
.lr-opcion { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid rgba(139,156,200,.35); border-radius: 10px; padding: 12px 14px; cursor: pointer; }
.lr-opcion input { margin-top: 2px; accent-color: var(--blue-500); flex: none; }
.lr-opcion:has(input:checked) { border-color: var(--blue-500); background: rgba(59,130,246,.1); }
.lr-txt { display: block; }
.lr-opcion span { display: block; font-size: .88rem; color: var(--dark-muted2); }
.lr-opcion strong { display: block; color: var(--dark-text); margin-bottom: 2px; }

.lr-leyendas { background: var(--dark-800); border-left: 4px solid var(--blue-500); border-radius: 0 10px 10px 0; padding: 14px 18px; margin: 22px 0; }
.lr-leyendas p { font-size: .9rem; margin: 0 0 8px; }
.lr-leyendas p:last-child { margin-bottom: 0; }

.lr-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--blue-600); color: #fff; border: 0; border-radius: 10px;
  font-family: var(--font-h); font-weight: 600; font-size: 1rem;
  padding: .85rem 1.8rem; cursor: pointer; min-height: 48px;
}
.lr-submit:hover { background: var(--blue-500); }
.lr-submit:disabled { opacity: .6; cursor: wait; }
.lr-estado { margin-top: 12px; font-size: .92rem; }
.lr-estado.lr-fallo { color: #fca5a5; }

.lr-exito { background: var(--dark-800); border: 1px solid var(--green-500); border-radius: 14px; padding: 28px 24px; margin-top: 24px; text-align: center; }
.lr-exito h2 { margin-top: 0; }
.lr-numero { display: inline-block; font-family: var(--font-h); font-weight: 700; font-size: 1.5rem; letter-spacing: .04em; color: var(--green-400); background: rgba(34,197,94,.1); border: 1.5px solid var(--green-500); border-radius: 10px; padding: 10px 20px; margin: 10px 0 14px; word-break: break-all; }
.lr-exito .lr-aviso-copia { color: #fcd34d; }

.lr-sr { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

@media (max-width: 640px) {
  .lr-head, .lr-row { grid-template-columns: 1fr; }
  .lr-fieldset { padding: 4px 14px 14px; }
  .lr-numero { font-size: 1.15rem; }
  .lr-submit { width: 100%; }
}

/* Anti-robots (Cloudflare Turnstile): espacio para el widget; vacío si no hay llave */
.lr-turnstile { margin: 8px 0 16px; }
.lr-turnstile:empty { margin: 0; }
