/* =========================================================
   CM&C JM S.A.C. — Libro de Reclamaciones
   (usa las variables y componentes de styles.css)
   ========================================================= */

.lr-back { color: #fff; border-color: rgba(255, 255, 255, .35); }
.lr-back:hover { border-color: #fff; }
.lr-back .arrow { transition: transform .3s var(--ease); }
.lr-back:hover .arrow { transform: translateX(-4px); }

/* ---------- Cabecera ---------- */
.lr-hero {
  position: relative; overflow: hidden; background: var(--navy);
  padding: calc(var(--header-h) + 70px) 0 70px;
}
.lr-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: linear-gradient(90deg, var(--brick-2), var(--brick) 40%, var(--orange) 75%, var(--teal) 75% 80%, var(--navy-2) 80%);
}
.lr-hero .stripes { top: auto; bottom: 0; left: auto; right: 0; transform: rotate(180deg); background: linear-gradient(135deg, var(--navy-deep) 0 44%, var(--teal) 44% 49%, var(--orange) 49% 54%, transparent 54%); }
.lr-hero__inner { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.lr-crumbs { margin-bottom: 22px; color: #c3c9e0; }
.lr-crumbs a:hover { color: #fff; }
.lr-crumbs span { margin-inline: 6px; color: var(--orange); }
.lr-hero__title { font-size: clamp(38px, 5.4vw, 66px); font-weight: 400; line-height: 1.04; letter-spacing: -.03em; margin-bottom: 18px; }
.lr-hero__title em { font-style: normal; color: var(--orange); }
.lr-hero__lead { max-width: 600px; color: rgba(255, 255, 255, .82); font-size: 17px; }
.lr-book {
  flex: none; width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .15);
}
.lr-book svg { width: 78px; height: 78px; fill: var(--orange); stroke: var(--navy); stroke-width: 1.2; stroke-linecap: round; }
.lr-book .lines { fill: none; stroke: #fff; }

/* ---------- Cuerpo ---------- */
.lr-body { background: var(--gray); color: var(--navy-2); padding-block: clamp(50px, 7vw, 90px); }
.lr-layout { display: grid; grid-template-columns: 330px 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }

.lr-provider {
  position: sticky; top: calc(var(--header-h) + 24px);
  background: #fff; border-radius: var(--radius); padding: 28px 26px; border-top: 4px solid var(--navy);
  box-shadow: 0 20px 40px -28px rgba(26, 34, 70, .4);
}
.lr-provider > .mono { color: var(--orange); margin-bottom: 16px; }
.lr-provider dl { margin: 0 0 24px; display: grid; gap: 14px; }
.lr-provider dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #6c7391; margin-bottom: 2px; }
.lr-provider dd { margin: 0; font-size: 14.5px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.lr-provider dd a:hover { color: var(--orange); }
.lr-defs { border-top: 1px solid rgba(33, 47, 94, .12); padding-top: 20px; }
.lr-defs h2 { font-size: 16px; font-weight: 700; font-style: italic; color: var(--steel); margin-bottom: 10px; }
.lr-defs p { font-size: 13.5px; color: #4b5373; margin-bottom: 8px; }

/* ---------- Formulario ---------- */
.lr-form, .lr-result {
  background: #fff; border-radius: var(--radius); padding: clamp(22px, 4vw, 44px);
  border-top: 4px solid var(--orange); box-shadow: 0 30px 60px -36px rgba(26, 34, 70, .45);
}
.lr-form { --muted: #6c7391; }
.lr-form, .lr-result { scroll-margin-top: calc(var(--header-h) + 20px); }
.lr-meta {
  display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px;
}
.lr-meta > div { flex: 1 1 180px; background: var(--navy); color: #fff; border-radius: 4px; padding: 12px 16px; }
.lr-meta .mono { display: block; color: #c3c9e0; font-size: 10px; margin-bottom: 2px; }
.lr-meta strong { font-size: 15px; font-weight: 600; }

.lr-step { border: 0; padding: 0; margin: 0 0 34px; min-width: 0; }
.lr-step legend {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 0 0 12px; margin-bottom: 22px;
  font-size: clamp(17px, 2vw, 20px); font-weight: 700; font-style: italic; color: var(--steel);
  border-bottom: 2px solid var(--orange);
}
.lr-step__num {
  flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); color: #fff; font-style: normal; font-size: 14px;
}
.lr-step--provider p { background: var(--gray); border-radius: 4px; padding: 16px 18px; font-size: 14.5px; color: #4b5373; }
.lr-form .field select, .lr-form .field input[type="number"] { color: var(--navy-2); }
.lr-count { align-self: flex-end; font-family: var(--mono); font-size: 10.5px; color: #8a90a8; margin-top: 4px; }

.lr-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.lr-option { position: relative; cursor: pointer; }
.lr-option input { position: absolute; opacity: 0; pointer-events: none; }
.lr-option span {
  display: flex; flex-direction: column; gap: 2px; height: 100%;
  padding: 14px 16px 14px 46px; border: 1.5px solid rgba(33, 47, 94, .18); border-radius: 4px;
  transition: border-color .25s, background .25s;
  position: relative;
}
.lr-option span::before {
  content: ""; position: absolute; left: 16px; top: 16px; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(33, 47, 94, .35); transition: all .25s;
}
.lr-option strong { font-size: 15px; }
.lr-option small { font-size: 13px; color: #6c7391; }
.lr-option input:checked + span { border-color: var(--orange); background: rgba(237, 87, 36, .05); }
.lr-option input:checked + span::before { border-color: var(--orange); background: radial-gradient(circle, var(--orange) 45%, transparent 50%); }
.lr-option input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }

.lr-check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 14.5px; color: #4b5373; margin-bottom: 12px; }
.lr-check input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--orange); }
.lr-tutor { margin-top: 8px; padding: 18px 18px 2px; background: var(--gray); border-radius: 4px; }
.lr-consent { border-top: 1px solid rgba(33, 47, 94, .12); padding-top: 22px; margin-bottom: 18px; }
.lr-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.lr-form .btn--ghost, .lr-result .btn--ghost { color: var(--navy-2); border-color: rgba(33, 47, 94, .25); }
.lr-form .btn--ghost:hover, .lr-result .btn--ghost:hover { border-color: var(--navy-2); }
.lr-result .btn--link { color: var(--navy-2); border-color: rgba(33, 47, 94, .25); }
.lr-form .form__status { color: #d93b3b; }

/* ---------- Constancia ---------- */
.lr-result { border-top-color: var(--teal); animation: fade .5s var(--ease); }
.lr-result:focus { outline: none; }
.lr-result__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 18px; border-bottom: 2px solid var(--orange); margin-bottom: 24px; }
.lr-result__head .mono { color: var(--teal); margin-bottom: 6px; }
.lr-result__head h2 { font-size: clamp(20px, 2.6vw, 28px); font-weight: 600; color: var(--navy-2); }
.lr-result__head h2 span { color: var(--orange); white-space: nowrap; }
.lr-sheet-group { margin-bottom: 22px; }
.lr-sheet-group h3 { font-size: 14px; font-weight: 700; font-style: italic; color: var(--steel); margin-bottom: 8px; }
.lr-sheet-group dl { margin: 0; border: 1px solid rgba(33, 47, 94, .14); border-radius: 4px; overflow: hidden; }
.lr-sheet-group dl > div { display: grid; grid-template-columns: 190px 1fr; border-top: 1px solid rgba(33, 47, 94, .1); }
.lr-sheet-group dl > div:first-child { border-top: 0; }
.lr-sheet-group dt { background: #f3f4f7; padding: 10px 14px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #6c7391; }
.lr-sheet-group dd { margin: 0; padding: 10px 14px; font-size: 14.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.lr-steps-final { background: rgba(6, 166, 158, .08); border-left: 3px solid var(--teal); padding: 14px 18px; border-radius: 4px; font-size: 14.5px; color: #3c4566; margin-bottom: 22px; }

/* ---------- Avisos legales ---------- */
.lr-legal { margin-top: 24px; padding: 20px 22px; border-radius: var(--radius); background: var(--navy); color: rgba(255, 255, 255, .85); font-size: 13.5px; }
.lr-legal p + p { margin-top: 8px; }
.lr-legal p { padding-left: 18px; position: relative; }
.lr-legal p::before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .lr-layout { grid-template-columns: 1fr; }
  .lr-provider { position: static; }
  .lr-book { display: none; }
}
@media (max-width: 640px) {
  .lr-back { padding: 9px 14px; font-size: 12px; }
  .lr-options { grid-template-columns: 1fr; }
  .lr-sheet-group dl > div { grid-template-columns: 1fr; }
  .lr-sheet-group dt { padding-bottom: 4px; }
  .lr-actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* ---------- Impresión / PDF de la constancia ---------- */
@media print {
  @page { margin: 14mm; }
  body { background: #fff !important; color: #000; }
  .header, .lr-hero, .footer, .lr-form, .lr-actions, .lr-steps-final, .skip { display: none !important; }
  .lr-body { background: #fff; padding: 0; }
  .lr-layout { display: block; }
  .lr-provider { position: static; box-shadow: none; border: 1px solid #ccc; margin-bottom: 16px; padding: 14px 16px; }
  .lr-defs { display: none; }
  .lr-provider dl { grid-template-columns: 1fr 1fr; gap: 8px 20px; margin: 0; }
  .lr-result { box-shadow: none; padding: 0; border: 0; }
  .lr-legal { background: none; color: #333; border: 1px solid #ccc; }
  .lr-sheet-group { break-inside: avoid; }
}
