/* DEFAULT HIDDEN ELEMENTS (Hidden on Desktop) */
.olva-form-mobile,
.olva-modal,
.olva-floating-bar {
    display: none !important;
}

.olva-form-desktop {
    display: block;
}

@media (max-width: 991px) {
    :root {
        ---header-height: 54px;
    }

    .olva-floating-bar {
        background-color: rgb(254, 247, 255);
        padding: 0.75rem;
        justify-content: center;
        align-items: center;
        position: fixed;
        bottom: 0px;
        left: 0px;
        text-align: center;
        width: 100%;
        z-index: 1;
        display: flex !important;

        .olva-floating-bar__inner {
            width: 100%;
            gap: 0.625rem;
            justify-content: center;

            .olva-floating-btn {
                display: flex;
                align-items: center;
                padding: 12px;
                gap: 0.75rem;
                border-radius: 1rem;
                font-family: var(--font-bold);
                font-size: 14px;
                border: 0.742px solid #E3E9F7;
                background: #FFF;
                box-shadow: 0 2.969px 32.136px 0 rgba(72, 72, 72, 0.35);


                &.olva-floating-btn--white {

                    color: #020617;


                }

                &.olva-floating-btn--blue {
                    color: #fff;
                    background-color: #2546BB;
                }
            }
        }
    }

    .site-footer {
        padding-top: 2rem;

        .top {
            .footer-menu-nav {
                display: block;
                margin-top: 0;
                padding-top: 0;
                border-top: none;
                width: 100%;
            }

            .footer-menu-grid {
                flex-direction: column;
                gap: 0.75rem !important;
                /* Spacing between cards */
                padding-bottom: 2rem;
                display: flex;
            }

            .footer-menu-column {
                background: #ffffff;
                border-radius: 12px;
                box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
                border: 1px solid rgba(0, 0, 0, 0.03);
                width: 100%;
                padding-inline: 1.5rem;
                overflow: hidden;
                margin-bottom: 0.75rem;
            }

            .footer-menu-title {
                margin-bottom: 0;
                padding: 1.25rem 0;
                color: #020617;
                font-size: 1rem;
                cursor: pointer;
                pointer-events: auto;
                /* Enable click on mobile */
                user-select: none;
                display: flex;
                justify-content: space-between;
                align-items: center;
            }

            .footer-menu-title .accordion-icon {
                display: block;
                font-size: 1rem;
                font-weight: 300;
                transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
                pointer-events: none;
            }

            .footer-menu-column.active .accordion-icon {
                transform: rotate(45deg);
            }

            .footer-menu-list {
                max-height: 0;
                overflow: hidden;
                transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
                gap: 1rem;
                padding-bottom: 0;
                display: flex;
                flex-direction: column;
            }

            .footer-menu-column.active .footer-menu-list {
                max-height: 500px;
                padding-bottom: 1.5rem;
            }

            .footer-menu-list li a {
                color: #64748B;
                font-size: 0.875rem;
                padding: 0.25rem 0;
                display: block;
            }
        }
    }

    .main-emprendedores,
    .main-corporativo,
    .main-front-page {
        .olva-form-mobile {
            background-color: #FEF7FF;
            padding: .75rem;
            display: flex !important;
            justify-content: center;
            align-items: center;
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            z-index: 1;

            .olva-btn {
                width: 100%;
                border: none;
                padding: 12px 10px;
                color: #fff;
                font-size: .875rem;
                border-radius: 99px;
                cursor: pointer;
                font-weight: 700;
                background-color: #2546BB;
            }
        }
    }

    .margin-section {
        /* margin-top: 76px; */
        margin-top: 54px;
    }

    .olva-header {
        .olva-topbar {
            display: none;
        }

        .olva-mainnav {
            display: none;
        }

        .olva-mobile-menu {
            display: block;
        }

        .olva-mainbar {
            padding: 0;

            & .olva-mainbar__inner {
                flex-direction: row-reverse;
                padding-inline: 1.5rem;

                .olva-logo {
                    flex: unset;
                    max-width: 120px;
                }
            }
        }

        /* MOBILE MENU DRAWER */
        .olva-mobile-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            background-color: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(4px);
            z-index: 998;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;

            &.is-active {
                opacity: 1;
                visibility: visible;
            }
        }

        .olva-mobile-menu {
            position: fixed;
            top: 0;
            left: -100%;
            /* Inicia fuera de pantalla a la izquierda */
            width: 80%;
            max-width: 320px;
            height: 100%;
            background-color: var(--bg-header);
            z-index: 999;
            padding: 2rem 1.5rem;
            display: flex;
            flex-direction: column;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 5px 0 25px rgba(0, 0, 0, 0.1);

            &.is-active {
                left: 0;
            }

            .olva-mobile-menu__header {
                margin-bottom: 2.5rem;

                .olva-mobile-close {
                    background: none;
                    border: none;
                    font-size: 1.5rem;
                    color: var(--color-text-principal);
                    cursor: pointer;
                }
            }

            .olva-mobile-nav {
                flex: 1;
                overflow-y: auto;

                .olva-mobile-list {
                    display: flex;
                    flex-direction: column;
                    gap: 1.5rem;

                    .olva-mobile-item {
                        .olva-mobile-link {
                            text-decoration: none;
                            color: #020617;
                            font-family: var(--font-bold);
                            font-size: 1rem;

                            transition: all 0.2s ease;

                            &:active {
                                opacity: 0.7;
                            }

                            .img-icon {
                                max-width: 24px;
                                max-height: 24px;

                                .olva-mobile-icon {

                                    object-fit: contain;
                                }
                            }

                        }
                    }
                }
            }

            .olva-mobile-footer {
                padding-top: 2rem;
                margin-top: auto;

                .olva-btn {
                    padding: 1rem;
                    border-radius: 12px;
                    font-weight: 700;
                    font-size: 1.125rem;
                    text-decoration: none;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    transition: 0.2s ease;
                    background: #2546BB;
                    /* Color azul del boton del diseño */
                    color: #ffffff;
                    border: none;

                    &.full-width {
                        width: 100%;
                    }
                }
            }
        }
    }

    /* FLOATING BOTTOM BAR (Home only) */


    /* FORM VISIBILITY EMPRENDEDORES & CORPORATIVO */
    .page-emprendedores,
    .page-empresas {
        .olva-form-desktop {
            display: none !important;
        }

        .olva-form-mobile {
            display: block !important;
            width: 100%;
            margin-top: 1rem;
        }
    }

    /* GENERIC MODAL STYLES */
    .olva-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 2000;
        display: flex !important;
        /* Override global display: none */
        align-items: center;
        justify-content: center;
        padding: 1rem;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;

        &.is-active {
            opacity: 1;
            visibility: visible;

            .olva-modal__container {
                transform: translateY(0);
            }
        }

        .olva-modal__overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(15, 23, 42, 0.82);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
        }

        .olva-modal__container {
            position: relative;
            background: rgba(0, 0, 0, 0.20);

            width: 100%;
            max-width: 540px;
            max-height: 90vh;
            border-radius: 1.5rem;
            border: 1px solid rgba(255, 255, 255, 0.2);
            padding: 2.5rem 1.25rem 1.25rem;
            overflow-y: auto;
            transform: translateY(30px);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 4px 30.7px 0 rgba(0, 0, 0, 0.42);


            .olva-modal__close {
                position: absolute;
                top: 0.5rem;
                right: 0.5rem;
                background: #f1f5f9;
                border: none;
                width: 2rem;
                height: 2rem;
                border-radius: 50%;
                display: flex;
                align-items: center;
                justify-content: center;
                cursor: pointer;
                transition: all 0.2s ease;
                color: #64748b;
                z-index: 10;

                &:hover {
                    background: #e2e8f0;
                    color: #0f172a;
                }
            }

            .olva-modal__header {
                margin-bottom: 1.5rem;
                text-align: center;

                p {
                    font-size: 0.875rem;
                    color: #fff;
                    line-height: normal;
                    margin: 0;
                }
            }
        }
    }

    #antisoborno-banner {
        .container-libro {
            .wrapper-info {
                flex-direction: column;

                .info {
                    &:first-child {
                        border-right: none;
                    }
                }
            }
        }
    }

    #antisoborno-contenedor {
        .container-libro {
            #formularioRE {
                .row {
                    flex-direction: column;
                }
            }
        }
    }

    .services {
        .container {
            .servicios-wrapper {
                .card-servicio {
                    .box-info {
                        p {
                            font-size: .75vw;
                        }

                        .btn-secondary {
                            margin-top: 0;
                            font-size: 0.875rem;
                            padding: .5rem 1rem;
                        }
                    }
                }
            }
        }
    }

    .experience {
        & .container {
            & .bottom {
                & .counters-wrapper {
                    .counters-glass {
                        grid-template-columns: repeat(2, 1fr);

                        gap: 1rem;

                        .counter-item {
                            min-height: unset;

                            &:not(:last-child)::after {
                                display: none;
                            }
                        }
                    }
                }
            }
        }
    }

}

