/* Modal "¿Cuál es tu presupuesto?" del botón "Buscar por precio" de la cabecera (ver Views/Shared/_ModalPresupuesto.cshtml y
   wwwroot/js/ro-modal-presupuesto.js). El botón en sí se estila en ro-cabecera.css. */
.ro-pm {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    /* Mismo fondo que las ventanas de teléfono y correo (ContactoTelefonoModal): capa oscura traslúcida y difuminada. */
    background: #20171980;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity .15s linear;
    font-family: 'DM Sans', Arial, sans-serif;
    color: #222326;
}
.ro-pm.is-open {
    display: flex;
}
.ro-pm.is-shown {
    opacity: 1;
}
/* La barra inferior fija (z-index legacy enorme) quedaba por encima del fondo difuminado. */
body.ro-pm-open #bottom-arrow {
    z-index: 1030 !important;
}
.ro-pm-dialog {
    position: relative;
    width: 100%;
    max-width: 460px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 28px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(32, 23, 25, .25);
    /* Entra deslizándose desde arriba como las ventanas de teléfono y correo: allí Bootstrap (.fade .modal-dialog) desplaza el
       25 % del alto de un contenedor que ocupa toda la pantalla, es decir ~25vh. Con 50px apenas se notaba. */
    transform: translate(0, -25vh);
    transition: transform .3s ease-out;
}
.ro-pm.is-shown .ro-pm-dialog {
    transform: none;
}
@media (prefers-reduced-motion: reduce) {
    .ro-pm,
    .ro-pm-dialog {
        transition: none;
    }
}
.ro-pm-close {
    position: absolute;
    top: 28px;
    right: 28px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f4f1ee;
    color: #222326;
    cursor: pointer;
}
.ro-pm-close:hover {
    background: #ebe6e1;
}
.ro-pm-close svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
}
.ro-pm-title {
    margin: 12px 56px 12px 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.02em;
}
.ro-pm-sub {
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.45;
    color: #686a70;
}
.ro-pm-quick {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 22px;
}
.ro-pm-quick button {
    min-height: 46px;
    padding: 8px 10px;
    border: 1px solid #dedbd9;
    border-radius: 8px;
    background: #fff;
    color: #222326;
    font: 400 16px/1.2 'DM Sans', Arial, sans-serif;
    cursor: pointer;
    transition: border-color .16s ease, background-color .16s ease;
}
.ro-pm-quick button:hover {
    border-color: #d9263b;
}
.ro-pm-quick button.is-active {
    border-color: #d9263b;
    background: #fdf0f2;
    font-weight: 700;
}
.ro-pm-values {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
}
.ro-pm-box {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    padding: 14px 16px;
    background: #f8f7f5;
    border: 1px solid #e9e7e5;
    border-radius: 10px;
}
.ro-pm-box small {
    font-size: 13px;
    color: #686a70;
}
.ro-pm-box output {
    font-size: 26px;
    line-height: 1.2;
    font-weight: 700;
    color: #222326;
}
.ro-pm-go {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    margin-top: 4px;
    padding: 10px 18px;
    border: 0;
    border-radius: 8px;
    background: #b71c2e;
    color: #fff;
    font: 700 15px/1.2 'DM Sans', Arial, sans-serif;
    cursor: pointer;
}
.ro-pm-go:hover {
    background: #9f1727;
}
.ro-pm-go svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
/* Reskin de ion.rangeSlider, igual que el de la tarjeta de precio de la home (Ventajas). */
.ro-pm-slider .irs {
    font-family: 'DM Sans', Arial, sans-serif;
}
.ro-pm-slider .irs-line,
.ro-pm-slider .irs-bar,
.ro-pm-slider .irs-bar-edge,
.ro-pm-slider .irs-shadow,
.ro-pm-slider .irs-slider {
    background-image: none !important;
}
.ro-pm-slider .irs-line {
    background: #d6d4d2;
    border-radius: 999px;
    height: 6px;
    top: 33px;
}
.ro-pm-slider .irs-bar {
    background: #d9263b;
    height: 6px;
    top: 33px;
}
.ro-pm-slider .irs-min,
.ro-pm-slider .irs-max {
    display: none;
}
.ro-pm-slider .irs-from,
.ro-pm-slider .irs-to,
.ro-pm-slider .irs-single {
    background: #222326;
    border-radius: 6px;
    font-size: 12px;
    padding: 3px 7px;
}
.ro-pm-slider .irs-from:after,
.ro-pm-slider .irs-to:after,
.ro-pm-slider .irs-single:after {
    border-top-color: #222326;
}
.ro-pm-slider .irs-slider {
    top: 24px;
    width: 22px;
    height: 22px;
    background: #fff;
    border: 2px solid #d9263b;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
    cursor: pointer;
}
@media (max-width: 480px) {
    .ro-pm-dialog {
        padding: 22px 20px;
    }
    .ro-pm-close {
        top: 20px;
        right: 20px;
    }
    .ro-pm-title {
        font-size: 21px;
    }
    .ro-pm-box output {
        font-size: 22px;
    }
}
