/* Latiamor · Libro de Reclamaciones Virtual (solo en /libro-de-reclamaciones/). Móvil primero. */
.lr-section { padding-top: clamp(16px, 3vw, 40px); }
.lr-intro { margin-bottom: 24px; }

.lr { gap: 22px; padding: clamp(18px, 4vw, 44px); min-width: 0; }
.lr > * { min-width: 0; }
.lr-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Cabecera de la hoja */
.lr-head { display: flex; gap: 14px; align-items: center; padding-bottom: 16px; border-bottom: 1.5px solid var(--line); }
.lr-head__icon { flex: none; width: 46px; height: 46px; color: var(--wine); }
.lr-head__title { margin: 0; font: 600 clamp(21px, 5.2vw, 30px)/1.15 var(--serif); letter-spacing: -.01em; color: var(--ink); }
.lr-tr { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.45; font-weight: 500; font-style: italic; color: var(--muted); letter-spacing: 0; text-transform: none; }
.lr-tr[hidden] { display: none; }
.lr-tr--prov { margin-top: -12px; }

.lr-prov { display: grid; grid-template-columns: 1fr; gap: 12px 18px; margin: 0; padding: 16px; border-radius: 16px; background: var(--paper); font-size: 14.5px; line-height: 1.45; }
.lr-prov > div { min-width: 0; }
.lr-prov dt { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.lr-prov dd { margin: 2px 0 0; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
#lrNum { color: var(--wine); }

/* Secciones */
.lr-sec { min-width: 0; margin: 0; padding: 0; border: 0; }
.lr-sec > * + * { margin-top: 16px; }
.lr-sec__t { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0 0 4px; padding: 0; font: 600 clamp(18px, 4vw, 23px)/1.2 var(--serif); color: var(--ink); }
.lr-sec__n { display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--wine); color: var(--ivory); font: 800 14px/1 var(--sans); }
.lr-sec--prov { padding: 16px; border: 1.5px dashed rgba(30, 20, 24, .18); border-radius: 16px; }
.lr-sec--prov .note { margin: 8px 0 0; }

.lr-row { display: grid; grid-template-columns: 1fr; gap: 16px; }
.lr-row > * { min-width: 0; }
.lr-req { color: var(--wine-2); font-weight: 800; }
.lr-hint { margin: 8px 0 0; }

/* Menor de edad: el campo del apoderado aparece al marcar (sin JS se ve siempre) */
.js .lr-apod:not(.is-on) { display: none; }

/* Opciones (producto/servicio, reclamo/queja) */
.lr-grupo { min-width: 0; }
.lr-opts { display: flex; flex-wrap: wrap; gap: 10px; }
.lr-opt { display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--ivory); font-weight: 700; font-size: 15px; cursor: pointer; transition: border-color .2s, background .2s; }
.lr-opt input, .lr-tipo input { width: 18px; height: 18px; margin: 0; accent-color: var(--wine); flex: none; }
.lr-tipos { display: grid; grid-template-columns: 1fr; gap: 10px; }
.lr-tipo { display: flex; gap: 12px; align-items: flex-start; min-width: 0; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--ivory); cursor: pointer; transition: border-color .2s, background .2s; }
.lr-tipo input { margin-top: 3px; }
.lr-tipo > span { min-width: 0; }
.lr-tipo b { display: block; letter-spacing: .1em; color: var(--wine); }
.lr-def { display: block; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.lr-opt:has(input:checked), .lr-tipo:has(input:checked) { border-color: var(--wine); background: var(--blush); }
.lr-opt:focus-within, .lr-tipo:focus-within { box-shadow: 0 0 0 4px rgba(212, 138, 152, .25); }

/* Monto con moneda */
.lr-monto { display: flex; gap: 8px; }
.field .lr-monto select { flex: none; width: auto; padding-inline: 12px; }
.field .lr-monto input { flex: 1 1 auto; min-width: 0; }

/* Errores en línea */
.lr-err { display: block; margin-top: 6px; font-size: 13.5px; font-weight: 700; line-height: 1.4; color: #8c1b37; }
.field.is-bad input, .field.is-bad select, .field.is-bad textarea { border-color: #c2405f; background: #fff7f8; }
.lr-grupo.is-bad .lr-opt, .lr-grupo.is-bad .lr-tipo { border-color: #c2405f; }
.lr .form-error { margin: 0; }

/* Botón y notas */
.lr .btn[disabled] { opacity: .75; cursor: wait; transform: none; box-shadow: none; }
.lr-reqnote { margin: -8px 0 0; text-align: center; }
.lr-notas { display: grid; gap: 10px; padding: 16px 18px; border-left: 3px solid var(--gold); border-radius: 0 14px 14px 0; background: var(--paper); font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.lr-notas p { margin: 0; }

/* Hoja registrada */
.lr-done { margin: 0 0 24px; padding: clamp(20px, 4vw, 34px); border-radius: var(--r-lg); background: var(--sage); text-align: center; outline: 0; }
.lr-done[hidden] { display: none; }
.lr-done__icon { display: block; width: 54px; height: 54px; margin: 0 auto 10px; color: var(--wine); }
.lr-done p { margin: 8px auto 0; max-width: 52ch; }
.lr-done__small { font-size: 14.5px; color: var(--ink-2); }
.lr-prov--done { margin: 14px 0 6px; background: rgba(255, 255, 255, .75); text-align: left; }
.lr-prov--done dd { font-size: 17px; color: var(--wine); }
.lr-done .btn-link { margin-top: 10px; }

/* Tras enviar: la hoja queda de solo lectura (y se puede imprimir) */
.lr.is-sent input:disabled, .lr.is-sent select:disabled, .lr.is-sent textarea:disabled { opacity: 1; color: var(--ink); -webkit-text-fill-color: var(--ink); }
.lr.is-sent .lr-btn, .lr.is-sent .lr-reqnote { display: none; }

@media (min-width: 640px) {
  .lr-prov { grid-template-columns: 1fr 1fr; }
  .lr-prov__wide { grid-column: 1 / -1; }
  .lr-row { grid-template-columns: 1fr 1fr; }
  .lr-row--doc { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .lr-tipos { grid-template-columns: 1fr 1fr; }
  .lr-head__icon { width: 54px; height: 54px; }
}

@media print {
  .topbar, .drawer, footer, .footer, .page-hero, [data-cookies], .lr-done .btn-link, .lr-btn, .lr-reqnote { display: none !important; }
  body { background: #fff; }
  .lr-section { padding: 0; }
  .lr { padding: 0; border: 0; box-shadow: none; }
  .lr-done { padding: 12px; }
}
