* {
    box-sizing: border-box;
    --colorPrimario: #3d449a;
    --colorSecundario: #6734fa;
    --colorTercero: #dfe65c;
    --modalbg: #6c66c5b4;
    font-family: Georgia, "Times New Roman", Times, serif;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

button.menu-hb-mobile {
    display: flex;
    background-color: transparent;
    padding: 4px;
    width: 30px;
    height: 30px;
    border-color: transparent;
    cursor: pointer;
    user-select: none;
    content-visibility: auto;
    display: none;

    img {
        object-fit: scale-down;
        width: 100%;
    }
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2em;
    height: 100%;
    width: 100%;
    justify-content: space-between;

    header {
        width: 100%;
        border-bottom: 1px solid #eee;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;

        .top-header {
            width: 100%;
            background-color: var(--colorPrimario);
            height: 2em;
            display: flex;
            align-items: center;

            ul {
                padding: 0;
                margin: 0;
                width: 100%;
                gap: 1em;
                display: flex;
                list-style: none;
                margin-left: 3rem;

                li {
                    a {
                        img {
                            object-fit: scale-down;
                            width: 1rem;
                        }
                    }
                }
            }

            a {
                margin-right: 1rem;
                width: max-content;
            }
        }

        .sub-header {
            display: flex;
            justify-content: space-between;
            width: 95%;
            align-items: center;
            padding: 10px;
            position: static;
            top: 3rem;

            .logo a {
                display: flex;
                object-fit: scale-down;
                gap: 1em;
                align-items: center;

                img {
                    width: 3rem;
                    object-fit: scale-down;
                }

                .information {
                    h1 {
                        margin: 0;
                        margin-bottom: 0.3rem;
                        font-size: 1rem;
                        color: var(--colorPrimario);
                    }

                    p {
                        margin: 0;
                        font-size: 0.7rem;
                    }
                }
            }
        }
    }
}

nav {
    ul {
        display: flex;
        list-style: none;

        li {
            a {
                font-size: 0.9rem;
                padding: 0.9rem;
            }

            a:hover {
                border-radius: 5px;
                background-color: #ededed93;
            }
        }
    }
}

main {
    width: 100%;
    color: #303030;
    height: 100%;
}

footer {
    width: 100%;
    padding: 1em;
    box-shadow: 1px 1px 10px #eee;
    color: #eee;
    background-color: var(--colorPrimario);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    section {
        width: 70%;
        padding: 1em;
        display: flex;
        justify-content: space-between;

        h2 {
            font-size: 1rem;
        }

        ul {
            padding: 1em;
            list-style: none;
        }
    }

    span {
        width: 90%;
        text-align: center;
        padding: 1em;
        border-top: 0.4px solid var(--colorTercero);
    }

    .post {
        ul {
            list-style-type: circle;

            li {
                padding: .6rem;

                a {
                    display: flex;
                    flex-direction: column;
                    gap: 5px;
                }
            }
        }
    }
}

/* HOME */

.home {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.presentation {
    display: flex;
    flex-direction: column;
    align-items: center;

    h1 {
        font-size: 3rem;
        color: var(--colorSecundario);
    }
}

.cta {
    padding: 1em;
    width: 100%;
    display: flex;
    justify-content: center;

    ul {
        padding: 1em;
        margin: 0;
        display: flex;
        gap: 1em;
        justify-content: center;
        list-style: none;
        width: 80%;

        li {
            padding: 1em;
            display: flex;
            justify-content: center;
            width: 100%;

            a {
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                text-align: center;
                font-size: 0.8rem;
                width: 100%;

                h2 {
                    font-size: 1.5rem;
                    color: var(--colorPrimario);
                }

                img {
                    width: 150px;
                    object-fit: scale-down;
                }
            }
        }
    }
}

.recommended {
    width: 90%;
    padding: 1em;
    display: flex;
    padding: 1em;
    flex-direction: column;
    border-top: 2px solid #eee;
    justify-content: center;
    align-items: center;

    .info {
        align-items: center;
        padding: 1em;
        display: flex;
        width: 80%;
        gap: 3em;

        p {
            font-size: 1.5rem;
            width: 70%;
            line-height: 3rem;
            text-align: justify;
        }

        .info-img {
            width: 50%;
            display: flex;
            justify-content: center;
            padding: 1em;

            img {
                width: 100%;
                object-fit: contain;
            }
        }
    }

    .video {
        display: flex;
        align-content: center;
        justify-content: center;
        width: 70%;
        align-items: center;
    }
}

.news {
    width: 70%;
    padding: 1em;
    border-top: 2px solid #eee;
    display: flex;
    gap: 1em;
    padding: 2em;
    justify-content: center;

    .img-container {
        width: 80%;
        padding: 1em;
        display: flex;
        justify-content: center;

        img {
            object-fit: scale-down;
            width: 100%;
        }
    }

    p {
        width: 70%;
        text-align: justify;
        font-size: 1.5rem;
    }
}


/* Quienes Somos */


.quienes-somos,
.ingreso-masoneria,
.que-es-masoneria {
    width: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 2em;
    margin-bottom: 1em;

    h2 {
        font-size: 2rem;
        color: var(--colorPrimario);
    }

    article {
        width: 80%;
        display: flex;
        padding: 1em;
        gap: 2em;
        justify-content: center;
        align-items: center;

        span {
            width: 60%;
            padding: 1em;

            p {
                line-height: 1.8rem;
                font-size: 1.2rem;
                text-wrap: balance;
            }
        }

        span:nth-child(2) {

            width: 30%;
            padding: 0;

            img {
                width: 80%;
                object-fit: scale-down;
                border-radius: 5px;
                box-shadow: 1px 1px 1em #5c449c;
            }

        }

    }
}

/* 
Ingreso a la Masoneria */

.ingreso-masoneria,
.que-es-masoneria {

    article {
        flex-direction: column;
        width: 100%;

        img {
            border-radius: 5px;
            box-shadow: 1px 1px 1em #5c449c;
        }

        span:nth-child(2) {
            width: 70%;
        }

        p,
        a {
            color: var(--colorPrimario);
            font-size: 1rem;
            text-align: justify;
        }

        p:nth-child(1) {
            font-weight: bolder;
        }
    }
}


/* CONTACTO */

.contact {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 1em;
    align-items: center;
    justify-content: center;
    gap: 1em;

    h2 {
        width: 80%;
        text-align: center;
    }

    form {
        border-radius: 5px;
        box-shadow: 1px 1px 0.5em #4b546a;
        display: flex;
        width: 40%;
        flex-direction: column;
        background-color: var(--colorPrimario);
        gap: 1em;
        padding: 1em;
        align-items: center;
        color: #eee;

        span {
            display: flex;
            flex-direction: column;
            width: 100%;

            input {
                padding: 0.3rem;
            }

            textarea {
                resize: vertical;
            }
        }

        button {
            cursor: pointer;
            padding: 0.4em 3rem;
        }
    }
}

.forms-enviado {
    padding: 1em;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: var(--modalbg);
    display: flex;
    flex-direction: column;
    transition: 0.35s all;
    justify-content: center;
    padding: 2em;
    align-items: center;

    .info {
        padding: 1em;
        display: flex;
        flex-direction: column;
        align-items: center;
        background-color: #4878d1;
        width: 80%;
        height: 80%;
        gap: 2em;
        color: #eee;

        a {
            background-color: #dfe65c;
            padding: 1rem;

            color: #202020;
            width: 1rem;
            height: 1rem;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            text-align: center;
        }

        img {
            object-fit: scale-down;
            width: 100px;
        }
    }
}

.forms-error {
    color: rgb(255, 15, 15);
    margin-top: 5px;
}

.publicaciones {
    width: 100%;

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

    .card-container {
        padding: 1em;
        display: flex;
        align-items: center;
        justify-content: center;

        ul {
            list-style-type: none;
            display: flex;
            gap: 1rem;
            padding: .5rem;
            width: 70%;
            flex-wrap: wrap;
            justify-content: center;

            li {
                transition: .25s all;
                border: 1px solid #eee;
                box-shadow: 1px 1px 1em #eee;

                a {
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    padding: 1em 1.5em;
                    gap: .4rem;
                    width: 300px;

                    img {
                        border-radius: 5px;
                        max-width: 200px;
                        object-fit: scale-down;
                        user-select: none;
                    }

                    h2 {
                        font-size: .8rem;
                        color: var(--colorPrimario);
                    }
                }

            }

            li:hover {
                border: 1px solid var(--colorSecundario);
                transform: translateY(-10px);
                box-shadow: 1px 1px 1em var(--colorPrimario);
            }
        }

    }
}




@media (width <=750px) {
    .body-mobile {
        overflow: hidden;
    }

    button.menu-hb-mobile {
        display: flex;
        border: 1px solid var(--colorPrimario);
    }

    .container {

        header {
            position: relative;

            .sub-header {
                width: 100%;
                gap: 1rem;

                nav {

                    .menu-items {
                        position: fixed;
                        z-index: 0;
                        inset: 0;
                        height: 100vh;
                        padding: 5rem 2rem;
                        align-items: center;
                        justify-content: flex-start;
                        top: 6rem;
                        flex-direction: column;
                        background-color: var(--colorPrimario);
                        gap: 3rem;
                        transform: translateX(100%);
                        transition: .35s all;
                        content-visibility: auto;

                        li {
                            color: var(--colorTercero);

                            a {
                                font-size: 1.5rem;
                                padding: .4rem;
                            }
                        }
                    }

                    .menu-items-active {
                        display: flex;
                        transform: translateX(0%);

                        z-index: 1;
                    }
                }

                .logo {
                    a {
                        .information {
                            h1 {
                                letter-spacing: .9px;
                                font-size: .7rem;
                            }
                        }
                    }
                }
            }
        }
    }


    .home {
        .presentation {
            h1 {
                text-align: center;
                font-size: 1.5rem;
            }
        }

        .cta {

            ul {
                flex-direction: column;
            }
        }

        .recommended {
            width: 100%;
            content-visibility: auto;

            .info {
                width: 100%;
                flex-direction: column-reverse;
                padding: 0;
                gap: 1rem;

                p {
                    width: 100%;
                    font-size: 1rem;
                    line-height: 2rem;
                }

                .info-img {
                    width: 90%;
                }
            }
        }

        .news {
            width: 100%;
            flex-direction: column;

            .img-container {
                width: 100%;
                padding: 0;
                align-items: center;

                img {
                    width: 100%;
                }
            }

            p {
                width: 100%;
                font-size: 1rem;

            }
        }
    }

    .quienes-somos,
    .ingreso-masoneria {
        padding: 1em;
        width: 100%;

        article {
            width: 100%;
            flex-direction: column;

            span {
                width: 100%;
                padding: 0;

                p {
                   
                    text-wrap: balance;
                }

            }

            span:nth-child(2) {

                width: 100%;
                padding: 0;

                img {
                    width: 100%;
                    object-fit: scale-down;
                    border-radius: 5px;
                    box-shadow: 1px 1px 1em #5c449c;
                    margin-bottom: 1rem;
                }

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

    .ingreso-masoneria {
        article {
            img {
                width: 100%;

            }
        }

    }

    .contact {
        h2{
            width: 100%;
            text-align: center;
            font-size: 1rem;
        }

        form {
            width: 100%;
            padding: 1em;
            gap: 1rem;

        }

    }

    footer {

        section {
            width: 100%;

            flex-direction: column;
        }

        span {
            width: 100%;
            padding: 1rem 0;
            font-size: 0.9rem;
            letter-spacing: 1.5px;
            text-wrap: balance;
        }
    }
}