/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

.parallax-wrapper * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.parallax-wrapper {
    width: 100%;
    overflow-x: hidden;
}

.parallax-wrapper::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    height: 150px;
    width: 100%;
    background: linear-gradient(to bottom, rgba(0, 25, 53, 1), transparent);
    z-index: 9;
    pointer-events: none;
}

.parallax-home {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.parallax-home::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 200px;
    width: 100%;
    background: linear-gradient(to top, #fff, transparent);
    z-index: 1000;
}

.parallax-home img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

#text {
    position: relative;
    text-align: center;
    color: white;
    font-size: 90px;
    padding: 0 20%;
    z-index: 2;
    text-shadow: 3px 5px 2px #003f88;
}

#man {
    bottom: 0;
    top: auto;
}


@media only screen and (max-width: 1100px) {
    #text {
        font-size: 60px;
        padding: 0 10%;
    }
}

@media only screen and (max-width: 680px) {
    #text {
        font-size: 40px;
    }
}


/* Headings */

/* Main heading for card's front cover */
.card-front__heading {
    font-size: 1.2rem;
    margin: 0 !important;
    margin-top: .15rem !important;
    color: #fff;
	text-align: center;
}

/* Main heading for inside page */
.inside-page__heading {
    padding-bottom: 1rem;
    width: 100%;
}

/* Mixed */

/* For both inside page's main heading and 'view me' text on card front cover */
.inside-page__heading,
.card-front__text-view {
    font-size: .9rem;
    font-weight: 800;
    margin-top: .2rem;
}

/* Front cover */

.card-front__tp {
    color: #fafbfa;
	
	.filter-green {
        filter: invert(100%) sepia(5%) saturate(1716%) hue-rotate(294deg) brightness(104%) contrast(96%);
    }
}

/* For pricing text on card front cover */
.card-front__text-price {
    font-size: .8rem;
    margin-top: -.2rem;
}

/* Back cover */

/* For inside page's body text */
.inside-page__text {
    color: #333;
    font-size: .7rem;
}

/* Icons ===========================================*/

.card-front__icon {
    fill: #fafbfa;
    font-size: 2vw;
    height: 1.4rem;
    margin-top: -.5rem !important;
    width: 1.4rem;
}

/* Buttons =================================================*/

.inside-page__btn {
    background-color: transparent;
    border: 3px solid;
    border-radius: .5rem;
    font-size: .8rem;
    font-weight: 600;
    margin-top: .7rem !important;
    overflow: hidden;
    padding: .1rem .75rem !important;
    position: relative;
    text-decoration: none;
    transition: all .3s ease;
    width: 90%;
    z-index: 10;
}

.inside-page__btn::before {
    content: "";
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    transform: scaleY(0);
    transition: all .3s ease;
    width: 100%;
    z-index: -1;
}

.inside-page__btn:hover {
    color: #fafbfa !important;
}

.inside-page__btn:hover::before {
    transform: scaleY(1);
}

/* Layout Structure=========================================*/

.card-tnegocios-wrapper *,
.card-tnegocios-wrapper *::after,
.card-tnegocios-wrapper *::before {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}

