body{
    font-family: var(--font-primary);
    background-color: var(--color-white);
    color: var(--color-secondary);
    min-height: 100dvh;
}

.hbspt-form{
    width: 100%;
}

/*  Barba transition  */

/*
.transition__top{
    position: fixed;
    width: 100%;
    height: 500%;
    top: 0;
    left: 0;
    display: block;
    background-color: var(--color-primary-dark);
    z-index: 101;
    pointer-events: none;
    opacity: 1;
}

.transition__bottom{
    position: fixed;
    width: 100%;
    height: 500%;
    bottom: 0;
    left: 0;
    display: block;
    background-color: var(--color-primary-dark);
    z-index: 101;
    pointer-events: none;
    opacity: 1;
}

*/

/*	Loader	*/

/*
#overlay{
    position:fixed;
    z-index:102;
    top:0;
    left:0;
    bottom:0;
    right:0;
    transition: opacity 0.6s;
}

#progress{
    height:3px;
    background-color: var(--color-accent);
    position:absolute;
    width:0;
    top:50%;
    z-index: 103;
}

#progress__bg{
    position: absolute;
    top:50%;
    width: 100%;
    height: 3px;
    background-color: var(--color-secondary);
    display: block;
    left: 0;
    z-index: 102;
}

#progstat{
    font-size:20px;
    letter-spacing: 1px;
    position:absolute;
    top:50%;
    margin-top:20px;
    width:100%;
    text-align:center;
    color: var(--color-white);
}

#logoloader{
    position:absolute;
    top:50%;
    margin-top:-100px;
    width:100%;
    display:flex;
    flex-direction:row;
    align-items:center;
    justify-content:center;
}

*/

/*  Text globals  */
.richTextH2{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
h1{
    font-size: var(--size-md);
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 20px;
}

h2{
    font-size: var(--size-xl);
    color: var(--color-primary);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 0px;
    font-family: var(--font-title);
    text-transform: uppercase;
    display: block;
    strong{
        font-family: var(--font-italic);
        transform: scale(1.5);
        transform-origin: top left;
        text-transform: initial !important;
        display: block;
    }
}


h3{
    font-size: var(--size-md);
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--color-primary);
    text-transform: uppercase;
    font-weight: 600;
}

h4{
    font-size: var(--size-lg);
    line-height: 1.2;
    margin-bottom: 20px;
}

h5{
    font-size: var(--size-xl);
    line-height: 1.2;
    margin-bottom: 20px;
}

h6{
    font-size: var(--size-3xl);
    line-height: 1.2;
    margin-bottom: 20px;

}

p, li{
    font-size: var(--size-md);
    line-height: 1.6;
    margin-bottom: 20px;
    text-wrap: pretty;
    color: var(--color-secondary);
}

a{
    font-size: var(--size-md);
    line-height: 1.6;
    margin-bottom: 20px;
}

ul:where([role="list"]),
ol:where([role="list"]) {
  list-style: none;
  margin: 0;
  padding: 0;
}

.btn{
    background-color: var(--color-accent);
    padding: 8px 20px;
    border-radius: 8px;
    text-transform: uppercase;
    font-size: var(--size-xs);
    color: var(--color-primary-dark);
    font-weight: 500;
    cursor: pointer;
    position: relative;
    z-index: 1;
    overflow: hidden;
    box-shadow: 0px 2px 4px rgba(0,0,0,0.5);
    border: 2px solid var(--color-accent);
      &::before{
        content: "";
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        background-image: url(/images/gold_texture.jpg);
        background-position: center;
        background-size: cover;
        opacity: 0.3;
        z-index: -1;
      }
}

/*  globales botones carrusel splide  */

.splide{
    
}
.splide__arrow--prev{
left: 0%;
background-color: transparent;
background-image: url(/images/prev_yellow.svg);
background-repeat: no-repeat;
background-position: center;
background-size: contain;
width: 55px;
height: auto;
aspect-ratio: 1/1;
svg{
    opacity: 0;
}
}
.splide__arrow--next{
right: 0%;
background-color: transparent;
background-image: url(/images/next_yellow.svg);
background-repeat: no-repeat;
background-position: center;
background-size: contain;
width: 55px;
height: auto;
aspect-ratio: 1/1;
svg{
    opacity: 0;
}
}


/*  Layout globals  */

section{
    margin-top: -3px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 0;
}

.column__1{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    position: relative;
}

.column__2, .column__3{
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    position: relative;
}

.col__left{
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    position: relative;
}

.col__right{
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    position: relative;
}

.col__center{
    width: 33.33%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    position: relative;
}

