/* General Tab Styling */
#financiacion-tab-content {
    padding: 20px;
    font-family: Arial, sans-serif;
    color: #333;

}

/* Financing Title */
#financiacion-tab-content h4 {
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 20px;
}

#financiacion-tab-content .cuota-container h4 {
    font-size: .9rem;
    color: #fff;
    font-weight: 400;
}

.financiacion-grid h5:not(:first-child) {
    margin: 20px 0 10px 0;
}

.cuota-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#cuota-mensual {
    font-size: 4rem;
    line-height: 3rem;
}

#al-mes {
    left: 5px;
    position: relative;
}

/* Columns Layout */
.financiacion-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

/* Columns */
.financiacion-column {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 5px;
}

.financiacion-column.left {
    /*width: 35%;*/
}

#entrada-slider {
    cursor: pointer;
}

.financiacion-column.center {
    /*width: 20%;*/
    background: linear-gradient(to bottom, #558AB1, #204F72);
    color: white;
    text-align: center;
    padding: 30px;
    border-radius: 0;
}

.financiacion-column.right {
    /*width: 45%;*/
}

/* Input Styling */
.financiacion-input {
    width: 100%;
    padding: 8px;
    font-size: 16px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: right;
}

/* Cuota Buttons */
.cuotas-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cuota-btn {
    flex: 1;
    padding: 10px;
    background: #fff;
    border: 1px solid #bbb;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    font-size: 16px;
    transition: background 0.3s ease;
    -webkit-box-shadow: 6px 6px 3px -4px rgba(0, 0, 0, .4);
    -moz-box-shadow: 6px 6px 3px -4px rgba(0, 0, 0, .4);
    box-shadow: 6px 6px 3px -4px rgba(0, 0, 0, .4);
}

.cuota-btn.selected {
    background: #558AB1;
    color: white;
    font-weight: bold;
}

/* Financiera Buttons */
.financieras-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

#financieras-container {
    display: grid;
    grid-template-columns: repeat(4, 100px);
    gap: 10px;
}

.financiera-btn {
    flex: 1;
    padding: 0;
    background: white;
    border: 2px solid #558AB1;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    font-size: 14px;
    transition: border 0.3s ease, transform 0.2s ease;
}

.financiera-btn > span {
    display: none;
}

.financiera-btn img {
    max-width: 80px;
    margin-bottom: 5px;
}

.financiera-btn.selected {
    border: 3px solid #FFD700;
    transform: scale(1.1);
}

#finance-profiles-field {
    margin-top: 18px;
}

#finance-profiles-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.finance-profile-btn {
    padding: 9px 14px;
    border: 1px solid #b8c8d5;
    border-radius: 999px;
    background: #fff;
    color: #204f72;
    cursor: pointer;
    font-weight: 700;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.finance-profile-btn:hover,
.finance-profile-btn.selected {
    border-color: #204f72;
    background: #204f72;
    color: #fff;
}


.cuota-btn.disabled {
    background: #ccc!important;
    color: #666!important;
    cursor: not-allowed!important;
    pointer-events: none;
}


/* Financing Summary */
.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
}

.summary-item span {
    font-size: 16px;
}

.summary-item .value {
    font-weight: bold;
}

/* Calculadora rápida de ficha */
#monthly-quota-min {
    position: relative;
}

#monthly-quota-min.has-fmoqf {
    padding-bottom: 38px !important;
    cursor: pointer;
}

#monthly-quota-min .fmoqf-trigger {
    display: inline-flex;
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-height: 34px;
    padding: 0 12px;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, .28);
    border-radius: 0;
    background: rgba(25, 56, 82, .17);
    color: #fff;
    font: inherit;
    font-size: 10.5px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .07em;
    cursor: pointer;
    opacity: .9;
    transition: opacity .18s ease, background .18s ease;
}

#monthly-quota-min .fmoqf-trigger:hover,
#monthly-quota-min .fmoqf-trigger:focus-visible {
    background: rgba(25, 56, 82, .3);
    outline: none;
    opacity: 1;
}

