@counter-style comillas-es {
    system: cyclic;
    symbols: "\00BB";
    suffix: " ";
}

* {
    margin: 0;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    display: block;
}

body {
    font-family: 'Fira Sans', sans-serif;
}

.btn,
.cta-item {
    transition: all 0.15s ease-in-out;
}



.container,
.container-fluid,
.container-lg,
.container-md,
.container-sm,
.container-xl,
.container-xxl {
    --bs-gutter-x: 3.5rem;
}


/*HEADER*/

/*Overhead*/
.jd-overhead {
    background-color: white;

    .jd-overhead-logos-container {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 1rem 0;
        gap: 1rem;

        .jd-logo {
            flex: 0 1 180px;

        }
    }
}

/*Hero*/
.jd-hero {
    background-color: var(--black);
    color: white;

    .jd-hero-decoration {

        background-image:
            linear-gradient(rgba(0, 0, 0, 0.521), rgba(0, 0, 0, 0.512)),
            url('../img/themes/cardiopectus/header_bg.png');
        background-size: auto 500px;
        background-position-y: center;
        background-position-x: 100%;
        background-repeat: no-repeat;
        max-width: 1920px;
        background-color: var(--black);
        margin: auto;
    }

    .container {


        min-height: 315px;

        display: flex;

        .jd-title {
            display: flex;
            flex-direction: column;
            justify-content: center;
            flex: 0 1 100%;
            text-align: center;

            h1 {
                font-weight: 600;
            }

            span {
                font-size: 1.2rem;
            }

        }
    }

}

.jd-timing-strip {
    background-color: var(--theme-color);

    .jd-timing-strip-container {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        padding: 1rem;

        &>* {
            flex: 1 1 350px;
            text-align: center;
        }

        .jd-timing-block {
            font-size: 1.2rem;

            i {
                font-size: 1.2rem;
                margin-right: 1rem;
            }
        }
    }
}

.jd-module {
    padding: 1rem 0;
}

/*MODULE - INTRO*/

h2 {
    font-weight: 600;
    font-size: 1.5rem;
    margin: 2rem 0 1.5rem;

    &.slim-heading {
        font-weight: 400;
        font-size: 1.4rem;
        text-align: center;
        margin: 2rem 0 2rem;
    }
}

.jdm-intro {
    padding: 3rem 0 2rem;
    font-size: 1.2rem;
}

.jdm-ul {

    list-style: none;
    padding: 0;

    .jdm-li {
        &::before {
            content: '»';
            margin-right: 0.25rem;
        }

    }
}

/*MODULE - LIVESTREAM*/

.jdm-livestream {
    iframe {
        width: 100%;
        aspect-ratio: 16/9;
        display: block;
    }
}

/*MODULE - CTA CLOUD*/

.jdm-cta-cloud {
    .cta-cloud {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;


        &>* {
            flex: 1 0 30%;
            padding: 0.5rem 1rem;
            border: 1px solid var(--theme-color);
            text-decoration: none;
            color: var(--theme-color);
            text-align: center;
            font-weight: 600;
            white-space: nowrap;
            border-radius: 0.5rem;
            font-size: 1.1rem;

            &.s5 {
                flex: 1 0 45%;
            }

            &:hover {
                border: 1px solid transparent;
                color: whitesmoke;
                background-color: var(--theme-color);
            }
        }
    }
}

/*MODULE - PRICING*/

