/* 1. Liberar el scroll del contenedor principal */
.main-container-anticipo {
    height: auto !important;
    min-height: 100vh !important;
    overflow: visible !important;
    display: block !important;
}

/* 2. Asegurar que el Navbar (donde está la hamburguesa) no flote mal */
.top-background {
    position: relative;
    z-index: 5;
    height: auto !important;
    min-height: 100vh;
}

/* Asegura que el menú desplegable no rompa el ancho */
.main-nav-navbar-home-mobile {
    width: 100% !important;
    max-width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
}

/* Si el menú tiene una posición absoluta, forzalo a no estirarse */
.site-header-navbar-home {
    width: 100% !important;
    max-width: 100vw !important;
    left: 0;
    right: 0;
    box-sizing: border-box;
}

.main-container-anticipo {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #ffffff;
    background: linear-gradient(0deg,
            rgba(255, 255, 255, 1) 0%,
            rgba(243, 247, 254, 1) 100%);
}

.top-background {
    width: 100%;
    background: url(../../images/img/vector-a-bg.svg) no-repeat right top, linear-gradient(180deg, #1ac677 24.52%, #f3f7fe00 100%);
    background-size: auto 100%, cover;
    justify-content: space-around;
    align-items: center;
    padding-top: 80px;
    padding-bottom: 100px;
}

.left-text-simu {
    text-align: center;
    width: 45%;
    align-content: center;
}

#title-text-simu {
    color: #1e1e1e !important;
    text-align: center;
    font-family: "Open Sans", sans-serif;
    font-size: 64px;
    font-style: normal;
    line-height: normal;
    margin: 0;
}

#free-loan-text {
    color: var(--Color-Base-Base-White, #fafafa);
    font-family: "Open Sans", sans-serif;
    font-size: 30px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin-top: 2%;
}

