body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background: url('binary-stars-background.jpg') no-repeat center center fixed;
    background-size: cover;
    height: 100vh;
    overflow: hidden;
 }
 
 /* Barra superior estilo macOS */
 .top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
 }
 
 .top-bar-left {
    display: flex;
    align-items: center;
}

.top-bar-right {
    display: flex;
    align-items: center;
    margin-right: 20px; /* mueve los elementos un poco hacia la izquierda */
}

 
 .top-bar-left .apple-logo {
    font-size: 18px;
    color: #fff;
    margin-right: 15px;
 }
 
 .top-bar-left .menu-item {
    color: #fff;
    font-size: 14px;
    margin-right: 15px;
    text-decoration: none;
    transition: color 0.2s;
 }
 
 .top-bar-left .menu-item:hover {
    color: #ccc;
 }
 


 .top-bar-right .battery-icon {
    color: #fff;
    font-size: 14px;
    margin-right: 15px;
 }
 
 .top-bar-right .clock {
    color: #fff;
    font-size: 14px;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 2px 8px;
    border-radius: 10px;
 }
 
 .desktop {
    width: 100%;
    height: calc(100% - 30px); /* Ajustar por la barra superior */
    position: relative;
    top: 30px; /* Espacio para la barra superior */
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    padding: 20px;
 }
 
 /* Iconos personalizados (centro-abajo) */
 .portfolio-icons {
    position: absolute;
    bottom: 50px; /* Ajustado para que no esté tan abajo */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 20px;
 }
 
 .icon {
    width: 100px;
    text-align: center;
    cursor: pointer;
    color: #fff;
    transition: transform 0.2s;
 }
 
 .icon:hover {
    transform: scale(1.1);
 }
 
 .icon-circle {
    width: 60px;
    height: 60px;
    background-color: #4a4a7a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    margin: 0 auto 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
 }
 
 .icon span {
    font-size: 14px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
 }
 
 /* Estilo para iconos de aplicaciones */
 .app-icon {
   position: absolute;
   text-decoration: none;

   display: flex;
   flex-direction: column;
   align-items: center;

   cursor: move;

   user-select: none;
   -webkit-user-drag: none;
}

 
 .app-icon-img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    margin: 0 auto 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s;
 }
 
 .app-icon:hover .app-icon-img {
    transform: scale(1.1);
 }
 
 /* Estilo de las ventanas */
 .window {
    position: absolute;
    width: 450px;
    height: 350px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    resize: both;
    border: 1px solid rgba(255, 255, 255, 0.2);
 }
 
 .window-header {
    background: linear-gradient(90deg, #4a4a7a, #6a6a9a);
    color: #fff;
    padding: 8px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
 }
 
 .window-title {
    font-size: 16px;
    font-weight: bold;
 }
 
 .close-btn {
    background-color: #ff5555;
    border: none;
    color: #fff;
    width: 25px;
    height: 25px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 14px;
    transition: background-color 0.2s;
 }
 
 .close-btn:hover {
    background-color: #cc4444;
 }
 
 .window-content {
    padding: 15px;
    height: calc(100% - 40px);
    color: #333;
    font-size: 14px;
    line-height: 1.5;
 }

 .dock-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    border-radius: 20px;
    padding: 10px 20px;
    display: flex;
    gap: 25px;
    z-index: 1000;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.config-btn {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    margin-left: 10px;
}

.bg-settings {
    position: fixed;
    top: 40px;
    right: auto;
    left: 20px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 15px;
    border-radius: 10px;
    z-index: 1100;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}


.bg-settings.hidden {
    display: none;
}

.bg-settings h3 {
    margin-top: 0;
    font-size: 16px;
    margin-bottom: 10px;
}

.bg-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.bg-options img {
    width: 80px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.2s, border-color 0.2s;
}

.bg-options img:hover {
    transform: scale(1.1);
    border-color: #fff;
}

body {
    cursor: url('puntero.png') 1 1, auto;
}

.dock-icon-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 5px;
    transition: transform 0.2s;
}

.icon:hover .dock-icon-img {
    transform: scale(1.1);
}


.msn-popup {
   position: fixed;
   right: 20px;
   bottom: 20px;
   width: 250px;
   background: linear-gradient(to bottom, #e9f1f7, #c9dff1);
   border: 1px solid #a6c4de;
   border-radius: 10px;
   box-shadow: 0 0 10px rgba(0,0,0,0.2);
   padding: 10px;
   font-family: 'Segoe UI', sans-serif;
   animation: slideIn 0.5s ease;
   z-index: 2000;
}

@keyframes slideIn {
   from { opacity: 0; transform: translateY(30px); }
   to { opacity: 1; transform: translateY(0); }
}

.msn-popup h4 {
   margin: 0;
   font-size: 14px;
   color: #1c5180;
}

.msn-popup p {
   margin: 5px 0 0;
   font-size: 13px;
}

.msn-popup .options {
   text-align: right;
   font-size: 12px;
   color: #1c5180;
   cursor: pointer;
}