.jdm-pricing {

    .row {
        --bs-gutter-y: 1rem;
        --bs-gutter-x: 1rem;

        .card {
            background-color: var(--light-grey);
            border: none;
            padding: 1rem;
            height: 100%;

            .card-body {
                height: 100%;
                display: flex;
                flex-direction: column;

                .card-title {
                    font-weight: 600;
                    font-size: 1.5rem;
                    color: var(--theme-color);
                    line-height: 1;
                    margin: 0;

                    &::before {
                        content: '»';
                        margin-right: 0.5rem;
                    }
                }

                .card-subtitle {

                    font-size: 1.2rem;
                    line-height: 1.2;
                    margin-top: 0.5rem;
                    margin-bottom: auto;


                }

                .card-price-block {

                    display: flex;
                    flex-direction: column;

                    margin: 2.5rem 0;
                    gap: 1rem;

                    &.horizontal {
                        flex-direction: row;
                        justify-content: center;
                    }

                    .card-price {
                        flex: 1;

                        .price-name {
                            font-size: 1.1rem;
                        }

                        .price-number-striken {
                            font-size: 1.2rem;
                            color: rgb(69, 69, 69);
                            opacity: 0.9;
                            text-decoration: line-through;
                            font-weight: 500;
                            margin-bottom: 0;
                            margin-top: 0.5rem;
                        }

                        .price-number {
                            font-size: 1.5rem;
                            color: var(--theme-color);
                            font-weight: bold;
                        }

                        .price-number-true {
                            margin-top: -0.5rem;
                        }

                        .price-legal {

                            font-size: 0.8rem;
                            color: rgb(69, 69, 69);
                            margin-top: 0.25rem;
                        }
                    }

                    .card-price-spacer {
                        flex: 0 1 1px;
                        border-right: 1px solid grey
                    }
                }

                .btn {
                    display: block;
                    background-color: var(--theme-color);
                    color: whitesmoke;
                    border: 1px solid transparent;
                    margin-bottom: 0.5rem;
                    padding: 0.5rem;
                    font-size: 1.2rem;
                    font-weight: 600;

                    &:hover {

                        background-color: transparent;
                        border: 1px solid var(--theme-color);
                        color: var(--theme-color);
                    }
                }

                .btn-disabled {
                    background-color: transparent;
                    border: 1px solid var(--theme-color);
                    color: var(--theme-color);
                    pointer-events: none;
                }

                .card-link {
                    color: var(--black);
                    text-align: center;
                    display: block;
                }
            }


        }
    }
}


/*MODALS*/

.modal-content {

    .modal-container {
        width: 100%;
        max-width: 960px;
        margin: auto;
    }

    .modal-header {
        background-color: var(--theme-color);

        h3 {
            font-size: 2rem;
            color: white;
            margin: 0;
        }
    }


    .column-title {
        font-size: 1.2rem;
        font-weight: 600;
        color: var(--theme-color);
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid rgba(128, 128, 128, 0.445);

        span {
            display: block;
            font-size: 0.9rem;
        }
    }

    .terms-block {
        width: 80%;
        display: flex;

        i {
            font-weight: bold;
        }


        div {
            flex: 1;
        }

        >div:first-child {
            flex: 0 1 30px;
        }

        .term-title {
            font-weight: 600;
            margin-bottom: 0.25rem;
        }

        .followup {
            margin-top: 1rem;

            &::before {
                content: "\2192";
                padding-right: 8px;
            }
        }



    }

    .terms-legal {
        color: var(--higlight-color);
        font-size: 0.8rem;

        h5 {
            font-weight: 600;
            font-size: 1.3em;
            margin-bottom: 0.75em;
            text-transform: uppercase;
        }

        ul {
            list-style: none;
            padding: 0;

            li {
                margin-bottom: 0.5em;
            }
        }
    }
}

/*MODULE - INVITADOS*/

.jdm-keynote {

    .keynote-nombre {
        font-size: 1.2rem;
        font-weight: 600;
        color: var(--theme-color);
        margin-bottom: 0.75rem;
    }

    .keynote-titulos {
        list-style-type: comillas-es;
        padding: 0 0.75rem;
        font-size: 0.9rem;

        li {
            margin-bottom: 0.15rem;
        }
    }
}

/*MODULE - AUSPICIANTES*/

.jdm-auspicios {


    .jd-logo-cloud {
        display: flex;

        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 3rem 0;

        .jd-logo {

            padding: 0.5rem;


            img {

                /* background-color: var(--light-grey); */
                border-radius: 1rem;
                aspect-ratio: 1 / 1;
                width: 100%;
                max-width: 150px;
                margin: auto;
                object-fit: contain;


            }
        }
    }
}

/*MODULE - GALERIAS*/
.gallery-blurb {
    text-align: center;
    margin-bottom: 2rem;
    margin-top: 3rem;
    font-size: 1.7rem;
    font-style: italic;
}

.jdm-galeria-1 {
    .galeria-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;

        .galeria-item {
            position: relative;
            overflow: hidden;
            border-radius: 0.5rem;
            aspect-ratio: 1 / 1;


            img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                object-position: top;
                transition: transform 0.3s ease-in-out;
            }

            &:hover img {
                transform: scale(1.05);
            }
        }
    }
}


.jdm-galeria-2 {
    --galery-gap: 0.5rem;


    .galeria-grid {
        columns: 3;
        column-gap: var(--galery-gap);

        .galeria-item {
            margin-bottom: var(--galery-gap);
            border-radius: 0.5rem;
            overflow: hidden;

            img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                object-position: top;
                transition: transform 0.3s ease-in-out;

            }

            &.portrait {
                aspect-ratio: 3 / 4;
            }

            &.center-left {
                img {
                    object-position: left;
                }
            }




            &:hover img {
                transform: scale(1.05);
            }
        }
    }
}

