/* ==========================================================================
   Libro de Reclamaciones
   Estilos propios de la app (los recoge AppDirectoriesFinder, no van en site.css
   para no seguir engordando ese archivo).
   ========================================================================== */

.lr-verde        { color: #005E3D; }
:root {
  --lr-verde: #005E3D;
  --lr-verde-claro: #e3f3ea;
  --lr-verde-suave: #f4faf7;
  --lr-borde: #e2e6e4;
  --lr-texto: #333;
  --lr-gris: #6b7280;
}

/* Hero de la página (mismo patrón que otros heroes del sitio) */
.lr-hero { background: linear-gradient(120deg, #004c31, #007a4f); }

/* ---------- Layout: formulario + aside ---------- */
.lr-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1.75rem;
  align-items: start;
  margin-top: 0.5rem;
}
.lr-main { display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }

.lr-card { padding: 1.75rem !important; }

.lr-card-head {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}
.lr-card-head h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--lr-texto);
  line-height: 1.2;
}
.lr-card-head p {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: var(--lr-gris);
}
.lr-step {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--lr-verde);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Campos ---------- */
.lr-rows { display: flex; flex-direction: column; gap: 1.35rem; }
.lr-grid { display: grid; gap: 1.1rem 1.25rem; }
.lr-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lr-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lr-col-2 { grid-column: span 2; }

.lr-field { display: flex; flex-direction: column; min-width: 0; position: relative; }
.lr-field-full { margin-top: 1.1rem; }

.lr-field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #3f4a45;
  margin-bottom: 0.45rem;
}
.lr-req { color: #c0392b; font-weight: 700; }

.lr-field input,
.lr-field select,
.lr-field textarea {
  width: 100%;
  border: 1px solid var(--lr-borde);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--lr-texto);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.lr-field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }

.lr-field input::placeholder,
.lr-field textarea::placeholder { color: #b3b9b6; }

.lr-field input:focus,
.lr-field select:focus,
.lr-field textarea:focus {
  outline: none;
  border-color: var(--lr-verde);
  box-shadow: 0 0 0 3px rgba(0, 94, 61, 0.12);
}
.lr-field select:disabled { background: #f6f7f7; color: #9aa2a0; cursor: not-allowed; }

.lr-field.has-error input,
.lr-field.has-error select,
.lr-field.has-error textarea { border-color: #c0392b; }
.lr-field-error { font-size: 0.8rem; color: #c0392b; margin-top: 0.35rem; }

.lr-hint {
  position: absolute;
  right: 0;
  bottom: -1.15rem;
  font-size: 0.75rem;
  color: var(--lr-gris);
}

/* ---------- Motivo: Reclamo / Queja ---------- */
.lr-motivos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.15rem;
}
.lr-motivo {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border: 1.5px solid var(--lr-borde);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.lr-motivo:hover { border-color: #b9d6c8; }
.lr-motivo.is-selected { border-color: var(--lr-verde); background: var(--lr-verde-suave); }
.lr-motivo input { position: absolute; opacity: 0; pointer-events: none; }

.lr-motivo-dot {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border: 2px solid #c3cbc7;
  border-radius: 50%;
  position: relative;
  transition: border-color 0.15s ease;
}
.lr-motivo.is-selected .lr-motivo-dot { border-color: var(--lr-verde); }
.lr-motivo.is-selected .lr-motivo-dot::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--lr-verde);
}
.lr-motivo-texto {
  font-size: 0.85rem;
  color: var(--lr-gris);
  line-height: 1.5;
}
.lr-motivo-texto strong {
  display: block;
  font-size: 1.02rem;
  color: var(--lr-texto);
  margin-bottom: 0.2rem;
}
.lr-motivo.is-selected .lr-motivo-texto strong { color: var(--lr-verde); }

/* ---------- Aviso de datos personales ---------- */
.lr-disclaimer {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: var(--lr-verde-claro);
  border-radius: 10px;
  padding: 0.9rem 1.05rem;
  margin: 0.85rem 0 0;
  font-size: 0.83rem;
  line-height: 1.6;
  color: #37483f;
}
.lr-disclaimer svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; color: var(--lr-verde); }
.lr-disclaimer a { color: var(--lr-verde); font-weight: 700; text-decoration: none; }
.lr-disclaimer a:hover { text-decoration: underline; }

/* ---------- Evidencias ---------- */
.lr-dropzone {
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1.5px dashed #cdd7d2;
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
  background: #fcfdfd;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.lr-dropzone.is-dragover { border-color: var(--lr-verde); background: var(--lr-verde-suave); }
.lr-dropzone-ico {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--lr-verde-claro);
  color: var(--lr-verde);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lr-dropzone-ico svg { width: 24px; height: 24px; }
.lr-dropzone-texto { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.lr-dropzone-texto strong { font-size: 0.98rem; color: var(--lr-texto); font-weight: 600; }
.lr-dropzone-texto span { font-size: 0.8rem; color: var(--lr-gris); }

.lr-btn-adjuntar {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--lr-borde);
  border-radius: 10px;
  padding: 0.6rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--lr-texto);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.lr-btn-adjuntar:hover { border-color: var(--lr-verde); color: var(--lr-verde); }
.lr-btn-adjuntar svg { width: 16px; height: 16px; }

.lr-archivos { list-style: none; margin: 0.9rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.lr-archivos li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--lr-verde-suave);
  border: 1px solid #dbeae2;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  color: #37483f;
}
.lr-archivos .lr-archivo-nombre { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lr-archivos .lr-archivo-peso { color: var(--lr-gris); font-size: 0.78rem; flex-shrink: 0; }
.lr-archivos button {
  border: none;
  background: none;
  color: var(--lr-gris);
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
  padding: 0 0.15rem;
  flex-shrink: 0;
}
.lr-archivos button:hover { color: #c0392b; }

.lr-captcha { margin-top: 1.25rem; }

/* ---------- Errores generales ---------- */
.lr-errores {
  margin-top: 1.1rem;
  border: 1px solid #f0c6c1;
  background: #fdf3f2;
  border-radius: 10px;
  padding: 0.9rem 1.05rem;
  font-size: 0.85rem;
  color: #8c2f22;
  line-height: 1.6;
}
.lr-errores ul { margin: 0.35rem 0 0; padding-left: 1.1rem; }

/* ---------- Envío ---------- */
.lr-envio {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--lr-borde);
}
.lr-faltantes {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.85rem;
  color: var(--lr-gris);
}
.lr-faltantes svg { width: 16px; height: 16px; flex-shrink: 0; }
.lr-faltantes.is-ok { color: var(--lr-verde); }

.lr-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: none;
  border-radius: 10px;
  padding: 0.85rem 1.6rem;
  font-size: 0.98rem;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: var(--lr-verde);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.lr-submit svg { width: 18px; height: 18px; }
.lr-submit:hover:not(:disabled) {
  background: #00764c;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 94, 61, 0.22);
}
.lr-submit:disabled { background: #d5dbd8; color: #8e9793; cursor: not-allowed; }
.lr-submit.is-enviando { pointer-events: none; opacity: 0.75; }

/* ---------- Aside ---------- */
.lr-aside { position: sticky; top: 100px; }
.lr-aside-card { padding: 1.5rem !important; }
.lr-aside-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--lr-verde);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
}
.lr-aside-ico svg { width: 22px; height: 22px; }
.lr-aside-card h3 {
  margin: 0 0 0.9rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--lr-texto);
}
.lr-checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.65rem; }
.lr-checklist li {
  display: flex;
  gap: 0.55rem;
  font-size: 0.87rem;
  color: var(--lr-gris);
  line-height: 1.5;
}
.lr-checklist li::before {
  content: '✓';
  color: var(--lr-verde);
  font-weight: 700;
  flex-shrink: 0;
}
.lr-aside-nota {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  background: var(--lr-verde-claro);
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  margin: 1.15rem 0 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #37483f;
}
.lr-aside-nota svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 1px; color: var(--lr-verde); }
.lr-aside-pie {
  margin: 1rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--lr-borde);
  font-size: 0.76rem;
  color: #9aa2a0;
  line-height: 1.5;
}

