/* ===== VENTANAS ESTILO MODERNO (DARK GLASS) ===== */
:root {
    --window-bg: rgba(18, 25, 35, 0.92);
    --window-header-bg: rgba(12, 18, 28, 0.85);
    --window-border: rgba(19, 177, 205, 0.25);
    --window-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    --accent-blue: #13b1cd;
    --text-primary: #F0F4FA;
    --text-secondary: #B0C4DE;
}

.window-modal {
    display: none;
    position: fixed;
    background: var(--window-bg);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: var(--window-shadow), 0 0 0 1px var(--window-border);
    overflow: hidden;
    z-index: 5000;
    flex-direction: column;
    min-width: 320px;
    min-height: 220px;
    resize: both;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.window-header {
    background: var(--window-header-bg);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: grab;
    border-bottom: 1px solid var(--window-border);
    user-select: none;
}
.window-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}
.window-controls {
    display: flex;
    gap: 10px;
}
.window-button {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.close-btn { background: #ff5f56; }
.minimize-btn { background: #ffbd2e; }
.maximize-btn { background: #27c93f; }
.reload-btn { background: #5e5e5e; color: white; }
.window-button:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}
.window-content {
    flex-grow: 1;
    overflow: hidden;
    background: #0a0f14;
}
.window-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Taskbar */
.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: rgba(10, 15, 25, 0.85);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(19,177,205,0.3);
    display: flex;
    align-items: center;
    padding: 0 15px;
    z-index: 4000;
}
.taskbar-item {
    background: rgba(25, 35, 50, 0.8);
    color: var(--text-primary);
    border: 1px solid rgba(19,177,205,0.3);
    padding: 6px 15px;
    margin-right: 8px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 13px;
    transition: 0.2s;
}
.taskbar-item.active {
    background: rgba(19,177,205,0.3);
    border-color: #13b1cd;
}
.loading-overlay {
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
}
.spinner {
    border: 3px solid rgba(19,177,205,0.2);
    border-top: 3px solid #13b1cd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }