/* ==========================================================================
   CAMBIO GLOBAL DE COLOR DE ACENTO (ROJO A AZUL PROFESIONAL Y MAPA)
   ========================================================================== */

/* 1. Reemplazo de variables de color del tema */
:root {
    --primary-color: #00468C !important;
    --primary-color-hover: #002D5A !important;
    --main-color: #00468C !important;
    --color-primary: #0099CC !important;
    --color-primary-hover: #002D5A !important;
    --theme-color: #00468C !important;
}

/* 2. Botones generales y elementos de acción */
.btn-primary, 
.theme-btn, 
.bg-primary, 
button[type="submit"], 
input[type="submit"] {
    background-color: #00468C !important;
    border-color: #00468C !important;
}

/* Estado al pasar el ratón por encima (Hover) */
.btn-primary:hover, 
.theme-btn:hover, 
.bg-primary:hover, 
button[type="submit"]:hover, 
input[type="submit"]:hover {
    background-color: #002D5A !important;
    border-color: #002D5A !important;
}

/* 3. Textos, enlaces e iconos destacados */
.text-primary, 
.theme-color, 
a.text-primary, 
i.text-primary {
    color: #00468C !important;
}

a:hover {
    color: #002D5A !important;
}

/* 4. Pines de mapas, insignias (badges) y elementos activos */
.map-pin, 
.property-badge, 
.badge-primary, 
.pagination .page-item.active .page-link,
.nav-pills .nav-link.active {
    background-color: #00468C !important;
    color: #ffffff !important;
}

/* 5. Bordes de enfoque en formularios y fichas de propiedades */
.form-control:focus, 
.property-card:hover {
    border-color: #00468C !important;
}

/* ==========================================================================
   AJUSTES FINALES Y EFECTOS INTERACTIVOS (HOVER, CALCULADORA Y ANIMACIONES)
   ========================================================================== */

/* 1. Cambio de estado al tocar/pasar el cursor por los botones (Hover Azul Claro) */
.btn-primary:hover, 
.theme-btn:hover, 
.bg-primary:hover, 
button:hover, 
input[type="submit"]:hover,
a.btn:hover {
    background-color: #0099CC !important;
    border-color: #0088CC !important;
    color: #ffffff !important;
}

/* 2. Rayita animada inferior (underline) y enlaces al pasar el cursor */
a:hover, 
.nav-link:hover,
.menu-item:hover > a,
a:hover::after,
.animated-underline:hover::after,
.nav-links a:hover {
    color: #00A3E0 !important;
    border-color: #00A3E0 !important;
}

/* Para pseudo-elementos (la rayita que se desplaza debajo del texto) */
a::after, 
.nav-link::after,
.menu-item a::after {
    background-color: #00A3E0 !important;
}

/* ==========================================================================
   RESETEO Y ESTILO MODERNO PARA LA CALCULADORA DE HIPOTECAS (MORTGAGE)
   ========================================================================== */

/* 1. Fondo azul claro transparente y contenedor limpio */
.mortgage-calculator,
.mortgage-widget,
.mortgage-calculator-wrapper,
.mortgage-calculator-form,
.mc-wrapper {
    background-color: rgba(235, 245, 255, 0.85) !important; /* Azul muy claro pastel semi-transparente */
    border: 1px solid #B3D8F8 !important;                   /* Borde azul tenue */
    border-radius: 12px !important;                          /* Esquinas redondeadas modernas */
    padding: 20px !important;
}

/* 2. Corrección del color de las letras (Texto oscuro legible) */
.mortgage-calculator label,
.mortgage-calculator p,
.mortgage-calculator span,
.mortgage-calculator h3,
.mortgage-calculator h4,
.mortgage-calculator h5,
.mortgage-calculator .form-group,
.mortgage-calculator .title,
.mortgage-calculator-result {
    color: #427de3 !important; /* marino profundo para lectura clara */
    font-weight: 500 !important;
}

/* 3. Campos de texto e inputs de la calculadora */
.mortgage-calculator .form-control,
.mortgage-calculator input[type="text"],
.mortgage-calculator input[type="number"],
.mortgage-calculator select {
    background-color: #FFFFFF !important;
    border: 1px solid #93C5FD !important; /* Borde azul claro */
    color: #0F172A !important;
}

.mortgage-calculator .form-control:focus,
.mortgage-calculator input:focus,
.mortgage-calculator select:focus {
    border-color: #0088CC !important;
    box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.15) !important;
}

