@media screen and (max-width: 768px) {
    .hero {
        height: 60vh;
    }

    .hero-nosotros h1 {
        font-size: 2.5rem;
        padding: 0 20px;
    }
}


@media (min-width:992px){
}

@media (max-width: 768px) {
    .mensaje-contenido {
        flex-direction: column;
    }

    .video-placeholder img,
    .mensaje-texto {
        width: 100%;
        max-width: 100%;
    }

    .mensaje-texto {
        text-align: justify;
    }
}

.hero {
    position: relative;
    width: 100%;
    height: 100vh; /* Toma el alto completo del viewport */
    overflow: hidden;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Contenedor del texto */
.hero-nosotros h1 {
    position: absolute;
    bottom: 40px;  /* Pegado al borde inferior */
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 6rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    margin: 0;
    text-align: center;
}



/* Estilos para la dirección */
.no-estilo {
    color: inherit;
    text-decoration: none;
}


/* Estilos para el apartado de info */
.instituto-info {
    text-align: center;
    padding: 50px 20px;
    background-color: #1a1a1a; /* Fondo blanco */
    color: #000000;
}

.instituto-info h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 30px;
    color: #ffffff; /* Color del texto */
}

.instituto-descripcion {
    background-color: #eeeeee; /* Fondo gris claro */
    border-radius: 20px;
    padding: 30px;
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.6;
}

/* Estilos para la sección de vídeo */ 
.mensaje-coordinador {
    background-color: #ffffff; 
    color: white;
    padding: 50px 20px;
    text-align: center;
}

.mensaje-coordinador h2 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 40px;
    line-height: 1.3;
    text-align: right;
    color: black;
}

.mensaje-coordinador h2 span {
    display: block;
    font-weight: 700;
}

.mensaje-contenido {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.video-placeholder img {
    width: 350px;
    height: auto;
    border-radius: 6px;
    background-color: #d3d3d3; /* En caso de que no cargue imagen */
    object-fit: cover;
}

.mensaje-texto {
    background-color: #eeeeee;
    color: #333;
    padding: 25px 30px;
    border-radius: 16px;
    max-width: 530px;
    font-size: 1.5rem;
    line-height: 1.6;
    text-align: left;
}
