/* Fondo del escritorio */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: url("img/wallpaper.png") no-repeat center center fixed;
    background-size: cover;
    height: 100vh;
    overflow: hidden;
}

/* Barra de tareas */
.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: #2d2d2d;
    display: flex;
    align-items: center;
    padding: 0 5px;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.5);
    z-index: 1000;
}

.taskbar-start {
    width: 50px;
    height: 30px;
    margin-right: 10px;
    background: #0078d7;
    border: none;
    border-radius: 3px;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.taskbar-btn {
    display: flex;
    align-items: center;
    margin-right: 5px;
    padding: 3px 8px;
    background: #444;
    color: white;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
}

.taskbar-btn img {
    width: 18px;
    height: 18px;
    margin-right: 5px;
}

/* Ventanas de programas */
.window {
    width: 1000px;   /* MÁS GRANDES */
    height: 700px;
    background: #fff;
    border: 2px solid #2d2d2d;
    position: absolute;
    top: 50px;
    left: 50px;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    border-radius: 3px;
    overflow: hidden;
    z-index: 10;
}

/* Cabecera de ventana */
.window-header {
    background: #0078d7;
    color: white;
    padding: 5px 10px;
    cursor: move;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: bold;
}

.window-controls {
    display: flex;
    gap: 5px;
}

.window-header button {
    cursor: pointer;
    border: none;
    padding: 0 8px;
    font-weight: bold;
    border-radius: 2px;
}

.min-btn { background: #6c757d; color: white; }
.max-btn { background: #5bc0de; color: white; }
.close-btn { background: #d9534f; color: white; }

.min-btn:hover { background: #5a6268; }
.max-btn:hover { background: #31b0d5; }
.close-btn:hover { background: #c9302c; }

/* Contenido ventana */
.window-content {
    flex-grow: 1;
    background: white;
}

.window-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Ventana maximizada */
.window.maximized {
    top: 0;
    left: 0;
    width: 100% !important;
    height: calc(100% - 40px) !important;
}

/* Menú inicio */
#startMenu {
    position: fixed;
    bottom: 40px;
    left: 5px;
    width: 200px;
    background: #2d2d2d;
    color: white;
    padding: 10px;
    display: none;
    flex-direction: column;
    gap: 5px;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0,0,0,0.7);
}

#startMenu div {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
}

#startMenu div:hover {
    background: #444;
}

#startMenu img {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

/* Reloj */
#clock {
    margin-left: auto;
    margin-right: 10px;
    color: white;
    font-size: 14px;
}
