/* =============================================================================
   Soft Imperio — Libro de Reclamaciones (libro-de-reclamaciones.html)
   Reusa la cabecera de la página legal y el sistema de formularios. Solo tokens
   del sistema; no redefine variables.
   ============================================================================= */

/* Sello del libro junto al título */
.lr-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.4rem; height: 2.4rem; margin-right: 0.35rem;
  vertical-align: -0.45rem;
  background: var(--brand-50);
  border: 1px solid color-mix(in oklch, var(--brand) 28%, var(--border));
  border-radius: var(--r-md);
  color: var(--brand-ink);
}
.lr-badge svg { width: 1.35rem; height: 1.35rem; }

/* Layout: hoja + panel del proveedor */
.lr-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: clamp(1.25rem, 1rem + 2vw, 2.25rem);
  align-items: start;
}
@media (max-width: 900px) { .lr-layout { grid-template-columns: 1fr; } }

.lr-provider { position: sticky; top: calc(4.5rem + 1rem); }
@media (max-width: 900px) { .lr-provider { position: static; } }
.lr-provider h2 { font-size: 1.05rem; margin-bottom: 0.9rem; }
.lr-provider dl { display: grid; gap: 0.7rem; margin-bottom: 1rem; }
.lr-provider dt { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em; color: var(--ink-faint); text-transform: uppercase; }
.lr-provider dd { color: var(--ink-body); font-weight: 500; margin-top: 0.1rem; overflow-wrap: anywhere; }
.lr-provider dd a { color: var(--brand-ink); font-weight: 600; }
.lr-provider dd a:hover { text-decoration: underline; }
.lr-provider .legal-note { margin: 0; font-size: 0.88rem; }

/* Hoja de reclamación */
.lr-form section { padding-block: 1.4rem; }
.lr-form section:first-of-type { padding-top: 0.25rem; }
.lr-form section + section { border-top: 1px solid var(--border); }
.lr-form h2 { font-size: 1.05rem; margin-bottom: 1rem; }

/* Reclamo / queja como tarjetas seleccionables */
.lr-type { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
@media (max-width: 560px) { .lr-type { grid-template-columns: 1fr; } }
.lr-type__opt {
  display: flex; align-items: flex-start; gap: 0.65rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color var(--t), background-color var(--t), box-shadow var(--t);
}
.lr-type__opt input { flex: none; width: 1.1rem; height: 1.1rem; margin-top: 0.2rem; accent-color: var(--brand-strong); cursor: pointer; }
.lr-type__opt span { display: grid; gap: 0.1rem; line-height: 1.35; }
.lr-type__opt b { color: var(--ink); font-size: 0.95rem; }
.lr-type__opt small { color: var(--ink-muted); font-size: 0.82rem; }
.lr-type__opt:hover { border-color: color-mix(in oklch, var(--brand) 40%, var(--border)); }
.lr-type__opt:has(input:checked) {
  border-color: var(--brand-strong);
  background: var(--brand-50);
}
.lr-type__opt:has(input:focus-visible) { box-shadow: var(--ring); }

/* Declaración + envío */
.check { display: flex; align-items: flex-start; gap: 0.6rem; cursor: pointer; font-size: 0.9rem; color: var(--ink-body); line-height: 1.45; }
.check input { flex: none; width: 1.15rem; height: 1.15rem; margin-top: 0.12rem; accent-color: var(--brand-strong); cursor: pointer; }
.check a { color: var(--brand-ink); font-weight: 600; }
.check a:hover { text-decoration: underline; }

.lr-actions { margin-top: 1.25rem; display: grid; gap: 0.6rem; }
.lr-actions .hint[role="alert"] { color: var(--danger-ink); font-size: 0.92rem; }
.lr-actions .hint a { color: inherit; font-weight: 700; text-decoration: underline; }

.lr-fineprint { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px dashed var(--border); }
.lr-fineprint p { font-size: 0.8rem; color: var(--ink-faint); line-height: 1.55; margin-bottom: 0.4rem; }

/* Constancia (vista de éxito) */
.lr-done { text-align: left; }
.lr-done .icon-tile {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.8rem; height: 2.8rem; margin-bottom: 0.9rem;
  background: var(--brand-50); color: var(--brand-ink);
  border: 1px solid color-mix(in oklch, var(--brand) 28%, var(--border));
  border-radius: var(--r-md);
}
.lr-done .icon-tile svg { width: 1.5rem; height: 1.5rem; }
.lr-done h2 { margin-bottom: 0.35rem; }
.lr-done__num { font-size: 1.05rem; color: var(--ink); margin-bottom: 0.15rem; }
.lr-done p { color: var(--ink-body); line-height: 1.6; margin-bottom: 0.9rem; }
.lr-done p.muted { color: var(--ink-faint); font-size: 0.9rem; }
.lr-done__summary {
  display: grid; gap: 0.75rem;
  padding: 1rem 1.1rem; margin-bottom: 1.1rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.lr-row span { display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 0.15rem; }
.lr-row p { margin: 0; color: var(--ink-body); white-space: pre-wrap; overflow-wrap: anywhere; }

/* Impresión de la constancia: solo la hoja, sin chrome */
@media print {
  .site-header, .site-footer, .breadcrumb, .lr-provider .legal-note, .lr-done .btn, .lr-done .row { display: none !important; }
  .lr-layout { grid-template-columns: 1fr; }
  .lr-provider, .lr-done { position: static; border: 1px solid #bbb; box-shadow: none; }
  body { background: #fff; }
}
