* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%; 
}

body {
    font-family: Arial, sans-serif;
    background-image: url('../imgs/background.jpg');
    background-size: cover;
    background-position: top center;
    background-attachment: fixed; 
    display: flex;
    flex-direction: column; 
    justify-content: space-between; 
    align-items: center;
    min-height: 100vh; 
}

.container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
    flex: 1; 
}

.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    justify-content: center; 
}

.header .logo {
    width: 100%;
    max-width: 1000px;
    height: auto;
    margin-top: 50px;
    margin-bottom: 50px;
}

.main-content {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.video-section {
    display: flex;
    flex-wrap: nowrap; 
    justify-content: space-between; 
    gap: 20px;
    width: 100%;
    padding: 0 40px; 
    max-width: 1200px;
    box-sizing: border-box; 
}

.video-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 400px;
    flex: 1 1 auto; /* Permite que los videos se distribuyan equitativamente */
    margin: 0 10px; /* Espaciado lateral adicional entre videos */
}

.video-container {
    text-align: center;
    width: 100%;
}

.video-thumbnail {
    width: 100%;
}

.video-info {
    text-align: center;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    
}

.secondary-logo {
    width: 300px;
    height: auto;
}

.video-link {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
}

.video-link:hover {
    text-decoration: underline;
}


@media (max-width: 768px) {
    .video-section {
        flex-direction: column; /* Apila los videos verticalmente */
        align-items: center; 
    }
}


.footer {
    text-align: left;
    font-size: 0.9rem;
    color: grey;
    background-color: white;
    padding: 50px;
    width: 100%;
    margin-top: auto;
}

/* Modal Styles */
.hidden {
    display: none;
}

.video-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    width: 90%;
    max-width: 800px;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.video-modal iframe {
    width: 100%;
    height: 450px;
}

@media (max-width: 768px) {
    .video-modal iframe {
        width: 100%;
        height: 300px;
    }
}



.modal-logo {
    margin-top: 20px;
    max-height: 100px;
    object-fit: contain;
    display: block;
    text-align: center;
}