:root {
    --color-h1: white;
}

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

body {
    background-color: black;
}

.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.video-wrapper.active {
    opacity: 1;
}

/* Estas son las propiedades clave para mantener las proporciones */
.video-wrapper video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    /* Mantiene las proporciones cubriendo todo el contenedor */
    object-position: center;
    /* Centra el video */
}

/* Para pantallas muy anchas, evitamos que el video se estire demasiado */
@media (aspect-ratio > 16/9) {
    .video-wrapper video {
        width: 100vw;
        height: auto;
    }
}

/* Para pantallas muy altas, evitamos que el video se estire verticalmente */
@media (aspect-ratio < 16/9) {
    .video-wrapper video {
        width: auto;
        height: 100vh;
    }
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(111, 178, 255, 0.4);
    z-index: -1;
}


.content {
    /*height: 100vh;*/
    /*display: flex;*/
    /*flex-direction: column;*/
    /*justify-content: center;*/
    /*align-items: center;*/
    margin-top: 200px;
    color: white;
    text-align: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.title {
    font-size: 4rem;
    margin-bottom: 2rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.btn-custom {
    padding: 15px 40px;
    font-size: 1.2rem;
    margin: 10px;
    transition: all 0.3s ease;
}

.btn-custom:hover {
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
    }

    .logo-custom img {
        height: 150px;
    }
}

.logo-custom {
    /*position: fixed;
    top: 0px;
    left: 0px;*/
    width: 100vw;
    display: flex;
    justify-content: center;
    /*height: 100vh;*/
    padding: 10px;
    /*background-color: rgba(255,255,255,0.5); */
}

.logo-custom img {
    height: 150px;
}

.main-title {
    color: var(--color-h1);
    text-align: center;
    letter-spacing: 10px;
    opacity: 0.8;
    margin-top:0px;
}