/* ==========================================================================
   Libro de Reclamaciones
   --------------------------------------------------------------------------
   Es un documento legal, no una página de marketing: tipografía sobria,
   bloques numerados en el orden del Anexo del D.S. 011-2011-PCM y los campos
   obligatorios marcados sin ambigüedad. Va sin el menú del sitio.
   ========================================================================== */

.lr {
    --lr-tinta: #2b3a4d;
    --lr-suave: #5f6e81;
    --lr-tenue: #69778a;
    --lr-linea: #e0e7ef;
    --lr-papel: #f7f9fc;
    --lr-error: #b3261e;
    padding: 30px 0 56px;
    color: var(--lr-tinta);
}
.lr *, .lr *::before, .lr *::after { box-sizing: border-box; }

.lr-ancho {
    width: min(100%, 880px);
    margin-inline: auto;
    padding-inline: clamp(16px, 3vw, 28px);
}

/* ------------------------------------------------------------- cabecera */
.lr-etiqueta {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--marca-marron, #6B1E2E);
    font-size: 10.5px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.lr h1 {
    margin: 0 0 10px;
    font-size: clamp(25px, 3.2vw, 33px);
    line-height: 1.14;
    letter-spacing: -.025em;
    font-weight: 800;
}
.lr-intro {
    margin: 0;
    max-width: 72ch;
    color: var(--lr-suave);
    font-size: 14.5px;
    line-height: 1.65;
}

/* Datos del proveedor: el reglamento exige que sea identificable. */
.lr-proveedor {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px 26px;
    margin: 20px 0 0;
    padding: 15px 18px;
    border: 1px solid var(--lr-linea);
    border-radius: 12px;
    background: var(--lr-papel);
}
.lr-proveedor > div { min-width: 0; }
.lr-proveedor-ancho { grid-column: 1 / -1; }
.lr-proveedor dt {
    color: var(--lr-tenue);
    font-size: 9.5px;
    font-weight: 900;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.lr-proveedor dd {
    margin: 3px 0 0;
    color: var(--lr-tinta);
    font-size: 13.5px;
    font-weight: 650;
    line-height: 1.45;
}

.lr-aviso {
    display: flex;
    gap: 10px;
    margin: 14px 0 0;
    padding: 13px 16px;
    border: 1px solid #cfe1f5;
    border-radius: 11px;
    background: #f3f8fe;
    color: #1d4d7c;
    font-size: 13.5px;
    line-height: 1.55;
}
.lr-aviso svg {
    width: 18px; height: 18px; flex: 0 0 18px;
    margin-top: 1px;
    fill: none; stroke: currentColor; stroke-width: 1.8;
    stroke-linecap: round; stroke-linejoin: round;
}
.lr-aviso strong { font-weight: 800; }
.lr-aviso-error {
    border-color: #f3ccc8;
    background: #fdf3f2;
    color: #8c2018;
}

/* ------------------------------------------------------------- bloques */
.lr-form { margin-top: 22px; }

.lr-bloque {
    margin-bottom: 16px;
    padding: 20px;
    border: 1px solid var(--lr-linea);
    border-radius: 14px;
    background: #fff;
}
.lr-bloque > h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -.012em;
}
.lr-paso {
    width: 24px; height: 24px; flex: 0 0 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--marca-marron, #6B1E2E);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.lr-reja {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px 14px;
}
.lr-campo { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.lr-campo.ancho { grid-column: 1 / -1; }

.lr-campo > label {
    color: var(--lr-tinta);
    font-size: 12.5px;
    font-weight: 750;
}
/* El asterisco de obligatorio: visible pero sin gritar. */
.lr-campo > label abbr {
    margin-left: 3px;
    color: var(--marca-marron, #6B1E2E);
    text-decoration: none;
    font-weight: 900;
}
.lr-campo small { color: var(--lr-tenue); font-size: 11.5px; line-height: 1.45; }

.lr-control,
.lr-campo input,
.lr-campo select,
.lr-campo textarea {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #d5dfea;
    border-radius: 9px;
    background: #fff;
    color: var(--lr-tinta);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    outline: 0;
}
.lr-campo textarea { min-height: 96px; resize: vertical; }
.lr-campo input[type="file"] { padding: 9px 11px; font-size: 13px; }
.lr-control:focus,
.lr-campo input:focus,
.lr-campo select:focus,
.lr-campo textarea:focus {
    border-color: var(--marca-marron, #6B1E2E);
    box-shadow: 0 0 0 3px rgba(107, 30, 46, .10);
}
.lr-campo.con-error .lr-control,
.lr-campo.con-error input,
.lr-campo.con-error select,
.lr-campo.con-error textarea { border-color: #e3a9a3; background: #fffbfb; }

.lr-error {
    margin: 0;
    color: var(--lr-error);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.45;
}

/* --------------------------------------------------------- casillas */
.lr-check {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 14px;
    color: var(--lr-suave);
    font-size: 13.5px;
}
.lr-check label { cursor: pointer; }
.lr-apoderado { margin-top: 14px; }
.lr-apoderado[hidden] { display: none; }

/* Las declaraciones son el corazón legal de la hoja: se ven como tales. */
.lr-declaracion {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 13px 15px;
    border: 1px solid var(--lr-linea);
    border-radius: 11px;
    background: var(--lr-papel);
}
.lr-declaracion + .lr-declaracion,
.lr-error + .lr-declaracion { margin-top: 10px; }
.lr-declaracion.con-error { border-color: #e3a9a3; background: #fdf3f2; }
.lr-declaracion input[type="checkbox"] {
    width: 17px; height: 17px; flex: 0 0 17px;
    margin-top: 1px;
    accent-color: var(--marca-marron, #6B1E2E);
    cursor: pointer;
}
.lr-declaracion label {
    color: var(--lr-suave);
    font-size: 13px;
    line-height: 1.55;
    cursor: pointer;
}
.lr-declaracion label strong { color: var(--lr-tinta); font-weight: 750; }
.lr-declaracion a { color: var(--marca-marron, #6B1E2E); font-weight: 650; }
.lr-bloque > .lr-error { margin: 6px 0 0 4px; }

/* --------------------------------------------------------------- envío */
.lr-enviar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 18px;
}
.lr-boton {
    min-height: 46px;
    padding: 0 24px;
    border: 0;
    border-radius: 10px;
    /* Verde de confirmación, el mismo que cierra el formulario de citas. */
    background: #15704a;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 750;
    cursor: pointer;
}
.lr-boton:hover { background: #115b3c; box-shadow: 0 12px 26px rgba(21, 112, 74, .28); }
.lr-nota-envio {
    max-width: 44ch;
    color: var(--lr-tenue);
    font-size: 12px;
    line-height: 1.5;
}

@media (max-width: 620px) {
    .lr-reja { grid-template-columns: 1fr; }
    .lr-bloque { padding: 16px; }
    .lr-boton { width: 100%; }
}
