/* PRÉSTAMOS PAGE - CES VALI THEME */

#hero {
    --content-width: 1000px;
    position: relative;
}
#hero > .container {
    --gap: 12vw;
}
.hero-body {
    position: relative;
    z-index: 2;
}
.hero-contenido {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.hero-contenido h1 {
    font-size: clamp(1.875rem, 1.625rem + 0.8333vw, 2.25rem);
    line-height: 1.2em;
    color: #fff;
}
.hero-contenido > div {
    font-size: clamp(1.125rem, 0.9583rem + 0.5556vw, 1.375rem);
    font-weight: bold;
    color: var(--secondary-color);
}

.hero-contenido ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    flex-direction: column;
    gap: 10px;
}
.hero-contenido ul li {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: clamp(1rem, 0.9583rem + 0.1389vw, 1.0625rem);
    color: #fff;
}
.hero-contenido ul li figure {
    height: 25px;
    width: 25px;
    position: relative;
    overflow: hidden;
}
.hero-contenido ul li figure img {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
    object-fit: contain;
}
.hero-background {
    background: linear-gradient(
        129.85deg,
        #0a3a6b 0%,
        #08304a 50%,
        #07294e 100%
    );
}
.hero-background,
.hero-background img {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
}
.hero-background img {
    object-fit: cover;
}
.hero-disclaimer {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.19);
    padding: 10px;
    margin-top: 10px;
    text-align: center;
    font-size: 13px;
}
.hero-disclaimer a {
    color: var(--secondary-color);
    font-weight: bold;
    text-decoration: underline;
}

.iframe-form {
    background-color: rgba(255, 255, 255, 0.8);
    background-image: url("../../images/loading.svg");
    background-size: 12vw;
    background-position: center;
    background-repeat: no-repeat;
    backdrop-filter: blur(3px);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
    z-index: 90;
}
.iframe-form iframe {
    width: 100%;
    height: 100%;
}
::is(.hero-form, .iframe-form):not(.active) {
    display: none;
}

.pat-overlay {
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(2px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    width: 100%;
    z-index: 89;
    cursor: pointer;
}
.pat-modal {
    background-color: #fff;
    border-radius: 16px;
    width: 98dvw;
    max-width: 700px;
    height: 90dvh;
    max-height: 600px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 100%;
    width: 100%;
    z-index: 90;
}
.pat-modal iframe {
    height: 100%;
    width: 100%;
    border-radius: 16px;
}

.form {
    gap: 10px 20px;
}
.form-row .results {
    background-color: #eff3f8;
    align-self: center;
    color: #07294e;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 20px;
    border-radius: 10px;
    gap: 6px;
    margin-top: 10px;
    margin-bottom: 10px;
    min-width: 60%;
}
.form-row .results b {
    font-size: clamp(1.3125rem, 1.1458rem + 0.5556vw, 1.5625rem);
}
.results-date {
    text-align: center;
}
.results-date b {
    color: var(--main-color);
}
.form-submit {
    background-color: #07294e;
    color: #fff;
    font-weight: bold;
    text-align: center;
    align-self: center;
    padding: 10px 20px;
    border-radius: 70px;
    min-width: 60%;
}
.form-row__range {
    background: #ffffff;
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.25);
    border-radius: 10px;
    padding: 20px;
}
.form-row select {
    appearance: none;
    -moz-appearance: textfield;
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.25);
    border: 0 !important;
    background-image: url("../../images/chevron-down.svg");
    background-position: calc(100% - 12px) center;
    background-size: 16px;
    background-repeat: no-repeat;
}
.form-row__range input {
    -webkit-appearance: none;
    width: 100%;
    height: 8px !important;
    background: #c8d9e8 !important;
    border: 0 !important;
    outline: none;
}
.form-row__range input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    border-radius: 10px;
    width: 20px;
    height: 20px;
    background: #07294e;
    cursor: pointer;
}
.form-row__range input::-moz-range-thumb {
    border-radius: 10px;
    width: 20px;
    height: 20px;
    background: #07294e;
    cursor: pointer;
}
.form-row__range .ranges-labels {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}
.form-row__range .ranges-labels label {
    font-weight: bold;
}
.form-row__range .ranges-labels span {
    display: inline-flex;
    background: #07294e;
    padding: 6px 15px;
    line-height: 1em;
    border-radius: 60px;
    color: #fff;
    font-weight: 600;
}
.form-row__range .ranges-values {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

#pasos {
    background-color: #fff !important;
    border-bottom: 1px solid #909090;
}
#pasos .section-title {
    text-align: left;
}
#pasos .btn {
    display: inline-flex;
    margin-top: 30px;
    text-decoration: underline;
    color: var(--secondary-color);
    font-weight: bold;
}
.pasos-contenido {
    display: flex;
    justify-content: center;
    flex-direction: column;
}
#pasos ul {
    gap: 10px;
}
#pasos ul li {
    color: #909090;
    display: flex;
    align-items: center;
    padding-left: 32px;
    cursor: pointer;
}
#pasos ul li::before {
    background-color: #909090;
    font-size: 14px;
    height: 22px;
    width: 22px;
}
#pasos ul li.active {
    color: var(--main-color);
}
#pasos ul li.active::before {
    background-color: var(--main-color);
}
#pasos-slider {
    margin-top: -20px;
    margin-bottom: -20px;
}
#pasos-slider :is(.swiper-button-next, .swiper-button-prev) {
    top: 50%;
    transform: translateY(-50%);
    position: absolute;
}
#pasos-slider .swiper-button-prev {
    left: 20px;
}
#pasos-slider .swiper-button-next {
    right: 20px;
}

