/* --------- header__container -------------- */


.header__evento{
    container-type: inline-size;
    container-name: header;
    position: relative;
    z-index: 2;
}

.header__background-photos{
    max-width: 1300px;
    width: 100%;
    margin-bottom: 0px;
    height: 60vh;
}

.header__background-photos img{
    width: 100%;
    height: 100%;
    max-height: 1200px;
    object-fit: cover;
}

@container header (min-width:500px){
    .header__background-photos{
        max-width: 1300px;
        width: 100%;
        margin-bottom: 0px;
        height: 100vh;
    }
    
    .header__background-photos img{
        width: 100%;
        height: 100%;
        max-height: 1200px;
        object-fit: cover;
    }
}


/* --------- inicio evento__patrocinadores ------------ */

.evento{
    display: flex;
    flex-direction: column;
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    container-type: inline-size;
    container-name: evento;
    background-color: #fff;
    overflow: hidden;
}


.evento__patrocinadores{
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    max-width: 100%;
    padding: 0px 10px 30px 10px;
    gap: 20px;
    position: relative;
    z-index: 1;
    max-width: 1300px;
}

.patrocinadores__title-container{
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.patrocinadores__title{
    color:#fff;
    background-color: #5881be;
    width: 110%;
    padding: 10px;
    text-wrap: balance;
    z-index: 20;
    animation: aparicionArriba 1s 1 both;
    text-align: center;
    font-size: 1.3rem;
}

.patrocinadores__description{
    color: #07134e;
    margin: 0;
    padding: 5px 10px;
    max-width: 500px;
    text-align: justify;
    text-wrap: pretty;
    hyphens:auto;
    animation: aparicion2 2.5s ease both;
}

@keyframes aparicion2{
    from{
        opacity: 0;
    }

    to{
        opacity: 1;
    }
}

@keyframes aparicionArriba{
    from{
        transform: translateY(-100%);
        opacity: 0;
    }

    to{
        transform: translateY(0%);
        opacity: 1;
    }
}

.patrocinadores__grid{
    display: grid;
    grid-template-columns: repeat(1, minmax(200px, 1fr));
    justify-content: space-evenly;
    align-items: center;
    align-content: center;
    gap: 20px;
    width: 100%;
    padding: 10px;
}

.patrocinadores__grid-item{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
}

.patrocinador__logo{
    max-width: 300px;
    max-height: 300px;
    padding-bottom: 20px;
    border-bottom: 2px solid #07134e;
    transition: transform 1.5s ease, opacity 1.5s ease;
    position: relative;
    z-index: -1;
}

.patrocinadores__grid-item:nth-child(odd) img{
    transform: translateX(-100%);
    opacity: 0;
}

.patrocinadores__grid-item:nth-child(even) img{
    transform: translateX(100%);
    opacity: 0;
}


.patrocinadores__grid-item img.visible{
    transform: translateX(0%);
    opacity: 1;
}

/* --------- evento__patrocinadores queries------------ */

@container evento (min-width:400px){
    .evento__patrocinadores{
        gap: 30px;
    }

    .patrocinadores__grid{
        display: grid;
        grid-template-columns: repeat(2, minmax(150px, 1fr));
        justify-content: space-evenly;
        align-items: center;
        align-content: center;
        gap: 50px;
        width: 100%;
        padding: 0 10px;
    }


    .patrocinador__logo{
        width: 100%;
        max-width: 300px;
        max-height: 300px;
        padding: 0;
        border: none;
        position: relative;
    }


    .patrocinadores__grid-item:nth-child(odd)::before{
        content: '';
        position: absolute;
        height: 60%;
        right: -20px;
        top: 10px;
        border-right: 2px solid #07134e;
        opacity: 0;
        transition: opacity 2s ease;
    }

    .patrocinadores__grid-item:nth-child(odd)::after{
        content: '';
        position: absolute;
        height: 80%;
        right: -35px;
        bottom: 10px;
        border-right: 2px solid #07134e;
        opacity: 0;
        transition: opacity 2s ease;
    }

    .patrocinadores__grid-item.active::before {
        opacity: 1;
    }
    
    .patrocinadores__grid-item.active::after {
        opacity: 1;
    }
}

@container evento (min-width:700px){

    .patrocinadores__title{
        font-size: 1.9rem;
    }

    p{
        font-size: 1.1rem;
    }

    .patrocinadores__description{
        max-width: 600px;
    }

    .patrocinadores__grid-item:nth-child(odd)::before{
        right: -15px;
        top: 10px;
    }

    .patrocinadores__grid-item:nth-child(odd)::after{
        right: -40px;
        bottom: 10px;
    }
}

/* --------- fin evento__patrocinadores ------------- */

/* -------- inicio evento__patrocinadores__cta --------- */

.evento__patrocinadores__cta{
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    max-width: 100%;
    padding: 0px 10px;
    gap: 20px;
    position: relative;
    z-index: 1;
    max-width: 500px;
}

.evento__patrocinadores__cta h2{
    color:#07134e;
    padding: 10px;
    text-align: center;
    font-size: 1.2rem;
}

.evento__patrocinadores__cta p{
    color: #07134e;
    margin: 0;
    padding: 5px 10px;
    text-align: justify;
    hyphens:auto;
}

.patrocinadores__button{
    font-size: 1.4rem;
    font-weight: bold;
    padding: 10px;
    background-color:#07134e;
    color: #fff;
    border-radius: 24px;
    text-decoration: none;
    animation: llamada 1s ease infinite alternate-reverse;
    box-shadow: 0 0 10px #07134e6f;
}

@keyframes llamada{
    from{
        transform: scale(1);
    }

    to{
        transform: scale(1.15);
    }
}

.patrocinadores__button:hover{
    cursor: pointer;
}

/* -------- evento__patrocinadores__cta queries --------- */


@container evento (min-width:700px){

    .evento__patrocinadores__cta{
        max-width: 600px;
    }

    .evento__patrocinadores__cta h2{
        font-size: 1.9rem;
    }

}