/* =========================================================
   Libro de Reclamaciones — estilos públicos
   Neutrales a propósito: heredan la tipografía del tema.
   ========================================================= */

.rlr-wrap {
  --rlr-ink: #1f2430;
  --rlr-muted: #6b7280;
  --rlr-line: #e2e3e7;
  --rlr-accent: #b02a1f;
  --rlr-bg-soft: #f7f7f8;
  --rlr-radius: 10px;

  max-width: 860px;
  margin-inline: auto;
  color: var(--rlr-ink);
}

.rlr-wrap *,
.rlr-wrap *::before,
.rlr-wrap *::after { box-sizing: border-box; }

/* ---------- Avisos ---------- */

.rlr-alert {
  padding: 14px 18px;
  border-radius: var(--rlr-radius);
  margin-bottom: 22px;
  font-size: .95em;
  line-height: 1.55;
}
.rlr-alert ul { margin: 8px 0 0; padding-left: 20px; }
.rlr-alert--error { background: #fdf0ee; border: 1px solid #f0c8c2; color: #8c1f16; }
.rlr-alert--aviso { background: #fff8e6; border: 1px solid #f0dca8; color: #7a5a06; }

/* ---------- Cabecera del proveedor ---------- */

.rlr-proveedor {
  padding: 22px 24px;
  background: var(--rlr-bg-soft);
  border: 1px solid var(--rlr-line);
  border-radius: var(--rlr-radius);
  margin-bottom: 26px;
}
.rlr-proveedor h2 { margin: 0 0 14px; font-size: 1.25em; }
.rlr-proveedor dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin: 0;
}
.rlr-proveedor dt {
  font-size: .74em;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--rlr-muted);
  margin-bottom: 3px;
}
.rlr-proveedor dd { margin: 0; font-weight: 600; word-break: break-word; }

/* ---------- Formulario ---------- */

.rlr-fieldset {
  border: 1px solid var(--rlr-line);
  border-radius: var(--rlr-radius);
  padding: 24px;
  margin: 0 0 22px;
}
.rlr-fieldset legend {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  font-weight: 700;
  font-size: 1.05em;
}
.rlr-fieldset legend span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--rlr-ink);
  color: #fff;
  font-size: .8em;
}

.rlr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.rlr-campo { margin: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rlr-campo--ancho { grid-column: 1 / -1; }

.rlr-wrap label { font-weight: 600; font-size: .92em; }
.rlr-wrap abbr[title] { color: var(--rlr-accent); text-decoration: none; border: 0; }
.rlr-campo small { color: var(--rlr-muted); font-size: .82em; font-weight: 400; }

.rlr-wrap input[type="text"],
.rlr-wrap input[type="email"],
.rlr-wrap input[type="tel"],
.rlr-wrap select,
.rlr-wrap textarea {
  width: 100%;
  padding: 11px 13px;
  font: inherit;
  font-size: .95em;
  color: var(--rlr-ink);
  background: #fff;
  border: 1px solid #cfd2d8;
  border-radius: 8px;
}
.rlr-wrap textarea { resize: vertical; }

.rlr-wrap input:focus,
.rlr-wrap select:focus,
.rlr-wrap textarea:focus {
  outline: 2px solid var(--rlr-ink);
  outline-offset: 1px;
  border-color: var(--rlr-ink);
}

.rlr-check { margin: 16px 0 0; }
.rlr-check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.rlr-check--consent { margin: 22px 0; font-size: .92em; }

.rlr-apoderado { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--rlr-line); }
.rlr-apoderado[hidden] { display: none; }

.rlr-radios { display: flex; flex-wrap: wrap; gap: 24px; margin-bottom: 18px; }
.rlr-radios label { display: flex; align-items: center; gap: 8px; font-weight: 500; }

