/* Splash Screen - Versión con texto debajo de la imagen */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    animation: splashFadeIn 0.3s ease-out;
    transition: opacity 0.3s ease;
}

.splash-content {
    position: relative;
    max-width: min(1200px, 90%);
    max-height: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
}

.splash-image {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 12px rgba(255, 204, 0, 0.5);
}

.splash-text-container {
    text-align: center;
    color: #ffffff;
    font-size: clamp(1rem, 4vw, 1.5rem);
    font-weight: 400;
    line-height: 1.4;
    padding: 5px 10px;
    width: 100%;
    max-width: 90%;
    margin: 0 auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.splash-text {
    color: #ffffff;
    font-weight: normal;
    display: inline;
}

.splash-link {
    color: #ffcc00 !important;
    font-weight: bold;
    text-decoration: underline;
    cursor: pointer;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    margin-left: 5px;
    display: inline;
    white-space: nowrap;
}

.splash-link:hover {
    color: #ffdd44 !important;
}

/* Botón de cerrar - EN LA ESQUINA DE LA PANTALLA */
.splash-close {
    position: fixed; /* Cambiado a fixed para que esté relativo a la ventana */
    top: 15px;
    right: 35px;
    color: #ffcc00;
    font-size: 2em;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10000;
    width: auto;
    height: auto;
    line-height: normal;
    text-align: center;
    background-color: transparent;
    border-radius: 0;
    border: none;
    display: block;
}

.splash-close:hover {
    color: white;
    background-color: transparent;
    transform: none;
    border-color: transparent;
}

.splash-close:active {
    transform: none;
}

/* Animación */
@keyframes splashFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hide-splash {
    display: none !important;
}

/* Media query para móviles */
@media (max-width: 768px) {
    .splash-content {
        gap: 10px;
        max-height: 85%;
    }
    
    .splash-image {
        max-height: 60vh;
        box-shadow: 0 0 10px rgba(255, 204, 0, 0.4);
    }
    
    .splash-text-container {
        font-size: 0.95rem;
        padding: 5px;
        max-width: 95%;
        line-height: 1.3;
    }
    
    /* Botón de cerrar en móviles - misma posición */
    .splash-close {
        top: 10px;
        right: 20px;
        font-size: 1.8em;
    }
}

/* Media query específico para móviles muy pequeños */
@media (max-width: 480px) {
    .splash-text-container {
        font-size: 0.9rem;
        max-width: 100%;
        padding: 5px 8px;
    }
    
    .splash-image {
        max-height: 55vh;
    }
    
    .splash-link {
        white-space: normal;
        margin-left: 0;
        display: inline-block;
    }
    
    .splash-close {
        top: 8px;
        right: 15px;
        font-size: 1.6em;
    }
}

/* Orientación vertical específica */
@media (max-width: 768px) and (orientation: portrait) {
    .splash-text-container {
        font-size: 0.9rem;
        max-width: 95%;
        word-break: break-word;
    }
    
    .splash-text, .splash-link {
        display: inline;
    }
}