.template-1 section:last-child{
    margin-bottom: 80px;
}

.template-1 .section-home{
    width:100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    align-items: center;
    padding: var(--vertical-separator) var(--side-separator);
    position: relative;
    padding-top: 160px;
    /* background: var(--bg-nav-home); */
}
/** habrá que quitar el fondo para poner el vídeo */
.template-1 .section-home::after{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: var(--bg-mobile); */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    z-index: -1;
}


.video-bg { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    /* z-index: -1;  */
} 

.video-bg.bg-mobile {
    display: block;
}
.video-bg.bg-desktop,
.video-bg.bg-tablet {
    display: none;
}


.template-1 .section-home .home-info{
    width: var(--caja-inicio-width);
    min-height: 660px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; 
    gap: 32px;
    flex: 1 0 0; 
    z-index: 2;
}

/* .template-1 .section-home .home-info > div{
    width: 100%;
} */

.template-1 .section-home .home-info .text-info-event{
    text-align: left;
}
.template-1 .section-home .home-info .text-info-event span{
    color: var(--grey_04);
    font-family: var(--font-secondary);
    font-size: var(--font-base);
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
}

@media (min-width: 500px) {

    .template-1 .section-home{
        min-height: 820px;
        margin-top: 160px;
    }

    .template-1 .section-home::after{
        /* background: var(--bg-tablet); */
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        z-index: -1;
    }

    .template-1 .section-home .home-info{
        width: var(--caja-inicio-width);
        z-index: 2;
        /* max-width: 420px; */
    }

    .template-1 .section-home .home-info .text-info-event span{
        line-height: 24px;
    }

}

@media (min-width: 600px) {

    .video-bg.bg-tablet {
        display: block;
    }
    .video-bg.bg-desktop,
    .video-bg.bg-mobile {
        display: none;
    }

}

@media (min-width: 768px) {

    .template-1 .section-home{
        padding: var(--vertical-separator) 207px 0 207px;
        align-items: flex-end;
    }

}

@media (min-width: 992px) {

    .template-1 .section-home{
        padding: var(--vertical-separator) var(--side-separator) 0 var(--side-separator);
        align-items: flex-start;
        /* background: var(--bg-desktop); */
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        height: 100vh;
        margin: 0;
    }

    

    .template-1 .section-home::after{
        display: none;
    }

    .template-1 .section-home .home-info{
        height: auto;
    }

}

@media (min-width: 1240px) {

    .template-1 .section-home .home-info .info-event{
        display: none;
    }

    .video-bg.bg-desktop {
        display: block;
    }
    .video-bg.bg-tablet,
    .video-bg.bg-mobile {
        display: none;
    }

}

@media (prefers-reduced-motion: reduce) {
    .video-bg { display: none; }
}