.jdm-galeria-3 {
    --galery-gap: 0.5rem;

    .scroller {
        max-width: 100%;
    }

    .scroller_inner {
        padding-block: 1rem;
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .scroller[data-animated="true"] {
        overflow: hidden;

    }

    .scroller[data-animated="true"] .scroller_inner {
        width: max-content;
        height: 500px;
        flex-wrap: nowrap;
        animation: scroll var(--_animation-duration, 40s) var(--_animation-direction, forwards) linear infinite;
    }

    .scroller[data-direction="right"] {
        --_animation-direction: reverse;
    }

    .scroller[data-direction="left"] {
        --_animation-direction: forwards;
    }

    .scroller[data-speed="fast"] {
        --_animation-duration: 20s;
    }

    .scroller[data-speed="slow"] {
        --_animation-duration: 60s;
    }


}

@keyframes scroll {
    to {
        transform: translate(calc(-50% - 0.5rem));
    }
}

/*MODULE - PATROCINIO*/

.jdm-patrocinio {
    .jd-logo-grid {


        .jd-grid-logo {
            text-align: center;



            .logo-container {
                /* background-color: var(--light-grey); */
                border-radius: 1rem;
                aspect-ratio: 2/1;

                img {
                    aspect-ratio: 3/2;
                    max-width: 100%;
                    object-fit: contain;
                    padding: 15% 5%;
                }
            }

            span {
                display: none;
                text-align: center;
                margin-top: 0.5rem;
            }
        }



    }
}


/*FOOTER*/

.jd-footer {
    background-color: var(--theme-color);
    color: white;

    .jd-footer-container {
        display: flex;

        flex-wrap: wrap;
        justify-content: space-between;
        padding: 2rem 0;

        .jd-footer-socials {

            min-height: 3rem;
            display: flex;
            justify-content: flex-start;
            font-size: 1.5rem;
            grid-gap: 0.75rem;

            .social-icon:hover {
                opacity: 0.8;
            }

            a {
                color: white;

            }
        }

        p {
            margin: 0;
        }

        .jd-logo {

            min-height: 3.5rem;


            img {
                max-width: 150px;
            }
        }
    }
}

.fa-square-mix {
    position: relative;

    &::after {

        content: '';
        display: block;
        position: absolute;
        inset: 0;
        background-color: var(--theme-color);
        aspect-ratio: 1 / 1;
        border-radius: 50%;
        z-index: 1;
        scale: 0.66;

    }

    .fa-brands {



        position: absolute;
        left: -1px;
        top: 0;
        scale: 0.84;
        color: white;
        z-index: 2;
    }
}


/*Small devices (landscape phones, 576px and up)*/
@media (min-width: 576px) {




    .jd-overhead {
        .jd-overhead-logos-container {
            justify-content: space-between;

            .jd-logo {
                flex: 0 1 200px;

            }
        }
    }



}

/*Medium devices (tablets, 768px and up)*/
@media (min-width: 768px) {

    .jdm-patrocinio {
        .jd-logo-grid {}
    }


    .jdm-auspicios {
        .jd-logo-cloud {

            gap: 0;

            .jd-logo {
                img {
                    width: 100%;
                    max-width: unset;
                    object-fit: contain;
                    padding: 15% 0;

                }
            }
        }
    }

    .jd-footer {
        .jd-footer-container {
            .jd-footer-socials {
                min-height: 3.5rem;
                justify-content: flex-end;

            }
        }
    }
}

/*Large devices (desktops, 992px and up)*/
@media (min-width: 992px) {
    .jd-hero {
        .jd-hero-decoration {

            background-image: url('../img/themes/cardiopectus/header_bg.png');

        }

        .container {
            aspect-ratio: 5/1;


            .jd-title {
                flex: 0 1 55%;
                text-align: left;

                h1 {}

                span {}
            }
        }
    }

    .jdm-patrocinio {
        .jd-logo-grid {}
    }

    .jdm-auspicios {


        .jd-logo-cloud {

            gap: 0 3rem;
        }
    }

    /*X-Large devices (large desktops, 1200px and up)*/
    @media (min-width: 1200px) {}

    /*XX-Large devices (larger desktops, 1400px and up)*/
    @media (min-width: 1400px) {

        .container,
        .container-lg,
        .container-md,
        .container-sm,
        .container-xl {
            max-width: 1140px;
        }

    }

}