@media (max-width: 768px) {

    body {
        background: #FEF7FF;
    }

    section {
        padding-block: 1.5rem;
    }

    .btn-secondary {
        font-size: 0.875rem;
        width: 100%;
    }

    .menu-footer-desktop {
        display: none;
    }

    .cotizar-page {
        .banner__main {
            margin-top: 54px;

            .container {
                padding-block: 54px;
            }
        }
    }

    .banner__main {
        min-height: 21rem;
        height: unset;

        .container {
            .row {
                .title-main {
                    text-align: center;
                }

                .wrapper {
                    padding: 0.75rem;
                    border-radius: 1rem;

                    .hero-search {
                        .search-group {
                            background: rgba(255, 255, 255, 0.75);
                            padding: 0.75rem;
                            border-radius: 0.625rem;

                            .search-input {
                                height: 100%;
                                padding: 0;
                                background: transparent;
                                border: none;
                                box-shadow: none;
                            }

                            .search-button {
                                padding: 0.75rem;
                                border-radius: 99px;

                                svg {
                                    margin: 0;
                                }
                            }
                        }
                    }

                    .hero-cards {
                        display: none;
                    }

                    .contain-alert {
                        display: none;
                    }
                }
            }


        }
    }

    .experience {
        .container {
            width: 100%;

            .top {
                grid-template-columns: 1fr;
                width: 92%;
                margin: auto;

                .box-solution {
                    flex-direction: row;
                    min-height: unset;
                    align-items: center;
                    justify-content: center;
                    padding: 12px 12px 12px 8px;
                    text-align: start;
                    gap: 0.75rem;

                    &::after {
                        display: none;
                    }

                    .box-image {
                        border-radius: .5rem;
                        overflow: hidden;
                        height: 100%;

                        img {
                            aspect-ratio: 1 / 1;
                            position: static;
                        }
                    }

                    .contain-info {
                        height: 100%;
                        align-items: center;

                        h3 {
                            color: var(--color-text-principal);
                            font-size: 1rem;
                        }

                        p {
                            color: var(--color-text-principal);
                            font-size: .775rem;
                        }

                        a {
                            width: 100%;
                            text-align: center;
                            font-size: 0.875rem;
                        }
                    }

                }
            }

            .bottom {
                position: relative;
                background: rgba(0, 0, 0, 0.36);
                border-radius: 0;
                /* backdrop-filter: blur(10px);
                 -webkit-backdrop-filter: blur(10px);
                 border: 1px solid rgba(255, 255, 255, 0.2);
                 box-shadow: 0 4px 43.3px 0 rgba(72, 72, 72, 0.35); */
                margin-top: 0;

                .counters-wrapper {
                    padding: 0;

                    .counters-glass {
                        gap: 0.75rem;
                        backdrop-filter: blur(0px);

                        border: none;
                        background: none;
                        box-shadow: none;
                        grid-template-columns: repeat(2, 1fr);

                        .counter-item {
                            padding: 0;
                            min-height: unset;

                            .counter-text {
                                font-size: 0.625rem;
                                font-family: var(--font-regular);
                            }

                            &:not(:last-child)::after {
                                display: none;
                            }

                        }
                    }

                    .btn-secondary {
                        display: none;
                    }
                }

                &::after {
                    content: '';
                    width: 100%;
                    height: 100%;
                    position: absolute;
                    top: 0;
                    left: 0;
                    z-index: 0;
                    backdrop-filter: blur(2px);
                }
            }
        }
    }

    .services {
        padding-block: 1.5rem;

        .container {
            .servicios-wrapper {
                .card-servicio {
                    padding: 0;
                    padding-inline: .5rem;
                    background-color: transparent;
                    border: none;
                    min-height: unset;
                    height: 100%;

                    .top {
                        gap: 0.75rem;

                        .box-img {
                            /* max-width: 150px;
                             max-height: 150px; */
                        }

                        .box-info {
                            h3 {
                                font-size: 1.75rem;
                            }
                        }






                    }

                    /* .btn-secondary {
                        display: none;
                    } */
                }
            }
        }
    }

    .cotizar-flex {
        justify-content: center;

        .cotizador-container {
            .cotizador-header {
                flex-direction: column;

                h2 {
                    font-size: 1.5rem;
                }
            }

            .cotizar-btn {
                background-color: #020617;
                font-size: 0.875rem;
            }

            .cotizar-result {
                p {
                    font-size: 0.875rem;
                }

                #estimated-price {
                    font-size: 1.25rem;
                }
            }

            .form-group {
                label {
                    font-size: 1rem;
                }
            }

            .select-grid,
            .select-grid-4,
            .select-grid-5 {
                grid-template-columns: 1fr;
            }

            .full-width {
                width: 100% !important;
            }
        }

        .wrapper-inputs {
            flex-direction: column;
        }
    }

    .planes-services {
        .container {
            .planes-slider {
                .splide__track {
                    .splide__list {
                        .plan-card {
                            .header__plan {

                                h3 {

                                    font-size: 1.5rem;

                                }
                            }

                            p {
                                font-size: .825rem
                            }

                            .precio {


                                .price__text {
                                    font-size: 1.5rem;
                                }

                                .descuento {
                                    font-size: .725rem;
                                    padding: .5rem;
                                }
                            }

                            .features {
                                li {

                                    font-size: .825rem;
                                    position: relative;



                                }
                            }

                            .btn-contact {
                                font-size: 1rem;
                            }
                        }
                    }
                }

            }
        }

    }

    .blog-hero {
        .container {
            .blog-header {
                flex-direction: column;

                .blog-filters {
                    width: 100%;
                    flex-direction: column;

                    .filter-group {
                        width: 100%;

                        input {
                            width: 100%;
                        }


                    }

                    .select-wrapper {
                        width: 100%;

                        .filter-select {
                            width: 100%;
                        }
                    }


                }
            }
        }
    }


    .gracias-section {
        .container {
            .content-gracias {

                gap: 2rem;
                .top {
                    .mobile {
                        display: block;
                        font-size: 2.5rem;
                        text-align: center;
                    }

                    flex-direction: column;

                    figure {
                        flex-shrink: 1;
                    }

                    .box-content {
                        .title-secondary {
                                
                                display: none;
                            
                        }
                        p{
                            text-align: center;
                        }
                    }

                    .btn-secondary {}
                }
            }
        }


    }
}


