/* ESTILOS PARA JUEGO ESCONDIDO - VERSIÓN CON IMÁGENES GRANDES */
.juego-escondido-activo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    z-index: 2147483646;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    overflow: auto;
}

.contenedor-juego-escondido {
    width: 100%;
    max-width: 500px;
    text-align: center;
    margin-top: 20px;
}

.area-juego-escondido {
    position: relative;
    width: 100%;
    height: 85vh;
    max-height: 700px;
    /* ELIMINADO: background-color, box-shadow, border-radius que creaban el recuadro */
    overflow: visible;
    margin-bottom: 20px;
}

.hidden-object-container {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hidden-object {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, #ffeb3b, #ffc107);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 0 15px rgba(255, 235, 59, 0.4);
    animation: pulse 2s infinite alternate;
}

.hidden-object img {
    width: 100px;
    height: 100px;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.3));
    border-radius: 0 !important;
    transform: scale(1) !important;
}

/* ESTILOS MODIFICADOS PARA OBJETOS DE COBERTURA - IMÁGENES GRANDES SIN CUADRADOS */
.cover-object {
    position: absolute;
    border-radius: 50% !important;
    cursor: pointer;
    transition: all 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    z-index: 3;
    transform-origin: center;
    border: 3px solid rgba(255, 255, 255, 0.8);
    background: transparent !important;
}

.cover-object img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
    border-radius: 50% !important;
    transform: scale(1.4) !important;
    transform-origin: center center !important;
    pointer-events: none !important;
    
    /* ANIMACIÓN DE FLOTACIÓN COMO SIMON */
    animation: flotarImagenEscondido 7s ease-in-out infinite !important;
}

/* Diferentes tiempos para las imágenes - MÁS LENTOS */
.cover-object:nth-child(1) img {
    animation: flotarImagenEscondido 7s ease-in-out infinite !important;
    animation-delay: 0.5s !important;
}

.cover-object:nth-child(2) img {
    animation: flotarImagenEscondido 7.5s ease-in-out infinite !important;
    animation-delay: 1.5s !important;
}

.cover-object:nth-child(3) img {
    animation: flotarImagenEscondido 7.8s ease-in-out infinite !important;
    animation-delay: 2.5s !important;
}

.cover-object:nth-child(4) img {
    animation: flotarImagenEscondido 7.2s ease-in-out infinite !important;
    animation-delay: 3.5s !important;
}

.cover-object:nth-child(5) img {
    animation: flotarImagenEscondido 7.4s ease-in-out infinite !important;
    animation-delay: 4.5s !important;
}

/* Animación independiente para las imágenes - MÁS LENTA */
@keyframes flotarImagenEscondido {
    0% {
        transform: scale(1.4) translateY(0px) rotate(0deg);
    }
    33% {
        transform: scale(1.4) translateY(-6px) rotate(0.8deg);
    }
    66% {
        transform: scale(1.4) translateY(-4px) rotate(-0.8deg);
    }
    100% {
        transform: scale(1.4) translateY(0px) rotate(0deg);
    }
}

/* ANIMACIONES MÁS LENTAS Y SUAVES */
.cover-object.moved-up {
    transform: translateY(-500px) rotate(30deg) scale(0.5);
    opacity: 0;
    pointer-events: none;
    transition: all 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cover-object.moved-down {
    transform: translateY(500px) rotate(-30deg) scale(0.5);
    opacity: 0;
    pointer-events: none;
    transition: all 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cover-object.moved-left {
    transform: translateX(-500px) rotate(-30deg) scale(0.5);
    opacity: 0;
    pointer-events: none;
    transition: all 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cover-object.moved-right {
    transform: translateX(500px) rotate(30deg) scale(0.5);
    opacity: 0;
    pointer-events: none;
    transition: all 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ELIMINADO: Mensaje de victoria personalizado - usar el global */

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 15px rgba(255, 235, 59, 0.4);
    }
    100% {
        box-shadow: 0 0 0 25px rgba(255, 235, 59, 0.2);
    }
}

/* MEDIA QUERIES RESPONSIVE */
@media (max-width: 768px) {
    .contenedor-juego-escondido {
        margin-top: 15px;
    }
    
    .area-juego-escondido {
        height: 80vh;
        max-height: 600px;
    }
    
    .hidden-object-container {
        width: 150px;
        height: 150px;
        top: 18%;
    }
    
    .hidden-object img {
        width: 80px;
        height: 80px;
    }

    .cover-object.moved-up {
        transform: translateY(-400px) rotate(30deg) scale(0.5);
        transition: all 1.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .cover-object.moved-down {
        transform: translateY(400px) rotate(-30deg) scale(0.5);
        transition: all 1.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .cover-object.moved-left {
        transform: translateX(-400px) rotate(-30deg) scale(0.5);
        transition: all 1.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .cover-object.moved-right {
        transform: translateX(400px) rotate(30deg) scale(0.5);
        transition: all 1.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
}

@media (max-width: 480px) {
    .contenedor-juego-escondido {
        margin-top: 10px;
    }
    
    .area-juego-escondido {
        height: 75vh;
        max-height: 500px;
    }
    
    .hidden-object-container {
        width: 130px;
        height: 130px;
        top: 15%;
    }
    
    .hidden-object img {
        width: 70px;
        height: 70px;
    }

    .cover-object.moved-up {
        transform: translateY(-300px) rotate(30deg) scale(0.5);
        transition: all 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .cover-object.moved-down {
        transform: translateY(300px) rotate(-30deg) scale(0.5);
        transition: all 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .cover-object.moved-left {
        transform: translateX(-300px) rotate(-30deg) scale(0.5);
        transition: all 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .cover-object.moved-right {
        transform: translateX(300px) rotate(30deg) scale(0.5);
        transition: all 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
}