.modal {
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    animation: modal 1s 1s; 
    animation-fill-mode: forwards;
    visibility: hidden;
    opacity: 0;
    z-index: 1000000;
}

.contenido {
    width: 80%; /* Cambiado de 800px a un porcentaje */
    margin: auto;
}

#cerrar {
    display: none;
}

#cerrar + label {
    position: fixed;
    color: #000;
    z-index: 1000001;
    font-size: 30px;
    background: white;
    height: 40px;
    width: 40px;
    line-height: 40px; /* Corregido para centrar el texto verticalmente */
    border-radius: 50%;
    right: 20px;
    cursor: pointer;
    animation: modal 1s 1s;
    animation-fill-mode: forwards;
    visibility: hidden;
    opacity: 0;
}

#cerrar:checked + label, #cerrar:checked ~ .modal {
    display: none;
}

@keyframes modal {
    100% {
        visibility: visible;
        opacity: 1;
    }
}

@media screen and (max-width: 768px) { /* Cambiado el ancho máximo para dispositivos móviles */
    .contenido {
        width: 90%; /* Cambiado de 100% a un porcentaje menor */
    }
}

/* Start: Video Responsive */



.video-responsive {
    overflow: hidden;
    padding-bottom: 56.25%; /* Proporción de aspecto 16:9 */
    position: relative;
    height: 0;
    display: flex;
    justify-content: center; /* Centrar horizontalmente */
    align-items: center; /* Centrar verticalmente */
}

.video-responsive video {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}



@media screen and (min-width: 1000px) {
    .video-responsive video {
        width: 1000px;
        height: auto;
    }
}
/* End: Video Responsive */