/* styles.css - Estilos para la página principal */
/* Reset y estilos base */
body, html {
    height: 100%;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}

/* Contenedor principal para centrar el contenido */
.main-container {
    display: flex;
    height: 100vh;
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

/* Fondo de la página */
.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    z-index: -2;
}

/* Video izquierdo */
.video-background {
    position: absolute;
    top: 50%;
    left: 2%;
    width: 55%;
    max-width: 1080px;
    height: auto;
    aspect-ratio: 6/5;
    transform: translateY(-50%);
    object-fit: cover;
    z-index: -1;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    border-radius: 15px;
}

/* Logo */
.logo {
    position: absolute;
    top: 30px;
    left: 30px;
    width: 12%;
    max-width: 220px;
    min-width: 120px;
    z-index: 1;
}

/* Banners */
.banner {
    position: absolute;
    bottom: 20px;
    left: 30%;
    transform: translateX(-50%);
    text-align: center;
    font-size: 2rem;
    color: white;
    background-color: rgba(0, 0, 0, 0.028);
    padding: 0;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    width: 48%;
    max-width: 930px;
    height: 130px;
    opacity: 0;
    z-index: 2;
    transition: opacity 3s ease-in-out;
    overflow: hidden;
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block;
}

/* Slider derecho */
.slider {
    position: absolute;
    top: 50%;
    right: 3%;
    transform: translateY(-50%);
    width: 30%;
    max-width: 580px;
    height: auto;
    aspect-ratio: 29/45;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
    z-index: 1;
    perspective: 1000px;
    transition: transform 0.5s ease-in-out;
}

.slider video, .slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    border-radius: 15px;
}

/* Video emergente (popup) */
.popup-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.popup-video video {
    width: 80%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
}

/* Estilos para iframe de YouTube */
.youtube-container {
    position: absolute;
    top: 50%;
    left: 2%;
    width: 55%;
    max-width: 1080px;
    height: auto;
    aspect-ratio: 6/5;
    transform: translateY(-50%);
    z-index: -1;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    overflow: hidden;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.youtube-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 15px;
    object-fit: contain;
}

/* Controles de playlist de YouTube */
.playlist-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 8px 15px;
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

.youtube-container:hover .playlist-controls {
    opacity: 1;
}

.playlist-controls button {
    background-color: #fff;
    color: #000;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.playlist-controls button:hover {
    background-color: #f0f0f0;
}

/* Media queries para adaptación responsiva */
@media (max-width: 1600px) {
    .video-background, .youtube-container {
        width: 50%;
    }
    
    .slider {
        width: 35%;
    }
}

@media (max-width: 1200px) {
    .video-background, .youtube-container {
        width: 48%;
        left: 1%;
    }
    
    .slider {
        width: 40%;
        right: 1%;
    }
    
    .banner {
        width: 46%;
        left: 25%;
    }
}

@media (max-width: 992px) {
    .main-container {
        flex-direction: column;
        height: auto;
    }
    
    .video-background, .youtube-container {
        position: relative;
        width: 90%;
        left: 5%;
        transform: none;
        margin-top: 100px;
    }
    
    .slider {
        position: relative;
        width: 90%;
        right: auto;
        left: 5%;
        transform: none;
        margin: 20px 0;
    }
    
    .banner {
        position: relative;
        width: 90%;
        left: 50%;
        margin-bottom: 20px;
    }
    
    .logo {
        width: 100px;
    }
}