.column__3 .col__left{
    width: 33.33%;
}

.column__3 .col__right{
    width: 33.33%;
}


/*  Max widths  */

.max800{ max-width: 800px; }
.max900{ max-width: 900px; }
.max1000{ max-width: 1000px; }
.max1100{ max-width: 1100px; }
.max1200{ max-width: 1200px; }
.max1300{ max-width: 1300px; }
.max1400{ max-width: 1400px; }
.max1500{ max-width: 1500px; }
.max1600{ max-width: 1600px; }


/*  Widths  */

.width__10{ width: 10%;}
.width__15{ width: 15%;}
.width__20{ width: 20%;}
.width__25{ width: 25%;}
.width__30{ width: 30%;}
.width__35{ width: 35%;}
.width__40{ width: 40%;}
.width__45{ width: 45%;}
.width__50{ width: 50%;}
.width__55{ width: 55%;}
.width__60{ width: 60%;}
.width__65{ width: 65%;}
.width__70{ width: 70%;}
.width__75{ width: 75%;}
.width__80{ width: 80%;}
.width__85{ width: 85%;}
.width__90{ width: 90%;}
.width__95{ width: 95%;}
.width__100{ width: 100%;}


/*  Padding globals  */

.pad__left__5{ padding-left: 5%; }
.pad__right__5{ padding-right: 5%; }
.pad__top__5{ padding-top: 5%; }
.pad__bottom__5{ padding-bottom: 5%; }

.pad__left__10{ padding-left: 10%; }
.pad__right__10{ padding-right: 10%; }
.pad__top__10{ padding-top: 10%; }
.pad__bottom__10{ padding-bottom: 10%; }

.pad__lr__5{ padding-left: 5%; padding-right: 5%; }
.pad__lr__10{ padding-left: 10%; padding-right: 10%; }
.pad__tb__5{ padding-top: 5%; padding-bottom: 5%; }
.pad__tb__10{ padding-top: 10%; padding-bottom: 10%; }

.pad__all__5{ padding: 5%; }
.pad__all__10{ padding: 10%; }
.pad__all__15{ padding: 15%; }
.pad__all__20{ padding: 20%; }


/*  Margin globals  */

.mar__left__5{ margin-left: 5%; }
.mar__right__5{ margin-right: 5%; }
.mar__top__5{ margin-top: 5%; }
.mar__bottom__5{ margin-bottom: 5%; }

.mar__left__10{ margin-left: 10%; }
.mar__right__10{ margin-right: 10%; }
.mar__top__10{ margin-top: 10%; }
.mar__bottom__10{ margin-bottom: 10%; }


/*  Flexbox  */
.flex{ display: flex; }
.flex-col{flex-direction: column;}
.flex__align__c { align-items: center; }
.flex__align__e { align-items: flex-end; }
.flex__align__s { align-items: stretch; }
.flex__justify__c { justify-content: center; }
.flex__justify__e { justify-content: flex-end; }
.flex__justify__s { justify-content: stretch; }
.flex__justify__sa { justify-content: space-around; }
.flex__justify__sb { justify-content: space-between; }
.flex__justify__se { justify-content: space-evenly; }


/*  Radius  */

.radius__10{ border-radius: 10px; }
.radius__20{ border-radius: 20px; }
.radius__30{ border-radius: 30px; }
.radius__40{ border-radius: 40px; }
.radius__50{ border-radius: 50px; }


/*  Listados cards  */

.listado__x2{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    grid-gap: 5%;
    grid-auto-rows: auto;
}

.listado__x3{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    grid-gap: 50px;
    grid-auto-rows: auto;
}

.listado__x4{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto;
    grid-column-gap: 50px;
    grid-row-gap: 100px;
    grid-auto-rows: auto;
}

.listado__x5{
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: auto;
    grid-gap: 5%;
    grid-auto-rows: auto;
}

.listado__x6{
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: auto;
    grid-gap: 5%;
    grid-auto-rows: auto;
}

#whatsapp{
    position: fixed;
    display: block;
    bottom: 30px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--color-accent);
    z-index: 1000;
    border-radius: 60px;
    background-image: url(/images/whatsapp--primary.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 70%;
}


/*  Cards  */