.beneficio {
    height: 100%;
    display: flex;
    justify-content: stretch;
    flex-direction: column;
    align-items: center;
}
.beneficio h3 {
    font-size: clamp(0.9375rem, 0.8125rem + 0.4167vw, 1.125rem);
    box-shadow: 0px 0px 8px 2px rgba(0, 0, 0, 0.12);
    background-color: #fff;
    border-radius: 10px;
    font-weight: 600;
    padding: 20px;
    text-align: center;
    color: var(--secondary-color);
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
#beneficios .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
#beneficios .btn {
    display: inline-flex;
    align-self: center;
    justify-self: center;
    margin-top: 40px;
    margin-left: auto;
    margin-right: auto;
    background-color: var(--main-color);
    color: #fff;
    font-weight: bold;
    padding: 10px 30px;
    border-radius: 80px;
}

#trust {
    background: linear-gradient(90deg, #0a3a6b 0%, #0d4470 100%);
    --content-width: 1200px;
}
#trust .section-title {
    text-align: left;
    color: #fff;
}
.trust-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.trust-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}
.trust-item {
    display: grid;
    grid-template-columns: 75px calc(100% - 75px - 20px);
    gap: 20px;
    align-items: center;
    color: #fff;
}
.trust-item h3 {
    margin-top: 0;
    color: var(--secondary-color);
}
.trust-image figure {
    margin-bottom: calc(-1 * clamp(2.5rem, 1.125rem + 5vw, 5rem));
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

.testimonial {
    background: #fff;
    box-shadow: 0px 0px 8px 2px rgba(0, 0, 0, 0.12);
    border-radius: 20px;
    color: var(--secondary-color);
    padding: 25px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
}
.testimonial h3 {
    font-weight: bold;
}

#beneficios,
#disclaimer {
    border-top: 1px solid #909090;
}
#disclaimer > .container {
    background: #fff;
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.35);
    border-radius: 20px;
    padding: 30px;
    font-size: clamp(0.75rem, 0.6667rem + 0.2778vw, 0.875rem);
}
#disclaimer > .container h3 {
    color: #07294e;
    margin-bottom: 10px;
}
#disclaimer > .container p:not(:last-of-type) {
    margin-bottom: 0.5em;
}

/* SWIPER */
.swiper-buttons {
    width: calc(100vw - 60px);
    position: absolute;
    top: 50%;
    transform: translateY(-50%) translateX(-50%);
    pointer-events: none;
    display: flex;
    left: 50%;
    z-index: 2;
    justify-content: space-between;
}
::is(.swiper-button-next, .swiper-button-prev) {
    position: relative;
    pointer-events: all;
    z-index: 2;
    top: unset;
    left: unset;
    right: unset;
    margin: 0;
    transform: unset;
    width: 46px !important;
    height: 46px !important;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.19);
    color: #07294e;
    transition: all 0.25s linear;
}
::is(.swiper-button-next, .swiper-button-prev)::after {
    font-size: 20px !important;
}
::is(.swiper-button-next, .swiper-button-prev):hover {
    background-color: #07294e;
    color: #fff;
}

@media screen and (min-width: 767px) {
    [data-mswiper] {
        position: relative;
    }
    [data-mswiper] .swiper-buttons {
        display: none;
    }
}

@media screen and (max-width: 767px) {
    .hero-contenido ul {
        display: none;
    }
    .hero-contenido h1,
    .hero-contenido > div,
    #pasos .section-title {
        text-align: center;
    }
    .hero-contenido figure,
    #pasos .btn {
        align-self: center;
    }
    #pasos ul li::before {
        position: relative;
        margin-right: 10px;
    }
    #pasos ul li {
        justify-content: center;
        padding-left: 0;
    }
    #pasos ul li:not(.active) {
        position: absolute;
        pointer-events: none;
        opacity: 0;
    }
    #pasos figure {
        width: 80%;
        margin: 0 auto;
    }
    #pasos > .container {
        flex-direction: column-reverse;
    }
    #slider-testimonios {
        padding-left: 40px !important;
        padding-right: 40px !important;
        margin-left: -30px !important;
        margin-right: -30px !important;
        margin-bottom: -20px;
        margin-top: -20px;
    }
    #slider-testimonios .mslide {
        padding: 20px 0;
    }
    .mwrapper {
        flex-wrap: nowrap;
        gap: 0 !important;
    }
    :is(.swiper-button-next, .swiper-button-prev) {
        width: 40px !important;
        height: 40px !important;
    }

    #slider-beneficios .mslide {
        padding: 20px 0;
    }
    #slider-beneficios .mwrapper {
        width: calc(100dvw - 60px);
    }
    .beneficio {
        padding: 0 20px;
    }
}
