/* ============================================================
   Libro de Reclamaciones – Frontend Styles
   ============================================================ */

:root {
  --lr-primary: #1422d5;
  --lr-primary-dark: #0e18a0;
  --lr-accent: #ec6e3d;
  --lr-border: #d1d5db;
  --lr-border-focus: #1422d5;
  --lr-bg: #f5f6fa;
  --lr-bg-section: #ffffff;
  --lr-radius: 8px;
  --lr-input-h: 50px;
  --lr-text: #1d2327;
  --lr-muted: #6b7280;
  --lr-error: #dc2626;
  --lr-success: #16a34a;
}

/* ── Wrapper ── */
.lr-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px 48px;
  font-family: inherit;
}

.lr-main-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--lr-primary);
  text-align: center;
  margin: 40px 0 32px;
  letter-spacing: -0.5px;
}

/* ── Formulario ── */
.lr-form {
  overflow: hidden;
}

/* ── Sección ── */
.lr-section {
  background: var(--lr-bg-section);
  border: 1px solid var(--lr-border);
  border-radius: var(--lr-radius);
  padding: 24px 28px;
  margin-bottom: 16px;
}

.lr-section--static {
  background: #f8f9fa;
}

.lr-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.lr-section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--lr-primary);
  color: #fff;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.lr-section-title {
  font-size: 12px !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--lr-text);
  margin: 0;
  line-height: 1.3 !important;
}

/* ── Rows ── */
.lr-row {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
}

.lr-row--2 > * {
  flex: 1 1 0;
  min-width: 0;
}

@media (max-width: 600px) {
  .lr-row--2 {
    flex-direction: column;
    gap: 10px;
  }
}

/* ── Inputs ── */
.lr-input,
.lr-select,
.lr-textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid var(--lr-border);
  border-radius: var(--lr-radius);
  font-size: 14px;
  color: var(--lr-text);
  background: #fff;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
  font-family: inherit;
  outline: none;
}

.lr-input,
.lr-select {
  height: var(--lr-input-h);
  padding: 0 14px;
}

.lr-input:focus,
.lr-select:focus,
.lr-textarea:focus {
  border-color: var(--lr-border-focus);
  box-shadow: 0 0 0 3px rgba(20, 34, 213, 0.1);
}

.lr-input::placeholder,
.lr-textarea::placeholder {
  color: #9ca3af;
}

.lr-textarea {
  padding: 14px;
  resize: vertical;
  line-height: 1.6;
  min-height: 100px;
  width: 100%;
  margin-top: 12px;
}

/* ── Select wrapper ── */
.lr-select-wrap {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
}

.lr-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  cursor: pointer;
}

.lr-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--lr-muted);
  font-size: 12px;
}

/* ── Radio group ── */
.lr-radio-group {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.lr-radio-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--lr-text);
  user-select: none;
}

.lr-radio-label input[type="radio"] {
  display: none;
}

.lr-radio-custom {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--lr-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s;
  flex-shrink: 0;
}

.lr-radio-custom::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lr-accent);
  opacity: 0;
  transform: scale(0);
  transition:
    opacity 0.15s,
    transform 0.15s;
}

.lr-radio-label input[type="radio"]:checked + .lr-radio-custom {
  border-color: var(--lr-accent);
}

.lr-radio-label input[type="radio"]:checked + .lr-radio-custom::after {
  opacity: 1;
  transform: scale(1);
}

/* ── Nota tipo reclamo/queja ── */
.lr-tipo-nota {
  font-size: 12px;
  color: var(--lr-muted);
  margin: 0 0 12px;
  line-height: 1.6;
}

/* ── Área de archivo ── */
.lr-file-area {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 2px dashed var(--lr-border);
  border-radius: var(--lr-radius);
  padding: 14px 18px;
  margin-top: 12px;
  transition:
    border-color 0.15s,
    background 0.15s;
}

.lr-file-area.lr-file-drag-over {
  border-color: var(--lr-primary);
  background: rgba(20, 34, 213, 0.04);
}

.lr-file-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: var(--lr-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  flex: 1;
}

.lr-file-types {
  font-weight: 400;
  color: var(--lr-muted);
  font-size: 13px;
}

.lr-file-icon {
  margin-left: auto;
  font-size: 20px;
  color: var(--lr-primary);
}

.lr-file-name {
  font-size: 13px;
  color: var(--lr-text);
  font-weight: 500;
}

.lr-file-remove {
  background: none;
  border: none;
  color: var(--lr-muted);
  cursor: pointer;
  font-size: 16px;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: inherit;
}

.lr-file-remove:hover {
  color: var(--lr-error);
  background: #fee2e2;
}

.lr-file-hint {
  font-size: 12px;
  color: var(--lr-muted);
  margin: 6px 0 0;
}

/* ── Texto estático ── */
.lr-static-text {
  font-size: 13px;
  color: var(--lr-muted);
  margin: 0;
  line-height: 1.7;
}

/* ── Notas legales ── */
.lr-legal-notes {
  padding: 0 4px;
  margin-bottom: 16px;
}

.lr-legal-notes p {
  font-size: 12px;
  color: var(--lr-muted);
  margin: 4px 0;
  line-height: 1.6;
}

/* ── Checkboxes ── */
.lr-checks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.lr-check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--lr-text);
  cursor: pointer;
  line-height: 1.5;
}

.lr-check-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--lr-primary);
  cursor: pointer;
}

.lr-check-label a {
  color: var(--lr-primary);
}

/* ── Submit ── */
.lr-submit-wrap {
  display: flex;
  justify-content: center;
  padding-bottom: 8px;
}

.lr-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--lr-primary);
  color: #fff;
  border: none;
  border-radius: var(--lr-radius);
  padding: 14px 40px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.3px;
  transition:
    background 0.2s,
    transform 0.1s;
}

.lr-submit-btn:hover {
  background: var(--lr-primary-dark);
}

.lr-submit-btn:active {
  transform: scale(0.98);
}

.lr-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.lr-submit-icon {
  font-size: 18px;
}

/* ── Mensaje de respuesta ── */
.lr-form-msg {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--lr-radius);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.lr-form-msg--ok {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.lr-form-msg--error {
  background: #fee2e2;
  color: var(--lr-error);
  border: 1px solid #fca5a5;
}
