@import '_global.css';

header.topPage{
    position: relative;
    /* background-color: #464646; */
    color:#fff;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 16 / 7;
    overflow: visible;
    video{
        width: 100%;
        height: 100%;
        position: absolute;
        inset: 0;
        z-index: 1;
        object-fit: cover;
        object-position: center top;
    }
}
main#home{
    section.promos-section{
        .wrap{
            .headerPromo{
                display: flex;
                flex-wrap: wrap;
                justify-content: center;
                align-items: center;
                padding:70px 0px 50px;
             
                text-align: center;
                h1{
                    text-transform: uppercase;
                    font-size: 2rem;
                    font-weight: 900;
                    margin: 0;
                    color: var(--color1);
                }
                a{
                    color: var(--color2);
                    font-size: 1.4rem;
                }
            }
            .promoCards{
                display: grid;
                grid-template-columns: repeat(1, 1fr);
                gap:0px 40px;
            }
            .boxButton{
                text-align: center;
                margin-bottom: 80px;
                a{
                    min-width: 260px;
                    padding:15px 30px;
                }
            }
            @media screen and (width >= 768px) {
                .promoCards{
                    grid-template-columns: repeat(2, 1fr);
                }
            }
            @media screen and (width >= 768px) and (width <= 1024px) {
                .headerPromo h1{
                    font-size: 2em;
                }
            }
            @media screen and (width > 1024px) {
                .headerPromo{
                    justify-content: space-between;
                    text-align: left;
                }
            }
        }
    }
    section#instagram{
        .wrap{
            padding:90px 20px;
            .header{
                display: flex;
                flex-wrap: wrap;
                gap: 1rem;
                align-items: center;
                margin-bottom: 30px;
                .imgLogo{
                    width: 60px;
                    height: 60px;
                    border-radius: 50%;
                    overflow: hidden;
                    border:1px solid var(--color1);
                    img{
                        width: 100%;
                        height: 100%;
                        object-fit: cover;
                        object-position: center;
                    }
                }
                .txt{
                    h3{
                        font-size: 1.1em;
                        margin: 0;
                    }
                    span.fecha{
                        display: block;
                        font-size: .8em;
                    }
                }
            }
            ul{
                display: grid;
                grid-template-columns: repeat(1, 1fr);
                gap:1rem;
                list-style: none;
                li{
                    border-radius: var(--border-radius-big);
                    overflow: hidden;
                    position: relative;
                    transition: box-shadow 0.25s ease, transform 0.25s ease;
                    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
                    &:hover{
                        box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
                        transform: translateY(-3px);
                    }
                    &:nth-child(even){
                        grid-row: span 2;
                    }
                    &:nth-child(7){
                        grid-row: span 2;
                    }
                    &:nth-child(10){
                        grid-row: span 1;
                    }
                    &>img{
                        width: 100%;
                        height: 100%;
                        object-fit: cover;
                        object-position: center;
                        background-color: #464646;
                    }
                    &::before{
                        content: '';
                        position: absolute;
                        top:0;
                        left:0;
                        width: 100%;
                        height: 100%;
                        background-image: linear-gradient(to top, rgba(0,0,0,.8), rgba(0,0,0,0) 50%);
                        z-index: 2;
                    }
                    .info{
                        position:absolute;
                        bottom:0;
                        left:0;
                        width: 100%;
                        height: auto;
                        z-index: 5;
                        display: grid;
                        grid-template-columns: 45px 1fr;
                        gap: 10px;
                        align-items: center;
                        padding:1rem;
                        color:#fff;
                        .instaLogo{
                            width: 45px;
                            height: 45px;
                            border-radius: 50%;
                            overflow: hidden;
                            border: 1px solid var(--color1);
                            img{
                                width: 100%;
                                height: 100%;
                                object-fit: cover;
                                object-position: center;
                            };
                        }
                        .txt{
                            h4{
                                font-size: .9em;
                                margin: 0;
                            }
                            span{
                                font-size: .75em;
                            }
                        }
                    }
                }
            }
            @media screen and (width > 1024px) {
                ul{
                    grid-template-columns: repeat(5, 1fr);
                    grid-template-rows: repeat(3, 150px);
                }
                
            }
        }
    }
}
div#titulo{
    position: absolute;
    left: 0;
    right: 0;
    bottom: -150px;
    z-index: 5;
    padding: 52px 0;
    pointer-events: none;
    width: 85vw;
    margin: 0 auto;
}
.tituloWrap{
    pointer-events: auto;
}
.tituloWrap{
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    background-color: var(--color2);
    padding: 0 0 0 30px;
    text-align: left;
}
.tituloText h2,
.tituloText h1{
    margin: 0;
    color: #fff;
    font-size: 3em;
    font-weight: 300;
    letter-spacing: 0.02em;
}
@media screen and (width <= 768px){
    div#titulo{
        padding: 12px 0;
        bottom: -120px;
    }
    .tituloText .tituloLight{
        padding-left: 0;
        margin: 0;
        display: block;
    }
    .tituloText h2,
    .tituloText h1{
        font-size: 1.5em;
        line-height: 0.9;
    }
    .tituloType{
        min-height: calc(2 * 0.9em);
        overflow: hidden;
    }
    .tituloWrap{
        padding: 0 0 0 10px;
    }
    .tituloLogo{
        height: 140px;
        width: 60%;
        margin-left: auto;
    }
    .tituloLogoBox{
        width: calc(100% + 15px);
        background-color: #fff;
    }
    .tituloLogoBox .tituloBar{
        display: none;
    }
    .tituloLogo img{
        height: 26px;
        width: 65%;
        padding-right: 65px;
    }
    #logotitulo{
        padding-right: 10px;
        transform: translateX(-20px);
    }
}
@media screen and (width >= 769px){
    #home .promoCards .prInfo{
        align-items: center;
        min-height: 278px;
        position: relative;
        padding-bottom: 70px;
    }
    #home .promoCards .prInfo .desde{
        order: 1;
    }
    #home .promoCards .prInfo .estado{
        order: 2;
    }
    #home .promoCards .prInfo .txtInfo{
        order: 3;
        margin-top: -17px;
    }
    #home .promoCards .prInfo .promoBadges{
        order: 4;
        margin-top: 8px;
    }
    #home .promoCards .prInfo .promoProjectBtn{
        order: 5;
        margin-top: 0;
        align-self: center;
        position: absolute;
        bottom: 20px;
        left: 0;
        right: 0;
        width: fit-content;
        margin-inline: auto;
        transform: none;
        text-align: center;
    }
}
@media screen and (width >= 1024px){
    #home .promoCards{
        grid-template-columns: repeat(2, 1fr);
    }
}
@media screen and (width >= 769px){
    #home .promoCards .promoDivider{
        display: none;
    }
}
.tituloType{
    display: inline-flex;
    gap: 10px;
    align-items: baseline;
    flex-wrap: wrap;
}
.tituloTypeText{
    border-right: 2px solid #fff;
    padding-right: 6px;
    animation: tituloCaret 0.8s steps(1) infinite;
}
@keyframes tituloCaret{
    50%{
        border-color: transparent;
    }
}
.tituloText .tituloLight{
    font-weight: 300;
    padding: 0;
}
.tituloText .tituloBold{
    font-weight: 900;
}
.tituloLogoBox{
    display: flex;
    align-items: center;
    gap: 0;
    justify-self: end;
}
.tituloBar{
    width: 10px;
    height: 70px;
    background-color: var(--color1);
    display: inline-block;
    padding: 3px;
}
.tituloLogo{
    background-color: #fff;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    height: 200px;
}
.tituloLogo img{
    height: 50px;
    width: auto;
    display: block;
    padding-right: 40px;
}
@media screen and (width <= 768px){
    .tituloLogo{
        height: 140px;
    }
}
@media screen and (width <= 768px){
    #home .promos-section .wrap{
        max-width: none;
        padding: 0;
    }
    #home .promoCards{
        gap: 0;
    }
    #home .promoCards .promoDivider{
        display: block;
        width: 100%;
        height: 1px;
        margin: 0;
        border: 0;
        background: #e5e5e5;
    }
    #home .promoCards .prImg{
        border-radius: 0;
    }
    #home .promoCards .prImg.prImgVideo{
        padding-bottom: calc(73.333% - 55px);
    }
    #home .promoCards .prImg img,
    #home .promoCards .prImg video{
        border-radius: 0;
    }
    #home .promoCards .prInfo{
        align-items: center;
        min-height: 278px;
        position: relative;
        padding-bottom: 70px;
    }
    #home .promoCards .prInfo .desde{
        order: 1;
    }
    #home .promoCards .prInfo .estado{
        order: 2;
    }
    #home .promoCards .prInfo .promoBadges{
        order: 4;
        margin-top: 8px;
    }
    #home .promoCards .prInfo .promoProjectBtn{
        order: 5;
        width: fit-content;
        text-align: center;
        align-self: center;
        margin-top: 0;
        position: absolute;
        bottom: 20px;
        left: 0;
        right: 0;
        margin-inline: auto;
        transform: none;
    }
    #home .promoCards .prInfo .txtInfo{
        order: 3;
        margin-top: -17px;
    }
    #home .promoCards .prLogo .logoBold{
        font-size: 1.58em;
    }
    #home .promoCards .prLogo .logoSub{
        font-size: 0.76em;
    }
}
@media screen and (width >= 769px){
    .tituloLogo{
        width: 250px;
        padding: 14px 22px;
    }
    #logotitulo{
        padding-left: 32px;
        transform: scale(1.2);
        transform-origin: left center;
    }
}
.floatingAgent{
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background-color: #fff;
    display: grid;
    place-items: center;
    z-index: 999;
    border: 2px solid var(--color1);
    box-shadow: 0 0 0 rgba(196, 40, 26, 0.45);
    animation: floatingPulse 2.2s ease-out infinite;
    overflow: visible;
}
.floatingAgent img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.floatingAgentText{
    position: absolute;
    right: 110%;
    bottom: 6px;
    background-color: #fff;
    color: var(--color2);
    padding: 8px 12px;
    border-radius: 14px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}
