/* === Estilos base === */
body {
    background-color: white;
    margin-top: 50px;
    background-image: url("../img/YN.jpg");
    background-position: top;
    background-repeat: no-repeat;
    background-size: cover;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    overflow-x: hidden;
}

.logo {
    width: 80px;
    height: auto;
}

.nav-link {
    color: white !important;
}

.nav-link.active {
    color: red !important;
}

.navbar,
.mainNavBar {
    background-color: rgba(0, 0, 0, 0.8);
}

#bgVideo {
    position: fixed;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    object-fit: cover;
}

/* === Overlay (texto sobre video) === */
.overlay {
    position: relative;
    z-index: 1;
    color: white;
    margin-top: 40vh;
    margin-left: 10vh;
}

#portada1 {
    background-color: rgba(0, 0, 0, 0.7);
    color: azure;
    height: 100vh;
    display: flex;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
}

.title {
    color: white;
    font-size: 50px;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
}

/* === Botones === */
.btn-type1 {
    background-color: gray;
    color: rgb(238, 238, 238);
    height: 50px;
    font-size: large;
    transition: all 0.3s ease;
}

.btn-type1:hover,
.btn-type1:focus,
.btn-type1:active {
    background-color: white;
    color: gray;
    border: 1px solid gray;
}

/* === Iconos circulares === */
.icon {
    border-radius: 50%;
    margin-top: 30vh;
    margin-right: 30vh;
    display: block;
    max-width: 300px;
    height: auto;
}

/* === Bloques de texto blanco === */
.BlockW {
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    background-color: whitesmoke;
    color: rgb(90, 90, 90);
    display: flex;
    margin-top: 10vh;
    margin-bottom: 10vh;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.subTitleW {
    color: #101010;
}

.textBW {
    margin: 10vh;
    max-width: 600px;
}

.textBWR {
    text-align: right;
    width: 100%;
    max-width: 1500px;
    margin-top: 35vh;
    margin-bottom: 10vh;
    margin-right: 10vh;
}

/* === Videos en carrusel === */
.carouselVideo {
    height: 400px;
    margin: 0 auto;
    display: block;
    max-width: 90%;
    border-radius: 10px;
}

/* =====================================================
   === RESPONSIVE DESIGN ===
   ===================================================== */

/* Tablets y pantallas medianas */
@media (max-width: 992px) {
    .overlay {
        margin-top: 25vh;
        margin-left: 0;
        text-align: center;
        padding: 0 20px;
    }

    .title {
        font-size: 36px;
    }

    .btn-type1 {
        width: auto;
        padding: 10px 20px;
        font-size: 1rem;
    }

    .icon {
        margin: 10vh auto;
        max-width: 200px;
    }

    .BlockW {
        flex-direction: column;
        text-align: center;
    }

    .textBW,
    .textBWR {
        margin: 5vh 2vh;
        text-align: center;
    }

    .carouselVideo {
        height: auto;
        max-width: 100%;
    }
}

/* Celulares y pantallas pequeñas */
@media (max-width: 576px) {
    body {
        margin-top: 70px;
    }

    .title {
        font-size: 28px;
    }

    .navbar {
        padding: 10px;
    }

    .overlay {
        margin-top: 20vh;
    }

    .btn-type1 {
        font-size: 0.9rem;
        height: auto;
        padding: 8px 14px;
        margin: 5px;
    }

    .icon {
        width: 70%;
        margin: 5vh auto;
    }

    .textBW,
    .textBWR {
        margin: 3vh 2vh;
        font-size: 0.9rem;
    }

    .carouselVideo {
        max-width: 100%;
        height: auto;
    }
}