#cero-percent-interest {
    color: var(--neutrals-800, var(--Color-Neutrals-Neutrals800, #433f3e));
    text-align: center;
    font-family: "Open Sans", sans-serif;
    font-size: 30px;
    font-style: normal;
    font-weight: bold;
    line-height: normal;
    margin: 0;
}

#sub-cero-percent-interest {
    color: var(--neutrals-800, var(--Color-Neutrals-Neutrals800, #433f3e));
    text-align: center;
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: bold;
    line-height: normal;
    margin: 0;
}

#terms-conditions-text {
    color: var(--neutrals-800, var(--Color-Neutrals-Neutrals800, #433f3e));
    text-align: center;
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin-top: 10px;
}

#terms-conditions-text a {
    color: var(--neutrals-800, var(--Color-Neutrals-Neutrals800, #433f3e));
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: auto;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    text-underline-position: from-font;
}

#text-mini-cards {
    color: var(--neutrals-800, var(--Color-Neutrals-Neutrals800, #433f3e));
    text-align: center;
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.transparent-bg {
    gap: 100px;
    display: flex;
    align-items: anchor-center;
    justify-content: center;
}

.button-see-more {
    width: 100%;
    max-width: 164px;
    height: 30px;
    border-radius: 18px;
    background: #1ac677;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
    color: var(--Color-Base-Base-Black, #0a0b0a);
    text-align: center;
    font-family: "Open Sans", sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.button-see-more:hover {
    transform: scale(1.1);
}

a {
    text-decoration: none;
}

.link-cards {
    width: 100%;
    display: flex;
    justify-content: center;
}

.general-container-simu-index {
    padding: 0 20px;
}

.loan-simulator-container-slider-version {
    width: 100%;
    max-width: 370px;
    padding: 25px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    margin-top: 2rem;
}

.simulator-section-slider-version:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-title-slider-version {
    color: #433f3e;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.amount-display-slider-version {
    color: #1ac677;
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin: 0;
}

.days-display-slider-version {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin: 10px 0;
}

.days-text-slider-version {
    color: #433f3e;
    font-size: 20px;
    font-weight: 400;
}

.days-number-slider-version {
    color: #1ac677;
    font-size: 28px;
    font-weight: 700;
}

.slider-container-slider-version {
    position: relative;
    margin: 10px 0 10px;
}

.slider-slider-version {
    width: 100%;
    -webkit-appearance: none;
    height: 10px;
    background: #e0e0e0;
    outline: none;
    border-radius: 5px;
    background-image: linear-gradient(#1ac677, #1ac677);
    background-size: 50% 100%;
    background-repeat: no-repeat;
}

.slider-slider-version::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border: 3px solid #00e885;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.slider-slider-version::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border: 3px solid #00e885;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.range-labels-slider-version {
    display: flex;
    justify-content: space-between;
    color: #433f3e;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    margin-top: 8px;
}

.payment-date-slider-version {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 0px;
    border-bottom: 1px solid #1ac677;
    width: 100%;
    max-width: 250px;
    margin-top: 18px;
    padding: 4px 0;
}

.fee-due-slider-version {
    color: #17250a;
    font-size: 16px;
    font-weight: 400;
    margin: 0;
}

.fee-due-date-slider-version {
    color: #17250a;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.discount-info-slider-version {
    margin: 25px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.payment-timing-slider-version {
    color: #5a5555;
    font-size: 14px;
    font-weight: 400;
    max-width: 60%;
}

.rate-zero-text-slider-version {
    font-weight: 700;
}

.amounts-container-slider-version {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.original-amount-slider-version {
    color: #433f3e;
    font-size: 18px;
    font-weight: 700;
}

.discounted-amount-slider-version {
    color: #5a5555;
    font-size: 14px;
    font-weight: 700;
    text-decoration: line-through;
}

.loan-button-slider-version {
    background-color: #1ac677;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    color: #17250a;
    text-align: center;
    width: 100%;
    border-radius: 50px;
    margin-top: 15px;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.loan-button-slider-version:hover {
    transform: scale(1.1);
}

.info-note {
    text-align: center;
    font-size: 12px;
    color: #5a5555;
    margin-top: 10px;
}

.site-header-navbar-home {
    width: 100%;
    padding: 10px 0;
    font-family: "Open Sans", sans-serif;
    background-color: transparent;
    box-shadow: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.site-header-navbar-home.scrolled-navbar-home {
    background-color: white;
    box-shadow: 0 4px 8px 0 rgba(23, 37, 10, 0.25);
}

.header-container-navbar-home {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo-navbar-home img {
    height: 24px;
    width: auto;
}

.main-nav-navbar-home {
    margin-left: auto;
    margin-right: 20px;
}

.main-nav-navbar-home ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 15px;
    align-items: center;
}

.main-nav-navbar-home-mobile {
    display: none;
}

.nav-button-navbar-home {
    color: #000;
    text-decoration: none;
    padding: 10px 10px;
    border-radius: 50px;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    cursor: pointer;
    font-size: 16px;
}

.nav-button-navbar-home:hover {
    font-weight: bold;
    transform: scale(1.1) !important;
}

.nav-button-navbar-home.scrolled-navbar-home a:hover {
    color: #1ac677;
    transform: scale(1.1) !important;
}

.text-green {
    color: #1ac677;
}

.site-header-navbar-home.scrolled-navbar-home .primary-button-navbar-home:hover {
    color: black !important;
}

.primary-button-navbar-home {
    background-color: white !important;
    color: #000;
    border: 1px solid #1ac677;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.primary-button-navbar-home:hover {
    background-color: white !important;
    color: black;
}

.scrolled-navbar-home a:hover {
    color: #1ac677 !important;
}

.mi-cuenta-mobile-navbar-home,
.hamburger-navbar-home {
    display: none;
}

.mobile-buttons-navbar-home {
    display: none;
}

.tooltip-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
    top: 3px;
}

.tooltip-container .tooltiptext {
    visibility: hidden;
    width: 250px;
    background-color: #433f3e;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    bottom: 150%;
    left: 50%;
    margin-left: -125px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip-container .tooltiptext a {
    color: white;
    text-decoration: underline;
}

.tooltip-container .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #433f3e transparent transparent transparent;
}

.tooltip-container:hover .tooltiptext,
.tooltip-container:focus .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.title-simulator-top {
    color: var(--neutrals-800, var(--Color-Neutrals-Neutrals800, #433f3e));
    text-align: center;
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

@media screen and (min-width: 10px) and (max-width: 355px) {
    .main-container-anticipo {
        width: 100%;
        overflow-x: hidden;
    }

    .top-background {
        flex-direction: column;
        height: auto;
        background-size: 100% auto, cover;
        padding-top: 80px;
        padding-bottom: 40px;
    }

    .left-text-simu {
        width: 100%;
    }

    #cero-percent-interest {
        font-size: 27px;
    }

    #title-text-simu,
    #free-loan-text {
        color: black !important;
        text-align: center;
        font-family: "Open Sans", sans-serif;
        font-size: 27px;
        font-style: normal;
        font-weight: 700;
        line-height: normal;
    }

    #terms-conditions-text {
        display: none;
    }

    #text-mini-cards {
        color: var(--Color-Neutrals-Neutrals800, #433f3e);
        text-align: center;
        font-family: "Open Sans", sans-serif;
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
    }

    .header-container-navbar-home {
        display: none;
    }

    .transparent-bg {
        flex-direction: column;
        gap: 0;
    }
}

@media screen and (min-width: 357px) and (max-width: 768px) {
    .main-container-anticipo {
        width: 100%;
        overflow-x: hidden;
    }

    .top-background {
        flex-direction: column;
        height: auto;
        background-size: 100% auto, cover;
        padding-bottom: 40px;
    }

    .left-text-simu {
        width: 100%;
    }

    #title-text-simu {
        color: black !important;
        text-align: center;
        font-family: "Open Sans", sans-serif;
        font-size: 22px;
        font-style: normal;
        font-weight: 700;
        line-height: normal;
        margin: 0;
    }

    #cero-percent-interest {
        font-size: 22px !important;
    }

    #free-loan-text {
        color: #fff !important;
        text-align: center;
        font-family: "Open Sans", sans-serif;
        font-size: 18px;
        font-style: normal;
        font-weight: 700;
        line-height: normal;
        margin: 0;
        margin-bottom: 2%;
    }

    #terms-conditions-text {
        display: block;
        font-size: 12px;
        margin-top: 0;
        margin-bottom: 0;
    }

    #text-mini-cards {
        color: var(--Color-Neutrals-Neutrals800, #433f3e);
        text-align: center;
        font-family: "Open Sans", sans-serif;
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
    }

    .transparent-bg {
        display: block;
        justify-items: center;
        gap: 0;
    }

    .cards-bottom {
        width: 80%;
    }
}

@media (max-width: 768px) {
    .cards-bottom {
        min-width: calc(100% - 40px);
        margin-right: 0;
        scroll-snap-align: start;
        width: 50px;
        height: 100%;
    }

    .header-container-navbar-home {
        padding: 0 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        max-height: 40px;
    }

    .logo-navbar-home img {
        height: 20px;
        width: auto;
        position: relative;
        z-index: 999999;
    }

    .mi-cuenta-desktop-navbar-home {
        display: none;
    }

    .mobile-buttons-navbar-home {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .mi-cuenta-mobile-link-navbar-home {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        transition: background-color 0.3s ease;
    }

    .mi-cuenta-mobile-link-navbar-home:hover {
        background-color: #15a060;
    }

    .mi-cuenta-mobile-link-navbar-home img {
        height: 23px;
        width: 23px;
    }

    .main-nav-navbar-home {
        display: none;
    }

    .main-nav-navbar-home-mobile {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(5px);
        flex-direction: column;
        justify-content: center;
        align-items: center;

        /* CAMBIOS CLAVE AQUÍ */
        transform: translateX(100%);
        visibility: hidden;
        /* Esto hace que el navegador lo ignore totalmente mientras está cerrado */
        transition: transform 0.5s ease-in-out, visibility 0.5s;

        z-index: 99;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .main-nav-navbar-home-mobile.active-navbar-home {
        transform: translateX(0);
        visibility: visible; /* Se vuelve visible para la interacción */
    }

    .main-nav-navbar-home-mobile ul {
        width: 100%;
        height: 100%;
        position: absolute;
        top: 4rem;
        display: flex;
        flex-direction: column;
        gap: 18px;
        align-items: flex-start;
        list-style: none;
        padding-left: 30px;
    }

    .main-nav-navbar-home-mobile ul li {
        width: 100%;
    }

    .nav-button-navbar-home-mobile {
        text-align: center;
        font-size: 18px;
        border-radius: 0;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .nav-button-navbar-home-mobile {
        text-decoration: none;
        color: var(--Color-Primary-Primary1000, #17250a);
        text-align: center;
        font-family: "Open Sans", sans-serif;
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: 120%;
        color: #17250a;
    }

    .nav-button-navbar-home-mobile img {
        width: 24px;
        height: 24px;
    }

    .nav-button-navbar-home-mobile:hover {
        color: #15a060;
    }

    .hamburger-navbar-home {
        display: block;
        border: none;
        background: transparent;
        cursor: pointer;
        padding: 10px;
        z-index: 100;
    }

    .hamburger-navbar-home img {
        width: 20px;
        height: 20px;
    }

    .hamburger-navbar-home .bar-navbar-home {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        background-color: #000;
        transition: all 0.3s ease-in-out;
    }

    .hamburger-navbar-home.active-navbar-home .bar-navbar-home:nth-child(2) {
        opacity: 0;
    }

    .hamburger-navbar-home.active-navbar-home .bar-navbar-home:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger-navbar-home.active-navbar-home .bar-navbar-home:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .site-header-navbar-home {
        padding: 10px 0;
    }

    .section-title-slider-version {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .amount-display-slider-version {
        font-size: 24px;
        margin-bottom: 13px;
    }

    .days-text-slider-version {
        font-size: 18px;
    }

    .days-number-slider-version {
        font-size: 24px;
    }

    .payment-timing-slider-version {
        font-size: 13px;
        max-width: 55%;
    }

    .original-amount-slider-version {
        font-size: 16px;
    }

    .discounted-amount-slider-version {
        font-size: 13px;
    }

    .general-container-simu-index {
        padding: 0 20px;
        display: flex;
        justify-content: center;
    }

    .loan-simulator-container-slider-version {
        padding: 20px 15px;
        margin: 20px 20px 0 20px;
        margin-left: initial;
        margin-right: auto;
    }

    .fee-due-slider-version {
        color: #17250a;
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
    }

    .fee-due-date-slider-version {
        color: #17250a;
        font-size: 16px;
        font-style: normal;
        font-weight: 700;
        line-height: normal;
    }

    .payment-date-slider-version {
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        border-radius: 0px;
        border-bottom: 1px solid #1ac677;
        width: 100%;
        max-width: 250px;
        margin-top: 18px;
        padding: 4px 0;
    }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
    .footer-container {
        max-width: 1200px;
        margin: 0 auto;
        text-align: center;
        padding: 39px 0px 10px 0px !important;
    }
}

@media screen and (width: 768px) {
    .footer-container {
        max-width: 1200px;
        margin: 0 auto;
        text-align: center;
        padding: 39px 0px 10px 0px !important;
    }
}