
 .loan-main{max-width:1280px;margin:auto;padding:42px 28px}.private{display:inline-block;padding:10px 16px;background:#e0f3eb;color:#07574f;font-weight:800;font-size:12px;letter-spacing:1px}h1{font-size:clamp(36px,5vw,64px);line-height:1.06;max-width:1000px;margin:28px 0}.intro{max-width:780px;color:#50645d;line-height:1.7}.facts{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;padding:24px;background:#edf2ee;margin:28px 0}.facts div{min-width:0}dt{color:#52645c;font-size:12px;margin-bottom:7px}dd{margin:0;font-size:15px;font-weight:700}.sale-card strong{font-size:clamp(21px,2.1vw,29px)}.sale-card h3{font-size:17px;margin-bottom:16px}.sale-card .big{font-size:38px}.note{background:#fff4dc;padding:18px;border-left:4px solid #bd8f2b;font-size:14px;line-height:1.7}.summary{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin:28px 0}.panel{background:white;border:1px solid #d8e4dd;padding:24px}.panel h2{font-size:23px;margin-top:0}.line{display:flex;justify-content:space-between;gap:18px;border-bottom:1px solid #e4ebe6;padding:12px 0;font-size:14px}.line strong{white-space:nowrap;font-size:18px}.fine{font-size:13px;color:#53665e;line-height:1.75}.chart{height:220px;display:flex;gap:4px;align-items:flex-end;padding-top:12px}.chart-col{flex:1;height:calc(100% - 25px);display:flex;flex-direction:column;justify-content:flex-end;min-width:0}.bar{display:flex;flex-direction:column;width:100%;flex-shrink:0}.bar span{display:block}.principal{background:#08a99d}.interest{background:#173f36}.vat{background:#d4b876}.chart-col small{height:18px;font-size:10px;margin-top:7px}.legend{display:flex;gap:20px;flex-wrap:wrap;font-size:12px;margin:20px 0}.dot{display:inline-block;width:11px;height:11px;margin-right:6px}.grace{background:#fff8e9}table{min-width:1120px}td,th{padding:12px 10px;font-size:12px}tbody tr:last-child{background:#e5f4ed}.table-wrap{max-height:650px;border:1px solid #d8e4dd}thead{position:sticky;top:0;z-index:1}tfoot{font-weight:800;background:#e5f4ed}details{margin-top:25px;padding:20px;background:#edf2ee;line-height:1.75}.source-links{display:flex;gap:16px;flex-wrap:wrap;margin:20px 0}nav a{font-size:13px}@media(max-width:750px){.facts{grid-template-columns:1fr 1fr}.summary{grid-template-columns:1fr}.loan-main{padding:28px 18px}.line{flex-wrap:wrap}.chart{gap:2px}.topbar{gap:15px}}@media print{.topbar,button,.source-links{display:none}.table-wrap{max-height:none;overflow:visible}table{min-width:0}.sale-cards{grid-template-columns:repeat(4,1fr)}.sale-card{color:#000;background:#edf2ee}.sale-card span{color:#333}.sale-card strong{color:#07574f}}
 
.loan-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;border:0;padding:0}.loan-fields legend{font-weight:bold;padding:15px 0}.loan-fields label{display:flex;flex-direction:column;gap:8px;font-size:14px;font-weight:700}.loan-fields input,.loan-fields select{width:100%;min-width:0;padding:12px;border:1px solid #b9cfc3;background:white;font:inherit;box-sizing:border-box}.loan-fields small{font-weight:400;color:#54665e;font-size:12px}#loan-error{color:#a12c1c;font-weight:700}#loan-results[hidden]{display:none}.panel p{line-height:1.75}.reference-document>summary{font-size:22px;font-weight:800;padding:12px 0}@media(max-width:800px){.loan-fields{grid-template-columns:1fr 1fr}}@media(max-width:500px){.loan-fields{grid-template-columns:1fr}}

.loan-main{width:100%;max-width:1280px;box-sizing:border-box;margin-inline:auto}
#calculadora,#loan-results{width:100%;min-width:0;box-sizing:border-box}
#calculadora{padding:32px;border-radius:8px;margin-top:28px}
#calculadora>h2{margin-bottom:12px}#calculadora>p{margin:0 0 24px}
.loan-fields{grid-template-columns:repeat(6,minmax(0,1fr));column-gap:24px;row-gap:24px;margin:0;min-width:0}
.loan-fields label{grid-column:span 2;min-width:0;line-height:1.5;gap:8px}
.loan-fields label:nth-of-type(n+7){grid-column:span 3}
.loan-fields input,.loan-fields select{height:46px;border-radius:4px}
.loan-fields small{line-height:1.5;margin:0}
#loan-form .source-links{margin:28px 0 0;gap:12px;align-items:center}
#loan-form button{min-height:46px;border-radius:4px}
#loan-error:empty{display:none}
#loan-results .sale-cards{gap:16px;align-items:stretch}
#loan-results .sale-card{min-width:0;border-radius:6px;display:flex;flex-direction:column}
#loan-results .sale-card h3{min-height:42px;line-height:1.4;margin:0 0 12px}
#loan-results .sale-card strong{white-space:nowrap;font-variant-numeric:tabular-nums;font-size:clamp(19px,2vw,28px)}
#loan-results .sale-card .big{font-size:38px}
#loan-results .sale-card span{margin-top:auto;line-height:1.6}
#loan-results .summary{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
#loan-results .summary>.panel{min-width:0;box-sizing:border-box;background:#fff;padding:28px;border-radius:6px}
#loan-results .panel h2{line-height:1.3;min-height:60px;margin-bottom:18px}
#loan-results .line{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:16px 0;gap:16px;min-height:60px;box-sizing:border-box}
#loan-results .line span{width:auto;flex:1;text-align:left}
#loan-results .line strong{margin:0;font-size:20px;text-align:right}
#loan-results .panel p,#calculadora>p,#loan-results>details>p{text-align:justify;hyphens:auto;line-height:1.8}
#loan-results .sale-insight{border-radius:0 6px 6px 0;line-height:1.8}
#loan-results details{border-radius:6px;padding:28px;min-width:0}
#loan-results table{min-width:980px}#loan-results .table-wrap{margin-top:24px}
@media(max-width:1050px){#loan-results .sale-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){.loan-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.loan-fields label,.loan-fields label:nth-of-type(n+7){grid-column:span 1}#loan-results .summary{grid-template-columns:1fr}#loan-results .panel h2{min-height:0}}
@media(max-width:500px){#calculadora,#loan-results .summary>.panel,#loan-results details{padding:20px}.loan-fields{grid-template-columns:1fr;gap:20px}#loan-results .sale-cards{grid-template-columns:1fr}#loan-results .sale-card h3{min-height:0}#loan-results .sale-card strong{font-size:27px}#loan-form .source-links{align-items:stretch;flex-direction:column}#loan-results .panel p,#calculadora>p,#loan-results>details>p{text-align:left}#loan-results .line{flex-wrap:nowrap}#loan-results .line strong{font-size:18px}}


/* Alineación uniforme del formulario, resultados y cronograma. */
.loan-main{max-width:1280px;width:100%;padding-left:28px;padding-right:28px;margin-left:auto;margin-right:auto}
#calculadora,#loan-results>.sale-insight,#loan-results>details{box-sizing:border-box;width:100%;margin-left:0;margin-right:0}
#loan-results .summary{width:100%;margin-left:0;margin-right:0}
.loan-main .intro,#calculadora>p,#loan-results .panel p,#loan-results>.sale-insight,#loan-results>details>p,#loan-results .sale-card span{text-align:justify!important;text-justify:inter-word;hyphens:auto}
#loan-results .sale-card{padding:22px;box-sizing:border-box}
#loan-results .sale-card strong{font-size:clamp(19px,1.8vw,26px)}
#loan-results .sale-card .big{font-size:36px}
@media(max-width:500px){.loan-main{padding-left:16px;padding-right:16px}#loan-results .sale-card strong{font-size:26px}#loan-results .sale-card .big{font-size:36px}}


/* Tabla de cuotas ajustada al ancho interior del recuadro. */
#loan-results>details{padding:24px}
#loan-results .table-wrap{width:100%;max-width:100%;box-sizing:border-box;margin:20px 0 0;overflow:auto}
#loan-results .table-wrap table{width:100%;min-width:0;table-layout:fixed;margin:0;border-collapse:collapse}
#loan-results .table-wrap th,#loan-results .table-wrap td{box-sizing:border-box;padding:13px 10px;white-space:nowrap;font-size:12px;font-variant-numeric:tabular-nums;text-align:right}
#loan-results .table-wrap thead th:nth-child(1){width:6%;text-align:center}
#loan-results .table-wrap thead th:nth-child(2){width:12%;text-align:center}
#loan-results .table-wrap thead th:nth-child(n+3){width:16.4%}
#loan-results .table-wrap tbody th,#loan-results .table-wrap tbody td:first-of-type{text-align:center}
#loan-results .table-wrap tfoot th{text-align:left}
@media(max-width:1100px){#loan-results .table-wrap table{min-width:960px}}
@media(max-width:500px){#loan-results>details{padding:16px}}


/* Cronograma completo: sin área de desplazamiento propia. */
#loan-results .table-wrap{max-height:none;height:auto;overflow:visible;width:100%}
#loan-results .table-wrap table{width:100%;min-width:0;table-layout:fixed}
#loan-results .table-wrap thead{position:static}
#loan-results .table-wrap th,#loan-results .table-wrap td{white-space:normal;overflow-wrap:anywhere;padding:12px 8px}
@media(max-width:850px){
#loan-results .table-wrap{border:0}
#loan-results .table-wrap table,#loan-results .table-wrap tbody,#loan-results .table-wrap tfoot{display:block;width:100%;min-width:0}
#loan-results .table-wrap thead{display:none}
#loan-results .table-wrap tbody tr,#loan-results .table-wrap tfoot tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px;padding:12px;margin-bottom:14px;border:1px solid #cbdcd2;border-radius:6px}
#loan-results .table-wrap tbody th,#loan-results .table-wrap tbody td,#loan-results .table-wrap tfoot th,#loan-results .table-wrap tfoot td{display:block;width:auto;text-align:left!important;padding:10px 0;font-size:13px;min-width:0}
#loan-results .table-wrap tbody th{grid-column:1/-1;font-size:16px}
#loan-results .table-wrap tbody th::before{content:'Cuota ';font-weight:700}
#loan-results .table-wrap td::before{display:block;font-size:11px;color:#52645c;font-weight:400;margin-bottom:5px}
#loan-results .table-wrap tbody td:nth-child(2)::before{content:'Vencimiento'}
#loan-results .table-wrap tbody td:nth-child(3)::before{content:'Pago total'}
#loan-results .table-wrap tbody td:nth-child(4)::before{content:'Capital'}
#loan-results .table-wrap tbody td:nth-child(5)::before{content:'Interés'}
#loan-results .table-wrap tbody td:nth-child(6)::before{content:'IVA'}
#loan-results .table-wrap tbody td:nth-child(7)::before{content:'Saldo'}
#loan-results .table-wrap tfoot th{grid-column:1/-1}
#loan-results .table-wrap tfoot td:nth-child(2)::before{content:'Pago total'}
#loan-results .table-wrap tfoot td:nth-child(3)::before{content:'Capital'}
#loan-results .table-wrap tfoot td:nth-child(4)::before{content:'Interés'}
#loan-results .table-wrap tfoot td:nth-child(5)::before{content:'IVA'}
#loan-results .table-wrap tfoot td:nth-child(6)::before{content:'Saldo'}
}
