/*
Theme Name: Twenty Twenty-Three Child
Theme URI: https://example.com
Description: Child theme for Twenty Twenty-Three
Author: mvarela
Author URI: https://example.com
Template: twentytwentythree
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentythree-child
*/
html {
    scroll-behavior: smooth;
}
body {
    min-width: 390px;
}
header {
    position: sticky;
    top: 0;
    background: white;
    z-index: 99;

    .wrapper-header {
        padding: 30px 16px !important;

        @media (width >= 1024px) {
            padding: 38px 16px !important;
        }

        .logo-navbar {
            position: relative;
            z-index: 99;
    
            img {
                width: 160px !important;
    
                @media (width >= 1024px) {
                    width: 216px !important;
                }
            }
        }
        nav {
            .wp-block-navigation__responsive-container-open:not(.always-shown) { /* button burger */
                @media (width >= 600px) {
                    display: flex !important;
                }
                @media (width >= 1024px) {
                    display: none !important;
                }
            }
            .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { /* submenu desplegable */
                @media (width >= 600px) {
                    display: none !important;
                }
                @media (width >= 1024px) {
                    display: block !important;
                }
    
                ul {
                    li {
                        &:hover {
                            a {
                                text-decoration: none;
    
                                span {
                                    img {
                                        transform: rotate(180deg);
                                    }
                                }
                            }
                        }
                        a {
                            span {
                                img {
                                    transform: rotate(0deg);
                                    transition: transform .3s ease-in-out;
                                }
                            }
                        }
                    }
                }
                .button-submenu { /* button contact submenu */ 
                    @media (width >= 1024px) {
                        display: none !important;
                    }
                }
            }
            .wp-block-navigation__responsive-container.is-menu-open { /* submenu desplegable is open */
                z-index: 98;
                padding: 30px 16px;
    
                .wp-block-navigation__responsive-close {
                    height: 100%;
    
                    .wp-block-navigation__responsive-dialog {
                        height: 100%;
                        margin: 0 !important;
        
                        .wp-block-navigation__responsive-container-close { /* button close submenu */
                            /* top: -3px; */
                        }
                        .wp-block-navigation__responsive-container-content {
                            justify-content: space-between !important;
                            height: 100%;
                            padding-top: 84px;
            
                            ul {
                                width: 100%;
            
                                li {
                                    align-items: flex-start !important;
                                    width: 100%;
                                    padding: 24px 0;
                                    border-bottom: 1px solid #D4D4D6;
            
                                    a {
                                        text-decoration: none;
    
                                        &:hover {
                                            text-decoration: none;
    
                                            span {
                                                img {
                                                    transform: rotate(180deg);
                                                }
                                            }
                                        }
        
                                        span {
                                            font-size: 24px;
                                            font-weight: 400;
                                            line-height: 140%;
            
                                            img {
                                                width: 14px !important;
                                                transform: rotate(0deg);
                                                transition: transform .3s ease-in-out;
                                            }
                                        }
                                    }
                                }
                            }
                            .button-submenu {
                                width: 100%;
                                max-width: 358px;
                                margin: 0 auto;
                            }
                        }
                    }
                }
            }
        }
        .button-desktop { /* button contact desktop */
            display: none !important;
    
            @media (width >= 1024px) {
                display: flex !important;
            }
        }
    }
}
main {
    /* --- block headings --- */
    .wp-block-heading {
        margin: 0 !important;

        &.heading-list-4 { /* component class heading-list-4 */
            position: relative;
            padding-left: 14px;
            font-size: 1rem;
            font-weight: 500;
            line-height: 1.2 !important;

            &::before {
                content: '';
                position: absolute;
                top: 6px;
                left: 0;
                width: 6px;
                height: 6px;
                border-radius: 100%;
                background: #BF0411;
            }
            @media (width >= 1024px) {
                font-size: 1.25rem;
            }

            &.white {
               &::before {
                background: white;
               } 
            }
        }
        &.main-heading-1 { /* component class main-heading-1 */
            font-size: 2.25rem;
            font-weight: 500;
            line-height: 1.2;
            
            @media (width >= 1024px) {
                font-size: 4rem;
            }
        }
        &.heading-2 {
            font-size: 1.875rem;
            font-weight: 500;
            line-height: 1.2;

            @media (width >= 1024px) {
                font-size: 3rem;
            }
        }
        &.heading-3 {
            font-size: 1.5rem;
            font-weight: 500;
            line-height: 1.2;

            @media (width >= 1024px) {
                font-size: 2.25rem;
            }
        }
    }

    /* --- blocks groups --- */
    .wp-block-group {
        &.acerca-de-nosotros { /* block class acerca-de-nosotros */
            overflow: hidden;

            .wrapper-acerca-de-nosotros {
                display: flex;
                flex-direction: column;
                gap: 24px;
                padding: 24px 16px 40px !important;

                @media (width >= 1024px) {
                    flex-direction: row;
                    justify-content: space-between;
                    padding: 60px 16px 100px !important;

                    .main-heading-1 {
                        width: 64%;
                    }
                }
                .wp-block-group {
                    &.bg-eclipses {
                        position: absolute;
                        top: -14px;
                        right: -200px;
                        z-index: -1;
                        pointer-events: none;

                        @media (width >= 1024px) {
                            top: 0;
                            right: inherit;
                            left: 186px;
                        }
                    }
                }
            }
        }

        &.custom-padding-block {
            margin-top: 0 !important;
            padding: 40px 16px;

            @media (width >= 1024px) {
                padding: 100px 16px;
            }
        }

        /* component folder-cards */
        &.folder-cards {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            width: 170px;
            height: 170px;
            margin: 0 !important;
            padding: 22px 16px !important;

            .wrapper-icon {
                display: flex;
                justify-content: center;
                align-items: center;
                width: 37px;
                height: 37px;
                margin: 0 !important;
                border-radius: 100%;

                .wp-block-image {
                    width: 18px;
                    height: 18px;
                    margin: 0 !important;

                    img {
                        width: 100%;
                        height: 100%;
                        vertical-align: inherit;
                        object-fit: contain !important;
                    }
                }

                @media (width >= 1024px) {
                    width: 67px;
                    height: 67px;

                    .wp-block-image {
                        width: 33px;
                        height: 33px;
                    }
                }
            }
            .wrapper-content {
                margin: 0 !important;
                font-size: 1.125rem;
                font-weight: 500;
                line-height: 1.2;

                p {
                    margin: 0 !important;

                    &.letter-big {
                        font-size: 2.375rem;
                        line-height: 1;
                    }
                }

                @media (width >= 1024px) {
                    font-size: 2rem;

                    p {
                        &.letter-big {
                            font-size: 4.375rem;
                        }
                    }
                }
            }

            @media (width >= 1024px) {
                width: 310px;
                height: 310px;
                padding: 40px 30px !important;
            }
        }

        /* components box-nuestro-foco */
        &.box-nuestro-foco {
            padding: 24px;
            border-radius: 13px;
            overflow: hidden;

            @media (width >= 1024px) {
                padding: 40px;
                border-radius: 20px;
            }

            p {
                margin: 0 !important;
                font-size: .875rem;

                @media (width >= 1024px) {
                    font-size: 1rem;
                }
            }
            .bg-box-elipses {
                position: absolute;
                top: -10px;
                right: 0;
                width: 150px;
                height: 150px;
                pointer-events: none;

                @media (width >= 1024px) {
                    width: 350px;
                    height: 350px;
                }
            }
        }
        &.box-infraestructure {
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 24px;
            border-radius: 13px;

            @media (width >= 1024px) {
                padding: 40px;
                border-radius: 20px;
            }
        }

        /* components nuestros-servicios */
        &.tag-services {
            width: fit-content;
            padding: 5.56px;
            font-size: .875rem;
            font-weight: 400;
            letter-spacing: .28px;
            border-radius: 5px;

            @media (width >= 1024px) {
                padding: 12px;
                border-radius: 10px;
            }
        }

        /* components slide-alliances */
        &.slide-alliances {
            .header-image {
                height: 165px;
                min-height: 165px;
                border-radius: 20px;
                overflow: hidden;

                img {
                    width: 100%;
                    height: 100%;
                    object-fit: cover !important;
                }

                @media (width >= 1024px) {
                    height: 540px;
                    min-height: 540px;
                }
            }
            .slide-alliance-content {
                p {
                    margin: 0 !important;
                    font-size: 1rem;
                    line-height: 1.4;

                    @media (width >= 1024px) {
                        font-size: 1.125rem;
                    }
                }
                ul {
                    margin-top: 0;

                    li {
                        font-size: 1rem;
                        line-height: 1.4;

                        @media (width >= 1024px) {
                            font-size: 1.125rem;
                        }
                    }
                }
            }
            .wp-block-buttons {
                margin: 0 !important;

                a {
                    padding: 12px 22px 12px 18px !important;
                    font-size: .875rem;
                    font-weight: 500;
                    border-radius: 100px;

                    img {
                        width: 8.33px !important;
                        min-width: 8.33px !important;
                        height: 8.33px !important;
                        min-height: 8.33px !important;
                    }
                }
            }
        }
    }

    /* --- block spacer --- */
    .wp-block-spacer {
        margin: 0 !important;
    }
    /* --- block group --- */
    .wp-block-group {
        margin-top: 0 !important;
    }
    /* block list */
    .wp-block-list {
        &.list-bullet-icon { /* component list-bullet-icon */
            padding: 0;
            margin: 0;
            list-style: none;

            li {
                display: flex;
                gap: 5px;
                margin-bottom: 16px;
                font-size: 1rem;
                font-weight: 400;
                line-height: 1.4;

                img {
                    width: 16px !important;
                    min-width: 16px !important;
                    height: 16px !important;
                    min-height: 16px !important;
                    object-fit: contain;
                }

                @media (width >= 1024px) {
                    gap: 12px;
                    font-size: 1.125rem;

                    img {
                        width: 26px;
                        min-width: 26px !important;
                        height: 26px;
                        min-height: 26px !important;
                    }
                }
            }
        }
    }
    /* --- block-image --- */
    .wp-block-image {
        margin: 0 !important;
    }
    /* swiper slide */
    .swiper-slide {
        display: flex;
        height: auto;
    }
    .swiper-button-prev {
        &::after {
            content: none;
        }
    }
    .swiper-button-next {
        &::after {
            content: none;
        }
    }
    .progress-indicator {
        position: relative;
        bottom: 57px;
        width: 80%;
        font-size: .875rem;
        font-family: 'Geist Mono', monospace;
        color: #22333B;
        font-weight: 500;
        z-index: 10;
    }
    .progress-container {
        position: relative;
        bottom: 45px;
        width: 80%;
        height: 2px;
        background: #fff;
        border-radius: 2px;
        overflow: hidden;
        z-index: 10;

        .progress-bar {
            height: 100%;
            width: 0%;
            margin: 0 !important;
            background: #BF0411; /* puedes ajustar */
            transition: width 0.3s ease;
        }
    }
}
footer {
    p {
        margin-top: 0 !important;
        font-size: .875rem;
        font-weight: 400;
    }
}