/* =========================================================
   LIBRO DE RECLAMACIONES - IESTP CHOTA
   CSS independiente: no modifica el diseño general del portal
   ========================================================= */

.lr-wrap{
    max-width:1200px;
    margin:0 auto;
    padding:45px 20px 65px;
}

.lr-intro{
    max-width:1000px;
    margin-bottom:30px;
    color:#475569;
    font-size:17px;
    line-height:1.7;
}

.lr-form{
    background:#fff;
    border:1px solid #dbe5ef;
    border-radius:16px;
    box-shadow:0 8px 28px rgba(15,55,90,.08);
    overflow:hidden;
}

.lr-section{
    padding:28px 32px;
    border-bottom:1px solid #e7edf3;
}

.lr-section:last-child{
    border-bottom:0;
}

.lr-section h2{
    margin:0 0 22px;
    color:#073b6f;
    font-size:22px;
}

.lr-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:20px;
}

.lr-grid-3{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:20px;
}

.lr-wide{
    grid-column:1 / -1;
}

.lr-form label{
    display:block;
    font-weight:700;
    color:#18324a;
    margin-bottom:7px;
}

.lr-form input[type="text"],
.lr-form input[type="email"],
.lr-form input[type="number"],
.lr-form input[type="tel"],
.lr-form select,
.lr-form textarea{
    display:block;
    width:100%;
    box-sizing:border-box;
    border:1px solid #cbd7e3;
    border-radius:9px;
    background:#fff;
    padding:12px 13px;
    font:inherit;
    color:#1e293b;
    outline:none;
    transition:.2s;
}

.lr-form textarea{
    min-height:125px;
    resize:vertical;
}

.lr-form input:focus,
.lr-form select:focus,
.lr-form textarea:focus{
    border-color:#0876c9;
    box-shadow:0 0 0 3px rgba(8,118,201,.12);
}

.lr-checkline{
    display:flex;
    align-items:flex-start;
    gap:9px;
    margin-top:10px;
    font-weight:500 !important;
    line-height:1.5;
}

.lr-checkline input{
    margin-top:5px;
}

.lr-options{
    display:flex;
    gap:18px;
    flex-wrap:wrap;
}

.lr-option{
    flex:1;
    min-width:240px;
    border:1px solid #d8e3ed;
    border-radius:12px;
    padding:16px;
    cursor:pointer;
    background:#f8fbfd;
}

.lr-option strong{
    color:#073b6f;
}

.lr-help{
    display:block;
    margin-top:5px;
    color:#64748b;
    font-size:13px;
    font-weight:400;
}

.lr-submit{
    display:flex;
    justify-content:flex-end;
    padding:24px 32px;
    background:#f7fafc;
}

.lr-submit button,
.lr-btn{
    border:0;
    border-radius:9px;
    padding:13px 24px;
    background:#0876c9;
    color:#fff;
    font-weight:700;
    font-size:15px;
    cursor:pointer;
    text-decoration:none;
}

.lr-submit button:hover,
.lr-btn:hover{
    background:#075d9e;
}

.lr-errors{
    background:#fff2f2;
    border:1px solid #fecaca;
    color:#991b1b;
    border-radius:10px;
    padding:16px 20px;
    margin:0 0 22px;
}

.lr-success{
    background:#ecfdf5;
    border:1px solid #a7f3d0;
    color:#065f46;
    border-radius:12px;
    padding:20px;
    margin-bottom:25px;
}

.lr-success strong{
    font-size:19px;
}

.lr-constancia{
    border:1px solid #d9e4ee;
    border-radius:14px;
    padding:25px;
    background:#fff;
    margin-top:20px;
}

@media(max-width:800px){
    .lr-wrap{
        padding:28px 15px 45px;
    }

    .lr-grid,
    .lr-grid-3{
        grid-template-columns:1fr;
    }

    .lr-section{
        padding:22px 18px;
    }

    .lr-submit{
        padding:20px 18px;
    }

    .lr-submit button{
        width:100%;
    }
}

@media print{
    header,
    nav,
    footer,
    .topbar,
    .lr-form,
    .no-print{
        display:none !important;
    }

    .lr-constancia{
        border:0;
        box-shadow:none;
    }
}

/* =========================================================
   CONSTANCIA MODERNA
   ========================================================= */

.lr-confirm-modern{
    max-width:900px;
    margin:30px auto 50px;
    padding:0 15px;
    color:#23384d;
}

.lr-success-top{
    display:flex;
    align-items:center;
    gap:15px;
    background:#edf9f1;
    border:1px solid #d4f0dd;
    border-radius:14px;
    padding:16px 20px;
    margin-bottom:16px;
}

.lr-success-icon{
    width:42px;
    height:42px;
    flex:0 0 42px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#16a05d;
    color:#fff;
    font-size:24px;
    font-weight:800;
}

.lr-success-top strong{
    display:block;
    color:#14864f;
    font-size:18px;
    margin-bottom:3px;
}

.lr-success-top span{
    font-size:14px;
    color:#526579;
}