.card{
    background-color: #fff;
    padding: 5%;
    margin: 0px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    .card__date{
        font-size: var(--size-xs);
        text-transform: capitalize;
    }
    .card__category{
        font-size: var(--size-xs);
    }
    .card__category a{
        font-size: inherit;
        margin-bottom: 10px;
    }
    .card__category a:hover{
        text-decoration: underline;
    }
    .card__pic{
        width: 100%;
    }
    a{
        margin-bottom: 0px;
    }
    h2{
        font-size: var(--size-lg);
    }
    picture{
        width: 100%;
        height: auto;
        margin-bottom: 5%;
    }
    .btn{
        margin-bottom: 0px;
        margin-top: 0%;
    }
    .excerpt__p{
        font-size: var(--size-sm);
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        overflow: hidden;
    }
}

.diamondFigure, .diamondFigureHorizon{
    width: 24px;
    height: 200px;
    position: absolute;
    top: calc(50% - 100px);
    right: -12px;
    display: flex;
    
    flex-direction: column;
    justify-content: space-between;
    z-index: 3;
    .diamondImg{
        width: 24px;
        height: 24px;
        background-color: var(--color-primary);
        transform: rotate(45deg);
    }
}
.diamondFigureHorizon{
    width: 200px;
    height: 24px;
    flex-direction: row;
    transform: translate(-50%, -50%);
    right: 50%;
    left: 50%;
    top: 100%;
    bottom: 0;
}   

.card__articulo{
    background-color: white;
    width: 100%;
    height: 100%;
    a{
        margin: 0;
    }
    .column__2, .col__left, .col__right{
        height: 100%;
    }
    .col__left{
        padding-right: 5%;
        a, picture, img{
            height: 100%;
            img{
                object-fit: cover;
            }
        }
    }
    .col__right{
        justify-content: center;
        padding-right: 5%;
        h2{
            width: fit-content !important;
        }
        .btn_post{
            display: flex;
            background-color: none;

        }
        .btn_post::after{
            content: "＞";
            display: block;
            color: var(--color-accent);
        }
    }
    .splide__arrow--prev {
        top: 0;
        transform: rotate(-90deg);
    }
}

.blackDisplayOverlay, .blackDisplayOverlayGradient{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: block;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
    pointer-events: none;
}

.blackDisplayOverlayGradient{
    width: 100%;
    height: 50vh;
    background: rgb(0,0,0);
    background: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
}

.accentDivider{
    width: 100px;
    margin-top: 50px;
    margin-bottom: 50px;
    height: 3px;
    background-color: var(--color-primary);
}

.post__title{
    font-size: var(--size-sm);
}

.dual__img__wrapper{
    position: relative;
    height: 100%;
    width: 100%;
    picture:first-child{
        position: absolute;
        bottom: 0;
        right: 10%;
        height: 110%;
        width: auto;
        object-fit: contain;
        z-index: 1;
        img{
            width: 100%;
            height: 100%;
            object-fit: contain;
        }
    }
    picture:last-child{
        position: relative;
        width: 100%;
        height: 100%;
        min-height: 60vh;
        object-fit: cover;
        z-index: 0;
        img{
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    }
}

.dualHorizon__img__wrapper{
    padding-top: 150px;
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;

    picture:first-child{
        position: absolute;
        bottom: 0;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        z-index: 1;
        object-fit: contain;
        object-position: bottom;
        img{
            width: 100%;
            height: 100%;
            max-width: 100%;
            object-fit: contain;
            object-position: bottom;
        }
    }
    picture:last-child{
        position: relative;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 0;
        img{
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    }
}


.greca{
    position: relative;
    height: 200px;
    width: 100%;
    background-image: url(/images/greca_crema.svg);
}



#section__404{
    min-height: 60vh;
    h2{
        font-weight: 600;
        color: var(--color-error)
    }
    h1{
        font-weight: 500;
    }
    span{
        font-size: var(--size-sm);
        text-align: center;
    }
    span a{
        font-size: inherit;
        text-decoration: underline;
    }
}

.icon__404{
    height: 100px;
    width: auto;
    opacity: 0.8;
    margin-bottom: 4%;
}

#section__gracias{
    h1{
        font-size: var(--size-2xl);
        color: var(--color-primary);
    }
    h2{
        font-size: var(--size-md);
        color: var(--color-secondary);
        line-height: 1.4;
        font-weight: 400;
    }
}

.text__align__c{
    text-align: center;
}

#carousel-3{
    display: block;
}

#carousel-3b{
    display: none;
    padding-bottom: 60px;
    .splide__arrows{
        position: absolute;
        bottom: 20px;
        width: 100%;
    }
}

.splide__arrow{
    opacity: 1;
    font-size: 0px;
}

.splide__arrow:disabled{
    opacity: 0.6;
}


