/* ─── Calculadora de Hipoteca — Paleta Promocat ───────────────────────────── */

/* ── Tarjeta contenedora en el sidebar ───────────────────────────────────── */

.mortgage-calculator-widget
{
    background: #ffffff;
    border: 1px solid #e8c5ca;
    border-top: 3px solid #8E2C3B;
    border-radius: 10px;
    padding: 1.4rem 1.5rem;
    margin-top: 1.25rem;
    box-shadow: 0 2px 10px rgba(142, 44, 59, 0.08);
}

.simulador-hipoteca.container
{
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    margin: 0;
    box-shadow: none;
    color: #1a1a1a;
}

.simulador-hipoteca h4
{
    color: #8E2C3B;
    font-size: 1.15rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1.2rem;
    padding-bottom: 0.65rem;
    border-bottom: 2px solid #8E2C3B;
    letter-spacing: 0.3px;
}

/* ── Campos ────────────────────────────────────────────────────────────────── */

.simulador-hipoteca .form-group
{
    margin-bottom: 1.1rem;
}

.simulador-hipoteca .form-group label
{
    display: block;
    font-weight: 600;
    color: #444444;
    margin-bottom: 6px;
    font-size: 0.88rem;
}

.simulador-hipoteca .form-control
{
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d4b8bc;
    border-radius: 6px;
    font-size: 0.9rem;
    background: #ffffff;
    color: #1a1a1a;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.simulador-hipoteca .form-control:focus
{
    border-color: #8E2C3B;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(142, 44, 59, 0.18);
}

.simulador-hipoteca .form-control[readonly]
{
    background-color: #f8f3f4;
    color: #6c757d;
}

/* ── Slider de interés ────────────────────────────────────────────────────── */

.simulador-hipoteca input[type="range"]
{
    width: 100%;
    height: 5px;
    border-radius: 5px;
    background: #e8d0d3;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    margin: 10px 0;
    cursor: pointer;
}

.simulador-hipoteca input[type="range"]::-webkit-slider-thumb
{
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #8E2C3B;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(142, 44, 59, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.simulador-hipoteca input[type="range"]::-webkit-slider-thumb:hover
{
    transform: scale(1.15);
    box-shadow: 0 3px 8px rgba(142, 44, 59, 0.45);
}

.simulador-hipoteca input[type="range"]::-moz-range-thumb
{
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #8E2C3B;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 5px rgba(142, 44, 59, 0.35);
}

/* ── Badge del porcentaje de interés ─────────────────────────────────────── */

.simulador-hipoteca #porcentajeInteresValor
{
    display: inline-block;
    background: #8E2C3B;
    color: #ffffff;
    padding: 3px 9px;
    border-radius: 4px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-left: 8px;
    letter-spacing: 0.3px;
}

/* ── Resultados ──────────────────────────────────────────────────────────── */

.simulador-hipoteca .w-100
{
    background: #fdf2f4;
    border: 1px solid #e8c5ca;
    border-radius: 10px;
    padding: 16px 18px;
    margin: 1rem 0 0 0;
    animation: calcSlideUp 0.4s ease both;
}

.simulador-hipoteca .w-100 h3
{
    color: #8E2C3B;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin: 0 0 8px 0;
    text-align: center;
}

.simulador-hipoteca .w-100 > div
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.simulador-hipoteca .w-100 > div h3
{
    font-size: 0.78rem;
    letter-spacing: 1px;
    margin: 0;
}

.simulador-hipoteca .w-100 p
{
    color: #555555;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 5px 0;
    text-align: center;
}

.simulador-hipoteca #pagoTotalMensual
{
    color: #8E2C3B;
    font-weight: 800;
    font-size: 1.6rem;
    line-height: 1;
    letter-spacing: -0.5px;
}

.simulador-hipoteca .w-100 span
{
    color: #8E2C3B;
    font-weight: 700;
    font-size: 1rem;
}

/* ── Errores ──────────────────────────────────────────────────────────────── */

.simulador-hipoteca .text-danger
{
    color: #c0392b !important;
    font-size: 0.82rem;
    margin-top: 4px;
    display: block;
    text-shadow: none;
}

/* ── Slides valores ───────────────────────────────────────────────────────── */

.simulador-hipoteca .slides-valores
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.simulador-hipoteca .slides-valores label
{
    margin-bottom: 0;
}

/* ── Animación de entrada ────────────────────────────────────────────────── */

@keyframes calcSlideUp
{
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 768px)
{
    .simulador-hipoteca h4
    {
        font-size: 1.05rem;
    }

    .simulador-hipoteca .form-control
    {
        font-size: 0.9rem;
    }

    .simulador-hipoteca #pagoTotalMensual
    {
        font-size: 1.35rem;
    }
}