.lr-receipt{
    background:#fff;
    border:1px solid #dce6ef;
    border-radius:16px;
    padding:25px;
    box-shadow:0 10px 35px rgba(15,55,90,.08);
}

.lr-receipt-head{
    display:flex;
    justify-content:space-between;
    gap:25px;
    align-items:center;
    padding-bottom:20px;
    border-bottom:1px solid #dce6ef;
}

.lr-inst-name{
    color:#064b84;
    font-weight:900;
    font-size:25px;
    line-height:1.1;
}

.lr-inst-sub{
    max-width:300px;
    margin-top:4px;
    font-size:12px;
    font-weight:700;
    color:#34495e;
}

.lr-inst-motto{
    color:#13904f;
    font-size:12px;
    font-weight:800;
    margin-top:4px;
}

.lr-receipt-title{
    min-width:330px;
    text-align:right;
}

.lr-receipt-title>strong{
    display:block;
    color:#073b6f;
    font-size:20px;
}

.lr-receipt-title>span{
    display:block;
    color:#64748b;
    font-size:12px;
    margin:3px 0 10px;
}

.lr-code-modern{
    display:inline-flex;
    align-items:center;
    gap:9px;
    background:#eef5fa;
    color:#073b6f;
    border-radius:10px;
    padding:10px 17px;
    font-size:24px;
    font-weight:900;
    letter-spacing:.4px;
}

.lr-code-modern small{
    font-size:12px;
    font-weight:800;
}

.lr-receipt-body{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:0;
    margin-top:20px;
}

.lr-data-column{
    padding:0 22px 0 5px;
}

.lr-data-column+ .lr-data-column{
    border-left:1px solid #e1e8ef;
    padding:0 5px 0 25px;
}

.lr-data-item{
    display:flex;
    gap:11px;
    margin-bottom:15px;
    min-width:0;
}

.lr-data-icon{
    width:25px;
    flex:0 0 25px;
    text-align:center;
    color:#607b96;
    font-weight:900;
}

.lr-data-item div{
    min-width:0;
}

.lr-data-item b{
    display:block;
    color:#30465c;
    font-size:13px;
    margin-bottom:2px;
}

.lr-data-item div>span:not(.lr-badge){
    display:block;
    color:#53677a;
    font-size:13px;
    line-height:1.45;
    overflow-wrap:anywhere;
}

.lr-badge{
    display:inline-block;
    padding:5px 11px;
    border-radius:20px;
    font-size:11px;
    font-weight:900;
}

.lr-badge-red{
    color:#c62828;
    background:#ffebee;
}

.lr-badge-blue{
    color:#075fa9;
    background:#e5f2ff;
}

.lr-info-box{
    display:flex;
    gap:12px;
    align-items:flex-start;
    background:#f0f6fb;
    border-radius:11px;
    padding:13px 16px;
    margin-top:5px;
}

.lr-info-box>span{
    display:flex;
    align-items:center;
    justify-content:center;
    width:26px;
    height:26px;
    flex:0 0 26px;
    border-radius:50%;
    background:#0876c9;
    color:#fff;
    font-weight:900;
}

.lr-info-box b{
    color:#28465f;
    font-size:13px;
}

.lr-info-box p{
    margin:2px 0 0;
    color:#5b6e7f;
    font-size:12px;
    line-height:1.45;
}

.lr-actions-modern{
    display:flex;
    justify-content:center;
    gap:12px;
    margin-top:18px;
}

.lr-print-btn,
.lr-new-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:44px;
    padding:0 21px;
    border-radius:9px;
    font-weight:800;
    font-size:13px;
    cursor:pointer;
    text-decoration:none;
}

.lr-print-btn{
    border:0;
    background:#12a45c;
    color:#fff;
    box-shadow:0 5px 15px rgba(18,164,92,.18);
}

.lr-new-btn{
    background:#fff;
    color:#07528e;
    border:1px solid #0b6cb6;
}

.lr-thanks{
    margin-top:17px;
    text-align:center;
    color:#64748b;
    font-size:11px;
    line-height:1.5;
}

@media(max-width:700px){
    .lr-confirm-modern{
        margin-top:20px;
    }

    .lr-receipt{
        padding:18px;
    }

    .lr-receipt-head{
        display:block;
    }

    .lr-receipt-title{
        min-width:0;
        text-align:left;
        margin-top:18px;
    }

    .lr-code-modern{
        font-size:19px;
    }

    .lr-receipt-body{
        grid-template-columns:1fr;
    }

    .lr-data-column,
    .lr-data-column+ .lr-data-column{
        padding:0;
        border-left:0;
    }

    .lr-data-column+ .lr-data-column{
        border-top:1px solid #e1e8ef;
        padding-top:16px;
    }

    .lr-actions-modern{
        flex-direction:column;
    }

    .lr-print-btn,
    .lr-new-btn{
        width:100%;
    }
}