/* ---------- Modal de confirmación ---------- */
.lr-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 1.25rem; }
.lr-modal[hidden] { display: none; }
.lr-modal-fondo { position: absolute; inset: 0; background: rgba(15, 30, 24, 0.55); backdrop-filter: blur(2px); }
.lr-modal-caja {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 2.25rem 2rem 1.75rem;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  animation: lr-modal-in 0.22s ease-out;
  max-height: 92vh;
  overflow-y: auto;
}
@keyframes lr-modal-in {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}
.lr-modal-check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--lr-verde);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}
.lr-modal-check svg { width: 30px; height: 30px; }
.lr-modal-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lr-verde);
}
.lr-modal-caja h2 {
  margin: 0 0 0.4rem;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--lr-texto);
}
.lr-modal-sub { margin: 0 0 1.35rem; font-size: 0.9rem; color: var(--lr-gris); line-height: 1.5; }
.lr-modal-sub strong { color: var(--lr-texto); }

.lr-modal-codigo {
  border: 1.5px dashed #a9cfbc;
  background: var(--lr-verde-suave);
  border-radius: 14px;
  padding: 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.lr-modal-codigo span:first-child {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lr-gris);
}
.lr-modal-codigo strong {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--lr-verde);
  letter-spacing: 0.01em;
  line-height: 1.1;
  word-break: break-all;
}
.lr-modal-codigo span:last-child { font-size: 0.76rem; color: var(--lr-gris); }

.lr-modal-nota {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  text-align: left;
  margin: 1.15rem 0 1.4rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--lr-gris);
}
.lr-modal-nota svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 1px; color: var(--lr-verde); }

.lr-modal-btn {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 0.95rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: var(--lr-verde);
  cursor: pointer;
  transition: background 0.15s ease;
}
.lr-modal-btn:hover { background: #00764c; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .lr-layout { grid-template-columns: 1fr; }
  .lr-aside { position: static; }
  .lr-aside-card { max-width: 520px; }
}

@media (max-width: 860px) {
  .lr-grid-3 { grid-template-columns: 1fr 1fr; }
  .lr-col-2 { grid-column: span 2; }
}

@media (max-width: 640px) {
  .lr-card { padding: 1.25rem !important; }
  .lr-grid-3, .lr-grid-2 { grid-template-columns: 1fr; }
  .lr-col-2 { grid-column: span 1; }
  .lr-motivos { grid-template-columns: 1fr; }
  .lr-dropzone { flex-direction: column; align-items: flex-start; }
  .lr-btn-adjuntar { width: 100%; justify-content: center; }
  .lr-envio { flex-direction: column; align-items: stretch; }
  .lr-submit { justify-content: center; }
  .lr-card-head h2 { font-size: 1.2rem; }
  .lr-modal-caja { padding: 1.75rem 1.25rem 1.35rem; }
  .lr-modal-codigo strong { font-size: 1.45rem; }
}