@media (max-width: 560px) {
    .container {
        max-width: 1600px;
    }

    .btn-secondary {
        font-size: 0.875rem;
    }


    .services {
        .container {
            .servicios-wrapper {
                /* gap: .75rem; */
                gap: 1.5rem;

                .card-servicio,
                .imagen-completa {
                    min-height: unset;

                    .top {
                        .box-img {
                            width: 40%;
                            flex: unset;
                        }

                        .box-info {
                            flex: unset;
                            width: 60%;

                            h3 {
                                font-size: .875rem;
                                margin-bottom: .625rem;
                            }

                            p {
                                color: var(--color-text-principal);
                                font-size: .625rem;
                            }
                        }



                    }
                }
            }
        }
    }

    .blog {
        .blog-card {
            .blog-card__btn {
                font-size: 0.875rem;

            }
        }
    }

    .blog-grid {
        .container {
            .posts-grid {
                grid-template-columns: 1fr;
            }
        }
    }

    .blog-footer-actions {
        #blog-pagination-container {
            .adv-pagination {

                .pag-btn,
                .pag-num {
                    width: 20px;
                    height: 20px;
                }
            }
        }
    }

    /* 

    .container {
        display: flex;
        flex-direction: column;
        gap: 2.5rem;
        align-items: center;
    } */

    .footer-row-main {
        display: flex;
        flex-direction: column;
        gap: 2.5rem;
        align-items: center;
        order: 1;
    }

    .footer-row-apps {
        order: 2;
        display: flex;
        gap: 1rem;
        justify-content: center;
        padding-top: 0;

        img {
            max-width: 105px;
            height: auto;
        }
    }

    .footer-block {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .footer-libro {
        order: 1;

        a {
            color: var(--color-white);
            text-align: right;
            font-size: 0.875rem;
            font-family: var(--font-bold);
            line-height: 1.2;

            span {
                display: block;
            }

            img {
                max-width: 55px;
                height: auto;
            }
        }
    }

    .footer-apps {
        gap: 1rem;

        img {
            max-width: 105px;
            height: auto;
        }
    }

    .footer-certifications {
        order: 3;
        gap: 1.5rem;

        img {
            max-width: 65px;
            height: auto;
        }
    }

    .footer-payments {
        order: 4;

        img {
            max-width: 100%;
            width: auto;
            max-height: 40px;
            object-fit: contain;
        }
    }

    .footer-social {
        order: 5;

        ul {
            justify-content: center;
            gap: 1.5rem;

            img {
                width: 1.5rem;
                height: auto;
            }
        }
    }

    .footer-row-copyright {
        order: 3;
    }

    .footer-copyright {
        p {
            font-size: 0.8125rem;
            opacity: 0.9;
            line-height: 1.4;
            text-align: center;
        }
    }
}



@media (max-width:380px) {

    .btn-secondary {
        padding: .75rem .5rem;
    }

    .olva-floating-bar {
        .olva-floating-bar__inner {
            .olva-floating-btn {
                font-size: 12px;

                &.olva-floating-btn--white {}
            }
        }
    }

    .experience {
        .container {
            .top {
                grid-template-columns: 1fr;

                .box-solution {
                    flex-direction: column;

                    .contain-info {
                        max-width: unset;
                        width: 100%;
                    }
                }
            }
        }
    }
}




@media (max-width: 1300px) and (min-width: 1024px) and (max-height: 768px) {

    .page-emprendedores,
    .page-empresas {
        & .container {
            & .wrapper-glass {
                & .texts {
                    h2 {
                        text-align: center;
                        font-size: clamp(1.5rem, 2vw + 1rem, 2rem);
                    }
                }
            }
        }
    }
}