html {
    scroll-behavior: smooth;
}

/* <--- Header Styles --> */
.site-header {
    width: 100%;
    height: auto;
}

.principal-header {
    width: 100%;
    max-height: 8%;
    background-color: var(--wp--preset--color--blue-normal);
    color: white;
}

.principal-info {
    max-width: 1400px;
    height: auto;
    margin: 0 auto;
    text-align: end;
    display: none;
    flex-direction: row;
    align-items: end;
    justify-content: end;
    padding: 0 0.5rem;

    ul {
        list-style: none;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: end;
        gap: 1rem;

        li {
            font-size: 12px;

            a {
                text-decoration: none;
                color: white;
            }
        }
    }

    @media screen and (min-width: 768px) {
        display: flex;
    }
}

.header-container {
    width: 90%;
    height: 90%;
    max-width: 1200px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    @media screen and (min-width: 768px) {
        width: 100%;
    }
}

.contact-button a {
    background-color: #DC2625;
    color: #fff;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 15px;
}

.main-navigation {
    /* No necesitamos estilos de alineación aquí, ya que flexbox lo controla */
    display: none;

    @media screen and (min-width: 768px) {
        display: block;
    }
}

.main-navigation ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    /* Alinea los items del menú horizontalmente */
}

.main-navigation li {
    margin: 0 15px;
}

.main-navigation li:first-child {
    margin-left: 0;
}

.main-navigation li:last-child {
    margin-right: 0;
}

.main-navigation a {
    color: black;
    text-decoration: none;
}

.main-navigation a:hover {
    text-decoration: underline;
}

.site-search {
    position: relative;
    /* Para posicionar el icono dentro */
    display: none;
    align-items: center;
    max-width: 250px;
    /* Ajusta el ancho máximo del buscador */

    @media screen and (min-width: 768px) {
        display: flex;
    }
}

.site-search .search-icon {
    position: absolute;
    left: 10px;
    /* Ajusta la posición horizontal del icono */
    top: 50%;
    transform: translateY(-50%);
    color: #AEAEAE;
    /* Color gris del icono */
    font-size: 1.2em;
    /* Ajusta el tamaño del icono */
    pointer-events: none;
    /* Permite interactuar con el input a través del icono */
}

.site-search .search-field {
    padding: 8px 12px 8px 35px;
    /* Espacio a la izquierda para el icono */
    border: 1px solid #AEAEAE;
    /* Borde gris más fuerte */
    border-radius: 5px;
    font-size: 16px;
    flex-grow: 1;
    background-color: #FFFAFA;
    /* Color de fondo gris claro */
}

.site-search .search-field:focus {
    outline: none;
    /* Opcional: quitar el borde de enfoque predeterminado del navegador */
    border-color: none;
    /* Opcional: cambiar el color del borde al enfocar */
}

.site-search .search-submit {
    position: absolute;
    left: -9999px;
}

/* Main Content */

.site-content {
    width: 100%;
}

.main-content {
    width: 100%;
    margin: 0 auto;
}

.hero-section {
    width: 100%;
    height: 85vh;
    background-color: var(--wp--preset--color--blue-normal);

    .content {
        height: 100%;
        width: 100%;
        margin: 0 auto;
        color: white;
        position: relative;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;

        h2 {
            font-size: 3rem;
            line-height: var(--wp--custom--line-height--main);
            /* line-height: var:custom|line-height|main */
        }

        h1 {
            font-size: 2rem;
            color: #FBBF24;
        }

        p {
            font-size: 1rem;
        }

        .hero {
            width: 90%;
            margin: 0 auto;
            padding: 1rem;
        }

        .main-image {
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            width: 100%;
            height: 100%;
            max-height: 50vh;
            position: absolute;
            top: 0;
            border-radius: 12px;
            display: none;
        }
    }

    .services {
        width: 100%;
        height: 10vh;
        background-color: #3451B5;

        ul {
            list-style: none;
            color: white;

            display: grid;
            grid-template-columns: 1fr;

            li {
                padding: 1rem;
                background-color: #4963BD;
                height: auto;
                border-radius: 15px;

                .title {
                    font-size: 1.2rem;
                    font-weight: bold;
                    line-height: 1rem;
                }

                .content {
                    font-size: 0.8rem;
                    font-weight: normal;
                }
            }
        }
    }

    @media screen and (min-width: 768px) {
        .content {
            .hero {
                width: 100%;
            }
        }

        .content {
            height: 100%;
            max-width: 1200px;
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: center;
            position: static;
            padding: 0 0;

            h2 {
                line-height: 0px;
            }

            h1 {
                font-size: 2.5rem;
                line-height: 2.5rem;
            }

            .main-image {
                width: 60%;
                height: auto;
                position: static;
                border-radius: 12px;
                display: block;
            }
        }

        .services {

            ul {
                display: grid;
                grid-template-columns: 1fr 1fr 1fr;

                li {
                    .title {
                        line-height: 0;
                    }
                }
            }
        }
    }

}

