﻿html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}
#menu_nav {
    background-color: transparent;
}

.nextPanel {
    position: absolute;
    bottom: 0px; /* distancia desde el fondo */
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    z-index: 10;
}

.btn-back-home {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 1000;
    padding: 8px 0px 8px 2%;
    border-radius: 0 6px 6px 0;
    color: white!important;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.3s ease;
    font-family: 'Swis721 Lt BT';
    font-size: 14px;
}

.btn-back-home:hover {
    color: white;
}

.btn-back-home::before {
    content: "";
    position: fixed;
    top: 75%;
    left: 0;
    height: 1px;
    background: white!important;
    width: 100%; /* se extiende desde el borde izquierdo */
    transform: translateY(-50%);
    z-index: -1; /* detrás del texto */
}

.section-background {
    height: 100vh;
    position: relative;
    overflow: hidden;

    /* Fade in animation */
    opacity: 0;
    animation: fadeIn 0.8s ease-in-out forwards;
    animation-delay: 0.2s; /* opcional */
}

    .section-background.fade-in {
        opacity: 1;
        transform: translateY(0);
    }

    .section-background .video-container {
        height: 100%;
    }

    .section-background .text-container {
        text-align: center;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        /*background: #000000b2 0% 0% no-repeat padding-box;*/
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }

    .section-background .text {
        max-width: 748px;
        margin: auto;
        color: white;
    }

        .section-background .text .title {
            font-family: 'Swis721 Lt BT';
            font-size: 24px;
            letter-spacing: 2px;
        }


        .section-background .text p {
            display: block;
            margin: 20px auto 20px auto;
            font-family: 'Swis721 Lt BT';
            font-size: 16px;
            line-height: 19px;
        }
        .section-background .text p.last {
            margin-bottom:40px;
        }
            .section-background .text b {
            font-size: 14px;
            display:block;
        }

    .section-background.video-container {
        position: relative;
        overflow: hidden;
        padding: 0;
        position: relative;
        width: 100%;
        height: 100%;
    }

.video-container img,
.video-container iframe {
    box-sizing: border-box;
    height: 56.25vw;
    left: 50%;
    min-height: 100%;
    min-width: 100%;
    transform: translate(-50%, -50%);
    position: absolute;
    top: 50%;
    width: 177.77777778vh;
}

.video-container img {
    z-index: 1;
}

.video-container iframe {
    z-index: 2;
}

.video-container .playing iframe {
    transition: opacity .49s;
    opacity: 1;
}

.video-container .playing img {
    opacity: 0;
}


@media (max-width: 991px) {
    .section-background .text .title {
        font-size: 25px;
    }


    .section-background .text p {
        font-size: 14px;
        line-height: 18px;
    }

    .section-background .text b {
        font-size: 14px;
    }
    .section-background .text{
        max-width:80%;
    }
}