#section__recentArticles{
    .column__1{
        ul{
            height: 100%;
        }
        .card__articulo{
            opacity: 1 !important;
            transform: translate(0) !important;
            flex-direction: row;
            width: 100%;
            height: 100%;
            padding: 0%;
        }
        .card__pic{
            width: 50%;
            height: 100%;
            picture{
                width: 100%;
                height: 100%;
                object-fit: cover;
                img{
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                }
            }
        }
        .card__content{
            width: 50%;
            height: 100%;
            padding: 3% calc(5% + 60px) 3% 3%;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            justify-content: space-evenly;
            .column__2{
                height: auto;
                .col__left{
                    .card__category{
                        a{
                            margin-bottom: 0px;
                            border: 1px solid var(--color-primary);
                            padding: 5px;
                            border-radius: 5px;
                            color: var(--color-primary);
                        }
                    }
                }
                .col__right{
                    .card__date{
                        color: var(--color-accent);
                    }
                }
            }
            h2{
                text-align: left;
                font-family: var(--font-primary);
                text-transform: unset;
                margin-bottom: 20px;
            }
        }
    }
    .splide__arrow--prev{
        transform: rotate(90deg);
        transform-origin: top left;
    }
    .splide__arrow--next{
        transform: rotate(90deg);
        transform-origin: top left;
    }
}



/*  Tableta  */
@media only screen and (max-width: 1024px) {

    
    .column__2{
        flex-direction: column;
    }

    .column__3{
        flex-direction: row;
    }
    
    .col__left{
        width: 100%;
    }
    
    .col__right{
        width: 100%;
    }
    
    .col__center{
        width: 33.33%;
    }
    
    .column__3 .col__left{
        width: 33.33%;
    }
    
    .column__3 .col__right{
        width: 33.33%;
    }

    .listado__x2{
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 30px;
    }

    .listado__x3{
        grid-template-columns: repeat(3, 1fr);
        grid-gap: 20px;
    }

    .listado__x4{
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 30px;
    }

    .listado__x5{
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 30px;
    }

    .listado__x6{
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 30px;
    }
    
    
    .dual__img__wrapper {
        height: 35vh;
        picture:last-child {
            position: relative;
            min-height: 100%;
            object-fit: cover;
            z-index: 0;
        }
    }

    .card__articulo {
        .column__2{
            .col__left {
                padding-right: 0%;
              }
              .col__right{
                padding-right: 0;
                margin-top: 5%;
              }
        }
        

    }

    #carousel-3b{
        display: block;
    }

    .splide__arrow--next{
        width: 45px;
    }
    .splide__arrow--prev{
        width: 45px;
    }

    .diamondFigure, .diamondFigureHorizon{
        .diamondImg{
            width: 16px;
            height: 16px;
        }
    }
    .diamondFigure{
        height: 150px;
        top: calc(50% - 75px)
    }

    .diamondFigureHorizon{
        width: 150px;
        height: 16px;
    }

    .btn{
        padding: 5px 15px;
    }

    .accentDivider{
        margin-top: 25px;
        margin-bottom: 25px;
    }

    .dualHorizon__img__wrapper{
        padding-top: 40px;
    }

    #section__recentArticles{
        .splide{
            width: 100% !important;
            border: 10px solid white !important;
        }
        .card__articulo{
            flex-direction: column !important;
            .card__pic{
                width: 100%;
            }
            .card__content{
                width: 100%;
                padding: 0px 0px 10px;
                margin-top: 10px;
                .column__2{
                    flex-direction: row;
                    margin-bottom: 20px;
                    .col__right{
                        margin-top: 0;
                    }
                }
                .btn{
                    margin-top: 0;
                }
            }
        }

        .splide__pagination{
            height: auto !important;
        }

        .splide__arrows{
            bottom: 0;
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: space-between;
            .splide__arrow--prev{
                position: relative;
                transform: rotate(0deg);
                transform-origin: bottom left;
            }
            .splide__arrow--next{
                position: relative;
                transform: rotate(0deg);
                transform-origin: bottom left;
            }
        }
        
    }

}







/*  Móvil  */
@media only screen and (max-width: 768px) {

    .column__3{
        flex-direction: column;
    }

    .col__center{
        width: 100%;
    }
    
    .column__3 .col__left{
        width: 100%;
    }
    
    .column__3 .col__right{
        width: 100%;
    }

    .listado__x2, .listado__x3, .listado__x4, .listado__x5, .listado__x6{
        grid-template-columns: repeat(1, 1fr);
        column-gap: 0px;
        row-gap: 30px;
    }

    .dual__img__wrapper {
        picture:first-child {
            height: 110%;
            width: 90%;
            right: 0%;
        }
    }


}