.experience {
    margin: 5rem 0;

    .content {
        width: 90%;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        gap: 2rem;
        align-items: center;

        .main-image {
            width: 100%;
            height: auto;
            border-radius: 12px;
            border-radius: 1px solid gray;
            box-shadow: 5px 6px 24px 0px rgba(0, 0, 0, 0.75);
            -webkit-box-shadow: 5px 6px 24px 0px rgba(0, 0, 0, 0.75);
            -moz-box-shadow: 5px 6px 24px 0px rgba(0, 0, 0, 0.75);
            border-radius: 12px;
        }

        .principal-container {
            width: 100%;

            .paragraph {
                font-weight: lighter;
            }

            .grid-4 {
                display: grid;
                grid-template-columns: repeat(2, 1fr);
                gap: 1rem;

                .item {
                    padding: 1rem 0;
                    background-color: var(--wp--preset--color--blue-light);
                    border-radius: 12px;
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    justify-content: center;

                    i {
                        font-size: 2.5rem;
                        font-weight: 900;
                        color: var(--wp--preset--color--blue-normal);
                    }
                }
            }
        }

        .principal-content {
            padding: 0.5rem 1.2rem;
        }
    }

    @media screen and (min-width: 768px) {

        .content {
            width: 100%;
            max-width: 1200px;
            flex-direction: row;

            .principal-container {
                width: 50%;
            }
        }
    }
}

.services {
    .service-grid-wrapper {
        width: 90%;
        margin: 0 auto;
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 2.5rem;

        .service-card {
            border-radius: 12px;
            padding: 1rem;
            overflow: hidden;
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: center;
            gap: 1rem;

            .service-card-header {
                width: 50%;
                text-align: center;
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;

                .image-container {
                    width: 70px;
                    height: 70px;
                    border-radius: 999px;
                    display: flex;
                    flex-direction: row;
                    align-items: center;
                    justify-content: center;
                }

                h3 {
                    color: var(--wp--preset--color--blue-normal);
                    font-size: 20px;
                    font-weight: 700;
                    line-height: 24px;
                }
            }

            .service-card-body {
                width: 50%;

                .service-areas-list {
                    list-style: inside;
                    font-size: 14px;
                }
            }
        }
    }

    @media screen and (min-width: 768px) {
        .service-grid-wrapper {
            width: 100%;
            grid-template-columns: repeat(3, 1fr);

            .service-card {
                .service-card-body {
                    .service-areas-list {
                        font-size: 15px;
                    }
                }
            }
        }
    }
}

.projects {}

.square-container {
    width: 90%;
    margin: 0 auto;
    min-height: 200px;
    background-color: white;
    border: 1px solid #00000040;
    border-radius: 1rem;
    box-shadow: 2px 2px 5px #908f8f;
    padding: 1rem;
    text-align: center;
    position: relative;
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;

    .imagen {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        background-color: gray;
        background-size: cover;
        background-position: center;
        position: absolute;
        top: -50px;
        left: 50%;
        transform: translateX(-50%);
        box-shadow: 2px 2px 5px #908f8f;
    }

    .descripcion {
        font-family: "Inter", sans-serif;
        font-weight: 100;
        font-size: 16px;
        line-height: 18px;
        color: #00000080;
        margin: 3rem 0;
    }

    .titulo {
        font-weight: 700;
        font-size: 18px;
        line-height: 0px;
        color: #1F3A8A;
    }
}

.testimonios-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;

    @media screen and (min-width: 768px) {
        grid-template-columns: repeat(3, 1fr);
    }
}