@media print{
    @page{
        size:A4;
        margin:12mm;
    }

    body{
        background:#fff !important;
    }

    body > header,
    body > footer,
    nav,
    .topbar,
    .whatsapp-float,
    .no-print{
        display:none !important;
    }

    .lr-confirm-modern{
        max-width:none;
        margin:0;
        padding:0;
    }

    .lr-success-top{
        display:none;
    }

    .lr-receipt{
        border:1px solid #bbb;
        border-radius:0;
        box-shadow:none;
        padding:18px;
    }

    .lr-thanks{
        margin-top:12px;
    }
}

/* =========================================================
   AJUSTE FINAL - FORMULARIO COMPACTO Y MODERNO
   ========================================================= */

.lr-page{
    max-width:1050px !important;
    margin:0 auto !important;
    padding:32px 20px 55px !important;
}

.lr-head{
    margin-bottom:22px !important;
}

.lr-head h1{
    font-size:42px !important;
    line-height:1.1 !important;
    margin:10px 0 12px !important;
}

.lr-head .lead{
    max-width:850px !important;
    font-size:15px !important;
    line-height:1.55 !important;
    margin:0 !important;
}

.lr-form{
    max-width:1000px !important;
    margin:0 auto !important;
    border:1px solid #dce6ef !important;
    border-radius:16px !important;
    box-shadow:0 8px 30px rgba(15,55,90,.07) !important;
    background:#fff !important;
    overflow:hidden !important;
}

.lr-section{
    padding:22px 26px !important;
}

.lr-section h2{
    font-size:18px !important;
    margin:0 0 18px !important;
    color:#073b6f !important;
}

.lr-grid{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:16px 20px !important;
    align-items:start !important;
}

.lr-wide{
    grid-column:1 / -1 !important;
}

.lr-form label{
    display:block !important;
    margin:0 !important;
    font-size:13px !important;
    font-weight:700 !important;
    color:#253b50 !important;
}

/* Forzar todos los campos al mismo diseño */
.lr-form input:not([type="checkbox"]):not([type="radio"]),
.lr-form select,
.lr-form textarea{
    display:block !important;
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    height:42px !important;
    box-sizing:border-box !important;
    margin:6px 0 0 !important;
    padding:9px 12px !important;
    border:1px solid #ccd9e5 !important;
    border-radius:8px !important;
    background:#fff !important;
    color:#24384b !important;
    font-size:14px !important;
    font-weight:400 !important;
    outline:none !important;
}

.lr-form textarea{
    height:auto !important;
    min-height:90px !important;
    resize:vertical !important;
    line-height:1.5 !important;
}

.lr-form textarea[name="detalle"]{
    min-height:120px !important;
}

.lr-form input:focus,
.lr-form select:focus,
.lr-form textarea:focus{
    border-color:#0876c9 !important;
    box-shadow:0 0 0 3px rgba(8,118,201,.10) !important;
}

/* Checkbox */
.lr-checkline{
    display:flex !important;
    align-items:flex-start !important;
    gap:8px !important;
    font-weight:500 !important;
    line-height:1.45 !important;
}

.lr-checkline input[type="checkbox"]{
    width:16px !important;
    height:16px !important;
    flex:0 0 16px !important;
    margin:2px 0 0 !important;
}

/* Reclamo / Queja como tarjetas */
.lr-type{
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    gap:12px !important;
    margin-bottom:18px !important;
}

.lr-type label{
    position:relative !important;
    display:block !important;
    padding:14px 14px 14px 40px !important;
    border:1px solid #d8e3ed !important;
    border-radius:10px !important;
    background:#f8fbfd !important;
    cursor:pointer !important;
}

.lr-type input[type="radio"]{
    position:absolute !important;
    left:14px !important;
    top:16px !important;
    width:16px !important;
    height:16px !important;
}

.lr-type b{
    display:block !important;
    color:#073b6f !important;
    font-size:14px !important;
}

.lr-type small{
    display:block !important;
    margin-top:3px !important;
    color:#66798b !important;
    font-size:12px !important;
    font-weight:400 !important;
}

/* Botón */
.lr-form .hero-btn.lr-submit{
    display:inline-flex !important;
    width:auto !important;
    min-height:42px !important;
    align-items:center !important;
    justify-content:center !important;
    padding:0 20px !important;
    margin-top:15px !important;
    border:0 !important;
    border-radius:8px !important;
    background:#10a45c !important;
    color:#fff !important;
    font-size:13px !important;
    font-weight:800 !important;
    cursor:pointer !important;
    box-shadow:0 5px 14px rgba(16,164,92,.18) !important;
}

.lr-form .muted{
    font-size:12px !important;
    margin:10px 0 0 !important;
}

/* Constancia compacta */
.lr-confirm-modern{
    max-width:820px !important;
}

/* Móvil */
@media(max-width:760px){
    .lr-page{
        padding:22px 14px 40px !important;
    }

    .lr-head h1{
        font-size:32px !important;
    }

    .lr-grid,
    .lr-type{
        grid-template-columns:1fr !important;
    }

    .lr-section{
        padding:19px 17px !important;
    }

    .lr-form .hero-btn.lr-submit{
        width:100% !important;
    }
}