.card-tnegocios-wrapper {
    background: linear-gradient(to bottom right,
            #F2F7F6,
            #F2F3F7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

/* Container to hold all cards in one place */
.card-tnegocios-area {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    padding: 1rem 8rem;
}

/* Card ============================================*/

/* Area to hold an individual card */
.card-tnegocios-section {
    flex: 1 1 320px;
    align-items: center;
}

/* A container to hold the flip card and the inside page */
.card-tnegocios {
    background-color: rgba(0, 0, 0, .05);
    box-shadow: -.1rem 1.7rem 6.6rem -3.2rem rgba(0, 0, 0, 0.5);
    height: 10rem;
    position: relative;
    transition: all 1s ease;
    width: 10rem;
    margin: 10px 0px;
}

/* Flip card - covering both the front and inside front page */

/* An outer container to hold the flip card. This excludes the inside page */
.flip-card {
    height: 10rem;
    perspective: 65rem;
    position: absolute;
    right: 0;
    transition: all 1s ease;
    visibility: hidden;
    width: 10rem;
    z-index: 100;
}

/* The outer container's visibility is set to hidden. This is to make everything within the container NOT set to hidden  */
/* This is done so content in the inside page can be selected */
.flip-card>* {
    visibility: visible;
}

/* An inner container to hold the flip card. This excludes the inside page */
.flip-card__container {
    height: 100%;
    position: absolute;
    right: 0;
    transform-origin: left;
    transform-style: preserve-3d;
    transition: all 1s ease;
    width: 100%;
}

.card-front,
.card-back {
    backface-visibility: hidden;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

/* Styling for the front side of the flip card */

/* container for the front side */
.card-front {
    background-color: #fafbfa;
    height: 10rem;
    width: 10rem;
}

/* Front side's top section */
.card-front__tp {
    align-items: center;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 57% 90%, 50% 100%, 43% 90%, 0 90%);
    display: flex;
    flex-direction: column;
    height: 8rem;
    justify-content: center;
    padding: .75rem;
}

/* Front card's bottom section */
.card-front__bt {
    align-items: center;
    display: flex;
    justify-content: center;
}

/* Styling for the back side of the flip card */

.card-back {
    background-color: #fafbfa;
    transform: rotateY(180deg);
}

/* Specifically targeting the <video> element */
.image__container {
    clip-path: polygon(0% 0%, 100% 0%, 90% 50%, 100% 100%, 0% 100%);
    height: auto;
    min-height: 100%;
    object-fit: cover;
    width: 100%;
}

/* Inside page */

.inside-page {
    background-color: #fafbfa;
    box-shadow: inset 20rem 0px 5rem -2.5rem rgba(0, 0, 0, 0.25);
    height: 100%;
    padding: 1rem;
    position: absolute;
    right: 0;
    transition: all 1s ease;
    width: 10rem;
    z-index: 1;
}

.inside-page__container {
    align-items: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: center;
    width: 100%;
	justify-content: center;
}

/* Functionality ====================================*/

/* This is to keep the card centered (within its container) when opened */
.card-tnegocios:hover {
    box-shadow:
        -.1rem 1.7rem 6.6rem -3.2rem rgba(0, 0, 0, 0.75);
    width: 20rem;
}

/* When the card is hovered, the flip card container will rotate */
.card-tnegocios:hover .flip-card__container {
    transform: rotateY(-180deg);
}

/* When the card is hovered, the shadow on the inside page will shrink to the left */
.card-tnegocios:hover .inside-page {
    box-shadow: inset 1rem 0px 5rem -2.5rem rgba(0, 0, 0, 0.1);
}

/*CSS para archive-negocios*/
.section-negocios {
    width: calc(min(76.5rem, 90%));
    margin-inline: auto;
    color: #111;

    h2 {
        text-transform: capitalize;
        letter-spacing: 0.025em;
        font-size: clamp(2rem, 1.8125rem + 0.75vw, 2.6rem);
    }

    a {
        display: inline-block;
        text-decoration: none;
    }

    .container {
        margin-top: 5em;
        display: grid;
        justify-content: center;
        /* centra el contenido si hay pocos elementos */
        grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
        gap: 2rem;
        max-width: 80rem;
        /* ancho máximo del grid */
        margin-inline: auto;
        /* centra horizontalmente */

        .card {
            max-width: 22rem;
            /* tamaño máximo de cada tarjeta */
            width: 100%;
            margin-inline: auto;
            /* centra individualmente si queda espacio */
        }

        #paginacion-negocios {
            grid-column: 1 / -1;
            width: 100%;
        }
    }

    .card-inner {
        position: relative;
        width: inherit;
        height: 18.75rem;
        background: var(--clr);
        border-radius: 1.25rem;
        border-bottom-right-radius: 0;
        overflow: hidden;

        .box {
            width: 100%;
            height: 100%;
            background: #fff;
            border-radius: 1.25rem;
            overflow: hidden;

            .imgBox {
                position: absolute;
                inset: 0;

                img {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                    transition: transform .8s ease;
                }
            }

            &:hover img {
                transform: scale(1.1);
            }
        }

        .icon {
            position: absolute;
            bottom: -0.375rem;
            right: -0.375rem;
            width: 6rem;
            height: 6rem;
            background: var(--clr);
            border-top-left-radius: 50%;

            &:hover .iconBox {
                transform: scale(1.1);
            }

            &::before {
                position: absolute;
                content: "";
                bottom: 0.375rem;
                left: -1.25rem;
                background: transparent;
                width: 1.25rem;
                height: 1.25rem;
                border-bottom-right-radius: 1.25rem;
                box-shadow: 0.313rem 0.313rem 0 0.313rem #fff;
            }

            &::after {
                position: absolute;
                content: "";
                top: -1.25rem;
                right: 0.375rem;
                background: transparent;
                width: 1.25rem;
                height: 1.25rem;
                border-bottom-right-radius: 1.25rem;
                box-shadow: 0.313rem 0.313rem 0 0.313rem var(--clr);
            }

            .iconBox {
                position: absolute;
                inset: 0.625rem;
                background: rgba(0, 25, 53, .5);
                border-radius: 50%;
                display: flex;
                justify-content: center;
                align-items: center;
                transition: 0.3s;

                span {
                    color: #fff;
                    font-size: 1.5rem;
                }
            }
        }
    }
}

/*CSS para single-negocios*/
.negocio-single,
.negocio-single *,
.negocio-single *::before,
.negocio-single *::after {
    box-sizing: border-box;
}

.negocio-single {
    display: flex;
    justify-content: center;
    width: 100%;

    padding: 0px;
    color: #222;
    font-family: "Plus Jakarta Sans", sans-serif;

    article {
        width: 100%;
        max-width: 1200px;

        header {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            width: 100%;
            min-height: 400px;
            padding: 50px;
            border-radius: 0px 0px 16px 16px;
            color: #fff;
            background-position: center;
            background-repeat: no-repeat;
            background-size: cover;

            .upper-header {
                display: flex;
                justify-content: space-between;
                padding-bottom: 20px;

                .mini-title {
                    font-size: 1.125rem;
                    font-weight: bold;
                    letter-spacing: 0.4rem;
                    text-transform: uppercase;
                    opacity: 0.9;
                }

                .date-since {
                    display: flex;
                    align-items: center;
                    font-size: 0.875rem;

                    p {
                        margin-bottom: 0px;
                    }

                    .date-value {
                        display: inline-block;
                        padding-bottom: 2px;
                    }

                    svg {
                        width: 20px;
                        margin-left: 10px;
                    }
                }
            }

            .lower-header {
                padding-top: 50px;

                .tags-container {
                    display: flex;
                    align-items: center;
                    opacity: 0.75;
                    margin-bottom: 12px;

                    &>span:not(:nth-child(2))::before {
                        content: ", ";
                    }

                    svg {
                        width: 20px;
                        margin-right: 10px;
                    }

                    span {
                        font-size: 0.875rem;
                    }
                }

                .title {
                    margin: 20px 0;
                    font-size: 3rem;
                    font-weight: bold;
                    opacity: 0.9;
                    color: #fff;
                }

                .subtitle {
                    width: 50%;
                    margin-top: 10px;
                    opacity: 0.75;
                    line-height: 1.75;
                }
            }
        }
    }

    .summary {
        width: 100%;
        display: flex;
        justify-content: space-between;
        margin-top: 50px;
        padding: 30px 50px;
        border-radius: 16px;
        box-shadow: 0 0 0 1px #dde2e7;

        .summary-item {
            width: 100%;
            padding-right: 20px;

            .item-title {
                color: #999;
            }

            .item-text {
                margin-top: 12px;
                font-size: 1.5rem;
            }
        }
    }

    .main-article {
        width: 100%;
        margin-top: 50px;
        padding-bottom: 50px;
        line-height: 1.75;

        h4 {
            margin-top: 60px;
            margin-bottom: 20px;
            font-size: 1.25em;
        }

        p {
            margin-bottom: 20px;
            color: #777;
            font-size: 1.125em;
        }

        blockquote {
            position: relative;
            margin: 40px 0;
            padding: 40px;
            background-color: #f8f8f8;
            border-radius: 16px;

            &::before {
                content: url("https://icons.craftwork.design/static/media/QuotesFill.f65b03951f44e212816420b00909f4df.svg");
                position: absolute;
                top: -10px;
                left: -10px;
                transform: scale(2);
                opacity: 0.1;
            }

            &::after {
                content: url("https://icons.craftwork.design/static/media/QuotesFill.f65b03951f44e212816420b00909f4df.svg");
                position: absolute;
                bottom: -10px;
                right: -10px;
                transform: scale(2) rotate(180deg);
                opacity: 0.1;
            }
        }

        .gallery {
            display: grid;
            gap: 20px;
            grid-template-areas:
                "img1 img1 img2 img3"
                "img1 img1 img4 img5";
            min-height: 400px;
            margin-top: 40px;

            .image-item {
                min-height: 200px;
                background-color: #eee;
                background-position: center;
                background-repeat: no-repeat;
                background-size: cover;
                border-radius: 8px;
                transition: 250ms;

                &:hover {
                    opacity: 0.9;
                    cursor: pointer;
                }
            }

            .image-1 {
                grid-area: img1;
            }

            .image-2 {
                grid-area: img2;
            }

            .image-3 {
                grid-area: img3;
            }

            .image-4 {
                grid-area: img4;
            }

            .image-5 {
                grid-area: img5;
            }

            .gallery-mask {
                position: fixed;
                top: 0;
                left: 0;
                z-index: 1;
                width: 100vw;
                height: 100vh;
                padding: 40px;
                background-color: #22222288;
                transition: 500ms;

                img {
                    width: 100%;
                    height: 100%;
                    object-fit: contain;
                    transition: 500ms;
                }
            }

            .mask-off {
                visibility: hidden;
                background-color: #22222200;

                img {
                    visibility: hidden;
                    opacity: 0;
                }
            }
        }
    }
}

@media screen and (max-width: 1224px) {
    .negocio-single {
        padding: 0px 50px;

        article header .lower-header .subtitle {
            width: 100%;
        }
    }
}

@media screen and (max-width: 768px) {
    .negocio-single article {
        header .lower-header .title {
            word-break: break-all;
        }

        .summary {
            flex-direction: column;

            .summary-item:not(:last-child) {
                padding-bottom: 30px;
            }
        }

        .main-article {
            .gallery {
                grid-template-areas:
                    "img1 img1"
                    "img1 img1"
                    "img2 img3"
                    "img4 img5";
            }
        }
    }
}

@media screen and (max-width: 425px) {
    .negocio-single {
        padding: 25px;
    }

    .negocio-single article header .upper-header .date-since {
        display: none;
    }
	
	.card-tnegocios-area {
		padding: 1rem 2rem;
	}
}

/*CSS para paginacion de archive-negocios*/
.pagination-negocios {
    padding: 40px 0px;

    ul {
        margin: 0;
        padding: 0;
        list-style-type: none;
        text-align: center;
        align-items: center;
    }

    a {
        width: 40px;
        height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #222;
        text-decoration: none;
        font-size: 20px;
    }

    a.is-active {
        background-color: #00509d;
        border-radius: 100%;
        color: #fff;
    }
}

/*CSS para iconos de single-negocios*/
.wrapper-rs {
    display: inline-flex;

    .icon-rs {
        position: relative;
        background-color: #000000;
		color: #fff;
        border-radius: 50%;
        padding: 15px;
        margin: 10px;
        width: 50px;
        height: 50px;
        font-size: 18px;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        cursor: pointer;
        transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }

    .tooltip {
        position: absolute;
        top: 0;
        font-size: 14px;
        background-color: #ffffff;
        color: #ffffff;
        padding: 5px 8px;
        border-radius: 5px;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }

    .tooltip::before {
        position: absolute;
        content: "";
        height: 8px;
        width: 8px;
        background-color: #ffffff;
        bottom: -3px;
        left: 50%;
        transform: translate(-50%) rotate(45deg);
        transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }

    .icon-rs:hover .tooltip {
        top: -45px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .icon-rs:hover span,
    .icon-rs:hover .tooltip {
        text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.1);
    }

    .whatsapp:hover,
    .whatsapp:hover .tooltip,
    .whatsapp:hover .tooltip::before {
        background-color: #128c7e;
        color: #ffffff;
    }

    .facebook:hover,
    .facebook:hover .tooltip,
    .facebook:hover .tooltip::before {
        background-color: #3b5998;
        color: #ffffff;
    }

    .instagram:hover,
    .instagram:hover .tooltip,
    .instagram:hover .tooltip::before {
        background-color: #F44747;
        color: #ffffff;
    }
}