/* Estilos para el contenedor del móvil */
#mobileContainer {
    width: 320px;
    height: 640px;
    background: url('https://i.ibb.co/0ZmJ193/FONDO-MOVIL.png') no-repeat center center;
    background-size: contain;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    visibility: hidden;
    z-index: 1000;
}

.mobile {
    width: 300px;
    height: 620px;
    background-color: black;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.mobile-inner {
    width: 100%;
    height: 100%;
    background-image: url('https://s.tmimgcdn.com/scr/1200x750/345700/fondo-de-patron-negro--fondo-negro-con-textura--pared-negra-texturizada_345735-original.jpg');
    background-repeat: repeat;
    background-size: cover;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.status-bar {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    height: 20px;
    background: url('https://i.ibb.co/tYCkFGR/BATERIA-MOVIL-Y-COBERTURA.png') no-repeat center center;
    background-size: contain;
    z-index: 2;
}

.clock {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 60px;
    color: #ffffff;
    font-family: 'Arial', sans-serif;
    font-weight: 700;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
    z-index: 2;
    padding: 10px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.5);
    border: 3px solid #ffffff;
}

.date {
    position: absolute;
    top: 150px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 22px;
    color: #ffffff;
    font-family: 'Arial', sans-serif;
    font-weight: 400;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 8px;
    border: 2px solid #ffffff;
}

/* Aplicaciones en el móvil */
.app {
    position: absolute;
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.app:hover {
    transform: scale(1.1);
}

/* Aquí está el ajuste clave */
.app img {
    width: 90%; /* Ajuste del ancho al 90% del contenedor para respetar la proporción */
    height: 90%; /* Ajuste de la altura al 90% del contenedor */
    object-fit: contain; /* Mantiene la proporción de la imagen sin distorsión */
    border-radius: 20px; /* Bordes redondeados si lo prefieres */
}

/* Posicionamiento de las aplicaciones */
.app.radio { top: 250px; left: 0px; }
.app.calendario { top: 250px; left: 105px; }
.app.noticias { top: 250px; left: 210px; }
.app.discord { top: 370px; left: 0px; }
.app.rares-ltd { top: 370px; left: 105px; }
.app.recursos { top: 370px; left: 210px; }

/* Estilos para las ventanas emergentes de las aplicaciones */
.player {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 2;
    overflow: hidden;
    border-radius: 20px;
}

.player-content {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.player iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.app-close-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 30px;
    height: 30px;
    background-color: #ff4d4d;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    z-index: 3;
}

.mobile-close-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 50px;
    background-color: #ff4d4d;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    z-index: 3;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-transform: uppercase;
    font-family: 'Arial', sans-serif;
}

.open-mobile-btn {
    position: fixed;
    bottom: 20px;
    left: 0px;
    top: 400px;
    width: 35px;
    height: 35px;
    background: url('https://i.ibb.co/VMFtgMB/MOVIL.png') no-repeat center center;
    background-size: contain;
    border: none;
    cursor: pointer;
    z-index: 1000;
}