/* Tarjetas reclamo / queja */
.rlr-tipos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.rlr-tipo {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--rlr-line);
  border-radius: var(--rlr-radius);
  cursor: pointer;
  font-weight: 400;
}
.rlr-tipo:hover { border-color: #b9bcc4; }
.rlr-tipo input { margin-bottom: 4px; }
.rlr-tipo__titulo { font-weight: 700; }
.rlr-tipo__desc { font-size: .85em; color: var(--rlr-muted); line-height: 1.45; }
.rlr-tipo:has(input:checked) { border-color: var(--rlr-ink); background: var(--rlr-bg-soft); }

.rlr-legal {
  padding: 18px 20px;
  background: var(--rlr-bg-soft);
  border-left: 3px solid var(--rlr-accent);
  border-radius: 0 var(--rlr-radius) var(--rlr-radius) 0;
  font-size: .86em;
  color: var(--rlr-muted);
  line-height: 1.6;
}
.rlr-legal p { margin: 0 0 8px; }
.rlr-legal p:last-child { margin-bottom: 0; }

/* Trampa antispam: fuera de pantalla, nunca display:none. */
.rlr-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.rlr-btn {
  display: inline-block;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}
.rlr-btn--primary { background: var(--rlr-ink, #1f2430); color: #fff; }
.rlr-btn--primary:hover { background: #000; color: #fff; }
.rlr-btn--lg { padding: 16px 34px; font-size: 1.02em; }
.rlr-submit { margin: 0; }

/* ---------- Pantalla de éxito ---------- */

.rlr-exito {
  max-width: 640px;
  margin-inline: auto;
  padding: 34px;
  border: 1px solid #cfe3d4;
  background: #f4faf5;
  border-radius: 12px;
}
.rlr-exito h2 { margin-top: 0; }
.rlr-exito__codigo { font-size: 1.15em; }
.rlr-acciones { margin-top: 24px; }
.rlr-nota { font-size: .86em; color: #6b7280; }

/* =========================================================
   Aviso del Libro de Reclamaciones
   Vive fuera de .rlr-wrap: define sus propios valores.
   ========================================================= */

.rlr-aviso {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  max-width: 560px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid #d8d8dc;
  border-radius: 10px;
  color: #1f2430;
  text-decoration: none;
  line-height: 1.45;
  box-sizing: border-box;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.rlr-aviso:hover,
.rlr-aviso:focus {
  border-color: #1f2430;
  color: #1f2430;
  text-decoration: none;
  box-shadow: 0 6px 18px -12px rgba(0, 0, 0, .5);
}

.rlr-aviso__icono {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #f2f2f4;
  color: #1f2430;
}
.rlr-aviso__icono svg {
  width: 20px;
  height: 20px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rlr-aviso__texto { display: grid; gap: 2px; min-width: 0; }
.rlr-aviso__texto strong { font-size: .95em; font-weight: 700; }
.rlr-aviso__texto small { font-size: .78em; color: #6b7280; line-height: 1.4; }

/* Contenedor que imprime el plugin en el pie */

.rlr-aviso-footer--final {
  display: flex;
  justify-content: center;
  padding: 28px 16px;
  background: #fafafa;
  border-top: 1px solid #e6e6ea;
}

.rlr-aviso-footer--fijo {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 9990;
  max-width: calc(100% - 32px);
}
.rlr-aviso-footer--fijo .rlr-aviso {
  max-width: 320px;
  padding: 11px 15px;
  box-shadow: 0 12px 32px -14px rgba(0, 0, 0, .55);
}
.rlr-aviso-footer--fijo .rlr-aviso__texto small { display: none; }

@media (max-width: 640px) {
  .rlr-aviso { max-width: 100%; }
  .rlr-aviso__texto small { display: none; }
  .rlr-aviso-footer--fijo { left: 10px; bottom: 10px; }
}

/* =========================================================
   Hoja de Reclamación (vista propia e impresión)
   ========================================================= */

.rlr-hoja-body {
  margin: 0;
  padding: 28px 16px;
  background: #f1f1f3;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1f2430;
  line-height: 1.6;
}
.rlr-hoja-barra {
  max-width: 820px;
  margin: 0 auto 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.rlr-hoja-barra a { color: #1f2430; text-decoration: none; font-size: .92em; }
.rlr-hoja-lienzo {
  max-width: 820px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #dcdce0;
  border-radius: 10px;
  padding: 40px;
}

.rlr-hoja h1 { font-size: 1.5em; margin: 0; }
.rlr-hoja h2 {
  font-size: .78em;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #6b7280;
  margin: 28px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e4e4e8;
}
.rlr-hoja__cab {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 2px solid #1f2430;
}
.rlr-hoja__sub { margin: 2px 0 0; color: #6b7280; font-size: .9em; }
.rlr-hoja__codigo { text-align: right; }
.rlr-hoja__codigo span { display: block; font-size: .72em; color: #6b7280; letter-spacing: .1em; }
.rlr-hoja__codigo strong { font-size: 1.12em; }

.rlr-hoja table { width: 100%; border-collapse: collapse; font-size: .92em; }
.rlr-hoja__meta { margin-top: 16px; }
.rlr-hoja th {
  text-align: left;
  vertical-align: top;
  width: 22%;
  padding: 8px 12px 8px 0;
  color: #6b7280;
  font-weight: 600;
}
.rlr-hoja td { vertical-align: top; padding: 8px 12px 8px 0; word-break: break-word; }
.rlr-hoja__datos tr + tr th,
.rlr-hoja__datos tr + tr td { border-top: 1px solid #eeeef1; }
.rlr-hoja em { color: #6b7280; }

.rlr-hoja__legal {
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px solid #e4e4e8;
  font-size: .78em;
  color: #6b7280;
  line-height: 1.6;
}
.rlr-hoja__legal p { margin: 0 0 6px; }

@media print {
  .no-print { display: none !important; }
  .rlr-hoja-body { background: #fff; padding: 0; }
  .rlr-hoja-lienzo { border: 0; padding: 0; max-width: none; }
  .rlr-hoja h2 { break-after: avoid; }
  .rlr-hoja table { break-inside: auto; }
}

@media (max-width: 640px) {
  .rlr-hoja-lienzo { padding: 24px 20px; }
  .rlr-hoja th, .rlr-hoja td { display: block; width: auto; padding: 4px 0; }
  .rlr-hoja__datos tr + tr th { border-top: 1px solid #eeeef1; padding-top: 10px; }
  .rlr-hoja__datos tr + tr td { border-top: 0; }
}