.colaboradores-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;


    .card_container {
        width: 90%;
        margin: 0 auto;
        min-height: 200px;
        /* ajusta según tu diseño */
        background-color: white;
        border-radius: 1rem;
        box-shadow: 2px 2px 5px #908f8f;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .card_top {
        height: 50%;
        background: linear-gradient(to top, #5eaeff, #9cccff),
            url('<?php echo esc_url(get_parent_theme_file_uri("assets/img/EmptyImage.png")); ?>');
        background-size: cover;
        background-position: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
        color: white;
        padding: 1rem;
    }

    .card_top h4,
    .card_top h5 {
        margin: 0;
        /* elimina margen por defecto */
    }

    .card_bottom {
        height: 50%;
        /* mitad inferior */
        padding: 1rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .job_description {
        font-weight: 300;
        font-size: 14px;
        line-height: 16px;
    }

    @media screen and (min-width: 768px) {
        grid-template-columns: repeat(4, 1fr);

        .card_container {
            width: 100%;
        }
    }
}

.certifications {
    margin: 5rem 0;

    .content {
        width: 90%;
        margin: 0 auto;
    }

    .certification-container {

        .name {
            color: var(--wp--preset--color--blue-normal);
            font-size: 1.2rem;
            font-weight: 600;
            line-height: 0;
        }
    }
}

.advise {
    height: 40vh;
    background-color: blueviolet;
}

@media screen and (min-width: 768px) {
    .hero-section {
        height: 70vh;
    }
}

ul {
    padding-inline-start: 0;
    list-style-type: none;
}

/* Color Containers */

.blue-container {
    width: fit-content;
    padding: 0.5rem 1.2rem;
    background-color: var(--wp--preset--color--blue-normal);
    border-radius: 8px;
    color: white;
    text-transform: uppercase;
}

.gray-span {
    text-transform: capitalize;
    font-size: 14px;
    line-height: 0;
    color: black;
    opacity: 0.68;
    margin: 0.5rem 0;
}

.gray-box {
    border: 1px solid #333;
    border-radius: 5px;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 4px 4px 4px 0px rgba(113, 113, 113, 0.75);
    -webkit-box-shadow: 4px 4px 4px 0px rgba(113, 113, 113, 0.75);
    -moz-box-shadow: 4px 4px 4px 0px rgba(113, 113, 113, 0.75);
}

/* Spacing Elements */
.min-space-y {
    margin: 0.5rem 0;
}

.align-center {
    width: 100%;
    max-width: 1200px;
    padding: 1rem 0;
    margin: 0 auto;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.align-left {
    width: 90%;
    max-width: 1200px;
    padding: 1rem 0;
    margin: 0 auto;

    display: flex;
    flex-direction: column;
    align-items: left;
    justify-content: center;
}

/* General Elements */
.separator {
    width: 100%;
    max-width: 900px;
    height: 2px;
    background-color: #e2e2e2;
    margin: 0 auto;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;

    @media screen and (min-width: 768px) {
        grid-template-columns: repeat(4, 1fr);
    }
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;

    @media screen and (min-width: 768px) {
        grid-template-columns: repeat(3, 1fr);
    }
}

.two-columns {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    text-align: center;

    @media screen and (min-width: 768px) {
        flex-direction: row;
        text-align: start;
    }
}

.bg-light-red {
    background-color: var(--wp--preset--color--red-light);
}

.bg-ultra-light-red {
    background-color: var(--wp--preset--color--red-ultra-light);
}

.bg-ultra-light-blue {
    background-color: var(--wp--preset--color--blue-ultra-light);
}

.bg-light-blue {
    background-color: var(--wp--preset--color--blue-light);
}

.bg-ultra-light-yellow {
    background-color: var(--wp--preset--color--yellow-ultra-light);
}

.bg-light-yellow {
    background-color: var(--wp--preset--color--yellow-light);
}

.blue-icon {
    background-color: var(--wp--preset--color--blue-light);
    color: var(--wp--preset--color--blue-normal);
    font-size: 20px;
    border-radius: 999px;
    padding: 1rem;
}

.red-icon {
    background-color: var(--wp--preset--color--red-light);
    color: var(--wp--preset--color--red-normal);
    font-size: 20px;
    border-radius: 999px;
    padding: 1rem;
}

/* General Configurations */
.h2-general {
    color: var(--wp--preset--color--blue-normal);
    font-size: 32px;
    line-height: 32px;
    text-align: center;

    @media screen and (min-width: 768px) {
        line-height: 0;
    }
}

.p-general {
    width: 90%;
    font-weight: 200;
    font-size: 18px;
    line-height: 1.4rem;
    margin: 1rem 0;
    text-align: center;
}

.title {
    color: var(--wp--preset--color--blue-normal);
    font-size: 32px;
    font-weight: 700;
    line-height: 32px;
}

.margin-y-4 {
    margin: 4rem 0;
}

.font-32 {
    font-size: 32px;
}

.font-48 {
    font-size: 48px;
}

.subtitle {
    color: var(--wp--preset--color--blue-normal);
    font-size: 18px;
    font-weight: 700;
    line-height: 18px;
}

.text-left {
    text-align: left;
}

.text-center {
    text-align: center;
}

.min-shadow {
    box-shadow: 1px 5px 5px 0px rgba(173, 173, 173, 0.75);
    -webkit-box-shadow: 1px 5px 5px 0px rgba(173, 173, 173, 0.75);
    -moz-box-shadow: 1px 5px 5px 0px rgba(173, 173, 173, 0.75);
}

.red-top {
    border-top: 5px solid var(--wp--preset--color--red-normal);
    opacity: 100;
}

.blue-top {
    border-top: 5px solid var(--wp--preset--color--blue-normal);
    opacity: 100;
}

/* Delete */
.square {
    width: 50px;
    height: 50px;
    background-color: red;
}

.button-type-border {
    border-radius: 12px;
    -webkit-box-shadow: 2px 2px 10px #959595;
    -moz-box-shadow: 2px 2px 10px #959595;
    box-shadow: 2px 2px 10px #959595;
}