#monthly-quota-min .fmoqf-trigger-icon {
    display: inline-flex;
    width: 14px;
    height: 14px;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    transition: transform .18s ease;
}

#monthly-quota-min .fmoqf-trigger.is-open .fmoqf-trigger-icon {
    transform: rotate(180deg);
}

#monthly-quota-min .fmoqf-trigger.is-open {
    background: rgba(25, 56, 82, .28);
}

.fmoqf-panel {
    box-sizing: border-box;
    width: 100%;
    margin: 10px 0 14px;
    padding: 17px 18px 15px;
    border: 1px solid #dce5ed;
    border-radius: 12px;
    background: linear-gradient(145deg, #f8fbfd 0%, #fff 68%);
    box-shadow: 0 8px 22px rgba(20, 54, 82, .09);
    color: #173650;
    font-family: Arial, sans-serif;
}

.fmoqf-panel[hidden] {
    display: none !important;
}

.fmoqf-panel *,
.fmoqf-panel *::before,
.fmoqf-panel *::after {
    box-sizing: border-box;
}

.fmoqf-head,
.fmoqf-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.fmoqf-copy,
.fmoqf-result {
    display: flex;
    align-items: baseline;
}

.fmoqf-copy {
    flex-direction: column;
    gap: 2px;
}

.fmoqf-eyebrow {
    color: #60788d;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
}

.fmoqf-months {
    color: #173650;
    font-size: 15px;
    font-weight: 800;
}

.fmoqf-result {
    color: #e5544e;
    white-space: nowrap;
}

.fmoqf-quota {
    font-size: 30px;
    font-weight: 900;
    line-height: 1;
}

.fmoqf-period {
    margin-left: 4px;
    font-size: 13px;
    font-weight: 800;
}

.fmoqf-range {
    margin: 13px 1px 10px;
}

.fmoqf-slider {
    display: block;
    width: 100%;
    height: 30px;
    margin: 0;
    padding: 0;
    border: 0;
    outline: none;
    background: transparent;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.fmoqf-slider::-webkit-slider-runnable-track {
    height: 9px;
    border-radius: 999px;
    background: linear-gradient(to right, #e5544e 0 var(--fmoqf-progress, 0%), #cbd8e2 var(--fmoqf-progress, 0%) 100%);
}

.fmoqf-slider::-moz-range-track {
    height: 9px;
    border-radius: 999px;
    background: linear-gradient(to right, #e5544e 0 var(--fmoqf-progress, 0%), #cbd8e2 var(--fmoqf-progress, 0%) 100%);
}

.fmoqf-slider::-webkit-slider-thumb {
    width: 30px;
    height: 30px;
    margin-top: -10px;
    border: 4px solid #fff;
    border-radius: 50%;
    background: #e5544e;
    box-shadow: 0 2px 8px rgba(38, 63, 84, .28);
    cursor: grab;
    appearance: none;
    -webkit-appearance: none;
}

.fmoqf-slider::-moz-range-thumb {
    width: 23px;
    height: 23px;
    border: 4px solid #fff;
    border-radius: 50%;
    background: #e5544e;
    box-shadow: 0 2px 8px rgba(38, 63, 84, .28);
    cursor: grab;
}

.fmoqf-slider:active::-webkit-slider-thumb {
    cursor: grabbing;
}

.fmoqf-slider:focus-visible::-webkit-slider-thumb {
    outline: 3px solid rgba(229, 84, 78, .28);
    outline-offset: 2px;
}

.fmoqf-slider:focus-visible::-moz-range-thumb {
    outline: 3px solid rgba(229, 84, 78, .28);
    outline-offset: 2px;
}

.fmoqf-marks {
    position: relative;
    height: 34px;
    margin-right: 15px;
    margin-left: 15px;
    margin-top: -3px;
}

.fmoqf-mark {
    display: flex;
    position: absolute;
    top: 0;
    left: var(--fmoqf-position);
    min-width: 44px;
    min-height: 32px;
    padding: 3px 2px;
    border: 0;
    border-radius: 6px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: transparent;
    color: #6b7f90;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transform: translateX(-50%);
}

.fmoqf-mark:hover,
.fmoqf-mark:focus-visible,
.fmoqf-mark.is-selected {
    color: #173650;
    outline: none;
}

.fmoqf-mark-dot {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: #aebdca;
}

.fmoqf-mark.is-selected .fmoqf-mark-dot {
    background: #e5544e;
    box-shadow: 0 0 0 3px rgba(229, 84, 78, .14);
}

.fmoqf-note {
    color: #728493;
    font-size: 10px;
    line-height: 1.25;
}

.fmoqf-entry {
    margin: 3px 1px 13px;
    padding-top: 11px;
    border-top: 1px solid #e2e9ef;
}

.fmoqf-entry-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 2px;
    color: #60788d;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .07em;
}

.fmoqf-entry-value {
    color: #173650;
    font-size: 14px;
    letter-spacing: 0;
}

.fmoqf-entry-slider {
    height: 28px;
}

.fmoqf-finance-details {
    margin: 2px 0 13px;
    padding: 11px 12px;
    border: 1px solid #d9e4ec;
    border-radius: 9px;
    background: #f4f8fb;
}

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

.fmoqf-detail-item {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.fmoqf-detail-item > span,
.fmoqf-lender > span {
    color: #6c8193;
    font-size: 9px;
    font-weight: 850;
    line-height: 1.2;
    letter-spacing: .065em;
}

.fmoqf-detail-value {
    color: #173650;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.15;
}

.fmoqf-tae {
    color: #e5544e;
}

.fmoqf-lender {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-top: 9px;
    padding-top: 8px;
    border-top: 1px solid #dce5ed;
}

.fmoqf-lender-name {
    min-width: 0;
    color: #173650;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.25;
    text-align: right;
    overflow-wrap: anywhere;
}

.fmoqf-legal {
    margin: 8px 0 0;
    color: #708291;
    font-size: 9px;
    line-height: 1.38;
}

.fmoqf-calculate {
    display: flex;
    min-width: 112px;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid #204f72;
    border-radius: 7px;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #204f72;
    font: inherit;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .05em;
    cursor: pointer;
    transition: background .18s ease, color .18s ease;
    text-align: center;
}

.fmoqf-calculate span {
    display: block;
    width: 100%;
    text-align: center;
}

.fmoqf-calculate:hover,
.fmoqf-calculate:focus-visible {
    background: #204f72;
    color: #fff;
    outline: none;
}

.fmoqf-panel.has-one-term .fmoqf-term-slider {
    opacity: .55;
    cursor: default;
}

@media (max-width: 600px) {
    #monthly-quota-min .fmoqf-trigger {
        min-height: 34px;
        padding-right: 12px;
        padding-left: 12px;
        font-size: 10px;
    }

    .fmoqf-panel {
        margin-top: 8px;
        padding: 15px 14px 13px;
        border-radius: 10px;
    }

    .fmoqf-head {
        gap: 10px;
    }

    .fmoqf-quota {
        font-size: 27px;
    }

    .fmoqf-slider {
        height: 36px;
    }

    .fmoqf-slider::-webkit-slider-thumb {
        width: 34px;
        height: 34px;
        margin-top: -12px;
    }

    .fmoqf-slider::-moz-range-thumb {
        width: 27px;
        height: 27px;
    }

    .fmoqf-mark {
        min-height: 40px;
        flex-direction: column;
        gap: 2px;
        font-size: 11px;
    }

    .fmoqf-marks {
        margin-right: 17px;
        margin-left: 17px;
    }

    .fmoqf-foot {
        gap: 10px;
    }

    .fmoqf-finance-details {
        padding: 10px;
    }

    .fmoqf-detail-value {
        font-size: 14px;
    }

    .fmoqf-note {
        max-width: 155px;
    }

    .fmoqf-calculate {
        min-width: 108px;
        min-height: 40px;
        padding-right: 11px;
        padding-left: 11px;
    }
}