.mortgage-calculator__results-panel {
    background: #7497d3;
    border-radius: 4px;
    padding: 1.5rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* 4. Líneas de selección (Sliders, Rangos y Líneas de Separación) */
.mortgage-calculator .ui-slider,
.mortgage-calculator .noUi-target,
.mortgage-calculator .slider-track,
.mortgage-calculator input[type="range"] {
    background: #CBD5E1 !important; /* Fondo neutro de la barra */
    border-color: #93C5FD !important;
}

/* La barra de progreso / selección activa (Remplaza el rojo) */
.mortgage-calculator .ui-slider-range,
.mortgage-calculator .noUi-connect,
.mortgage-calculator .slider-selection,
.mortgage-calculator .progress-bar {
    background-color: #0088CC !important; /* Azul brillante vibrante */
}

/* Botón / Tirador deslizante (Handle) */
.mortgage-calculator .ui-slider-handle,
.mortgage-calculator .noUi-handle,
.mortgage-calculator input[type="range"]::-webkit-slider-thumb,
.mortgage-calculator input[type="range"]::-moz-range-thumb {
    background-color: #00468C !important;
    border: 2px solid #FFFFFF !important;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.2) !important;  
}
Atributo style {
    --mc-primary: #1839e3;
    margin: 40px 0 40px;
}

/* 5. Cajas de resultado e importes destacados */
.mortgage-calculator-result,
.mortgage-calculator .result-box,
.mortgage-calculator .total-amount {
    border-radius: 4px;
    padding: 1.5rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
} !important;
    border: 1px solid #BFDBFE !important;
    border-radius: 8px !important;
}
.mortgage-calculator .btn-primary:hover,
.mortgage-calculator button[type="submit"]:hover {
    background-color: linear-gradient(135deg,#80a4e3,#2d3748) !important;
    border-color: #006699 !important;
}

.mortgage-calculator-result .amount,
.mortgage-calculator .highlight,
.mortgage-calculator .text-primary {
    color: #0088CC !important; /* Azul destacado para las cifras */
    font-weight: 700 !important;
}

/* 6. Pestañas y botones de acción dentro de la calculadora */
.mortgage-calculator .btn-primary,
.mortgage-calculator button[type="submit"] {
    background-color: #0088CC !important;
    border-color: #0088CC !important;
    color: #FFFFFF !important;
}



/* ==========================================================================
   AUMENTAR TAMAÑO DEL LOGO EN LA CABECERA
   ========================================================================== */

/* 1. Forzar mayores dimensiones para la imagen del logo */
.main-header .logo-box .logo img {
    max-height: 95px !important;  /* Ajusta a 75px, 85px o 95px según prefieras */
    height: auto !important;
    width: auto !important;
    max-width: none !important;
    display: inline-block !important;
    transition: all .3s ease !important;
}

/* 2. Ampliar la caja contenedora por si la cabecera la asfixia */
.main-header .logo-box {
    display: flex !important;
    align-items: center !important;
    max-height: 100px !important;
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}

/* 3. Asegurar que la cabecera adapte su altura automáticamente */
.main-header .header-lower,
.main-header .outer-box {
    min-height: 90px !important;
}

/* ==========================================================================
   FORZAR MAX-HEIGHT DEL LOGO (SOBREESCRIBE ELEMENT.STYLE)
   ========================================================================== */

.main-header .logo-box .logo img[style],
.main-header .logo-box .logo img {
    max-height: 80px !important;
    height: auto !important;
    width: auto !important;
    max-width: none !important;
    display: inline-block !important;
}

.property-disclaimer {
    background-color: #37c4cf2e;
    padding: 24px 28px;
    border-left: 4px solid #171fd4;
    border-radius: 4px;
}

/* ==========================================================================
   CORRECCIÓN DEFINITIVA: SLIDER DE PORCENTAJE Y HOVER EN BOTONES
   ========================================================================== */

/* 1. Barra de progreso y seleccionador gradual (Rango / Porcentaje) */
.mortgage-calculator input[type="range"],
.mortgage-calculator .noUi-connect,
.mortgage-calculator .ui-slider-range,
.mortgage-calculator .irs-bar,
.mortgage-calculator .irs-from, 
.mortgage-calculator .irs-to, 
.mortgage-calculator .irs-single,
.mortgage-calculator .range-slider-fill {
    background-color: #0088CC !important;
    background: #0088CC !important;
    border-color: #0088CC !important;
}

/* El botón / tirador circular que arrastras en la barra */
.mortgage-calculator input[type="range"]::-webkit-slider-thumb,
.mortgage-calculator input[type="range"]::-moz-range-thumb,
.mortgage-calculator .noUi-handle,
.mortgage-calculator .ui-slider-handle,
.mortgage-calculator .irs-handle,
.mortgage-calculator .range-slider-handle {
    background-color: #00468C !important;
    border: 2px solid #FFFFFF !important;
    box-shadow: 0 0 5px rgba(0, 136, 204, 0.5) !important;
}

/* 2. Efecto vivo (Hover / Focus) al pasar el mouse por los botones */
.btn:hover,
.btn:focus,
.btn:active,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.theme-btn:hover,
.theme-btn:focus,
.theme-btn:active,
button:hover,
button:focus,
input[type="submit"]:hover,
input[type="submit"]:focus,
.mortgage-calculator button:hover,
.mortgage-calculator .btn:hover {
    background-color: #0088CC !important;
    background: #0088CC !important;
    border-color: #0088CC !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3) !important;
}

/* Borde animado o brillo interior al hacer clic/hover */
.btn:hover::before,
.btn:hover::after,
.theme-btn:hover::before,
.theme-btn:hover::after {
    background-color: #0088CC !important;
    border-color: #0088CC !important;
}

/* ==========================================================================
   CORRECCIÓN HOVER EN BOTÓN "SUBMIT PROPERTY" (AÑADIR PROPIEDAD)
   ========================================================================== */

/* 1. Estado Hover/Focus directo en botones de envío de propiedad y menú superior */
.submit-property:hover,
.submit-property:focus,
.submit-property:active,
.add-property:hover,
.add-property:focus,
.btn-submit:hover,
.btn-submit:focus,
.main-header .other-option .btn-box a:hover,
.main-header .other-option .btn-box a:focus,
.header-top .btn-box a:hover {
    background-color: #0088CC !important;
    background: #0088CC !important;
    border-color: #0088CC !important;
    color: #FFFFFF !important;
}

/* 2. Pseudo-elementos de animación (fondos que se deslizan o expanden al pasar el mouse) */
.submit-property::before,
.submit-property::after,
.add-property::before,
.add-property::after,
.main-header .other-option .btn-box a::before,
.main-header .other-option .btn-box a::after,
.theme-btn::before,
.theme-btn::after {
    background-color: #0088CC !important;
    background: #0088CC !important;
}