:root {
    --primary-color: #01b4e4;
    --secondary-color: #032541;
    --text-color: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.7);
}

body {
    margin: 0;
    overflow: hidden;
    font-family: 'Arial', sans-serif;
    background-color: #000;
    color: var(--text-color);
}

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

.background-item {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1.5s cubic-bezier(0.22, 1, 0.36, 1);
    background-size: cover;
    background-position: center;
    filter: brightness(0.9);
    transform: scale(1.05);
}

.background-item.active {
    opacity: 1;
    transform: scale(1);
}

.fragment {
    position: absolute;
    background-size: cover;
    pointer-events: none;
    transform-origin: center center;
    transition: transform 1.2s cubic-bezier(0.34, 1.56, 0.64, 1), 
                opacity 1.2s ease-out, 
                filter 1.2s ease-out;
    z-index: 2000;
    filter: brightness(1.2);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
}

/* Contenedor del logo - ESTILOS BASE */
.logo-container {
    position: fixed;
    bottom: 30vh;
    right: 5vw;
    max-width: 35vw;  /* Máximo 35% del ancho de la pantalla */
    max-height: 20vh; /* Máximo 20% de la altura de la pantalla */
    z-index: 10;
    opacity: 0;
    transition: opacity 1s ease-out, transform 1s ease-out;
    transform: translateY(20px);
    text-align: right;
}

/* Estado activo del logo */
.logo-container.active {
    opacity: 1;
    transform: translateY(0);
}

/* Estilos para la imagen del logo */
.logo-container img {
    max-width: 100%; /* Reducido de 100% a 60% */
    max-height: 100%; /* Reducido de 100% a 60% */
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 15px var(--shadow-color));
    display: block;
    margin-left: auto;
    margin-bottom: 60px; /* Espacio adicional debajo del logo */
}

/* Estilos para el texto alternativo */
.text-logo {
    font-size: 3.5vw;
    font-weight: bold;
    text-shadow: 0 0 15px var(--shadow-color);
    color: var(--text-color);
    margin: 0;
    line-height: 1.1;
    background: linear-gradient(90deg, var(--primary-color), #90cea1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transition: opacity 1s ease-out;
    display: inline-block; /* Mejor manejo del texto */
}

/* Estado activo del texto */
.logo-container.active .text-logo {
    opacity: 1;
}

/* Media Queries ajustados */
@media (max-width: 1024px) {
    .logo-container {
        top: 30vh;
    }
}

@media (max-width: 768px) {
    .logo-container {
        top: 30vh;
        max-width: 55vw;
    }
}

@media (max-width: 480px) {
    .logo-container {
        top: 60vh;
        max-width: 60vw;
    }
    
    .logo-container img {
        max-width: 100%;
        max-height: 100%;
    }
}
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 24px;
    z-index: 100;
    transition: opacity 1s ease-out;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(1, 180, 228, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(1, 180, 228, 0.6);
    border-radius: 50%;
    pointer-events: none;
}

.tmdb-attribution {
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 100;
    color: white;
    font-size: 12px;
    opacity: 0.7;
}

.tmdb-attribution a {
    color: var(--primary-color);
    text-decoration: none;
}

@media (max-width: 768px) {
    .logo-container {
        max-width: 60vw;
        bottom: 25vh;
    }
    
    .text-logo {
        font-size: 6vw;
    }
}