@media (width <= 768px){
    .floatingAgentText{
        display: none;
    }
}
.elfsight-app-00c1e084-d70c-4301-a26f-06dddb049867{
    padding-top: 120px;
    margin-top: 40px;
}
.viewportFade{
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 120px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
    pointer-events: none;
    z-index: 900;
}
@keyframes floatingPulse{
    0%{
        box-shadow: 0 0 0 0 rgba(196, 40, 26, 0.45);
    }
    70%{
        box-shadow: 0 0 0 18px rgba(196, 40, 26, 0);
    }
    100%{
        box-shadow: 0 0 0 0 rgba(196, 40, 26, 0);
    }
}
@keyframes promoBtnPulse{
    0%{
        box-shadow: 0 0 0 0 rgba(200, 24, 24, 0.45);
        transform: translateZ(0);
    }
    70%{
        box-shadow: 0 0 0 14px rgba(200, 24, 24, 0);
        transform: translateZ(0);
    }
    100%{
        box-shadow: 0 0 0 0 rgba(200, 24, 24, 0);
        transform: translateZ(0);
    }
}
.promoProjectBtn{
    align-self: flex-start;
    margin-top: 12px;
    padding: 12px 28px;
    font-size: 1.05rem;
    animation: promoBtnPulse 2.4s ease-in-out infinite;
}
.infoIcon{
    font-size: 20px;
    line-height: 1;
    color: var(--color2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}
